537521197312f3b619294110d5cfd63304d98a9c
[platform/upstream/glibc.git] / ChangeLog
1 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
2
3         * NEWS: Use sourceware.org in Bugzilla URL.
4
5 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
6
7         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
9
10         * stdio-common/tst-put-error.c (do_test): Add newline to the
11         padded test to ensure flush.
12
13 2012-12-05  Jeff Law  <law@redhat.com>
14
15         * sunrpc/etc.rpc (fedfs_admin): Add entry.
16
17 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
18
19         * README: Don't refer to ports add-on as distributed separately.
20         Mention AArch64 in list of systems supported in the ports add-on.
21
22         * LICENSES: Add more non-FSF copyright and license notices.
23
24         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
25         ((unused)).
26
27         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
28
29         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
30         10000 as width of padded output.
31
32 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
33
34         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
35
36         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
37         variable LX with __attribute__ ((unused)).
38         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
39         Likewise.
40         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
41         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
42         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
43         with __attribute__ ((unused)).
44
45 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
46
47         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
48
49 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
50
51         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
52         (CFLAGS-nldbl-acos.c): New variable.
53         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
54         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
55         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
56         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
57         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
58         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
59         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
60         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
61         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
62         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
63         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
64         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
65         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
66         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
67         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
68         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
69         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
70         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
71         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
72         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
73         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
74         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
75         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
76         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
77         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
78         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
79         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
80         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
81         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
82         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
83         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
84         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
85         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
86         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
87         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
88         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
89         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
90         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
91         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
92         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
93         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
94         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
95         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
96         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
97         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
98         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
99         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
100         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
101         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
102         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
103         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
104         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
105         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
106         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
107         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
108         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
109         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
110         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
111         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
112         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
113         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
114         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
115         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
116         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
117         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
118         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
119         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
120         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
121         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
122         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
123         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
124         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
125         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
126         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
127         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
128         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
129         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
130         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
131         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
132         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
133         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
134         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
135         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
136         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
137         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
138         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
139         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
140         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
141         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
142         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
143         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
144         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
145         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
146         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
147         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
148         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
149         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
150
151         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
152         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
153
154         [BZ #14914]
155         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
156         whole low double instead of just low 47 bits when splitting values
157         into two parts.
158
159 2012-12-03  Allan McRae  <allan@archlinux.org>
160
161         * manual/stdio.texi (Predefined Printf Handlers): Remove
162         @hsep and @vsep usage.
163
164 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
165
166         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
167         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
168
169 2012-12-03  Jeff Law  <law@redhat.com>
170
171         * time/sys/time.h (settimeofday): Do not mark TV argument
172         as __nonnull.
173
174 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
175
176         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
177         when currently writing and seek to current position when not.
178         * libio/Makefile (tests): Remove bug-fclose1.
179         * libio/bug-fclose1.c: Delete.
180
181 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
182
183         * manual/arith.texi (feenableexcept): Fix typo.
184         (fedisableexcept): Likewise.
185
186 2012-11-30  Roland McGrath  <roland@hack.frob.com>
187
188         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
189         second, differently-typed declaration, rather than a cast.
190
191 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
192
193         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
194         * include/rpc/svc.h: ... here.
195
196 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
197
198         [BZ #13013]
199         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
200         depending n and resplen2 to catch cases where answer
201         equals answerp2.
202
203 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
204
205         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
206         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
207
208 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
209
210         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
211
212 2012-11-29  Roland McGrath  <roland@hack.frob.com>
213
214         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
215
216 2012-11-28  Jeff Law  <law@redhat.com>
217
218         [BZ #13761]
219         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
220         dataset_temporary.  Track alloca usage into alloca_used.
221         If dataset is large allocate and release it via malloc/free.
222
223 2012-06-04  Florian Weimer  <fweimer@redhat.com>
224
225         [BZ #14197]
226         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
227
228 2012-11-28  David S. Miller  <davem@davemloft.net>
229
230         * sysdeps/sparc/fpu/libm-test-ulps: Update.
231
232 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
233
234         [BZ #14803]
235         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
236         of pi/2 rounded to nearest to 64 bits.
237         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
238         nearest to 64 bits.
239         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
240         bits.
241
242 2012-11-28  Jeff Law <law@redhat.com>
243             Martin Osvald <mosvald@redhat.com>
244
245         [BZ #14889]
246         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
247         * sunrpc/svc.c: Include time.h.
248         (__svc_accept_failed): New function.
249         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
250         any reason other than EINTR, call __svc_accept_failed.
251         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
252         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
253
254 2012-11-28  Andreas Schwab  <schwab@suse.de>
255
256         * scripts/abilist.awk: Also handle indirect functions in .opd
257         section.
258
259 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
260
261         [BZ #13881]
262         * sysdeps/x86/fpu/powl_helper.c: New file.
263         * sysdeps/x86/fpu/Makefile: Likewise.
264         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
265         (p3): New object.
266         (__ieee754_powl): Use __powl_helper for finite arguments except
267         integer exponents below 8.
268         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
269         (p3): New object.
270         (__ieee754_powl): Use __powl_helper for finite arguments except
271         integer exponents below 8.
272         * math/libm-test.inc (pow_test): Add more tests and enable some
273         previously disabled tests.
274         * sysdeps/i386/fpu/libm-test-ulps: Update.
275         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
276
277 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
278             Carlos O'Donell  <carlos_odonell@mentor.com>
279
280         * nss/makedb.c (is_prime): Assert that input is odd and greater
281         than 4.  Note that fact in a comment too.
282         (next_prime): Add 4 to input.
283
284 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
285
286         [BZ #11741]
287         * libio/Makefile (tests): Add test case tst-fwrite-error.
288         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
289         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
290         * libio/tst-fwrite-error.c: New test case.
291
292 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
293
294         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
295         before casting to void *.
296         * include/libc-internal.h (__pointer_type): New macro.
297         (__integer_if_pointer_type_sub): Likewise.
298         (__integer_if_pointer_type): Likewise.
299         (cast_to_integer): Likewise.
300         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
301         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
302         before casting to atomic64_t.
303         (atomic_exchange_acq): Likewise.
304         (__arch_exchange_and_add_body): Likewise.
305         (__arch_add_body): Likewise.
306         (atomic_add_negative): Likewise.
307         (atomic_add_zero): Likewise.
308
309 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
310
311         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
312         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
313         (add_fdes): Likewise.
314         (linear_search_fdes): Likewise.
315         (binary_search_unencoded_fdes): Likewise.
316
317 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
318
319         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
320
321 2012-11-24  Adam Conrad  <adconrad@0c3.net>
322
323         * configure.in: Autodetect C++ header directories.
324         * configure: Regenerated.
325
326 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
327
328         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
329
330 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
331
332         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
333
334 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
335
336         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
337         LDBL_MANT_DIG == 106]: Disable some tests.
338         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
339         Likewise.
340         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
341         Likewise.
342
343         [BZ #14871]
344         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
345         input for small inputs.  Return +/- pi/2 for large inputs.
346         * math/libm-test.inc (atan_test): Add more tests.
347
348         * sysdeps/generic/unwind-dw2-fde-glibc.c
349         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
350         __attribute__ ((unused)).
351
352         [BZ #14645]
353         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
354         x * y if x and y are nonzero and z is zero.
355
356         [BZ #14811]
357         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
358         nonzero exponents with absolute value below 0x1p-117 to +/-
359         0x1p-117.
360
361         [BZ #14869]
362         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
363         up arguments below 2**-450, not just those below 2**-500.
364         * math/libm-test.inc (hypot_test): Add another test.
365
366         [BZ #14868]
367         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
368         Return a+b for ratio over 2**120, not 2**60.
369         * math/libm-test.inc (hypot_test): Add another test.
370
371         * math/libm-test.inc (clog_test): Use
372         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
373         (clog10_test): Likewise.
374
375         [BZ #6778]
376         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
377
378 2012-11-22  Andreas Schwab  <schwab@suse.de>
379
380         * sysdeps/i386/fpu/libm-test-ulps: Update.
381
382 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
383
384         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
385         printf output with newline.
386
387 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
388
389         [BZ #14865]
390         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
391         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
392         -z nodlopen, -z initfirst and -z execstack support.
393         * configure: Regenerated.
394
395         * elf/elf.h (DF_1_NODIRECT): New macro.
396         (DF_1_IGNMULDEF): Likewise.
397         (DF_1_NOKSYMS): Likewise.
398         (DF_1_NOHDR): Likewise.
399         (DF_1_EDITED): Likewise.
400         (DF_1_NORELOC): Likewise.
401         (DF_1_SYMINTPOSE): Likewise.
402         (DF_1_GLOBAUDIT): Likewise.
403         (DF_1_SINGLETON): Likewise.
404         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
405         DT_1_SUPPORTED_MASK bits.
406         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
407
408 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
409
410         * sysdeps/unix/make-syscalls.sh: Document prefixes.
411
412 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
413
414         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
415         macro.
416
417         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
418         (sendmmsg): Move declarations...
419         * socket/sys/socket.h: ... here.
420         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
421         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
422         include it from...
423         * socket/recvmmsg.c: ... this new file.
424         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
425         (sendmmsg): Rename to __sendmmsg, create weak alias and make
426         definition of __sendmmsg hidden.
427         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
428         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
429         Move ENOSYS stub into and include it from...
430         * socket/sendmmsg.c: ... this new file.
431         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
432         (sysdep_routines): Move recvmmsg and sendmmsg...
433         * socket/Makefile (routines): ... here.
434         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
435         (GLIBC_PRIVATE): Add __sendmmsg.
436         * include/sys/socket.h (__sendmmsg): Add declarations.
437         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
438         sendmmsg.
439
440 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
441
442         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
443         variable I1 with __attribute__ ((unused)).
444         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
445
446 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
447
448         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
449         DUMMY variables with __attribute__ ((unused)).
450
451         * bits/byteswap.h: Include <bits/types.h>.
452         (__bswap_64): Use __uint64_t instead of unsigned long long int.
453
454 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
455
456         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
457         string_t.  Do not manually set errno.
458         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
459         length with __strnlen.  Make sure to both set errno and return it on
460         failure.
461
462 2012-11-19  David S. Miller  <davem@davemloft.net>
463
464         With help from Joseph Myers.
465         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
466         very large arguments properly.
467         * math/libm-test.inc (atan_test): New tests.
468         (atan2_test): New tests.
469         * sysdeps/sparc/fpu/libm-test-ulps: Update.
470         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
471
472 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
473
474         [BZ #14856]
475         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
476         Define to 3.
477
478         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
479         [POSIX] (EADDRNOTAVAIL): Likewise.
480         [POSIX] (EAFNOSUPPORT): Likewise.
481         [POSIX] (EALREADY): Likewise.
482         [POSIX] (ECONNABORTED): Likewise.
483         [POSIX] (ECONNREFUSED): Likewise.
484         [POSIX] (ECONNRESET): Likewise.
485         [POSIX] (EDESTADDRREQ): Likewise.
486         [POSIX] (EDQUOT): Likewise.
487         [POSIX] (EHOSTUNREACH): Likewise.
488         [POSIX] (EIDRM): Likewise.
489         [POSIX] (EISCONN): Likewise.
490         [POSIX] (ELOOP): Likewise.
491         [POSIX] (EMULTIHOP): Likewise.
492         [POSIX] (ENETDOWN): Likewise.
493         [POSIX] (ENETUNREACH): Likewise.
494         [POSIX] (ENOBUFS): Likewise.
495         [POSIX] (ENODATA): Likewise.
496         [POSIX] (ENOLINK): Likewise.
497         [POSIX] (ENOMSG): Likewise.
498         [POSIX] (ENOPROTOOPT): Likewise.
499         [POSIX] (ENOSR): Likewise.
500         [POSIX] (ENOSTR): Likewise.
501         [POSIX] (ENOTCONN): Likewise.
502         [POSIX] (ENOTSOCK): Likewise.
503         [POSIX] (EOPNOTSUPP): Likewise.
504         [POSIX] (EOVERFLOW): Likewise.
505         [POSIX] (EPROTO): Likewise.
506         [POSIX] (EPROTONOSUPPORT): Likewise.
507         [POSIX] (EPROTOTYPE): Likewise.
508         [POSIX] (ESTALE): Likewise.
509         [POSIX] (ETIME): Likewise.
510         [POSIX] (ETXTBSY): Likewise.
511         [POSIX] (EWOULDBLOCK): Likewise.
512         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
513         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
514         [POSIX] (SEEK_CUR): Likewise.
515         [POSIX] (SEEK_END): Likewise.
516         [POSIX || UNIX98] (mode_t): Do not require.
517         [POSIX] (off_t): Likewise.
518         [POSIX] (pid_t): Likewise.
519         [POSIX] (sys/stat.h): Do not allow header.
520         [POSIX] (unistd.h): Likewise.
521         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
522         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
523         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
524         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
525         require.
526         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
527         sigevent): Specify elements.
528         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
529         entry.
530         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
531         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
532
533         * conform/data/cpio.h-data [POSIX]: Disable whole file.
534         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
535         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
536         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
537         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
538         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
539         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
540         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
541         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
542         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
543         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
544         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
545         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
546         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
547         Likewise.
548         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
549         Likewise.
550         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
551         Likewise.
552         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
553         Likewise.
554         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
555         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
556         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
557         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
558         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
559         Specify lower bound on value.
560         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
561         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
562         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
563         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
564         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
565         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
566         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
567         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
568         value.
569         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
570         as optional.
571         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
572         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
573         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
574         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
575         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
576         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
577         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
578         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
579         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
580         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
581         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
582         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
583         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
584         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
585         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
586         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
587         entry.
588         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
589         optional.
590         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
591         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
592         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
593         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
594         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
595         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
596         Likewise.
597         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
598         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
599         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
600         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
601         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
602         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
603         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
604         as optional.
605         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
606         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
607         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
608         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
609         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
610         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
611         specify as optional.
612         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
613         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
614         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
615         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
616         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
617         [XPG3] (NL_LANGMAX): Likewise.
618         [POSIX || XPG3] (NL_MSGMAX): Likewise.
619         [POSIX || XPG3] (NL_NMAX): Likewise.
620         [POSIX || XPG3] (NL_SETMAX): Likewise.
621         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
622         [XPG3] (NZERO): Likewise.
623         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
624         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
625         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
626         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
627         (REG_ERANGE): Expect.
628         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
629         optional-constant.
630         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
631         Use (void) in prototype.
632         [POSIX] (*_t): Allow.
633         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
634         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
635         (WRDE_BADVAL): Expect.
636
637         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
638         expect.
639         [XPG3 || XPG4] (O_RSYNC): Likewise.
640         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
641         Likewise.
642         [XPG3 || XPG4] (pthread_sigmask): Likewise.
643         [XPG3 || XPG4] (sigqueue): Likewise.
644         [XPG3 || XPG4] (sigtimedwait): Likewise.
645         [XPG3 || XPG4] (sigwaitinfo): Likewise.
646         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
647         [XPG3 || XPG4] (vsnprintf): Likewise.
648         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
649         Likewise.
650         [XPG3 || XPG4] (blksize_t): Likewise.
651         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
652         Likewise.
653         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
654         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
655         [XPG3 || XPG4] (struct itimerspec): Likewise.
656         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
657         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
658         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
659         [XPG3 || XPG4] (clockid_t): Likewise.
660         [XPG3 || XPG4] (timer_t): Likewise.
661         [XPG3 || XPG4] (clock_getres): Likewise.
662         [XPG3 || XPG4] (clock_gettime): Likewise.
663         [XPG3 || XPG4] (clock_settime): Likewise.
664         [XPG3 || XPG4] (nanosleep): Likewise.
665         [XPG3 || XPG4] (timer_create): Likewise.
666         [XPG3 || XPG4] (timer_delete): Likewise.
667         [XPG3 || XPG4] (timer_gettime): Likewise.
668         [XPG3 || XPG4] (timer_getoverrun): Likewise.
669         [XPG3 || XPG4] (timer_settime): Likewise.
670         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
671         [XPG3 || XPG4] (getlogin_r): Likewise.
672         [XPG3 || XPG4] (pread): Likewise.
673         [XPG3 || XPG4] (pthread_atfork): Likewise.
674         [XPG3 || XPG4] (pwrite): Likewise.
675
676         [BZ #14835]
677         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
678         <bits/siginfo.h>.
679
680 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
681
682         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
683         finalizing MALLSTREAM.
684
685         * sysdeps/mach/hurd/syncfs.c: New file.
686
687 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
688
689         [BZ #14719]
690         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
691         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
692         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
693         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
694         (_nss_dns_gethostbyname4_r): Likewise.
695         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
696         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
697
698 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
699
700         [BZ #13763]
701         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
702
703 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
704
705         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
706         * elf/cache.c (print_entry): Print ",AArch64" for
707         FLAG_AARCH64_LIB64
708
709         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
710         * elf/cache.c (print_entry): Print ",hard-float" for
711         FLAG_ARM_LIBHF.
712
713 2012-11-18  David S. Miller  <davem@davemloft.net>
714
715         With help from Joseph Myers.
716         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
717         cutoff to 2**-13.
718         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
719         cutoff to 2**-25.
720         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
721         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
722         small.
723         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
724         * math/libm-test.inc (y0_test): New tests.
725         (y1_test): New tests.
726         * sysdeps/i386/fpu/libm-test-ulps: Update.
727         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
728         * sysdeps/sparc/fpu/libm-test-ulps: Update.
729
730 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
731
732         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
733         64-bit targets.
734         * configure: Regenerated.
735
736 2012-11-17  David S. Miller  <davem@davemloft.net>
737
738         [BZ #14811]
739         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
740         nonzero exponents with absolute value below 0x1p-128 to +/-
741         0x1p-128.
742
743 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
744
745         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
746
747         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
748
749         * posix/getconf-speclist.c: New file.
750         * posix/posix-envs.def: Likewise.
751         * posix/confstr.c (START_ENV_GROUP): New macro.
752         (END_ENV_GROUP): Likewise.
753         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
754         (KNOWN_PRESENT_ENV_STRING): Likewise.
755         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
756         (UNKNOWN_ENVIRONMENT): Likewise.
757         (confstr): Include posix-envs.def instead of handling
758         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
759         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
760         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
761         (END_ENV_GROUP): Likewise.
762         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
763         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
764         (UNKNOWN_ENVIRONMENT): Likewise.
765         (__sysconf): Include posix-envs.def instead of handling associated
766         cases directly here.
767         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
768         preprocessing getconf-speclist.c rather than running getconf or
769         generating empty file.
770
771 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
772
773         * scripts/check-local-headers.sh: Ignore 'mach' headers.
774
775 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
776
777         [BZ #14672]
778         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
779
780 2012-11-16  David S. Miller  <davem@davemloft.net>
781
782         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
783         smaller than LDBL_EPSILON/2.0L, just return xm1.
784
785 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
786
787         * elf/tst-array1.c (init): Set constructor priority to 1000.
788         (fini): Set destructor priority to 1000.
789         * elf/tst-array2dep.c: Likewise.
790
791 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
792
793         [BZ #11741]
794         * libio/fileops.c (_IO_new_file_write): Correctly return error.
795         (_IO_new_file_xsputn): Also return EOF if none of the input
796         data was written when overflow failed.
797         * libio/iopadn.c (_IO_padn): Likewise.
798         * libio/iowpadn.c (_IO_wpadn): Likewise.
799         * stdio-common/tst-put-error.c: Add copyright notice.
800         (do_test): Add case for printing padded string.
801         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
802         _IO_padn returned error.
803         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
804         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
805         return EOF.
806
807 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
808
809         * libio/libioP.h: Add comment note that the references to C++
810         bits are now obsolete.
811
812 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
813
814         * math/libm-test.inc (check_complex): Use asprintf.
815
816 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
817
818         * debug/pcprofiledump.c (print_version): Update copyright year.
819         * malloc/memusagestat.c (print_version): Likewise.
820
821 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
822
823         [BZ #14831]
824         * elf/Makefile (tests): Add tst-audit8.
825         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
826         ($(objpfx)tst-audit8.out): New target.
827         (tst-audit8-ENV): New variable.
828         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
829         audit if l_reloc_result is NULL.
830         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
831         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
832         * elf/tst-audit8.c: New file.
833
834 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
835
836         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
837         * misc/Makefile (CFLAGS-select.c): Define.
838         * posix/Makefile (CFLAGS-pause.c): Define.
839
840 2012-11-13  David S. Miller  <davem@davemloft.net>
841
842         * crypt/Makefile: Move test targets after toplevel Rules
843         inclusion.  Grab any necessary sysdep routines when linking.
844         * crypt/md5.c (md5_process_block): Remove define, we will always
845         name it __md5_process_block.
846         (md5_finish_ctx): Update md5_process_block call.
847         (md5_stream): Likewise.
848         (md5_process_bytes): Likewise.
849         (md5_process_block): Rename to __md5_process_block and move to ...
850         * crypt/md5-block.c: ... here.
851         * crypt/sha256.c (sha256_process_block): Move to ...
852         * crypt/sha256-block.c: ... here.
853         * crypt/sha512.c (sha512_process_block): Move to ...
854         * crypt/sha512-block.c: ... here.
855         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
856         path.
857         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
858         * sysdeps/sparc/sparc64/multiarch/Makefile
859         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
860         crypt subdir.
861         (localedef-aux): Add md5 crypto assembler when in locale subdir.
862         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
863         multiarch changes.
864         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
865         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
866         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
867         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
868         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
869         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
870         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
871         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
872         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
873         file.
874         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
875         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
876         file.
877         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
878
879 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
880
881         * timezone/tzselect.ksh: Update from tzcode git revision
882         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
883         * timezone/zdump.c: Likewise.
884         * timezone/zic.c: Likewise.
885         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
886         in TZVERSION setting, not $(PKGVERSION).
887         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
888         REPORT_BUGS_TO settings.
889
890         [BZ #14838]
891         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
892         macro.
893
894 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
895
896         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
897         detection to immediately after _FP_ROUND().
898         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
899         bits are 0.
900
901 2012-11-11  David S. Miller  <davem@davemloft.net>
902
903         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
904         inttypes.h
905         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
906         __close rather than their public counterparts.
907
908 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
909
910         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
911         file.
912         [UNIX98] (sem_timedwait): Do not expect.
913         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
914         [XPG4 || UNIX98] (sockatmark): Do not expect.
915         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
916         (clock_getcpuclockid): Do not expect.
917         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
918         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
919         Do not expect.
920         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
921         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
922         [UNIX98] (vwscanf): Likewise.
923         [UNIX98] (vswscanf): Likewise.
924
925 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
926
927         * timezone/version.h: Remove file.
928         * timezone/README: Do not refer to version.h.
929         * timezone/Makefile ($(objpfx)zic.o): New dependency on
930         $(objpfx)version.h.
931         ($(objpfx)zdump.o): Likewise.
932         ($(objpfx)version.h): New target.
933
934         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
935         2012i.
936         * timezone/README: Don't mention modification to tzselect.ksh.
937         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
938         work on unmodified tzselect.ksh.  Substitute version numbers in
939         tzselect.ksh.
940
941         * Makefile (format-me): Remove.
942         (INSTALL): Adjust indentation.  Use commands directly instead of
943         using $(format-me).
944
945         * aclocal.m4 (ACX_PKGVERSION): New macro.
946         (ACX_BUGURL): Likewise.
947         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
948         (PKGVERSION): New AC_DEFINE_UNQUOTED.
949         (REPORT_BUGS_TO): Likewise.
950         * configure: Regenerated.
951         * config.h.in (PKGVERSION): New macro.
952         (REPORT_BUGS_TO): Likewise.
953         * config.make.in (PKGVERSION): New variable.
954         (PKGVERSION_TEXI): Likewise.
955         (REPORT_BUGS_TO): Likewise.
956         (REPORT_BUGS_TEXI): Likewise.
957         * Makefile (format-me): Use -I$(common-objpfx)manual.
958         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
959         ($(common-objpfx)manual/%): New target.
960         (manual/%): Remove target.
961         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
962         (print_version): Use PKGVERSION.
963         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
964         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
965         and REPORT_BUGS_TO.
966         ($(objpfx)xtrace): Likewise.
967         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
968         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
969         (print_version): Use PKGVERSION.
970         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
971         (do_version): Use PKGVERSION.
972         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
973         REPORT_BUGS_TO.
974         (common-ldd-rewrite): Likewise.
975         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
976         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
977         (print_version): Use PKGVERSION.
978         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
979         * elf/pldd.c (argp_program_bug_address): Remove variable.
980         (more_help): New function.
981         (argp): Use more_help.
982         (print_version): Use PKGVERSION.
983         * elf/sln.c (main): Use PKGVERSION.
984         (usage): Use REPORT_BUGS_TO.
985         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
986         (top level): Use PKGVERSION.
987         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
988         (print_version): Use PKGVERSION.
989         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
990         (print_version): Use PKGVERSION.
991         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
992         (print_version): Use PKGVERSION.
993         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
994         (print_version): Use PKGVERSION.
995         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
996         (print_version): Use PKGVERSION.
997         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
998         (print_version): Use PKGVERSION.
999         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
1000         and BUGURL.
1001         ($(objpfx)memusage): Likewise.
1002         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
1003         (do_version): Use PKGVERSION.
1004         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
1005         (print_version): Use PKGVERSION.
1006         * malloc/mtrace.pl ($PACKAGE): Remove variable.
1007         ($PKGVERSION): New variable.
1008         ($REPORT_BUGS_TO): Likewise.
1009         (usage): Use $REPORT_BUGS_TO.
1010         (top level): Use $PKGVERSION.
1011         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
1012         ($(objpfx)pkgvers.texi): New rule.
1013         ($(objpfx)stamp-pkgvers): Likewise.
1014         * manual/install.texi: Include pkgvers.texi.
1015         (--with-pkgversion): Document new configure option.
1016         (--with-bugurl): Likewise.
1017         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
1018         than necessarily for this particular distribution.  Use
1019         REPORT_BUGS_TO for where to report bugs.
1020         * INSTALL: Regenerated.
1021         * manual/libc.texinfo: Include pkgvers.texi.
1022         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
1023         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
1024         (print_version): Use PKGVERSION.
1025         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
1026         (print_version): Use PKGVERSION.
1027         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
1028         (print_version): Use PKGVERSION.
1029         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
1030         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
1031         macro.
1032         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
1033         (print_version): Use PKGVERSION.
1034         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
1035         (print_version): Use PKGVERSION.
1036         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
1037         and PKGVERSION.
1038
1039         * timezone/checktab.awk: Update from tzcode 2012i.
1040         * timezone/ialloc.c: Likewise.
1041         * timezone/private.h: Likewise.
1042         * timezone/scheck.c: Likewise.
1043         * timezone/tzfile.h: Likewise.
1044         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
1045         (TZVERSION): Hardcode tzcode version number.
1046         * timezone/zdump.c: Update from tzcode 2012i.
1047         * timezone/zic.c: Likewise.
1048         * timezone/version.h: New file.
1049         * timezone/README: Describe version.h.  Update upstream location.
1050
1051         [BZ #14824]
1052         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
1053         (mktemp): Enable declaration.
1054         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
1055         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
1056         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
1057         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
1058         Likewise.
1059         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
1060         Likewise.
1061         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
1062         Likewise.
1063         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
1064         Likewise.
1065         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
1066         Likewise.
1067         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
1068         Likewise.
1069
1070         [BZ #14821]
1071         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
1072         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
1073         for copies of such integer values.
1074         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
1075         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
1076
1077 2012-11-09  Andreas Jaeger  <aj@suse.de>
1078
1079         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
1080         definitions and declarations that are provided by
1081         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1082
1083 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1084
1085         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
1086         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
1087         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
1088         definition.
1089
1090 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1091
1092         * elf/elf.h: Update comment before AArch64 relocations.
1093
1094 2012-11-07  David S. Miller  <davem@davemloft.net>
1095
1096         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
1097         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
1098         (__start_context): Declare.
1099         (__makecontext_ret): Delete.
1100         (__makecontext): Hook up __start_context instead of
1101         __makecontext_ret.
1102         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
1103         (sysdep_routines): Add __start_context when in stdlib.
1104
1105 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
1106
1107         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
1108         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
1109         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
1110         hardcoded "nm".
1111         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
1112         (READELF): New variable.  Use it instead of hardcoded "readelf".
1113
1114 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
1115
1116         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
1117         * sysdeps/x86/Makefile: Here.
1118         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
1119         * sysdeps/x86/tst-xmmymm.sh: This.
1120
1121 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
1122
1123         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
1124         expectations.
1125         [UNIX98] (pthread_barrier_t): Do not expect.
1126         [UNIX98] (pthread_barrierattr_t): Likewise.
1127         [UNIX98] (pthread_spinlock_t): Likewise.
1128         [UNIX98] (pthread_barrier_destroy): Likewise.
1129         [UNIX98] (pthread_barrier_init): Likewise.
1130         [UNIX98] (pthread_barrier_wait): Likewise.
1131         [UNIX98] (pthread_barrierattr_destroy): Likewise.
1132         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
1133         [UNIX98] (pthread_barrierattr_init): Likewise.
1134         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
1135         [UNIX98] (pthread_getcpuclockid): Likewise.
1136         [UNIX98] (pthread_mutex_timedlock): Likewise.
1137         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
1138         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
1139         [UNIX98] (pthread_sigmask): Likewise.
1140         [UNIX98] (pthread_spin_destroy): Likewise.
1141         [UNIX98] (pthread_spin_init): Likewise.
1142         [UNIX98] (pthread_spin_lock): Likewise.
1143         [UNIX98] (pthread_spin_trylock): Likewise.
1144         [UNIX98] (pthread_spin_unlock): Likewise.
1145         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
1146         Do not expect.
1147         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
1148         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
1149         [XPG3 || XPG4] (pthread_cond_t): Likewise.
1150         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
1151         [XPG3 || XPG4] (pthread_key_t): Likewise.
1152         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
1153         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
1154         [XPG3 || XPG4] (pthread_once_t): Likewise.
1155         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
1156         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
1157         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
1158         [XPG3 || XPG4] (pthread_t): Likewise.
1159
1160         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
1161         not expect.
1162         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
1163
1164         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
1165         Change function return type to int.
1166
1167         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
1168         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
1169         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
1170         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
1171         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
1172         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
1173         [!POSIX] (posix_madvise): Likewise.
1174         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
1175         && !UNIX98].
1176         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
1177         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
1178         (mode_t): Likewise.
1179         (posix_mem_offset): Likewise.
1180         (posix_typed_mem_get_info): Likewise.
1181         (posix_typed_mem_open): Likewise.
1182
1183         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
1184         Change condition to [XOPEN2K8].
1185
1186         * conform/conformtest.pl: Preprocess allow-header data with -x c
1187         instead of from stdin.
1188         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
1189         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
1190         [C99-based standards] (cerfc): Likewise.
1191         [C99-based standards] (cexp2): Likewise.
1192         [C99-based standards] (cexpm1): Likewise.
1193         [C99-based standards] (clog10): Likewise.
1194         [C99-based standards] (clog1p): Likewise.
1195         [C99-based standards] (clog2): Likewise.
1196         [C99-based standards] (clgamma): Likewise.
1197         [C99-based standards] (ctgamma): Likewise.
1198         [C99-based standards] (cerff): Likewise.
1199         [C99-based standards] (cerfcf): Likewise.
1200         [C99-based standards] (cexp2f): Likewise.
1201         [C99-based standards] (cexpm1f): Likewise.
1202         [C99-based standards] (clog10f): Likewise.
1203         [C99-based standards] (clog1pf): Likewise.
1204         [C99-based standards] (clog2f): Likewise.
1205         [C99-based standards] (clgammaf): Likewise.
1206         [C99-based standards] (ctgammaf): Likewise.
1207         [C99-based standards] (cerfl): Likewise.
1208         [C99-based standards] (cerfcl): Likewise.
1209         [C99-based standards] (cexp2l): Likewise.
1210         [C99-based standards] (cexpm1l): Likewise.
1211         [C99-based standards] (clog10l): Likewise.
1212         [C99-based standards] (clog1pl): Likewise.
1213         [C99-based standards] (clog2l): Likewise.
1214         [C99-based standards] (clgammal): Likewise.
1215         [C99-based standards] (ctgammal): Likewise.
1216         * conform/data/inttypes.h-data [C99-based standards]: Include
1217         stdint.h-data.  Remove all expectations for stdint.h contents.
1218         [C99-based standards] (PRI*): Do not allow.
1219         [C99-based standards] (SCN*): Likewise.
1220         [C99-based standards] (*_t): Likewise.
1221         [C99-based-standards] (PRId8): Expect macro.
1222         [C99-based-standards] (PRIi8): Likewise.
1223         [C99-based-standards] (PRIo8): Likewise.
1224         [C99-based-standards] (PRIu8): Likewise.
1225         [C99-based-standards] (PRIx8): Likewise.
1226         [C99-based-standards] (PRIX8): Likewise.
1227         [C99-based-standards] (SCNd8): Likewise.
1228         [C99-based-standards] (SCNi8): Likewise.
1229         [C99-based-standards] (SCNo8): Likewise.
1230         [C99-based-standards] (SCNu8): Likewise.
1231         [C99-based-standards] (SCNx8): Likewise.
1232         [C99-based-standards] (PRIdLEAST8): Likewise.
1233         [C99-based-standards] (PRIiLEAST8): Likewise.
1234         [C99-based-standards] (PRIoLEAST8): Likewise.
1235         [C99-based-standards] (PRIuLEAST8): Likewise.
1236         [C99-based-standards] (PRIxLEAST8): Likewise.
1237         [C99-based-standards] (PRIXLEAST8): Likewise.
1238         [C99-based-standards] (SCNdLEAST8): Likewise.
1239         [C99-based-standards] (SCNiLEAST8): Likewise.
1240         [C99-based-standards] (SCNoLEAST8): Likewise.
1241         [C99-based-standards] (SCNuLEAST8): Likewise.
1242         [C99-based-standards] (SCNxLEAST8): Likewise.
1243         [C99-based-standards] (PRIdFAST8): Likewise.
1244         [C99-based-standards] (PRIiFAST8): Likewise.
1245         [C99-based-standards] (PRIoFAST8): Likewise.
1246         [C99-based-standards] (PRIuFAST8): Likewise.
1247         [C99-based-standards] (PRIxFAST8): Likewise.
1248         [C99-based-standards] (PRIXFAST8): Likewise.
1249         [C99-based-standards] (SCNdFAST8): Likewise.
1250         [C99-based-standards] (SCNiFAST8): Likewise.
1251         [C99-based-standards] (SCNoFAST8): Likewise.
1252         [C99-based-standards] (SCNuFAST8): Likewise.
1253         [C99-based-standards] (SCNxFAST8): Likewise.
1254         [C99-based-standards] (PRId16): Likewise.
1255         [C99-based-standards] (PRIi16): Likewise.
1256         [C99-based-standards] (PRIo16): Likewise.
1257         [C99-based-standards] (PRIu16): Likewise.
1258         [C99-based-standards] (PRIx16): Likewise.
1259         [C99-based-standards] (PRIX16): Likewise.
1260         [C99-based-standards] (SCNd16): Likewise.
1261         [C99-based-standards] (SCNi16): Likewise.
1262         [C99-based-standards] (SCNo16): Likewise.
1263         [C99-based-standards] (SCNu16): Likewise.
1264         [C99-based-standards] (SCNx16): Likewise.
1265         [C99-based-standards] (PRIdLEAST16): Likewise.
1266         [C99-based-standards] (PRIiLEAST16): Likewise.
1267         [C99-based-standards] (PRIoLEAST16): Likewise.
1268         [C99-based-standards] (PRIuLEAST16): Likewise.
1269         [C99-based-standards] (PRIxLEAST16): Likewise.
1270         [C99-based-standards] (PRIXLEAST16): Likewise.
1271         [C99-based-standards] (SCNdLEAST16): Likewise.
1272         [C99-based-standards] (SCNiLEAST16): Likewise.
1273         [C99-based-standards] (SCNoLEAST16): Likewise.
1274         [C99-based-standards] (SCNuLEAST16): Likewise.
1275         [C99-based-standards] (SCNxLEAST16): Likewise.
1276         [C99-based-standards] (PRIdFAST16): Likewise.
1277         [C99-based-standards] (PRIiFAST16): Likewise.
1278         [C99-based-standards] (PRIoFAST16): Likewise.
1279         [C99-based-standards] (PRIuFAST16): Likewise.
1280         [C99-based-standards] (PRIxFAST16): Likewise.
1281         [C99-based-standards] (PRIXFAST16): Likewise.
1282         [C99-based-standards] (SCNdFAST16): Likewise.
1283         [C99-based-standards] (SCNiFAST16): Likewise.
1284         [C99-based-standards] (SCNoFAST16): Likewise.
1285         [C99-based-standards] (SCNuFAST16): Likewise.
1286         [C99-based-standards] (SCNxFAST16): Likewise.
1287         [C99-based-standards] (PRId32): Likewise.
1288         [C99-based-standards] (PRIi32): Likewise.
1289         [C99-based-standards] (PRIo32): Likewise.
1290         [C99-based-standards] (PRIu32): Likewise.
1291         [C99-based-standards] (PRIx32): Likewise.
1292         [C99-based-standards] (PRIX32): Likewise.
1293         [C99-based-standards] (SCNd32): Likewise.
1294         [C99-based-standards] (SCNi32): Likewise.
1295         [C99-based-standards] (SCNo32): Likewise.
1296         [C99-based-standards] (SCNu32): Likewise.
1297         [C99-based-standards] (SCNx32): Likewise.
1298         [C99-based-standards] (PRIdLEAST32): Likewise.
1299         [C99-based-standards] (PRIiLEAST32): Likewise.
1300         [C99-based-standards] (PRIoLEAST32): Likewise.
1301         [C99-based-standards] (PRIuLEAST32): Likewise.
1302         [C99-based-standards] (PRIxLEAST32): Likewise.
1303         [C99-based-standards] (PRIXLEAST32): Likewise.
1304         [C99-based-standards] (SCNdLEAST32): Likewise.
1305         [C99-based-standards] (SCNiLEAST32): Likewise.
1306         [C99-based-standards] (SCNoLEAST32): Likewise.
1307         [C99-based-standards] (SCNuLEAST32): Likewise.
1308         [C99-based-standards] (SCNxLEAST32): Likewise.
1309         [C99-based-standards] (PRIdFAST32): Likewise.
1310         [C99-based-standards] (PRIiFAST32): Likewise.
1311         [C99-based-standards] (PRIoFAST32): Likewise.
1312         [C99-based-standards] (PRIuFAST32): Likewise.
1313         [C99-based-standards] (PRIxFAST32): Likewise.
1314         [C99-based-standards] (PRIXFAST32): Likewise.
1315         [C99-based-standards] (SCNdFAST32): Likewise.
1316         [C99-based-standards] (SCNiFAST32): Likewise.
1317         [C99-based-standards] (SCNoFAST32): Likewise.
1318         [C99-based-standards] (SCNuFAST32): Likewise.
1319         [C99-based-standards] (SCNxFAST32): Likewise.
1320         [C99-based-standards] (PRId64): Likewise.
1321         [C99-based-standards] (PRIi64): Likewise.
1322         [C99-based-standards] (PRIo64): Likewise.
1323         [C99-based-standards] (PRIu64): Likewise.
1324         [C99-based-standards] (PRIx64): Likewise.
1325         [C99-based-standards] (PRIX64): Likewise.
1326         [C99-based-standards] (SCNd64): Likewise.
1327         [C99-based-standards] (SCNi64): Likewise.
1328         [C99-based-standards] (SCNo64): Likewise.
1329         [C99-based-standards] (SCNu64): Likewise.
1330         [C99-based-standards] (SCNx64): Likewise.
1331         [C99-based-standards] (PRIdLEAST64): Likewise.
1332         [C99-based-standards] (PRIiLEAST64): Likewise.
1333         [C99-based-standards] (PRIoLEAST64): Likewise.
1334         [C99-based-standards] (PRIuLEAST64): Likewise.
1335         [C99-based-standards] (PRIxLEAST64): Likewise.
1336         [C99-based-standards] (PRIXLEAST64): Likewise.
1337         [C99-based-standards] (SCNdLEAST64): Likewise.
1338         [C99-based-standards] (SCNiLEAST64): Likewise.
1339         [C99-based-standards] (SCNoLEAST64): Likewise.
1340         [C99-based-standards] (SCNuLEAST64): Likewise.
1341         [C99-based-standards] (SCNxLEAST64): Likewise.
1342         [C99-based-standards] (PRIdFAST64): Likewise.
1343         [C99-based-standards] (PRIiFAST64): Likewise.
1344         [C99-based-standards] (PRIoFAST64): Likewise.
1345         [C99-based-standards] (PRIuFAST64): Likewise.
1346         [C99-based-standards] (PRIxFAST64): Likewise.
1347         [C99-based-standards] (PRIXFAST64): Likewise.
1348         [C99-based-standards] (SCNdFAST64): Likewise.
1349         [C99-based-standards] (SCNiFAST64): Likewise.
1350         [C99-based-standards] (SCNoFAST64): Likewise.
1351         [C99-based-standards] (SCNuFAST64): Likewise.
1352         [C99-based-standards] (SCNxFAST64): Likewise.
1353         [C99-based-standards] (PRIdMAX): Likewise.
1354         [C99-based-standards] (PRIiMAX): Likewise.
1355         [C99-based-standards] (PRIoMAX): Likewise.
1356         [C99-based-standards] (PRIuMAX): Likewise.
1357         [C99-based-standards] (PRIxMAX): Likewise.
1358         [C99-based-standards] (PRIXMAX): Likewise.
1359         [C99-based-standards] (SCNdMAX): Likewise.
1360         [C99-based-standards] (SCNiMAX): Likewise.
1361         [C99-based-standards] (SCNoMAX): Likewise.
1362         [C99-based-standards] (SCNuMAX): Likewise.
1363         [C99-based-standards] (SCNxMAX): Likewise.
1364         [C99-based-standards] (PRIdPTR): Likewise.
1365         [C99-based-standards] (PRIiPTR): Likewise.
1366         [C99-based-standards] (PRIoPTR): Likewise.
1367         [C99-based-standards] (PRIuPTR): Likewise.
1368         [C99-based-standards] (PRIxPTR): Likewise.
1369         [C99-based-standards] (PRIXPTR): Likewise.
1370         [C99-based-standards] (SCNdPTR): Likewise.
1371         [C99-based-standards] (SCNiPTR): Likewise.
1372         [C99-based-standards] (SCNoPTR): Likewise.
1373         [C99-based-standards] (SCNuPTR): Likewise.
1374         [C99-based-standards] (SCNxPTR): Likewise.
1375         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
1376         allow.
1377         * conform/data/stdint.h-data: Update comments to clarify
1378         requirements.
1379         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
1380         type.
1381         [C99-based standards] (INT8_MAX): Likewise.
1382         [C99-based standards] (INT16_MIN): Likewise.
1383         [C99-based standards] (INT16_MAX): Likewise.
1384         [C99-based standards] (INT32_MIN): Likewise.
1385         [C99-based standards] (INT32_MAX): Likewise.
1386         [C99-based standards] (INT64_MIN): Likewise.
1387         [C99-based standards] (INT64_MAX): Likewise.
1388         [C99-based standards] (UINT8_MAX): Likewise.
1389         [C99-based standards] (UINT16_MAX): Likewise.
1390         [C99-based standards] (UINT32_MAX): Likewise.
1391         [C99-based standards] (UINT64_MAX): Likewise.
1392         [C99-based standards] (INT_LEAST8_MIN): Likewise.
1393         [C99-based standards] (INT_LEAST8_MAX): Likewise.
1394         [C99-based standards] (INT_LEAST16_MIN): Likewise.
1395         [C99-based standards] (INT_LEAST16_MAX): Likewise.
1396         [C99-based standards] (INT_LEAST32_MIN): Likewise.
1397         [C99-based standards] (INT_LEAST32_MAX): Likewise.
1398         [C99-based standards] (INT_LEAST64_MIN): Likewise.
1399         [C99-based standards] (INT_LEAST64_MAX): Likewise.
1400         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
1401         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
1402         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
1403         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
1404         [C99-based standards] (INT_FAST8_MIN): Likewise.
1405         [C99-based standards] (INT_FAST8_MAX): Likewise.
1406         [C99-based standards] (INT_FAST16_MIN): Likewise.
1407         [C99-based standards] (INT_FAST16_MAX): Likewise.
1408         [C99-based standards] (INT_FAST32_MIN): Likewise.
1409         [C99-based standards] (INT_FAST32_MAX): Likewise.
1410         [C99-based standards] (INT_FAST64_MIN): Likewise.
1411         [C99-based standards] (INT_FAST64_MAX): Likewise.
1412         [C99-based standards] (UINT_FAST8_MAX): Likewise.
1413         [C99-based standards] (UINT_FAST16_MAX): Likewise.
1414         [C99-based standards] (UINT_FAST32_MAX): Likewise.
1415         [C99-based standards] (UINT_FAST64_MAX): Likewise.
1416         [C99-based standards] (INTPTR_MIN): Likewise.
1417         [C99-based standards] (INTPTR_MAX): Likewise.
1418         [C99-based standards] (UINTPTR_MAX): Likewise.
1419         [C99-based standards] (INTMAX_MIN): Likewise.
1420         [C99-based standards] (INTMAX_MAX): Likewise.
1421         [C99-based standards] (UINTMAX_MAX): Likewise.
1422         [C99-based standards] (PTRDIFF_MIN): Likewise.
1423         [C99-based standards] (PTRDIFF_MAX): Likewise.
1424         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
1425         [C99-based standards] (SIZE_MAX): Likewise.
1426         [C99-based standards] (WCHAR_MAX): Likewise.
1427         [C99-based standards] (WINT_MAX): Likewise.
1428         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
1429         constraint on value.
1430         [C99-based standards] (WCHAR_MIN): Likewise.
1431         [C99-based standards] (WINT_MIN): Likewise.
1432         [C99-based standards] (*_t): Allow.
1433         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
1434         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
1435         Include math.h-data and complex.h-data.  Remove all expectations
1436         of math.h and complex.h contents.
1437         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
1438         at end of line.
1439         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
1440         (struct tm): Expect tag.
1441         [C99-based-standards] (wcstof): Expect function.
1442         [C99-based-standards] (wcstold): Likewise.
1443         [C99-based-standards] (wcstoll): Likewise.
1444         [C99-based-standards] (wcstoull): Likewise.
1445         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
1446         macro-int-constant.  Specify type.
1447         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
1448         constraint on value.
1449         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
1450         Specify type.
1451         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
1452         Specify value.
1453         [ISO C standards]: Do not allow headers.
1454         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
1455         wcs[abcdefghijklmnopqrstuvwxyz]*.
1456         [ISO C standards] (*_t): Do not allow.
1457         * conform/data/wctype.h-data [C99-based standards] (iswblank):
1458         Expect function.
1459         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
1460         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
1461         Specify type.
1462         [ISO C standards]: Do not allow headers.
1463         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
1464         is[abcdefghijklmnopqrstuvwxyz]*.
1465         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
1466         to[abcdefghijklmnopqrstuvwxyz]*.
1467         [ISO C standards] (*_t): Do not allow.
1468         * conform/data/stdalign.h-data: New file.
1469         * conform/data/stdbool.h-data: Likewise.
1470         * conform/data/stdnoreturn.h-data: Likewise.
1471
1472 2012-11-07  Roland McGrath  <roland@hack.frob.com>
1473
1474         [BZ #14815]
1475         * manual/filesys.texi (Directory Entries): Typo fix.
1476         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
1477
1478 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1479
1480         * elf/elf.h (EM_AARCH64): New macro.
1481         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
1482         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
1483         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
1484         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
1485         (R_AARCH64_TLSDESC): Likewise.
1486         (NT_ARM_TLS): Likewise.
1487         (NT_ARM_HW_BREAK): Likewise.
1488         (NT_ARM_HW_WATCH): Likewise.
1489
1490 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
1491
1492         [BZ #14811]
1493         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
1494         (__ieee754_powl): Saturate nonzero exponents with absolute value
1495         below 0x1p-79 to +/- 0x1p-79.
1496         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
1497         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
1498         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
1499         nonzero exponents with absolute value below 0x1p-32 to +/-
1500         0x1p-32.
1501         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
1502         (__ieee754_powl): Saturate nonzero exponents with absolute value
1503         below 0x1p-79 to +/- 0x1p-79.
1504         * math/libm-test.inc (pow_test): Add more tests.
1505
1506 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1507
1508         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
1509         _dl_s390_cap_flags with kernel. Increase string length.
1510         (_dl_s390_platforms): Add z196 and zEC12.
1511
1512 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
1513
1514         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
1515         Change XOPEN21K to XOPEN2K.
1516
1517 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
1518
1519         * string/memmove.c: Use memcpy when possible.
1520
1521 2012-11-06  Andreas Jaeger  <aj@suse.de>
1522
1523         * po/eo.po: Update from translation team.
1524
1525 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
1526
1527         [BZ #14793]
1528         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
1529         exponent and small x and y exponents, scale x or y up.  Increase
1530         by 2 the exponent used in scaling up.
1531         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1532         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1533         * math/libm-test.inc (fma_test): Add more tests.
1534         (fma_test_towardzero): Likewise.
1535         (fma_test_downward): Likewise.
1536         (fma_test_upward): Likewise.
1537
1538 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
1539
1540         [BZ #14805]
1541         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
1542         fenv_t *.
1543
1544         [BZ #14801]
1545         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
1546         namespace for names of struct fields.
1547         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
1548         fenv_t fields.
1549         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
1550         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
1551
1552 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1553
1554         [BZ #3665]
1555         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1556
1557 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
1558
1559         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
1560         PTR_DEMANGLE.
1561
1562         [BZ #5246]
1563         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
1564         PTR_DEMANGLE.
1565
1566 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
1567
1568         [BZ #14797]
1569         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
1570         definitely overflow as x * y not x * y + z.
1571         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1572         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1573         * math/libm-test.inc (fma_test): Add more tests.
1574         (fma_test_towardzero): Likewise.
1575         (fma_test_downward): Likewise.
1576         (fma_test_upward): Likewise.
1577
1578 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
1579
1580         [BZ #157]
1581
1582         * include/stub-tag.h: Remove file.
1583         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
1584         '#include' of it.
1585         * manual/maint.texi (Porting): Don't reference it.
1586         * Makerules ($(objpfx)stubs): Likewise.
1587         * dirent/closedir.c: Don't include <stub-tag.h>.
1588         * dirent/dirfd.c: Likewise.
1589         * dirent/fdopendir.c: Likewise.
1590         * dirent/getdents.c: Likewise.
1591         * dirent/getdents64.c: Likewise.
1592         * dirent/opendir.c: Likewise.
1593         * dirent/readdir.c: Likewise.
1594         * dirent/readdir64.c: Likewise.
1595         * dirent/readdir64_r.c: Likewise.
1596         * dirent/readdir_r.c: Likewise.
1597         * dirent/rewinddir.c: Likewise.
1598         * dirent/seekdir.c: Likewise.
1599         * dirent/telldir.c: Likewise.
1600         * gmon/profil.c: Likewise.
1601         * grp/setgroups.c: Likewise.
1602         * inet/if_index.c: Likewise.
1603         * io/access.c: Likewise.
1604         * io/chdir.c: Likewise.
1605         * io/chmod.c: Likewise.
1606         * io/chown.c: Likewise.
1607         * io/close.c: Likewise.
1608         * io/dup.c: Likewise.
1609         * io/dup2.c: Likewise.
1610         * io/dup3.c: Likewise.
1611         * io/euidaccess.c: Likewise.
1612         * io/faccessat.c: Likewise.
1613         * io/fchdir.c: Likewise.
1614         * io/fchmod.c: Likewise.
1615         * io/fchmodat.c: Likewise.
1616         * io/fchown.c: Likewise.
1617         * io/fchownat.c: Likewise.
1618         * io/fcntl.c: Likewise.
1619         * io/flock.c: Likewise.
1620         * io/fstatfs.c: Likewise.
1621         * io/fstatfs64.c: Likewise.
1622         * io/fstatvfs.c: Likewise.
1623         * io/fstatvfs64.c: Likewise.
1624         * io/futimens.c: Likewise.
1625         * io/fxstat.c: Likewise.
1626         * io/fxstat64.c: Likewise.
1627         * io/fxstatat.c: Likewise.
1628         * io/fxstatat64.c: Likewise.
1629         * io/getcwd.c: Likewise.
1630         * io/isatty.c: Likewise.
1631         * io/lchmod.c: Likewise.
1632         * io/lchown.c: Likewise.
1633         * io/link.c: Likewise.
1634         * io/linkat.c: Likewise.
1635         * io/lseek.c: Likewise.
1636         * io/lseek64.c: Likewise.
1637         * io/lxstat64.c: Likewise.
1638         * io/mkdir.c: Likewise.
1639         * io/mkdirat.c: Likewise.
1640         * io/mkfifo.c: Likewise.
1641         * io/mkfifoat.c: Likewise.
1642         * io/open.c: Likewise.
1643         * io/open64.c: Likewise.
1644         * io/openat.c: Likewise.
1645         * io/openat64.c: Likewise.
1646         * io/pipe.c: Likewise.
1647         * io/pipe2.c: Likewise.
1648         * io/poll.c: Likewise.
1649         * io/posix_fadvise.c: Likewise.
1650         * io/posix_fadvise64.c: Likewise.
1651         * io/posix_fallocate.c: Likewise.
1652         * io/posix_fallocate64.c: Likewise.
1653         * io/read.c: Likewise.
1654         * io/readlink.c: Likewise.
1655         * io/readlinkat.c: Likewise.
1656         * io/rmdir.c: Likewise.
1657         * io/sendfile.c: Likewise.
1658         * io/sendfile64.c: Likewise.
1659         * io/statfs.c: Likewise.
1660         * io/statfs64.c: Likewise.
1661         * io/statvfs.c: Likewise.
1662         * io/statvfs64.c: Likewise.
1663         * io/symlink.c: Likewise.
1664         * io/symlinkat.c: Likewise.
1665         * io/ttyname.c: Likewise.
1666         * io/ttyname_r.c: Likewise.
1667         * io/umask.c: Likewise.
1668         * io/unlink.c: Likewise.
1669         * io/unlinkat.c: Likewise.
1670         * io/utime.c: Likewise.
1671         * io/utimensat.c: Likewise.
1672         * io/write.c: Likewise.
1673         * io/xmknod.c: Likewise.
1674         * io/xmknodat.c: Likewise.
1675         * io/xstat.c: Likewise.
1676         * io/xstat64.c: Likewise.
1677         * login/getpt.c: Likewise.
1678         * login/grantpt.c: Likewise.
1679         * login/unlockpt.c: Likewise.
1680         * math/e_acoshl.c: Likewise.
1681         * math/e_acosl.c: Likewise.
1682         * math/e_asinl.c: Likewise.
1683         * math/e_atan2l.c: Likewise.
1684         * math/e_atanhl.c: Likewise.
1685         * math/e_coshl.c: Likewise.
1686         * math/e_expl.c: Likewise.
1687         * math/e_fmodl.c: Likewise.
1688         * math/e_gammal_r.c: Likewise.
1689         * math/e_hypotl.c: Likewise.
1690         * math/e_j0l.c: Likewise.
1691         * math/e_j1l.c: Likewise.
1692         * math/e_jnl.c: Likewise.
1693         * math/e_lgammal_r.c: Likewise.
1694         * math/e_log10l.c: Likewise.
1695         * math/e_log2l.c: Likewise.
1696         * math/e_logl.c: Likewise.
1697         * math/e_powl.c: Likewise.
1698         * math/e_rem_pio2l.c: Likewise.
1699         * math/e_sinhl.c: Likewise.
1700         * math/e_sqrtl.c: Likewise.
1701         * math/fclrexcpt.c: Likewise.
1702         * math/fedisblxcpt.c: Likewise.
1703         * math/feenablxcpt.c: Likewise.
1704         * math/fegetenv.c: Likewise.
1705         * math/fegetexcept.c: Likewise.
1706         * math/fegetround.c: Likewise.
1707         * math/feholdexcpt.c: Likewise.
1708         * math/fesetenv.c: Likewise.
1709         * math/fesetround.c: Likewise.
1710         * math/feupdateenv.c: Likewise.
1711         * math/fgetexcptflg.c: Likewise.
1712         * math/fraiseexcpt.c: Likewise.
1713         * math/fsetexcptflg.c: Likewise.
1714         * math/ftestexcept.c: Likewise.
1715         * math/k_cosl.c: Likewise.
1716         * math/k_rem_pio2l.c: Likewise.
1717         * math/k_sinl.c: Likewise.
1718         * math/k_tanl.c: Likewise.
1719         * math/s_asinhl.c: Likewise.
1720         * math/s_atanl.c: Likewise.
1721         * math/s_cbrtl.c: Likewise.
1722         * math/s_erfl.c: Likewise.
1723         * math/s_expm1l.c: Likewise.
1724         * math/s_log1pl.c: Likewise.
1725         * math/s_tanhl.c: Likewise.
1726         * misc/acct.c: Likewise.
1727         * misc/brk.c: Likewise.
1728         * misc/chflags.c: Likewise.
1729         * misc/chroot.c: Likewise.
1730         * misc/fchflags.c: Likewise.
1731         * misc/fgetxattr.c: Likewise.
1732         * misc/flistxattr.c: Likewise.
1733         * misc/fremovexattr.c: Likewise.
1734         * misc/fsetxattr.c: Likewise.
1735         * misc/fsync.c: Likewise.
1736         * misc/ftruncate.c: Likewise.
1737         * misc/futimes.c: Likewise.
1738         * misc/futimesat.c: Likewise.
1739         * misc/getdomain.c: Likewise.
1740         * misc/getdtsz.c: Likewise.
1741         * misc/gethostid.c: Likewise.
1742         * misc/gethostname.c: Likewise.
1743         * misc/getloadavg.c: Likewise.
1744         * misc/getpagesize.c: Likewise.
1745         * misc/getsysstats.c: Likewise.
1746         * misc/getxattr.c: Likewise.
1747         * misc/gtty.c: Likewise.
1748         * misc/ioctl.c: Likewise.
1749         * misc/lgetxattr.c: Likewise.
1750         * misc/listxattr.c: Likewise.
1751         * misc/llistxattr.c: Likewise.
1752         * misc/lremovexattr.c: Likewise.
1753         * misc/lsetxattr.c: Likewise.
1754         * misc/lutimes.c: Likewise.
1755         * misc/madvise.c: Likewise.
1756         * misc/mincore.c: Likewise.
1757         * misc/mlock.c: Likewise.
1758         * misc/mlockall.c: Likewise.
1759         * misc/mmap.c: Likewise.
1760         * misc/mprotect.c: Likewise.
1761         * misc/msync.c: Likewise.
1762         * misc/munlock.c: Likewise.
1763         * misc/munlockall.c: Likewise.
1764         * misc/munmap.c: Likewise.
1765         * misc/preadv.c: Likewise.
1766         * misc/preadv64.c: Likewise.
1767         * misc/ptrace.c: Likewise.
1768         * misc/pwritev.c: Likewise.
1769         * misc/pwritev64.c: Likewise.
1770         * misc/readv.c: Likewise.
1771         * misc/reboot.c: Likewise.
1772         * misc/remap_file_pages.c: Likewise.
1773         * misc/removexattr.c: Likewise.
1774         * misc/revoke.c: Likewise.
1775         * misc/select.c: Likewise.
1776         * misc/setdomain.c: Likewise.
1777         * misc/setegid.c: Likewise.
1778         * misc/seteuid.c: Likewise.
1779         * misc/sethostid.c: Likewise.
1780         * misc/sethostname.c: Likewise.
1781         * misc/setregid.c: Likewise.
1782         * misc/setreuid.c: Likewise.
1783         * misc/setxattr.c: Likewise.
1784         * misc/sstk.c: Likewise.
1785         * misc/stty.c: Likewise.
1786         * misc/swapoff.c: Likewise.
1787         * misc/swapon.c: Likewise.
1788         * misc/sync.c: Likewise.
1789         * misc/syncfs.c: Likewise.
1790         * misc/syscall.c: Likewise.
1791         * misc/truncate.c: Likewise.
1792         * misc/ualarm.c: Likewise.
1793         * misc/usleep.c: Likewise.
1794         * misc/ustat.c: Likewise.
1795         * misc/utimes.c: Likewise.
1796         * misc/vhangup.c: Likewise.
1797         * misc/writev.c: Likewise.
1798         * posix/_exit.c: Likewise.
1799         * posix/alarm.c: Likewise.
1800         * posix/execve.c: Likewise.
1801         * posix/fexecve.c: Likewise.
1802         * posix/fork.c: Likewise.
1803         * posix/fpathconf.c: Likewise.
1804         * posix/getaddrinfo.c: Likewise.
1805         * posix/getegid.c: Likewise.
1806         * posix/geteuid.c: Likewise.
1807         * posix/getgid.c: Likewise.
1808         * posix/getgroups.c: Likewise.
1809         * posix/getlogin.c: Likewise.
1810         * posix/getlogin_r.c: Likewise.
1811         * posix/getpgid.c: Likewise.
1812         * posix/getpid.c: Likewise.
1813         * posix/getppid.c: Likewise.
1814         * posix/getresgid.c: Likewise.
1815         * posix/getresuid.c: Likewise.
1816         * posix/getsid.c: Likewise.
1817         * posix/getuid.c: Likewise.
1818         * posix/glob64.c: Likewise.
1819         * posix/nanosleep.c: Likewise.
1820         * posix/pathconf.c: Likewise.
1821         * posix/pause.c: Likewise.
1822         * posix/posix_madvise.c: Likewise.
1823         * posix/pread.c: Likewise.
1824         * posix/pread64.c: Likewise.
1825         * posix/pwrite.c: Likewise.
1826         * posix/pwrite64.c: Likewise.
1827         * posix/sched_getaffinity.c: Likewise.
1828         * posix/sched_getp.c: Likewise.
1829         * posix/sched_gets.c: Likewise.
1830         * posix/sched_primax.c: Likewise.
1831         * posix/sched_primin.c: Likewise.
1832         * posix/sched_rr_gi.c: Likewise.
1833         * posix/sched_setaffinity.c: Likewise.
1834         * posix/sched_setp.c: Likewise.
1835         * posix/sched_sets.c: Likewise.
1836         * posix/sched_yield.c: Likewise.
1837         * posix/setgid.c: Likewise.
1838         * posix/setlogin.c: Likewise.
1839         * posix/setpgid.c: Likewise.
1840         * posix/setresgid.c: Likewise.
1841         * posix/setresuid.c: Likewise.
1842         * posix/setsid.c: Likewise.
1843         * posix/setuid.c: Likewise.
1844         * posix/sleep.c: Likewise.
1845         * posix/spawni.c: Likewise.
1846         * posix/sysconf.c: Likewise.
1847         * posix/times.c: Likewise.
1848         * posix/wait.c: Likewise.
1849         * posix/wait3.c: Likewise.
1850         * posix/wait4.c: Likewise.
1851         * posix/waitpid.c: Likewise.
1852         * resolv/gai_sigqueue.c: Likewise.
1853         * resource/getpriority.c: Likewise.
1854         * resource/getrlimit.c: Likewise.
1855         * resource/getrusage.c: Likewise.
1856         * resource/nice.c: Likewise.
1857         * resource/setpriority.c: Likewise.
1858         * resource/setrlimit.c: Likewise.
1859         * resource/ulimit.c: Likewise.
1860         * rt/aio_cancel.c: Likewise.
1861         * rt/aio_fsync.c: Likewise.
1862         * rt/aio_read.c: Likewise.
1863         * rt/aio_sigqueue.c: Likewise.
1864         * rt/aio_suspend.c: Likewise.
1865         * rt/aio_write.c: Likewise.
1866         * rt/clock_getres.c: Likewise.
1867         * rt/clock_gettime.c: Likewise.
1868         * rt/clock_nanosleep.c: Likewise.
1869         * rt/clock_settime.c: Likewise.
1870         * rt/lio_listio.c: Likewise.
1871         * rt/mq_close.c: Likewise.
1872         * rt/mq_getattr.c: Likewise.
1873         * rt/mq_notify.c: Likewise.
1874         * rt/mq_open.c: Likewise.
1875         * rt/mq_receive.c: Likewise.
1876         * rt/mq_send.c: Likewise.
1877         * rt/mq_setattr.c: Likewise.
1878         * rt/mq_timedreceive.c: Likewise.
1879         * rt/mq_timedsend.c: Likewise.
1880         * rt/mq_unlink.c: Likewise.
1881         * rt/shm_open.c: Likewise.
1882         * rt/shm_unlink.c: Likewise.
1883         * rt/timer_create.c: Likewise.
1884         * rt/timer_delete.c: Likewise.
1885         * rt/timer_getoverr.c: Likewise.
1886         * rt/timer_gettime.c: Likewise.
1887         * rt/timer_settime.c: Likewise.
1888         * setjmp/__longjmp.c: Likewise.
1889         * setjmp/setjmp.c: Likewise.
1890         * signal/kill.c: Likewise.
1891         * signal/killpg.c: Likewise.
1892         * signal/raise.c: Likewise.
1893         * signal/sigaction.c: Likewise.
1894         * signal/sigaltstack.c: Likewise.
1895         * signal/sigblock.c: Likewise.
1896         * signal/sigignore.c: Likewise.
1897         * signal/sigintr.c: Likewise.
1898         * signal/signal.c: Likewise.
1899         * signal/sigpause.c: Likewise.
1900         * signal/sigpending.c: Likewise.
1901         * signal/sigqueue.c: Likewise.
1902         * signal/sigreturn.c: Likewise.
1903         * signal/sigset.c: Likewise.
1904         * signal/sigsetmask.c: Likewise.
1905         * signal/sigstack.c: Likewise.
1906         * signal/sigsuspend.c: Likewise.
1907         * signal/sigtimedwait.c: Likewise.
1908         * signal/sigvec.c: Likewise.
1909         * signal/sigwait.c: Likewise.
1910         * signal/sigwaitinfo.c: Likewise.
1911         * signal/sysv_signal.c: Likewise.
1912         * socket/accept.c: Likewise.
1913         * socket/accept4.c: Likewise.
1914         * socket/bind.c: Likewise.
1915         * socket/connect.c: Likewise.
1916         * socket/getpeername.c: Likewise.
1917         * socket/getsockname.c: Likewise.
1918         * socket/getsockopt.c: Likewise.
1919         * socket/isfdtype.c: Likewise.
1920         * socket/listen.c: Likewise.
1921         * socket/recv.c: Likewise.
1922         * socket/recvfrom.c: Likewise.
1923         * socket/recvmsg.c: Likewise.
1924         * socket/send.c: Likewise.
1925         * socket/sendmsg.c: Likewise.
1926         * socket/sendto.c: Likewise.
1927         * socket/setsockopt.c: Likewise.
1928         * socket/shutdown.c: Likewise.
1929         * socket/sockatmark.c: Likewise.
1930         * socket/socket.c: Likewise.
1931         * socket/socketpair.c: Likewise.
1932         * stdio-common/ctermid.c: Likewise.
1933         * stdio-common/cuserid.c: Likewise.
1934         * stdio-common/remove.c: Likewise.
1935         * stdio-common/rename.c: Likewise.
1936         * stdio-common/renameat.c: Likewise.
1937         * stdio-common/tempname.c: Likewise.
1938         * stdlib/getcontext.c: Likewise.
1939         * stdlib/makecontext.c: Likewise.
1940         * stdlib/setcontext.c: Likewise.
1941         * stdlib/swapcontext.c: Likewise.
1942         * stdlib/system.c: Likewise.
1943         * streams/fattach.c: Likewise.
1944         * streams/fdetach.c: Likewise.
1945         * streams/getmsg.c: Likewise.
1946         * streams/getpmsg.c: Likewise.
1947         * streams/putmsg.c: Likewise.
1948         * streams/putpmsg.c: Likewise.
1949         * sysdeps/unix/bsd/getpt.c: Likewise.
1950         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
1951         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
1952         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
1953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
1954         Likewise.
1955         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
1956         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
1957         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
1958         * sysvipc/msgctl.c: Likewise.
1959         * sysvipc/msgget.c: Likewise.
1960         * sysvipc/msgrcv.c: Likewise.
1961         * sysvipc/msgsnd.c: Likewise.
1962         * sysvipc/semctl.c: Likewise.
1963         * sysvipc/semget.c: Likewise.
1964         * sysvipc/semop.c: Likewise.
1965         * sysvipc/semtimedop.c: Likewise.
1966         * sysvipc/shmat.c: Likewise.
1967         * sysvipc/shmctl.c: Likewise.
1968         * sysvipc/shmdt.c: Likewise.
1969         * sysvipc/shmget.c: Likewise.
1970         * termios/tcdrain.c: Likewise.
1971         * termios/tcflow.c: Likewise.
1972         * termios/tcflush.c: Likewise.
1973         * termios/tcgetattr.c: Likewise.
1974         * termios/tcgetpgrp.c: Likewise.
1975         * termios/tcsendbrk.c: Likewise.
1976         * termios/tcsetattr.c: Likewise.
1977         * termios/tcsetpgrp.c: Likewise.
1978         * time/adjtime.c: Likewise.
1979         * time/clock.c: Likewise.
1980         * time/getitimer.c: Likewise.
1981         * time/gettimeofday.c: Likewise.
1982         * time/setitimer.c: Likewise.
1983         * time/settimeofday.c: Likewise.
1984         * time/stime.c: Likewise.
1985         * time/time.c: Likewise.
1986
1987 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
1988
1989         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
1990         /usr/old/bin.
1991
1992         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
1993         instead of spaces.
1994         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
1995
1996 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
1997
1998         [BZ #14796]
1999         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
2000         FE_TONEAREST before applying Dekker multiplication and Knuth
2001         addition.  Clear inexact exceptions and check for exact zero
2002         results afterwards.
2003         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2004         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
2005         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2006         * math/libm-test.inc (fma_test): Add more tests.
2007         (fma_test_towardzero): Likewise.
2008         (fma_test_downward): Likewise.
2009         (fma_test_upward): Likewise.
2010         * sysdeps/generic/math_private.h (default_libc_fesetround): New
2011         function.
2012         (libc_fesetround): New macro.
2013         (libc_fesetroundf): Likewise.
2014         (libc_fesetroundl): Likewise.
2015         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
2016         function.
2017         (libc_fesetround_387): Likewise.
2018         (libc_fesetroundf): New macro.
2019         (libc_fesetround): Likewise.
2020         (libc_fesetroundl): Likewise.
2021         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
2022         function.
2023         (libc_fesetroundf): New macro.
2024         (libc_fesetround): Likewise.
2025         (libc_fesetroundl): Likewise.
2026         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
2027         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
2028         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
2029         libm_hidden_ver.
2030         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
2031         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
2032         libm_hidden_def.
2033         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
2034         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
2035         libm_hidden_ver.
2036         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
2037         libm_hidden_def.
2038
2039         [BZ #3439]
2040         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
2041         integer constant usable in #if and use that to give value to enum
2042         constant.
2043         (FE_DIVBYZERO): Likewise.
2044         (FE_UNDERFLOW): Likewise.
2045         (FE_OVERFLOW): Likewise.
2046         (FE_INVALID): Likewise.
2047         (FE_INVALID_SNAN): Likewise.
2048         (FE_INVALID_ISI): Likewise.
2049         (FE_INVALID_IDI): Likewise.
2050         (FE_INVALID_ZDZ): Likewise.
2051         (FE_INVALID_IMZ): Likewise.
2052         (FE_INVALID_COMPARE): Likewise.
2053         (FE_INVALID_SOFTWARE): Likewise.
2054         (FE_INVALID_SQRT): Likewise.
2055         (FE_INVALID_INTEGER_CONVERSION): Likewise.
2056         (FE_TONEAREST): Likewise.
2057         (FE_TOWARDZERO): Likewise.
2058         (FE_UPWARD): Likewise.
2059         (FE_DOWNWARD): Likewise.
2060         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
2061         (FE_DIVBYZERO): Likewise.
2062         (FE_OVERFLOW): Likewise.
2063         (FE_UNDERFLOW): Likewise.
2064         (FE_INEXACT): Likewise.
2065         (FE_TONEAREST): Likewise.
2066         (FE_DOWNWARD): Likewise.
2067         (FE_UPWARD): Likewise.
2068         (FE_TOWARDZERO): Likewise.
2069         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
2070         (FE_UNDERFLOW): Likewise.
2071         (FE_OVERFLOW): Likewise.
2072         (FE_DIVBYZERO): Likewise.
2073         (FE_INVALID): Likewise.
2074         (FE_TONEAREST): Likewise.
2075         (FE_TOWARDZERO): Likewise.
2076         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
2077         (FE_OVERFLOW): Likewise.
2078         (FE_UNDERFLOW): Likewise.
2079         (FE_DIVBYZERO): Likewise.
2080         (FE_INEXACT): Likewise.
2081         (FE_TONEAREST): Likewise.
2082         (FE_TOWARDZERO): Likewise.
2083         (FE_UPWARD): Likewise.
2084         (FE_DOWNWARD): Likewise.
2085         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
2086         (FE_DIVBYZERO): Likewise.
2087         (FE_OVERFLOW): Likewise.
2088         (FE_UNDERFLOW): Likewise.
2089         (FE_INEXACT): Likewise.
2090         (FE_TONEAREST): Likewise.
2091         (FE_DOWNWARD): Likewise.
2092         (FE_UPWARD): Likewise.
2093         (FE_TOWARDZERO): Likewise.
2094
2095 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
2096
2097         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
2098
2099 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
2100
2101         * scripts/cross-test-ssh.sh (command): Use newlines to separate
2102         commands.  Quote $PWD.
2103         (blacklist_exports): Don't use remove_newlines.  Replace "declare
2104         -x" by "export".
2105         (remove_newlines): Remove.
2106
2107 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
2108
2109         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
2110         * stdlib/stdlib.h (atof): Moved to ...
2111         * include/bits/stdlib-float.h: Here.  New file.
2112         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
2113         * stdlib/bits/stdlib-float.h: New file.
2114         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
2115         -mno-sse -mno-mmx.
2116         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
2117         <xmmintrin.h>.
2118
2119 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
2120
2121         * conform/conformtest.pl (@headers): Add fenv.h.
2122         * conform/data/fenv.h-data: New file.
2123         * include/fenv.h [_ISOMAC]: Disable all contents of file except
2124         include of <math/fenv.h>.
2125
2126         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
2127         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
2128         && !UNIX98].  Enables tests for XOPEN2K8.
2129         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
2130         POSIX2008]: Likewise.
2131
2132         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
2133         (struct rusage): Do not expect type or its members.
2134
2135         [BZ #3439]
2136         * math/math.h (FP_NAN): Define macro to integer constant usable in
2137         #if and use that to give value to enum constant.
2138         (FP_INFINITE): Likewise.
2139         (FP_ZERO): Likewise.
2140         (FP_SUBNORMAL): Likewise.
2141         (FP_NORMAL): Likewise.
2142
2143 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
2144
2145         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
2146         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
2147         arguments.
2148
2149 2012-11-02  Roland McGrath  <roland@hack.frob.com>
2150
2151         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
2152         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
2153         autoconf-time if not.
2154         * configure.in: Remove AC_PREREQ.
2155
2156 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2157
2158         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
2159         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
2160         of the internal implementation.
2161
2162 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
2163
2164         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
2165         except include of <misc/sys/syslog.h>.
2166
2167 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
2168
2169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
2170         function returns with a NULL context exit with zero.
2171
2172 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2173
2174         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
2175
2176 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
2177
2178         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
2179         (run_program_cmd): This.
2180         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
2181         (tst_langinfo): New variable.  Use it.
2182
2183 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
2184
2185         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
2186         floating point opcodes.
2187
2188 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
2189
2190         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
2191         variable.
2192
2193         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
2194
2195         * sysdeps/mach/hurd/powerpc: Remove directory.
2196         * sysdeps/mach/powerpc: Likewise.
2197
2198 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
2199
2200         * scripts/check-local-headers.sh: Ignore c++ headers.
2201
2202 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
2203
2204         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
2205         __libc_cleanup_region_start argument.
2206
2207 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
2208
2209         [BZ #14784]
2210         [BZ #14785]
2211         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
2212         x * y using scaling, not as x * y + z.
2213         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2214         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2215         * math/libm-test.inc (fma_test): Add more tests.
2216         (fma_test_towardzero): Likewise.
2217         (fma_test_downward): Likewise.
2218         (fma_test_upward): Likewise.
2219
2220 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
2221
2222         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
2223
2224 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
2225
2226         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
2227         New variable.
2228
2229 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
2230
2231         * rt/tst-shm.c (worker): Correct checking for mmap failure.
2232
2233 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
2234
2235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2236         Fix sort order.
2237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2238         Likewise.
2239
2240 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2241
2242         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2243         Fix the order of the list for glibc 2.17.
2244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2245         Likewise.
2246
2247 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
2248
2249         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2250
2251 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
2252
2253         [BZ #14610]
2254         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
2255         for low part of x being zero before using __atanl (y).
2256         * math/libm-test.inc (atan2_test): Add another test.
2257
2258         * manual/install.texi (Configuring and compiling): Document
2259         general use of test-wrapper and test-wrapper-env.
2260         * INSTALL: Regenerated.
2261
2262         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
2263         (__fma): Do not extract and scale down low bits on after-rounding
2264         systems when result rounded to normal precision would have normal
2265         exponent.
2266         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
2267         (__fmal): Do not extract and scale down low bits on after-rounding
2268         systems when result rounded to normal precision would have normal
2269         exponent.
2270         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
2271         (__fmal): Do not extract and scale down low bits on after-rounding
2272         systems when result rounded to normal precision would have normal
2273         exponent.
2274         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
2275         macro.
2276         (fma_test): Add more tests.
2277         (fma_test_towardzero): Likewise.
2278         (fma_test_downward): Likewise.
2279         (fma_test_upward): Likewise.
2280
2281 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
2282
2283         * sysdeps/i386/tininess.h: Renamed to ...
2284         * sysdeps/x86/tininess.h: This.
2285         * sysdeps/x86_64/tininess.h: Removed.
2286
2287 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
2288
2289         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
2290         input.  Use $(build-program-cmd).
2291         ($(objpfx)tst-array1-static.out): Likewise.
2292         ($(objpfx)tst-array2.out): Likewise.
2293         ($(objpfx)tst-array3.out): Likewise.
2294         ($(objpfx)tst-array4.out): Likewise.
2295         ($(objpfx)tst-array5.out): Likewise.
2296         ($(objpfx)tst-array5-static.out): Likewise.
2297
2298 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
2299
2300         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
2301         if defined.
2302
2303         * nss/nsswitch.h (nss_interface_function): Provide new
2304         macro for use with NSS functions.
2305         * grp/initgroups.c: Use new macro.
2306         * nss/getXXbyYY.c: Likewise.
2307         * nss/getXXbyYY_r.c: Likewise.
2308         * nss/getXXent.c: Likewise.
2309         * nss/getXXent_r.c: Likewise.
2310         * sysdeps/posix/getaddrinfo.c: Likewise.
2311
2312 2012-10-30  Andreas Jaeger  <aj@suse.de>
2313
2314         * po/ru.po: Update Russion translation from translation project.
2315
2316 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
2317
2318         [BZ #14152]
2319         [BZ #14783]
2320         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
2321         result and shift together with sticky bit instead of replicating
2322         round-to-nearest rounding.
2323         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2324         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2325         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
2326         missing underflow exceptions.
2327         (fma_test_towardzero): Add more tests.
2328         (fma_test_downward): Likewise.
2329         (fma_test_upward): Likewise.
2330
2331         [BZ #14047]
2332         * sysdeps/generic/tininess.h: New file.
2333         * sysdeps/i386/tininess.h: Likewise.
2334         * sysdeps/sh/tininess.h: Likewise.
2335         * sysdeps/x86_64/tininess.h: Likewise.
2336         * stdlib/tst-strtod-underflow.c: Likewise.
2337         * stdlib/tst-tininess.c: Likewise.
2338         * stdlib/strtod_l.c: Include <tininess.h>.
2339         (round_and_return): Do not set errno for exact underflow cases.
2340         Force an underflow exception when setting errno for underflow.
2341         Determine underflow based on rounding to normal precision if
2342         TININESS_AFTER_ROUNDING.
2343         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
2344         ERANGE for exact underflow cases.
2345         * stdlib/Makefile (tests): Add tst-tininess and
2346         tst-strtod-underflow.
2347         ($(objpfx)tst-tininess): Use $(link-libm).
2348         ($(objpfx)tst-strtod-underflow): Likewise.
2349
2350 2012-10-30  Andreas Jaeger  <aj@suse.de>
2351
2352         [BZ#14767]
2353         * elf/Makefile (tests): Remove conditional for have-initfini-array
2354         since this is now always required and the variable does not exist
2355         anymore.
2356         (tests-static): Likewise.
2357         (modules-names): Likewise.
2358
2359         * po/eo.po: Add Esperanto translation from translation project.
2360
2361         * elf/tst-array1.c (fini_array): Make writeable so that it can be
2362         merged with constructor/destructor.
2363         (init_array): Likewise.
2364         * elf/tst-array2dep.c (fini_array): Likewise.
2365         (init_array): Likewise.
2366
2367 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
2368
2369         * manual/message.texi: Delete @cartouche tags.
2370
2371 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
2372
2373         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
2374         EOPNOTSUPP.
2375         * sysdeps/mach/hurd/fsync.c: Likewise.
2376
2377         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
2378         [_POSIX_REALTIME_SIGNALS]: Change condition to
2379         [_POSIX_REALTIME_SIGNALS > 0].
2380
2381 2012-10-27  Andreas Jaeger  <aj@suse.de>
2382
2383         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
2384         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
2385         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
2386         [__WORDSIZE != 64]: Likewise.
2387
2388 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
2389
2390         *  iconvdata/tst-table.sh: Remove ${SHELL}.
2391         *  iconvdata/tst-tables.sh: Likewise.
2392
2393 2012-10-25  David S. Miller  <davem@davemloft.net>
2394
2395         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2396         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
2397         of strtoull.
2398
2399         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
2400         ifunc-impl-list.c
2401         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
2402         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
2403         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
2404         file.
2405
2406 2012-10-25  Roland McGrath  <roland@hack.frob.com>
2407
2408         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2409         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
2410         __getdirentries.
2411
2412 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
2413             Jim Blandy  <jimb@codesourcery.com>
2414
2415         * scripts/cross-test-ssh.sh: New file.
2416         * manual/install.texi (Configuring and compiling): Document use of
2417         cross-test-ssh.sh.
2418         * INSTALL: Regenerated.
2419
2420 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
2421
2422         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
2423         EOPNOTSUPP.
2424
2425 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
2426
2427         * Makeconfig (run-program-prefix): Fix comment.
2428
2429 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
2430             Jim Blandy  <jimb@codesourcery.com>
2431
2432         * Makeconfig (test-wrapper): New variable,
2433         (test-wrapper-env): Likewise.
2434         [$(cross-compiling) = yes && $(test-wrapper) != ""]
2435         (run-built-tests): Define to yes.
2436         (run-program-prefix): Use $(test-wrapper).
2437         (built-program-cmd): Likewise.
2438         * Rules (make-test-out): Use $(test-wrapper-env) and
2439         $(host-built-program-cmd).
2440         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
2441         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
2442         tst-pathopt.sh.
2443         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
2444         $(test-wrapper-env) to tst-rtld-load-self.sh.
2445         ($(objpfx)order2.out): Use $(test-wrapper).
2446         ($(objpfx)tst-initorder.out): Likewise.
2447         ($(objpfx)tst-initorder2.out): Likewise.
2448         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
2449         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
2450         (test_wrapper_env): New variable.  Use it to run ld.so.
2451         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
2452         Use it to run ld.so.
2453         (test_wrapper_env): Likewise.
2454         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
2455         $(test-wrapper) to run-iconv-test.sh.
2456         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
2457         (ICONV): Use $test_wrapper.
2458         * posix/Makefile ($(objpfx)globtest.out): Pass
2459         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
2460         globtest.sh, not $(run-program-prefix).
2461         * posix/globtest.sh (run_via_rtld_prefix): New variable.
2462         (test_wrapper): Likewise.
2463         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
2464         set together with run_via_rtld_prefix.
2465         (run_program_prefix): Define in terms of test_wrapper and
2466         run_via_rtld_prefix.
2467
2468 2012-10-24  Roland McGrath  <roland@hack.frob.com>
2469
2470         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
2471         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
2472         Targets removed.
2473
2474         [BZ #14743]
2475         * include/time.h: Remove librt_hidden_proto (clock_gettime).
2476         Declare __clock_getres, __clock_gettime, __clock_settime,
2477         __clock_nanosleep, and __clock_getcpuclockid.
2478         * rt/clock_gettime.c: Define __clock_gettime as an alias.
2479         Remove librt_hidden_def (clock_gettime).
2480         * sysdeps/unix/clock_gettime.c: Likewise.
2481         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
2482         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
2483         * rt/clock_getres.c: Define __clock_getres as an alias.
2484         * sysdeps/posix/clock_getres.c: Likewise.
2485         * rt/clock_settime.c: Define __clock_settime as an alias.
2486         * sysdeps/unix/clock_settime.c: Likewise.
2487         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
2488         * sysdeps/unix/clock_nanosleep.c: Likewise.
2489         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
2490         * rt/clock-compat.c: New file.
2491         * rt/Makefile (librt-routines): Add clock-compat and move
2492         $(clock-routines) to ...
2493         (routines): ... here, new variable.
2494         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
2495         Don't add get_clockfreq here.
2496         * rt/Versions (libc: GLIBC_2.17): New version set.
2497         Add clock_* symbols here.
2498         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
2499         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
2500         (GLIBC_2.17): Add clock_* symbols.
2501         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2502         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2503         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2505         Likewise.
2506         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2507         Likewise.
2508         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2509         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2510         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2511         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2512         * NEWS: Mention the move.
2513
2514         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
2515         Use __open, __read, __close rather than their public counterparts.
2516         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2517         (__get_clockfreq_via_cpuinfo): Likewise.
2518         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
2519         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
2520
2521         * config.h.in (HAVE_IFUNC): New #undef.
2522         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
2523         was successful.
2524         * configure: Regenerated.
2525
2526 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
2527
2528         * configure.in: Move READELF check to start of file.
2529         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
2530         libc_cv_asm_gnu_indirect_function in the process.
2531         * configure: Regenerated.
2532
2533 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
2534
2535         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
2536         send the output to /dev/null.
2537         (libc_cv_cc_with_libunwind): Likewise.
2538         (libc_cv_as_noexecstack): Likewise.
2539         * configure: Regenerate.
2540
2541 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
2542
2543         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
2544
2545         * posix/globtest.sh (TMPDIR): Do not set.
2546         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
2547         (testout): Likewise.
2548
2549 2012-10-24  Andreas Jaeger  <aj@suse.de>
2550
2551         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
2552         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
2553         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
2554         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
2555         posix_fadvise64, posix_fallocate64.
2556
2557         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
2558         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
2559         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
2560         Likewise.
2561         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
2562         Likewise.
2563         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
2564
2565         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
2566         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
2567         <bits/fcntl-linux.h>.
2568         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
2569
2570         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
2571         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
2572         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
2573         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
2574         [__WORDSIZE != 64]: Likewise.
2575
2576 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
2577
2578         * Makeconfig (run-built-tests): New variable.
2579         * Rules [$(cross-compiling) = yes]: Change condition to
2580         [$(run-built-tests) = no].
2581         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
2582         to [$(run-built-tests) = yes].
2583         * elf/Makefile [$(cross-compiling) = no]: Likewise
2584         * grp/Makefile [$(cross-compiling) = no]: Likewise.
2585         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
2586         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
2587         * intl/Makefile [$(cross-compiling) = no]: Likewise.
2588         * io/Makefile [$(cross-compiling) = no]: Likewise.
2589         * libio/Makefile [$(cross-compiling) = no]: Likewise.
2590         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
2591         * misc/Makefile [$(cross-compiling) = no]: Likewise.
2592         * posix/Makefile [$(cross-compiling) = no]: Likewise.
2593         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
2594         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
2595         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
2596         * string/Makefile [$(cross-compiling) = no]: Likewise.
2597
2598         * posix/Makefile ($(objpfx)globtest.out): Pass
2599         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
2600         $(rtld-installed-name).
2601         * posix/globtest.sh (elf_objpfx): Remove variable.
2602         (rtld_installed_name): Likewise.
2603         (library_path): Likewise.
2604         (run_program_prefix): New variable.  Use for running globtest
2605         binary.
2606
2607 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
2608             Joseph Myers  <joseph@codesourcery.com>
2609
2610         * Makeconfig (host-built-program-cmd): New variable.
2611         * elf/Makefile (tst-stackguard1-ARGS): Use
2612         $(host-built-program-cmd).
2613         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
2614         (tst-spawn-ARGS): Likewise.
2615         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
2616
2617 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
2618             Jim Blandy  <jimb@codesourcery.com>
2619
2620         * Makeconfig (run-via-rtld-prefix): New variable.
2621         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
2622         (built-program-cmd): Likewise.
2623
2624 2012-10-22  Andreas Jaeger  <aj@suse.de>
2625
2626         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
2627         __O_RSYNC if it exists, otherwise to O_SYNC.
2628
2629 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
2630             Joseph Myers  <joseph@codesourcery.com>
2631
2632         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
2633         /dev/null.
2634         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
2635         from /dev/null
2636         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
2637         /dev/null.
2638
2639 2012-10-22  Andreas Jaeger  <aj@suse.de>
2640
2641         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
2642         Define always.
2643         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
2644
2645         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2646         bits/fcntl-linux.h.
2647
2648         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
2649         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
2650
2651         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
2652         to __O_LARGEFILE.
2653         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
2654         to __O_LARGEFILE.
2655
2656 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
2657             Joseph Myers  <joseph@codesourcery.com>
2658
2659         * config.make.in (NM): New variable.
2660
2661 2012-10-21  Andreas Jaeger  <aj@suse.de>
2662
2663         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
2664         definitions and declarations that are provided by
2665         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
2666
2667 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2668
2669         [BZ #14683]
2670         * elf/Makefile (tests-static): Add tst-leaks1-static.
2671         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
2672         ($(objpfx)tst-leaks1-static): New rule.
2673         ($(objpfx)tst-leaks1-static-mem): Likewise.
2674         (tst-leaks1-static-ENV): New macro.
2675         * elf/dl-open.c (dl_open_worker): Check the main application
2676         only if SHARED is defined.
2677         * elf/tst-leaks1-static.c: New file.
2678
2679 2012-10-20  Andreas Jaeger  <aj@suse.de>
2680
2681         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
2682         generic values for Linux.
2683         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
2684         and declarations that are provided by <bits/fcntl-linux.h> and
2685         include <bits/fcntl-linux.h>.
2686         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2687         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2688
2689 2012-10-20  Roland McGrath  <roland@hack.frob.com>
2690
2691         * io/fcntl.h: Move include of <bits/types.h> to the top and
2692         include it unconditionally.
2693
2694 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2695
2696         * wcsmbs/Makefile (tests-ifunc): New variable.
2697         (tests): Add $(tests-ifunc).
2698         * wcsmbs/test-wcschr-ifunc.c: New file.
2699         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
2700         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
2701         * wcsmbs/test-wcslen-ifunc.c: Likewise.
2702         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
2703         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
2704
2705         * string/Makefile (tests-ifunc): New variable.
2706         (tests): Add $(tests-ifunc).
2707         * string/test-memccpy.c (TEST_NAME): New macro.
2708         * string/test-memchr.c (TEST_NAME): Likewise.
2709         * string/test-memcmp.c (TEST_NAME): Likewise.
2710         * string/test-memcpy.c (TEST_NAME): Likewise.
2711         * string/test-memmem.c (TEST_NAME): Likewise.
2712         * string/test-memmove.c (TEST_NAME): Likewise.
2713         * string/test-memset.c (TEST_NAME): Likewise.
2714         * string/test-rawmemchr.c (TEST_NAME): Likewise.
2715         * string/test-stpcpy.c (TEST_NAME): Likewise.
2716         * string/test-stpncpy.c (TEST_NAME): Likewise.
2717         * string/test-strcasecmp.c (TEST_NAME): Likewise.
2718         * string/test-strcasestr.c (TEST_NAME): Likewise.
2719         * string/test-strcat.c (TEST_NAME): Likewise.
2720         * string/test-strchr.c (TEST_NAME): Likewise.
2721         * string/test-strcmp.c(TEST_NAME): Likewise.
2722         * string/test-strcpy.c (TEST_NAME): Likewise.
2723         * string/test-strcspn.c (TEST_NAME): Likewise.
2724         * string/test-strlen.c (TEST_NAME): Likewise.
2725         * string/test-strncasecmp.c (TEST_NAME): Likewise.
2726         * string/test-strncmp.c (TEST_NAME): Likewise.
2727         * string/test-strncpy.c (TEST_NAME): Likewise.
2728         * string/test-strnlen.c (TEST_NAME): Likewise.
2729         * string/test-strpbrk.c (TEST_NAME): Likewise.
2730         * string/test-strrchr.c (TEST_NAME): Likewise.
2731         * string/test-strspn.c (TEST_NAME): Likewise.
2732         * string/test-strstr.c (TEST_NAME): Likewise.
2733         * string/test-bcopy-ifunc.c: New file.
2734         * string/test-bzero-ifunc.c: Likewise.
2735         * string/test-memccpy-ifunc.c: Likewise.
2736         * string/test-memchr-ifunc.c: Likewise.
2737         * string/test-memcmp-ifunc.c: Likewise.
2738         * string/test-memcpy-ifunc.c: Likewise.
2739         * string/test-memmem-ifunc.c: Likewise.
2740         * string/test-memmove-ifunc.c: Likewise.
2741         * string/test-mempcpy-ifunc.c: Likewise.
2742         * string/test-memset-ifunc.c: Likewise.
2743         * string/test-rawmemchr-ifunc.c: Likewise.
2744         * string/test-stpcpy-ifunc.c: Likewise.
2745         * string/test-stpncpy-ifunc.c: Likewise.
2746         * string/test-strcasecmp-ifunc.c: Likewise.
2747         * string/test-strcasestr-ifunc.c: Likewise.
2748         * string/test-strcat-ifunc.c: Likewise.
2749         * string/test-strchr-ifunc.c: Likewise.
2750         * string/test-strchrnul-ifunc.c: Likewise.
2751         * string/test-strcmp-ifunc.c: Likewise.
2752         * string/test-strcpy-ifunc.c: Likewise.
2753         * string/test-strcspn-ifunc.c: Likewise.
2754         * string/test-strlen-ifunc.c: Likewise.
2755         * string/test-strncasecmp-ifunc.c: Likewise.
2756         * string/test-strncat-ifunc.c: Likewise.
2757         * string/test-strncmp-ifunc.c: Likewise.
2758         * string/test-strncpy-ifunc.c: Likewise.
2759         * string/test-strnlen-ifunc.c: Likewise.
2760         * string/test-strpbrk-ifunc.c: Likewise.
2761         * string/test-strrchr-ifunc.c: Likewise.
2762         * string/test-strspn-ifunc.c: Likewise.
2763         * string/test-strstr-ifunc.c: Likewise.
2764
2765         * debug/Makefile (tests-ifunc): New variable.
2766         (tests): Add $(tests-ifunc).
2767         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
2768         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
2769         * debug/test-stpcpy_chk-ifunc.c: New file.
2770         * debug/test-strcpy_chk-ifunc.c: Likewise.
2771
2772 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2773
2774         [BZ #13601]
2775         * elf/dl-load.c (open_verify): Retry read if the entire ELF
2776         header is not read in.
2777
2778 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
2779
2780         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
2781         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
2782         directly.  Pass built executable to script as
2783         $(built-program-cmd).
2784         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
2785         $testprogram without using LD_LIBRARY_PATH and $ldso.
2786
2787         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
2788         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
2789         $(rtld-installed-name).
2790         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
2791         (rtld_installed_name): Likewise.
2792         (library_path): Likewise.
2793         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
2794         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
2795         $(run-program-prefix) to tst-tables.sh.
2796         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
2797         it to run tst-table-from and tst-table-to.
2798         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
2799         Pass it to tst-table.sh.
2800         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
2801         $(run-program-prefix) to tst-gettext.sh.
2802         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
2803         tst-translit.sh.
2804         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
2805         tst-gettext2.sh.
2806         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
2807         to run tst-gettext.
2808         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
2809         to run tst-gettext2.
2810         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
2811         to run tst-translit.
2812         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
2813         $(run-program-prefix) to tst-mtrace.sh.
2814         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
2815         to run tst-mtrace.
2816         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
2817         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
2818         $(rtld-installed-name).
2819         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
2820         (rtld_installed_name): Likewise.
2821         (run_program_prefix): New variable.  Use it to run wordexp-test.
2822
2823         * Makeconfig (ARCH): Remove all definitions.
2824         (machine): Likewise.
2825         [ARCH]: Remove conditional code.
2826         [!objdir]: Give error.
2827         [!objdir] (objpfx): Remove.
2828         [!objdir] (common-objpfx): Likewise.
2829         [!objdir] (common-objdir): Likewise.
2830         * configure.in (config_makefile): Remove.  Hardcode Makefile in
2831         AC_CONFIG_FILES call.
2832         * configure: Regenerated.
2833
2834         [BZ #13888]
2835         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
2836         or TMPDIR.
2837         (testout): Likewise.
2838
2839         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
2840         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
2841         $(rtld-installed-name).
2842         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
2843         (rtld_installed_name): Likwise.
2844         (runit): Remove function.
2845         (run_getconf): New variable,  Use it for running getconf binary.
2846
2847 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
2848
2849         [BZ #14716]
2850         * string/test-memmem.c (check_result): New function.
2851         (do_one_test): Use it.
2852         (check1): New function.
2853         (test_main): Use it.
2854
2855 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
2856
2857         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
2858
2859 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
2860
2861         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
2862         (_G_LSEEK64): Likewise.
2863         (_G_MMAP64): Likewise.
2864         (_G_FSTAT64): Likewise.
2865         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
2866         (_G_LSEEK64): Likewise.
2867         (_G_MMAP64): Likewise.
2868         (_G_FSTAT64): Likewise.
2869         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
2870         unconditional.  Call __mmap64 directly.
2871         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
2872         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
2873         __lseek64 directly.
2874         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
2875         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
2876         __mmap64 directly.
2877         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
2878         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2879         __lseek64 directly.
2880         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
2881         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2882         __lseek64 directly.
2883         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
2884         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
2885         __lseek64 directly.
2886         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
2887         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
2888         __fxstat64 directly.
2889         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
2890         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
2891         unconditional.
2892         (freopen64) [!_G_OPEN64]: Remove conditional code.
2893         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
2894         unconditional.
2895         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
2896         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
2897         unconditional.
2898         (ftello64) [!_G_LSEEK64]: Remove conditional code.
2899         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
2900         unconditional.
2901         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2902         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
2903         unconditional.
2904         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
2905         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
2906         unconditional.
2907         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2908         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
2909         unconditional.
2910         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2911         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
2912         unconditional.
2913         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2914
2915 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
2916
2917         [BZ #12140]
2918         * manual/memory.texi (Malloc Tunable Parameters): Add note
2919         about free list pointers overwriting some perturb bytes.
2920         Wording suggested by Roland McGrath.
2921
2922 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
2923
2924         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
2925         (lgamma_test): Likewise.
2926         (tgamma_test): Likewise.
2927
2928 2012-10-16  Florian Weimer  <fweimer@redhat.com>
2929
2930         [BZ #14700]
2931         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
2932         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
2933
2934 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
2935
2936         * NEWS: Mention BZ #14716.
2937         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
2938         when removing AVAILABLE1_USES_J macro.
2939
2940 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2941
2942         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
2943         (__bswap_64): __uint64_t for unsigned 64-bit int.
2944
2945 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
2946
2947         * include/string.h (memmem): Declare libc hidden alias.
2948         * string/memmem.c (memmem): Define libc hidden alias.
2949         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
2950         __read, __close instead of open, read, close.
2951
2952 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
2953
2954         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
2955         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
2956         global and hidden.
2957         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
2958         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
2959         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
2960         Likewise.
2961         (__rawmemchr_sse2): Likewise.
2962         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
2963         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
2964         (__strchr_sse2): Likewise.
2965         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
2966         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
2967         (__strcasecmp_sse2): Likewise.
2968         (__strncasecmp_sse2): Likewise.
2969         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
2970         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
2971         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
2972         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
2973         (__strrchr_sse2): Likewise.
2974         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
2975         ifunc-impl-list.c.
2976         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
2977         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
2978         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
2979         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
2980         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
2981         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
2982         * sysdeps/x86_64/multiarch/memset.S: Likewise.
2983         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
2984         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2985         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
2986         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
2987         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
2988         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
2989         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
2990         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
2991         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
2992         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2993         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
2994         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2995         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
2996         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
2997         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
2998         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
2999         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
3000         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
3001         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
3002         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
3003         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
3004         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
3005         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
3006
3007         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
3008         global and hidden.
3009         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
3010         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
3011         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
3012         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
3013         Likewise.
3014         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
3015         Likewise.
3016         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
3017         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
3018         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
3019         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
3020         ifunc-impl-list.c.
3021         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
3022         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
3023         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
3024         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
3025         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
3026         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
3027         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
3028         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
3029         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
3030         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
3031         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
3032         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
3033         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
3034         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
3035         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
3036         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
3037         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
3038         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
3039         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
3040         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
3041         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
3042         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
3043         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
3044         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
3045         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
3046         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
3047         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
3048         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
3049         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
3050         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
3051         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
3052         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
3053         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
3054         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
3055         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
3056         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
3057         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
3058         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
3059         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
3060         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
3061         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
3062
3063         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
3064         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
3065         * include/ifunc-impl-list.h: New file.
3066         * misc/ifunc-impl-list.c: Likewise.
3067         * misc/Makefile (routines): Add ifunc-impl-list.
3068         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
3069         * string/test-string.h: Include <ifunc-impl-list.h>.
3070         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
3071         impl_array): New variables.
3072         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
3073         are defined.
3074         (test_init): Call __libc_ifunc_impl_list to initialize
3075         func_list if TEST_IFUNC and TEST_NAME are defined.
3076
3077         * string/Makefile (strop-tests): Add bcopy and bzero.
3078         * string/test-bcopy.c: New file.
3079         * string/test-bzero.c: Likewise.
3080         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
3081         defined.
3082         * string/test-memset.c: Support bzero test if TEST_BZERO is
3083         defined.
3084         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
3085         __libc_memmove.
3086         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
3087         __libc_memset.
3088         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
3089         of memset.
3090
3091 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
3092
3093         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
3094         * configure: Regenerated.
3095
3096         * Makeconfig (+link-static-before-libc): Don't include
3097         $(link-static-libc).
3098
3099         * libio/libio.h (_IO_pos_t): Remove.
3100
3101 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
3102
3103         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
3104         McGrath.
3105
3106 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
3107
3108         * crypt/crypt-entry.c: Include fips-private.h.
3109         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
3110         * crypt/md5c-test.c (main): Tolerate disabled MD5.
3111         * sysdeps/unix/sysv/linux/fips-private.h: New file.
3112         * sysdeps/generic/fips-private.h: New file, dummy fallback.
3113
3114 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
3115
3116         * crypt/crypt-private.h: Include stdbool.h.
3117         (_ufc_setup_salt_r): Return bool.
3118         * crypt/crypt-entry.c: Include errno.h.
3119         (__crypt_r): Return NULL with EINVAL for bad salt.
3120         * crypt/crypt_util.c (bad_for_salt): New.
3121         (_ufc_setup_salt_r): Check that salt is long enough and within
3122         the specified alphabet.
3123         * crypt/badsalttest.c: New file.
3124         * crypt/Makefile (tests): Add it.
3125         ($(objpfx)badsalttest): New.
3126
3127 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
3128
3129         * NEWS: Add entry for BZ #14602.
3130
3131 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
3132
3133         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
3134         type-generic.
3135         * math/libm-test.inc: Update comment listing what functions and
3136         macros are tested.
3137         (isgreater_test): New function.
3138         (isgreaterequal_test): Likewise.
3139         (isless_test): Likewise.
3140         (islessequal_test): Likewise.
3141         (islessgreater_test): Likewise.
3142         (isunordered_test): Likewise.
3143         (main): Call the new functions.
3144
3145 2012-10-09  Roland McGrath  <roland@hack.frob.com>
3146
3147         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
3148         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
3149         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
3150         * sysdeps/i386/configure: Regenerated.
3151         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
3152         * sysdeps/mach/configure: Regenerated.
3153         * sysdeps/mach/hurd/configure: Regenerated.
3154         * sysdeps/powerpc/configure: Regenerated.
3155         * sysdeps/powerpc/powerpc32/configure: Regenerated.
3156         * sysdeps/powerpc/powerpc64/configure: Regenerated.
3157         * sysdeps/s390/s390-32/configure: Regenerated.
3158         * sysdeps/s390/s390-64/configure: Regenerated.
3159         * sysdeps/sh/configure: Regenerated.
3160         * sysdeps/sparc/configure: Regenerated.
3161         * sysdeps/unix/sysv/linux/configure: Regenerated.
3162         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
3163         * sysdeps/x86_64/configure: Regenerated.
3164
3165         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
3166         defined.  Don't check if MAP is NULL.
3167
3168 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
3169
3170         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
3171         (_G_stat64): Likewise.
3172         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
3173         (_G_stat64): Likewise.
3174         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
3175         instead of struct _G_stat64.
3176         * libio/fileops.c (mmap_remap_check): Likewise.
3177         (decide_maybe_mmap): Likewise.
3178         (_IO_new_file_seekoff): Likewise.
3179         (_IO_file_stat): Likewise.
3180         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
3181         _G_off64_t.
3182         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
3183         instead of struct _G_stat64.
3184         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
3185
3186 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
3187
3188         [BZ #14602]
3189         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
3190         Replace with ...
3191         (CHECK_EOL): New macro.
3192         (two_way_short_needle): Check beginning of haystack for EOL.  Use
3193         CHECK_EOL.
3194         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
3195         Replace with CHECK_EOL.
3196         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
3197         Replace with CHECK_EOL.
3198
3199 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
3200
3201         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
3202         type-generic.
3203         * math/libm-test.inc: Update comment listing what functions and
3204         macros are tested.
3205         (finite_test): New function.
3206         (isinf_test): Likewise.
3207         (isnan_test): Likewise.
3208         (fpclassify_test): Test subnormal input.
3209         (isfinite_test): Likewise.
3210         (isnormal_test): Likewise.
3211         (main): Call the new functions.
3212
3213 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
3214
3215         [BZ #14660]
3216         * Makerules (%.dynsym): Force C locale when running
3217         $(OBJDUMP) --dynamic-syms.
3218
3219 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
3220
3221         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
3222         <stdint.h>.
3223
3224 2012-10-06  David S. Miller  <davem@davemloft.net>
3225
3226         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
3227         upper 32-bits of the length value in %o2 since we use branch-on-register
3228         tests which consider the entire 64-bit register.
3229
3230 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
3231
3232         * string/test-strstr.c (check2): Add a test for page boundary.
3233
3234 2012-10-05  David S. Miller  <davem@davemloft.net>
3235
3236         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
3237         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
3238         file.
3239         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
3240         sysdep_routines.
3241         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
3242         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
3243         and bzero when HWCAP_SPARC_CRYPTO is present.
3244
3245 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
3246
3247         [BZ #14602]
3248         * string/test-strstr.c (check2): New function.
3249         (test_main): Call check2.
3250
3251         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
3252         and bug-strchr1.
3253         * string/bug-strcasestr1.c (do_test): Moved to ...
3254         * string/test-strcasestr.c (check1): Here.  New function.
3255         (do_one_test): Break out result checking code into ...
3256         (check_result): This.  New function.
3257         (do_one_test): Call check_result.
3258         (test_main): Call check1.
3259         * string/bug-strchr1.c (do_test): Moved to ...
3260         * string/test-strchr.c (check1): Here.  New function.
3261         (do_one_test): Break out result checking code into ...
3262         (check_result): This.  New function.
3263         (do_one_test): Call check_result.
3264         (test_main): Call check1.
3265         * string/bug-strstr1.c (main): Moved to ...
3266         * string/test-strchr.c (check1): Here.  New function.
3267         (do_one_test): Break out result checking code into ...
3268         (check_result): This.  New function.
3269         (do_one_test): Call check_result.
3270         (test_main): Call check1.
3271         * string/bug-strcasestr1.c: Removed.
3272         * string/bug-strchr1.c: Likewise.
3273         * string/bug-strstr1.c: Likewise.
3274
3275         * elf/Makefile (dl-routines): Add hwcaps.
3276         * elf/dl-support.c (_dl_important_hwcaps): Removed.
3277         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
3278         (_dl_important_hwcaps): Moved to ...
3279         * elf/dl-hwcaps.c: Here.  New file.
3280         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
3281
3282         [BZ #14557]
3283         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
3284         if IS_IN_rtld isn't defined.
3285
3286         * elf/dl-support.c (_dl_sysinfo_map): New.
3287         Include "get-dynamic-info.h" and "setup-vdso.h".
3288         (_dl_non_dynamic_init): Call setup_vdso.
3289         * elf/dynamic-link.h: Don't include <assert.h>.
3290         (elf_get_dynamic_info): Moved to ...
3291         * elf/get-dynamic-info.h: Here.  New file.
3292         * elf/dynamic-link.h: Include "get-dynamic-info.h".
3293         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
3294         * elf/setup-vdso.h: Here.  New file.
3295         * elf/rtld.c: Include "setup-vdso.h".
3296         (dl_main): Call setup_vdso.
3297
3298 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
3299
3300         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
3301         creal in comment listing functions tested.  List finite, isinf,
3302         isnan, isless, islessequal, isgreater, isgreaterequal,
3303         islessgreater, isunordered, lgamma_r and pow10 as functions and
3304         macros not tested.  Mention which functions not tested are aliases
3305         for other functions.  Fix typo.  Note that signs of NaNs are not
3306         tested.
3307
3308         * scripts/config.guess: Update from config.git.
3309         * scripts/config.sub: Likewise.
3310
3311 2012-10-04  Roland McGrath  <roland@hack.frob.com>
3312
3313         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
3314         * misc/madvise.c (madvise): Renamed to __madvise.
3315         Make madvise a weak alias.
3316         * include/sys/mman.h: Declare __madvise.
3317         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
3318         * sysdeps/unix/syscalls.list
3319         (madvise): Make __madvise the strong name, and madvise a weak alias.
3320         * sysdeps/unix/sysv/linux/syscalls.list
3321         (madvise, mmap): Remove redundant entries.
3322         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
3323         * malloc/malloc.c (mtrim): Likewise.
3324         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
3325
3326 2012-10-03  Roland McGrath  <roland@hack.frob.com>
3327
3328         * sysdeps/mach/hurd/dl-cache.c: File removed.
3329         * config.h.in (USE_LDCONFIG): New #undef.
3330         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
3331         * configure: Regenerated.
3332         * elf/Makefile (dl-routines): Add dl-cache only under
3333         [$(use-ldconfig) = yes].
3334         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
3335         cache on [USE_LDCONFIG].
3336         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
3337         [USE_LDCONFIG].
3338         * elf/rtld.c (dl_main): Likewise.
3339
3340 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
3341
3342         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
3343         _SC_LEVEL4_CACHE_LINESIZE.
3344
3345 2012-10-03  Roland McGrath  <roland@hack.frob.com>
3346
3347         * sysdeps/unix/bsd/confstr.h: File removed.
3348
3349 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
3350
3351         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
3352         sys/sdt-config.h.
3353
3354 2012-10-02  Roland McGrath  <roland@hack.frob.com>
3355
3356         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
3357         Make 'mapoff' field ElfW(Off) rather than off_t.
3358
3359 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
3360
3361         * nscd/Makefile: Remove nscd-cflags and all its users.
3362         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
3363         (CFLAGS-nonlib): Add compiler flags for nscd modules.
3364
3365         [BZ #10631]
3366         * malloc.c (malloc_printerr): Clarify error message.
3367
3368 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
3369
3370         [BZ #14648]
3371         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3372         Set bit_FMA_Usable if FMA is supported.
3373         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
3374         macro.
3375         (bit_FMA4_Usable): Updated.
3376         (index_FMA_Usable): New macro.
3377         (CPUID_FMA): Likewise
3378         (HAS_FMA): Defined with bit_FMA_Usable.
3379
3380 2012-10-01  Roland McGrath  <roland@hack.frob.com>
3381
3382         * bits/types.h (__swblk_t): Type removed.
3383         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
3384         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
3385         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3386         (__SWBLK_T_TYPE): Likewise.
3387         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3388         (__SWBLK_T_TYPE): Likewise.
3389         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3390         (__SWBLK_T_TYPE): Likewise.
3391         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3392         (__SWBLK_T_TYPE): Likewise.
3393
3394 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
3395             Honza Horak <hhorak@redhat.com>
3396
3397         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
3398         (xdr_mapname): Use YPMAXMAP as maxsize.
3399         (xdr_peername): Use YPMAXPEER as maxsize.
3400         (xdr_keydat): Use YPAXRECORD as maxsize.
3401         (xdr_valdat): Use YPMAXRECORD as maxsize.
3402
3403 2012-10-01  Roland McGrath  <roland@hack.frob.com>
3404
3405         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
3406
3407         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
3408         * csu/init-first.c: ... here.
3409         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
3410         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
3411         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
3412         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
3413         * sysdeps/i386/init-first.c: File removed.
3414         * sysdeps/sh/init-first.c: File removed.
3415
3416 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
3417
3418         [BZ #14645]
3419         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
3420         if x * y might underflow to zero and z is zero.
3421         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
3422         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
3423         * math/libm-test.inc (min_subnorm_value): New variable.
3424         (fma_test): Add more tests.
3425         (fma_test_towardzero): Likewise.
3426         (fma_test_downward): Likewise
3427         (fma_test_upward): Likewise.
3428         (initialize): Set min_subnorm_value.
3429
3430 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
3431
3432         [BZ #14638]
3433         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
3434         0 + 0.
3435         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
3436         mode for addition resulting in exact zero.
3437         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
3438         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
3439         exact 0 + 0.
3440         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
3441         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
3442         * math/libm-test.inc (fma_test): Add more tests.
3443         (fma_test_towardzero): New function.
3444         (fma_test_downward): Likewise.
3445         (fma_test_upward): Likewise.
3446         (main): Call the new functions.
3447
3448 2012-09-28  David S. Miller  <davem@davemloft.net>
3449
3450         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
3451
3452 2012-09-28  Roland McGrath  <roland@hack.frob.com>
3453
3454         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
3455         instead of SIGALRM.
3456
3457         * sysdeps/gnu/_G_config.h: Moved to ...
3458         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
3459         * sysdeps/mach/hurd/_G_config.h: Moved to ...
3460         * sysdeps/generic/_G_config.h: ... here.
3461
3462         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
3463
3464         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
3465
3466         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
3467         Conditionalize target on [libnss_test1.so-version].
3468
3469         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
3470
3471         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
3472         (elfobjdir): Move out of conditionals.
3473
3474         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
3475         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
3476         (__nss_lookup_function): Conditionalize label remove_from_tree on
3477         [!DO_STATIC_NSS || SHARED], matching its only use.
3478
3479 2012-09-28  David S. Miller  <davem@davemloft.net>
3480
3481         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
3482         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
3483         file.
3484         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
3485         sysdep_routines.
3486         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
3487         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
3488         when HWCAP_SPARC_CRYPTO is present.
3489
3490 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
3491
3492         * io/tst-mknodat.c: Create a FIFO instead of a socket.
3493
3494 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
3495
3496         [BZ #6530]
3497         * stdio-common/vfprintf.c (process_string_arg): Revert
3498         2000-07-22 change.
3499
3500 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
3501
3502         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
3503         for testcase.
3504         * stdio-common/tst-sprintf.c: Include <locale.h>
3505         (main): Test sprintf's handling of incomplete multibyte
3506         characters.
3507
3508 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
3509
3510         * elf/dl-runtime.c (VERSYMIDX): Removed.
3511         * elf/dl-version.c (VERSYMIDX): Likewise.
3512         * elf/do-rel.h (VERSYMIDX): Likewise.
3513         (VALIDX): Likewise.
3514         * elf/dynamic-link.h (VERSYMIDX): Likewise.
3515         * elf/rtld.c (VALIDX): Likewise.
3516         (ADDRIDX): Likewise.
3517         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
3518         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
3519         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
3520         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
3521         (VALIDX): Likewise.
3522         (ADDRIDX): Likewise.
3523
3524 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
3525
3526         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
3527
3528 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
3529
3530         [BZ #11438]
3531         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
3532         to global scope.
3533         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
3534         addresses are in the same scope as 192.0.2/24.
3535         * posix/gai.conf: Document new scope table defaults.
3536
3537 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3538
3539         [BZ #5298]
3540         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
3541         for ftell.  Compute offsets from write pointers instead.
3542         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
3543
3544 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3545
3546         [BZ #14543]
3547         * libio/Makefile (tests): New test case tst-fseek.
3548         * libio/tst-fseek.c: New test case to verify that fseek/ftell
3549         combination works in wide mode.
3550         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
3551         state when the external buffer state changes.
3552
3553 2012-09-27  David S. Miller  <davem@davemloft.net>
3554
3555         [BZ #14376]
3556         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
3557         pass reloc->r_addend in as the 'high' argument to
3558         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
3559
3560         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3561
3562 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
3563
3564         * rt/tst-aio2.c: Include <pthread.h>.
3565         * rt/tst-aio3.c: Likewise.
3566
3567 2012-09-27  Steve Ellcey  <sellcey@mips.com>
3568
3569         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
3570
3571 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
3572
3573         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
3574         contents on [SHARED].
3575
3576 2012-09-26  Marek Polacek  <polacek@redhat.com>
3577
3578         [BZ #14530]
3579         [BZ #13741]
3580         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
3581         for C++ and GCC <4.3 as well as for non GCC compilers.
3582
3583 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
3584
3585         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3586
3587 2012-09-25  Roland McGrath  <roland@hack.frob.com>
3588
3589         * Makefile.in (all, install): Declare with .PHONY.
3590         Reported by Michael Hope <michael.hope@linaro.org>.
3591
3592 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3593
3594         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
3595         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
3596         system header.
3597         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
3598         Likewise.
3599         (sydep_routines): Add the new and the internal functions.
3600         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
3601         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
3602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
3603         (GLIBC_2.17): Add the new function.
3604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3605         (GLIBC_2.17): Likewise.
3606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
3607         (GLIBC_2.17): Likewise.
3608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
3609         (GLIBC_2.17): Likewise.
3610         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
3611
3612 2012-09-25  Alan Modra  <amodra@gmail.com>
3613
3614         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
3615         Add release barrier before setting once_control to say
3616         initialisation is done.  Add hints on lwarx.  Use macro in
3617         place of isync.
3618         (clear_once_control): Add release barrier.
3619
3620 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
3621
3622         [BZ #13629]
3623         * math/s_clog.c (__clog): Handle more values close to |z| = 1
3624         specially.
3625         * math/s_clog10.c (__clog10): Likewise.
3626         * math/s_clog10f.c (__clog10f): Likewise.
3627         * math/s_clog10l.c (__clog10l): Likewise.
3628         * math/s_clogf.c (__clogf): Likewise.
3629         * math/s_clogl.c (__clogl): Likewise.
3630         * math/Makefile (libm-calls): Add x2y2m1.
3631         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
3632         (__x2y2m1): Likewise.
3633         (__x2y2m1l): Likewise.
3634         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
3635         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
3636         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
3637         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
3638         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
3639         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
3640         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
3641         * sysdeps/i386/fpu/libm-test-ulps: Update.
3642         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3643
3644         [BZ #14621]
3645         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
3646         int as type of variable DEPTH.
3647         (glob): Use size_t instead of int as type of variables NEWCOUNT
3648         and OLD_PATHC.
3649
3650 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3651
3652         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
3653         Add s_sincosf-sse2.
3654         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
3655         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
3656         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
3657         macros for using routine as __sincosf_ia32.
3658         Use macro for function declaration and weak_alias.
3659         * sysdeps/i386/fpu/libm-test-ulps: Update.
3660
3661         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
3662         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3663
3664         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
3665         subnormal argument.
3666         * math/s_cexpf.c (__cexpf): Likewise.
3667         * math/s_csinf.c (__csinf): Likewise.
3668         * math/s_csinhf.c (__csinhf): Likewise.
3669         * math/s_ctanf.c (__ctanf): Likewise.
3670         * math/s_ctanhf.c (__ctanhf): Likewise.
3671         * math/s_ccosh.c (__ccoshf): Likewise.
3672         * math/s_cexp.c (__cexpl): Likewise.
3673         * math/s_csin.c (__csin): Likewise.
3674         * math/s_csinh.c (__csinh): Likewise.
3675         * math/s_ctan.c (__ctan): Likewise.
3676         * math/s_ctanh.c (ctanh): Likewise.
3677         * math/s_ccoshl.c (__ccoshl): Likewise.
3678         * math/s_cexpl.c (__cexpl): Likewise.
3679         * math/s_csinl.c (__csinl): Likewise.
3680         * math/s_csinhl.c (__csinhl): Likewise.
3681         * math/s_ctanl.c (__ctanl): Likewise.
3682         * math/s_ctanhl.c (__ctanhl): Likewise.
3683
3684 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
3685
3686         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
3687         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
3688         (_IO_off_t): Define to __off_t, not _G_off_t.
3689         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
3690         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
3691         (_IO_wint_t): Define to wint_t, not _G_wint_t.
3692         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
3693         type of __dummy and __dummy2 fields.
3694         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
3695         (_G_ssize_t): Likewise.
3696         (_G_off_t): Likewise.
3697         (_G_pid_t): Likewise.
3698         (_G_uid_t): Likewise.
3699         (_G_wchar_t): Likewise.
3700         (_G_wint_t): Likewise.
3701         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
3702         (_G_ssize_t): Likewise.
3703         (_G_off_t): Likewise.
3704         (_G_pid_t): Likewise.
3705         (_G_uid_t): Likewise.
3706         (_G_wchar_t): Likewise.
3707         (_G_wint_t): Likewise.
3708         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
3709         (_G_ssize_t): Likewise.
3710         (_G_off_t): Likewise.
3711         (_G_pid_t): Likewise.
3712         (_G_uid_t): Likewise.
3713         (_G_wchar_t): Likewise.
3714         (_G_wint_t): Likewise.
3715
3716 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3717
3718         * malloc/arena.c: Include malloc-sysdep.h.
3719         (shrink_heap): Use check_may_shrink_heap to decide if madvise
3720         is sufficient to shrink the heap or an unmap is needed.
3721         * sysdeps/generic/malloc-sysdep.h: New file.  Define
3722         new function check_may_shrink_heap.
3723         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
3724         new function check_may_shrink_heap.
3725
3726 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3727
3728         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
3729         comments.
3730
3731 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
3732
3733         * catgets/test-gencat.sh: Add "set -e".
3734         * elf/tst-pathopt.sh: Likewise.
3735         * grp/tst_fgetgrent.sh: Likewise.
3736         * iconvdata/run-iconv-test.sh: Likewise.
3737         * intl/tst-gettext.sh: Likewise.
3738         * intl/tst-gettext2.sh: Likewise.
3739         * intl/tst-gettext4.sh: Likewise.
3740         * intl/tst-gettext6.sh: Likewise.
3741         * intl/tst-translit.sh: Likewise.
3742         * io/ftwtest-sh: Likewise.
3743         * libio/test-freopen.sh: Likewise.
3744         * malloc/tst-mtrace.sh: Likewise.
3745         * posix/globtest.sh: Likewise.
3746         * posix/tst-getconf.sh: Likewise.
3747         * posix/wordexp-tst.sh: Likewise.
3748         * stdio-common/tst-printf.sh: Likewise.
3749         * stdio-common/tst-unbputc.sh: Likewise.
3750         * stdlib/tst-fmtmsg.sh: Likewise.
3751         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
3752         * catgets/Makefile: Do not specify -e option when running
3753         testsuite shell scripts.
3754         * elf/Makefile: Likewise.
3755         * grp/Makefile: Likewise.
3756         * iconvdata/Makefile: Likewise.
3757         * intl/Makefile: Likewise.
3758         * io/Makefile: Likewise.
3759         * libio/Makefile: Likewise.
3760         * malloc/Makefile: Likewise.
3761         * posix/Makefile: Likewise.
3762         * stdio-common/Makefile: Likewise.
3763         * stdlib/Makefile: Likewise.
3764         * sysdeps/x86_64/Makefile: Likewise.
3765
3766         * io/ftwtest-sh: Add copyright header.
3767         * posix/globtest.sh: Likewise.
3768         * posix/tst-getconf.sh: Likewise.
3769         * posix/wordexp-tst.sh: Likewise.
3770         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
3771
3772 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
3773
3774         [BZ #13679]
3775         * Makeconfig (+link): Defined as $(+link-static) if
3776         $(build-shared) isn't yes.
3777         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
3778         isn't yes.
3779         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
3780
3781         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
3782
3783         [BZ #14562]
3784         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
3785         new chunk size with MALLOC_ALIGN_MASK.
3786
3787 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
3788
3789         [BZ #5044]
3790         * stdio-common/printf_fphex.c: Include <stdbool.h> and
3791         <rounding-mode.h>.
3792         (__printf_fphex): Determine rounding using get_rounding_mode and
3793         round_away.
3794         * stdio-common/tst-printf-round.c (struct hex_test): New
3795         structure.
3796         (hex_tests): New variable.
3797         (test_hex_in_one_mode): New function.
3798         (do_test): Also run tests for hex float output.
3799
3800 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
3801
3802         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
3803         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
3804         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
3805         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
3806         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
3807         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
3808         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
3809         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
3810
3811 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
3812
3813         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
3814         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
3815         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
3816         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
3817
3818 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
3819
3820         [BZ #14579]
3821         * elf/rtld.c (dl_main): Limit the check for self loading to normal
3822         mode only.
3823         * elf/tst-rtld-load-self.sh: New test.
3824         * elf/Makefile: Run it.
3825
3826 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
3827
3828         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
3829         (tst-writev-ENV): Remove.
3830         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
3831
3832 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
3833
3834         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
3835
3836 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
3837
3838         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
3839         unconditional.
3840         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
3841         Likewise.
3842         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
3843         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
3844         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
3845         Likewise.
3846
3847 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3848
3849         [BZ #14587]
3850         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
3851         * config.make.in (have-cpp-asm-debuginfo): Removed.
3852         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
3853         * configure: Regenerated.
3854
3855 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
3856
3857         [BZ #5044]
3858         * stdio-common/printf_fp.c: Include <stdbool.h> and
3859         <rounding-mode.h>.
3860         (___printf_fp): Determine rounding using get_rounding_mode and
3861         round_away.
3862         * stdio-common/tst-printf-round.c: New file.
3863         * stdio-common/Makefile (tests): Add tst-printf-round.
3864         (link-libm): New variable.
3865         ($(objpfx)tst-printf-round): Depend in $(link-libm).
3866
3867 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3868
3869         [BZ #14576]
3870         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
3871         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
3872         Likewise.
3873         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
3874         Likewise.
3875
3876 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
3877
3878         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
3879         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3880         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3881         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3882
3883 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
3884
3885         [BZ #14518]
3886         * include/rounding-mode.h: New file.
3887         * sysdeps/generic/get-rounding-mode.h: Likewise.
3888         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
3889         * stdlib/strtod_l.c: Include <rounding-mode.h>.
3890         (MAX_VALUE): New macro.
3891         (MIN_VALUE): Likewise.
3892         (overflow_value): New function.
3893         (underflow_value): Likewise.
3894         (round_and_return): Use overflow_value and underflow_value to
3895         determine return values in overflow and underflow cases.  Use
3896         round_away to determine rounding depending on rounding mode.
3897         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
3898         determine return values in overflow and underflow cases.
3899         * stdlib/tst-strtod-round.c: Include <fenv.h>.
3900         (struct test_results): New structure.
3901         (struct test): Use struct test_results to store expected results
3902         for all rounding modes.
3903         (TEST): Include expected results for all rounding modes.
3904         (test_in_one_mode): New function.
3905         (do_test): Use test_in_one_mode to compute and check results.
3906         Check results for all rounding modes.
3907         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
3908         $(link-libm).
3909
3910 2012-12-09  Allan McRae  <allan@archlinux.org>
3911
3912         * sysdeps/i386/fpu/libm-test-ulps: Update
3913
3914 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
3915
3916         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
3917         (_G_int32_t): Likewise.
3918         (_G_uint16_t): Likewise.
3919         (_G_uint32_t): Likewise.
3920         (_G_HAVE_BOOL): Likewise.
3921         (_G_HAVE_ATEXIT): Likewise.
3922         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3923         (_G_HAVE_IO_FILE_OPEN): Likewise.
3924         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
3925         (_G_int32_t): Likewise.
3926         (_G_uint16_t): Likewise.
3927         (_G_uint32_t): Likewise.
3928         (_G_HAVE_BOOL): Likewise.
3929         (_G_HAVE_ATEXIT): Likewise.
3930         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3931         (_G_HAVE_IO_FILE_OPEN): Likewise.
3932         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
3933         (_G_int32_t): Likewise.
3934         (_G_uint16_t): Likewise.
3935         (_G_uint32_t): Likewise.
3936         (_G_HAVE_BOOL): Likewise.
3937         (_G_HAVE_ATEXIT): Likewise.
3938         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3939         (_G_HAVE_IO_FILE_OPEN): Likewise.
3940
3941 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
3942
3943         * csu/libc-tls.c: Update copyright years.
3944
3945 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
3946
3947         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
3948         [!_G_USING_THUNKS]: Remove conditional code.
3949         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
3950         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
3951
3952         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
3953         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
3954         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3955         (_G_VTABLE_LABEL_PREFIX): Likewise.
3956         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3957         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3958         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3959         (_G_VTABLE_LABEL_PREFIX): Likewise.
3960         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3961         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3962         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3963         (_G_VTABLE_LABEL_PREFIX): Likewise.
3964         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3965
3966 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
3967
3968         * libio/Makefile: Include ../Makeconfig before tests.
3969         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
3970         only if $(build-shared) is yes.
3971
3972         * iconv/gconv_db.c: Update copyright years.
3973
3974 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3975
3976         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
3977         unwind info if defined PIC. Fix special cases description.
3978         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
3979
3980         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
3981         DP_HI_MASK entry.
3982         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
3983
3984 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3985
3986         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
3987
3988         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
3989         is NULL.
3990
3991         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
3992         (LDLIBS-tst-chk4): This.
3993         (LDFLAGS-tst-chk5): Renamed to ...
3994         (LDLIBS-tst-chk5): This.
3995         (LDFLAGS-tst-chk6): Renamed to ...
3996         (LDLIBS-tst-chk6): This.
3997         (LDFLAGS-tst-lfschk4): Renamed to ...
3998         (LDLIBS-tst-lfschk4): This.
3999         (LDFLAGS-tst-lfschk5): Renamed to ...
4000         (LDLIBS-tst-lfschk5): This.
4001         (LDFLAGS-tst-lfschk6): Renamed to ...
4002         (LDLIBS-tst-lfschk6): This.
4003
4004         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
4005         on $(common-objpfx)soversions.mk.
4006
4007 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
4008
4009         [BZ #10014]
4010         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
4011         example host name.
4012
4013 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
4014
4015         * malloc/arena.c (arena_get_retry): New function that gets
4016         another arena for the caller to try its request on.
4017         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
4018         current arena cannot fulfill the request.
4019         (__libc_memalign): Likewise.
4020         (__libc_memalign): Likewise.
4021         (__libc_pvalloc): Likewise.
4022         (__libc_calloc): Likewise.
4023
4024 2012-09-05  John Tobey  <john.tobey@gmail.com>
4025
4026         [BZ #13542]
4027         * manual/arith.texi (Operations on Complex): Fix description
4028         of carg branch cut.
4029
4030 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
4031
4032         [BZ #10014]
4033         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
4034         host name.
4035
4036         [BZ #10038]
4037         * manual/memory.texi (Memory): Make order of menu items match
4038         order of sections.
4039
4040 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
4041
4042         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
4043         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
4044         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
4045
4046 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
4047
4048         * csu/libc-tls.c (static_dtv): Renamed to ...
4049         (_dl_static_dtv): This.  Make it global.
4050         (_dl_initial_dtv): Removed.
4051         (__libc_setup_tls): Updated.
4052         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
4053         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
4054         DL_INITIAL_DTV.
4055
4056 2012-09-06  Petr Machata  <pmachata@redhat.com>
4057
4058         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
4059         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
4060         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
4061         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
4062
4063 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
4064
4065         [BZ #14545]
4066         * csu/libc-tls.c (_dl_initial_dtv): New variable.
4067         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
4068         freeing dtv[-1].
4069
4070 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
4071
4072         [BZ #14544]
4073         * Makeconfig (link-static-before-libc): Replace $(+prector)
4074         with $(+prectorT).
4075         (link-static-after-libc): Replace $(+postctor) with
4076         $(+postctorT).
4077         (link-bounded): Replace $(+prector)/$(+postctor) with
4078         $(+prectorT)/$(+postctorT).
4079         (+prectorT): New macro.
4080         (+postctorT): Likewise.
4081
4082 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
4083
4084         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
4085         (round_str): Handle values above the maximum for IBM long double
4086         as inexact.
4087         * stdlib/tst-strtod-round.c (tests): Regenerated.
4088
4089 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4090
4091         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
4092         assembler flag.
4093         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
4094         zarch_nohighgprs around the zarch optimized routines.
4095         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
4096         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
4097         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
4098         for zarch.
4099
4100 2012-09-05  David S. Miller  <davem@davemloft.net>
4101
4102         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4103
4104         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
4105         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
4106         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
4107         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
4108         entries.
4109
4110 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
4111
4112         * malloc/arena.c: Fold copyright years.
4113         * malloc/mcheck.c, malloc/memusage.c: Likewise.
4114
4115 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
4116
4117         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
4118
4119 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
4120
4121         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
4122
4123 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
4124
4125         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
4126         change internal state upon failure.
4127
4128 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
4129
4130         * malloc/mcheck.c (mcheck_check_all): Fix typo.
4131         * malloc/memusage.c (mmap): Likewise.
4132         (mmap64, mremap): Likewise.  Adjust name in comment.
4133
4134 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4135
4136         * libio/fileops.c: Fix typos in comments.
4137         * libio/oldfileops.c: Likewise.
4138         * libio/wfileops.c: Likewise.
4139
4140 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4141
4142         [BZ #1349]
4143         * malloc/Makefile (tests): Add tst-malloc-usable test case.
4144         (tst-malloc-usable-ENV): Set environment for test case.
4145         * malloc/hooks.c (malloc_check_get_size): New function to get
4146         requested size.
4147         * malloc/malloc.c (musable): Use malloc_check_get_size.
4148         * malloc/tst-malloc-usable.c: New test case.
4149
4150 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
4151
4152         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
4153
4154 2012-09-05  Allan McRae  <allan@archlinux.org>
4155
4156         [BZ #13966]
4157         * configure.in (CXX_SYSINCLUDES): Use compiler output to
4158         determine header location.
4159         * configure: Regenerated.
4160
4161 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
4162
4163         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
4164         float format.
4165         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
4166         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
4167         format.
4168         (test): Regenerate.
4169
4170 2012-09-04  David S. Miller  <davem@davemloft.net>
4171
4172         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
4173         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
4174         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
4175
4176 2012-09-04  Florian Weimer  <fweimer@redhat.com>
4177
4178         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
4179         failures.
4180
4181         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
4182
4183 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
4184
4185         [BZ #9914]
4186         * libio/iogetdelim.c: Include <limits.h>.
4187         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
4188         + len + 1 would overflow.
4189
4190 2012-09-03  Andreas Jaeger  <aj@suse.de>
4191
4192         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4193         * sysdeps/i386/fpu/libm-test-ulps: Update.
4194
4195 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4196
4197         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
4198         Add s_sinf-sse2, s_conf-sse2.
4199
4200         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
4201         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
4202         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
4203         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
4204
4205         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
4206         for using routine as __sinf_ia32.
4207         Use macro for function declaration and weak_alias.
4208         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
4209         for using routine as __cosf_ia32.
4210         Use macro for function declaration and weak_alias.
4211
4212         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
4213         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
4214
4215         * sysdeps/x86_64/fpu/s_sinf.S: New file.
4216         * sysdeps/x86_64/fpu/s_cosf.S: New file.
4217         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4218
4219         * math/libm-test.inc (cos_test): Add more test cases.
4220         (sin_test): Likewise.
4221         (sincos_test): Likewise.
4222
4223 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4224
4225         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
4226         (IFUNC_RESOLVE): Make pointers to the specialized implementations
4227         hidden.
4228         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
4229
4230 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
4231
4232         [BZ #14538]
4233         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
4234         first element of the GOT.
4235         (elf_machine_load_address): Return the difference between
4236         the runtime address of _DYNAMIC and elf_machine_dynamic ().
4237
4238 2012-09-01  Allan McRae  <allan@archlinux.org>
4239
4240         [BZ #13412]
4241         * configure.in (AWK): Require gawk version 3.0 or later.
4242         * configure: Regenerated.
4243
4244 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
4245
4246         * sysdeps/unix/sysv/linux/kernel-features.h
4247         (__ASSUME_POSIX_CPU_TIMERS): Remove.
4248         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
4249         [__NR_clock_getres]: Make code unconditional.
4250         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
4251         (clock_getcpuclockid): Remove code left unreachable by removal of
4252         conditionals.
4253         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
4254         code unconditional.
4255         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
4256         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
4257         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
4258         Make code unconditional.
4259         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
4260         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
4261         * sysdeps/unix/sysv/linux/clock_settime.c
4262         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
4263         conditional code.
4264         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
4265         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
4266
4267 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
4268
4269         [BZ #14476]
4270         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
4271         scripts/test-installation.pl.
4272
4273         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
4274         and $ld_so_version if it is set.
4275
4276 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
4277
4278         [BZ #14516]
4279         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
4280         failure if reading from procfs failed.
4281         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
4282
4283 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
4284
4285         * sysdeps/unix/sysv/linux/kernel-features.h
4286         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
4287         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
4288         Remove conditional code.
4289         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
4290         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
4291         Remove conditional code.
4292         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
4293         * sysdeps/unix/sysv/linux/i386/fxstat.c
4294         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
4295         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
4296         * sysdeps/unix/sysv/linux/i386/fxstatat.c
4297         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
4298         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
4299         * sysdeps/unix/sysv/linux/i386/lxstat.c
4300         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
4301         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
4302         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
4303         Remove conditional code.
4304         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
4305         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
4306         Remove conditional code.
4307         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
4308         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
4309         <kernel-features.h>.
4310         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
4311         Remove.
4312         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
4313         Remove conditional code.
4314         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
4315         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
4316         Remove conditional.
4317
4318 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
4319
4320         [BZ #5400]
4321         * NEWS: Add fixed bug number.
4322
4323 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
4324
4325         [BZ #14519]
4326         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
4327         underflowing exponent in case of negative sign.
4328         * stdlib/tst-strtod-round-data: Add more tests.
4329         * stdlib/tst-strtod-round.c (tests): Regenerated.
4330
4331         [BZ #3479]
4332         * stdlib/strtod_l.c (NDIG): Remove.
4333         (HEXNDIG): Likewise.
4334         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
4335         smallest representable value.
4336         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
4337         lie within an exact representation of 1/2 ulp of the result.
4338         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
4339         unconditionally.
4340         (TENS_P9_IDX): Define unconditionally.
4341         (TENS_P9_SIZE): Likewise.
4342         (TENS_P10_IDX): Likewise.
4343         (TENS_P10_SIZE): Likewise.
4344         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
4345         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
4346         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
4347         entries for 10^2^13 and 10^2^14.
4348         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
4349         (TENS_P13_IDX): Define.
4350         (TENS_P13_SIZE): Likewise.
4351         (TENS_P14_IDX): Likewise.
4352         (TENS_P14_SIZE): Likewise.
4353         (_fpioconst_pow10): Change array size to
4354         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
4355         unconditional.
4356         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
4357         1024]: Add entries for 10^2^13 and 10^2^14.
4358         [LAST_POW10 > _LAST_POW10]: Remove #error.
4359         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
4360         (_fpioconst_pow10): Change array size to
4361         FPIOCONST_POW10_ARRAY_SIZE.
4362         * stdlib/gen-fpioconst.c: New file.
4363         * stdlib/gen-tst-strtod-round.c: Likewise.
4364         * stdlib/tst-strtod-round-data: Likewise.
4365         * stdlib/tst-strtod-round.c: Likewise.
4366         * stdlib/Makefile (tests): Add tst-strtod-round.
4367
4368         [BZ #14459]
4369         * stdlib/strtod_l.c: Include <stdint.h>.
4370         (NDEBUG): Do not define.
4371         (round_and_return): Change EXPONENT parameter to type intmax_t.
4372         Rearrange calculations to avoid internal overflow possibilities.
4373         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
4374         Rearrange calculations to avoid internal overflow possibilities.
4375         Assert that number fits inside MPNSIZE limbs.
4376         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
4377         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
4378         calculations and add assertions to avoid internal overflow
4379         possibilities.  Add casts to avoid signed/unsigned operations.
4380         * stdlib/tst-strtod-overflow.c: New file.
4381         * stdlib/Makefile (tests): Add tst-strtod-overflow.
4382
4383 2012-08-25  Marek Polacek  <polacek@redhat.com>
4384
4385         * time/time.h: Fix some typos in comments.
4386
4387 2012-08-23  Roland McGrath  <roland@hack.frob.com>
4388
4389         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
4390         * posix/tst-rfc3484-2.c: Likewise.
4391         * posix/tst-rfc3484-3.c: Likewise.
4392
4393 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
4394
4395         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
4396         (EF_ARM_ABI_FLOAT_HARD): Likewise.
4397
4398 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
4399
4400         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
4401         #include of fxstatat64.c.
4402
4403 2012-08-22  Roland McGrath  <roland@hack.frob.com>
4404
4405         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
4406         * shadow/getspent_r.c: Likewise.
4407         * shadow/getspnam.c: Likewise.
4408         * shadow/getspnam_r.c: Likewise.
4409         * gshadow/getsgent.c: Likewise.
4410         * gshadow/getsgent_r.c: Likewise.
4411         * gshadow/getsgnam.c: Likewise.
4412         * gshadow/getsgnam_r.c: Likewise.
4413         * inet/getnetbyad.c: Likewise.
4414         * inet/getnetbyad_r.c: Likewise.
4415         * inet/getnetbynm.c: Likewise.
4416         * inet/getnetbynm_r.c: Likewise.
4417         * inet/getnetent.c: Likewise.
4418         * inet/getnetent_r.c: Likewise.
4419         * inet/getproto.c: Likewise.
4420         * inet/getproto_r.c: Likewise.
4421         * inet/getprtent.c: Likewise.
4422         * inet/getprtent_r.c: Likewise.
4423         * inet/getprtname.c: Likewise.
4424         * inet/getprtname_r.c: Likewise.
4425         * inet/getrpcbyname.c: Likewise.
4426         * inet/getrpcbyname_r.c: Likewise.
4427         * inet/getrpcbynumber.c: Likewise.
4428         * inet/getrpcbynumber_r.c: Likewise.
4429         * inet/getrpcent.c: Likewise.
4430         * inet/getrpcent_r.c: Likewise.
4431         * inet/getaliasent.c: Likewise.
4432         * inet/getaliasent_r.c: Likewise.
4433         * inet/getaliasname.c: Likewise.
4434         * inet/getaliasname_r.c: Likewise.
4435         * nscd/getgrgid_r.c: Likewise.
4436         * nscd/getgrnam_r.c: Likewise.
4437         * nscd/gethstbyad_r.c: Likewise.
4438         * nscd/gethstbynm3_r.c: Likewise.
4439         * nscd/getpwnam_r.c: Likewise.
4440         * nscd/getpwuid_r.c: Likewise.
4441         * nscd/getsrvbynm_r.c: Likewise.
4442         * nscd/getsrvbypt_r.c: Likewise.
4443         * nscd/gai.c: Likewise.
4444
4445         * configure.in (build_nscd): New substituted variable, set
4446         by --disable-build-nscd and defaults to $use_nscd.
4447         * configure: Regenerated.
4448         * config.make.in (build-nscd): New substituted variable.
4449         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
4450         Change conditional to require [$(build-nscd) = yes] as well.
4451         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
4452
4453         [BZ# 13696]
4454         * configure.in (use_nscd): New substituted variable, set by
4455         --disable-nscd.  If enabled, define USE_NSCD.
4456         * configure: Regenerated.
4457         * config.h.in: Add USE_NSCD.
4458         * config.make.in (use-nscd): New substituted variable.
4459         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
4460         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
4461         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
4462         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
4463         (CFLAGS-getgrnam_r.c): Likewise.
4464         (CFLAGS-initgroups.c): Likewise.
4465         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
4466         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
4467         Variables removed.
4468         * inet/getnetgrent_r.c
4469         (nscd_setnetgrent): New function, broken out of ...
4470         (setnetgrent): ... here.  Call it.
4471         (innetgr): Conditionalize nscd bits on [USE_NSCD].
4472         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
4473         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
4474         * nscd/Makefile (routines, aux): Move definitions after include of
4475         Makeconfig.  Conditionalize on [$(use-nscd) != no].
4476         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
4477         Conditionalize on [USE_NSCD].
4478         (is_nscd, nscd_init_cb): Likewise.
4479         (nss_load_library): Conditionalize init callback on [USE_NSCD].
4480         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
4481         * nss/nss_db/db-init.c: Likewise.
4482         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
4483         [USE_NSCD].
4484         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
4485         (make_request): Use it.
4486         (cache_valid_p): New function.
4487         (__check_pf): Use it.
4488         * NEWS: Add item for --disable-nscd.
4489
4490 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
4491
4492         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
4493         to support sed >= 4.2.1-20-ga9bf076.
4494         * configure: Regenerated.
4495
4496 2012-08-22  Roland McGrath  <roland@hack.frob.com>
4497
4498         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
4499         Conditionalize whole body on [IREL].
4500
4501 2012-08-22  Jeff Law <law@redhat.com>
4502
4503         [BZ #14505]
4504         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
4505         if the family is PF_UNSPEC.
4506
4507 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
4508
4509         * Makerules (lib-version): Rename from V.
4510         (install-lib-nosubdir): Change V to lib-version.
4511
4512 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
4513
4514         [BZ #14252]
4515         * powerpc32/power6/wcschr.c: New file.
4516         * powerpc32/power6/wcscpy.c: New file.
4517         * powerpc32/power6/wcsrchr.c: New file.
4518         * powerpc64/power6/wcschr.c: New file.
4519         * powerpc64/power6/wcscpy.c: New file.
4520         * powerpc64/power6/wcsrchr.c: New file.
4521
4522 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
4523
4524         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
4525         (two_way_short_needle): Use it.
4526         * string/strstr.c (AVAILABLE1_USES_J): Define.
4527         * string/strcasestr.c: Likewise.
4528
4529         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
4530         array references.
4531         * string/strcasestr.c (TOLOWER): Make side-effect safe.
4532
4533         [BZ #11607]
4534         * NEWS: Add an entry.
4535         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
4536         define their defaults.
4537         (two_way_short_needle): Detect end-of-string on-the-fly.
4538         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
4539         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
4540         * string/bug-strcasestr1.c: New test.
4541         * string/Makefile: Run it.
4542
4543 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
4544
4545         [BZ #11607]
4546         * string/str-two-way.h (two_way_short_needle): Optimize matching of
4547         the first character.
4548
4549 2012-08-21  Roland McGrath  <roland@hack.frob.com>
4550
4551         * csu/elf-init.c (__libc_csu_irel): Function removed.
4552         * csu/libc-start.c (apply_irel): New function.
4553         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
4554
4555 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
4556
4557         * sysdeps/unix/sysv/linux/kernel-features.h
4558         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
4559         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
4560         <kernel-features.h>.
4561         [__NR_fadvise64_64]: Make code unconditional.
4562         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
4563         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
4564         !__NR_fadvise64_64)]: Likewise.
4565         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
4566         !__NR_fadvise64_64))]: Likewise.
4567         [__NR_fadvise64]: Make code unconditional.
4568         [!__NR_fadvise64]: Remove conditional code.
4569         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
4570         <kernel-features.h>.
4571         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
4572         unconditional.
4573         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
4574         conditional code.
4575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
4576         not include <kernel-features.h>.
4577         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
4578         unconditional.
4579         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
4580         conditional code.
4581         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
4582         include <kernel-features.h>.
4583         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
4584         unconditional.
4585         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
4586         conditional code.
4587
4588 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
4589
4590         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
4591         slight instruction rearrangements per scrollpipe analysis.
4592         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
4593
4594 2012-08-20  Roland McGrath  <roland@hack.frob.com>
4595
4596         * manual/syslog.texi (syslog; vsyslog, closelog):
4597         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
4598         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
4599
4600         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
4601         DSOCAPS to match condition on defining it.
4602
4603 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
4604
4605         * sysdeps/unix/sysv/linux/kernel-features.h
4606         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
4607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
4608         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
4609         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
4610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
4611         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
4612         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
4613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
4614         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
4615         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
4616
4617         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
4618         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
4619
4620         * sysdeps/unix/sysv/linux/kernel-features.h
4621         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
4622         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
4623         unconditional.
4624         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
4625         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
4626         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
4627         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
4628         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
4629         Make code unconditional.
4630         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
4631         (__mmap64) [!__NR_mmap2]: Likewise.
4632         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
4633         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
4634         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
4635         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
4636         [__NR_mmap2]: Make code unconditional.
4637         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
4638         (__mmap64) [!__NR_mmap2]: Likewise.
4639
4640 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4641
4642         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
4643
4644 2012-08-18  Andreas Jaeger  <aj@suse.de>
4645
4646         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
4647
4648 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
4649
4650         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
4651         * include/unistd.h (__have_sock_cloexec): Likewise.
4652         (__have_pipe2): Likewise.
4653         (__have_dup3): Likewise.
4654
4655 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
4656
4657         [BZ #9685]
4658         * include/unistd.h (__have_pipe2): Change define into an extern int.
4659         (__have_dup3): Likewise.
4660         * socket/have_sock_cloexec.c: Include fcntl.h.
4661         (__have_pipe2): New variable.
4662         (__have_dup3): Likewise.
4663
4664 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
4665
4666         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
4667
4668 2012-08-17  Marek Polacek  <polacek@redhat.com>
4669
4670         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
4671         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
4672
4673 2012-08-17  Roland McGrath  <roland@hack.frob.com>
4674
4675         * configure.in: Add AC_SUBST for sysheaders.
4676         * configure: Regenerated.
4677         * config.make.in (sysheaders): New substituted variable.
4678
4679         * sysdeps/unix/mkfifo.c: Moved ...
4680         * sysdeps/posix/mkfifo.c: ... here.
4681         * sysdeps/unix/mkfifoat.c: Moved ...
4682         * sysdeps/posix/mkfifoat.c: ... here.
4683
4684         * sysdeps/unix/utime.c: Moved ...
4685         * sysdeps/posix/utime.c: ... here.
4686
4687         * sysdeps/unix/time.c: Moved ...
4688         * sysdeps/posix/time.c: ... here.
4689         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
4690         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
4691
4692         * sysdeps/unix/nice.c: Moved ...
4693         * sysdeps/posix/nice.c: ... here.
4694
4695         * sysdeps/unix/alarm.c: Moved ...
4696         * sysdeps/posix/alarm.c: ... here.
4697
4698         * intl/Makefile ($(codeset_mo)): Depend on the input file.
4699
4700 2012-08-17  Jeff Law <law@redhat.com>
4701
4702         * intl/Makefile (codeset_mo): New variable.
4703         ($(codeset_mo)): New target.
4704         (tst-codeset.out): Depend on that.  Remove explicit rule.
4705         (tst-gettext3.out, tst-gettext5.out): Likewise.
4706         (LOCPATH-ENV, tst-codeset-ENV): New variables.
4707         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
4708         * intl/tst-codeset.sh: Remove.
4709         * intl/tst-gettext3.sh: Likewise.
4710         * intl/tst-gettext5.sh: Likewise.
4711
4712 2012-08-17  Roland McGrath  <roland@hack.frob.com>
4713
4714         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
4715         * sysdeps/unix/syscalls.list: ... here.
4716
4717         * sysdeps/posix/getaddrinfo.c
4718         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
4719         (gaiconf_init, gaiconf_reload): Use them.
4720         [!_STATBUF_ST_NSEC]
4721         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
4722         Define using time_t rather than struct timespec.
4723
4724         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
4725         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
4726         Macros removed.
4727         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
4728         [!NO_THREADS].
4729         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
4730         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
4731         Likewise.
4732
4733         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
4734         __libc_cleanup_push argument.
4735
4736         * bits/param.h: New file.
4737         * misc/sys/param.h: New file.
4738         * include/sys/param.h: New file.
4739         * misc/Makefile (headers): Add bits/param.h.
4740         * sysdeps/generic/sys/param.h: File removed.
4741         * sysdeps/unix/sysv/linux/bits/param.h: New file.
4742         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
4743         * sysdeps/mach/hurd/bits/param.h: New file.
4744         * sysdeps/mach/hurd/sys/param.h: File removed.
4745
4746         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
4747         last change.
4748
4749         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
4750         [_IO_MTSAFE_IO].
4751         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
4752         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
4753         New macros.
4754
4755         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
4756         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
4757         rather than -D_IO_MTSAFE_IO conditionally.
4758         * stdio-common/Makefile (CPPFLAGS): Likewise.
4759         * wcsmbs/Makefile (CPPFLAGS): Likewise.
4760         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
4761         Use $(libio-mtsafe).
4762         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
4763         of -D_IO_MTSAFE_IO.
4764         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
4765         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
4766         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
4767         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
4768         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
4769         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
4770         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
4771         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
4772         (CFLAGS-fread_u_chk.c): Likewise.
4773         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
4774         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
4775         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
4776         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
4777         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
4778         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
4779         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
4780         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
4781         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
4782
4783         * libio/Makefile: Test [$(libc-reentrant) = yes]
4784         instead of [$(filter %REENTRANT, $(defines)) nonempty].
4785
4786         * Makeconfig
4787         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
4788         * sysdeps/pthread/configure: File removed.
4789         * sysdeps/pthread/Makeconfig: New file.
4790         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
4791         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
4792
4793 2012-08-16  Gary Benson  <gbenson@redhat.com>
4794
4795         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
4796         unmapping the first object in a namespace.
4797
4798 2012-08-16  Roland McGrath  <roland@hack.frob.com>
4799
4800         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
4801         (__internal_setnetgrent): ... this.  Add internal_function to
4802         definition.  Add libc_hidden_def.
4803         (setnetgrent): Update caller.
4804         (internal_endnetgrent): Renamed to ...
4805         (__internal_endnetgrent): ... this.  Add internal_function to
4806         definition.  Add libc_hidden_def.
4807         (endnetgrent): Update caller.
4808         (internal_getnetgrent_r): Renamed to ...
4809         (__internal_getnetgrent_r): ... this.  Add internal_function to
4810         definition.  Add libc_hidden_def.
4811         (__getnetgrent_r): Update caller.
4812         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
4813
4814 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
4815
4816         * stdlib/longlong.h: Update from GCC.
4817
4818 2012-08-16  Roland McGrath  <roland@hack.frob.com>
4819
4820         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
4821         on _QL, which is set by umul_ppmm but never used.
4822         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
4823         variables, which are set by GMP macros but never used.
4824         * stdio-common/_itowa.c (_itowa): Likewise.
4825         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
4826         * stdlib/mod_1.c (mpn_mod_1): Likewise.
4827
4828 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
4829
4830         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
4831         struct La_sh_regs is not constant.
4832         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
4833         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
4834         and struct La_sparc64_regs are not constant.
4835
4836 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
4837
4838         * sysdeps/unix/sysv/linux/kernel-features.h
4839         (__ASSUME_POSIX_TIMERS): Remove.
4840         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
4841         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4842         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
4843         Make code unconditional.
4844         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4845         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
4846         Make code unconditional.
4847         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4848         * sysdeps/unix/sysv/linux/clock_nanosleep.c
4849         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
4850         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4851         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
4852         Make code unconditional.
4853         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4854         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
4855         (__libc_missing_posix_timers): Remove.
4856
4857 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4858
4859         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
4860         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
4861
4862         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
4863
4864         * elf/dl-sym.c: Include <stdlib.h>.
4865
4866         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
4867         constants, which avoids warnings in 32-bit builds.
4868
4869         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
4870         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
4871
4872         * misc/lseek.c: File moved to ...
4873         * io/lseek.c: ... here.
4874
4875         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
4876
4877         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
4878         shifting LEN more than 31 bits at once.
4879
4880 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4881
4882         [BZ #14195]
4883         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
4884         segmentation fault for a case of two empty input strings.
4885         * string/test-strncasecmp.c (check1): Renamed to...
4886         (bz12205): ...this.
4887         (bz14195): Add new testcase for two empty input strings and N > 0.
4888         (test_main): Call new testcase, adapt for renamed function.
4889
4890 2012-08-15  Andreas Jaeger  <aj@suse.de>
4891
4892         [BZ #14090]
4893         * crypt/md5test2.c: New test, based on test supplied by Serge
4894         Belyshev <belyshev@depni.sinp.msu.ru>.
4895         * crypt/Makefile (xtests): Add md5test-giant..
4896         * crypt/Makefile ($(objpfx)md5test-giant): Add.
4897
4898 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4899
4900         [BZ #14090]
4901         * crypt/md5.c (md5_process_block): Don't assume the buffer
4902         length is less than 2**32.
4903         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
4904         length is less than 2**64.
4905
4906 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4907
4908         * string/str-two-way.h: Include <sys/param.h>.
4909         (MAX): Macro removed.
4910
4911         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
4912         Move #define and #undef of memmove to just before and after
4913         including <string.h>.
4914
4915         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
4916         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
4917         and after including <string.h>.  Move declarations of
4918         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
4919         to before #include "string/memmove.c".
4920
4921         * include/dirent.h: Declare __getdirentries.
4922
4923         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
4924         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
4925
4926 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
4927
4928         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
4929         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
4930         * sysdeps/i386/configure: Regenerated.
4931         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
4932         STABS_CURRENT_FILE, and STABS_FUN.
4933         (END): Remove call to STABS_FUN_END.
4934         (STABS_CURRENT_FILE1): Delete.
4935         (STABS_CURRENT_FILE): Likewise.
4936         (STABS_FUN): Likewise.
4937         (STABS_FUN_END): Likewise.
4938         (STABS_FUN2): Likewise.
4939         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
4940         * sysdeps/x86_64/configure: Regenerated.
4941
4942 2012-08-14  Roland McGrath  <roland@hack.frob.com>
4943
4944         * elf/dl-open.c: Include <atomic.h>.
4945         * elf/dl-lookup.c: Likewise.
4946
4947 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
4948
4949         * sysdeps/unix/sysv/linux/kernel-features.h
4950         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
4951         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
4952         unconditionally.
4953         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
4954         unconditionally.
4955         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
4956         condition on __ASSUME_CLONE_THREAD_FLAGS.
4957
4958 2012-08-14  Andreas Jaeger  <aj@suse.de>
4959
4960         * sysdeps/i386/fpu/libm-test-ulps: Update.
4961
4962 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
4963
4964         * include/atomic.h (atomic_exchange_and_add): Split into ...
4965         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
4966         New atomic macros.
4967
4968 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
4969
4970         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4971
4972 2012-08-13  Jeff Law <law@redhat.com>
4973
4974         * manual/stdio.texi (snprintf): Clarify handling of the trailing
4975         null byte in the output string.
4976
4977 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
4978
4979         * sysdeps/unix/sysv/linux/kernel-features.h
4980         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
4981         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
4982         (__ASSUME_ARG_MAX_STACK_BASED): Define.
4983         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
4984         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
4985         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
4986         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
4987
4988 2012-08-09  Jeff Law <law@redhat.com>
4989
4990         [BZ #13939]
4991         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
4992         When avoid_arena is set, don't retry in the that arena.  Pick the
4993         next one, whatever it might be.
4994         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
4995         (arena_lock): Pass in new parameter to arena_get2.
4996         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
4997         arena_get2.
4998         (__libc_malloc): Unify retrying after main arena failure with
4999         __libc_memalign version.
5000         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
5001
5002 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
5003
5004         [BZ #14166]
5005         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
5006         to __redirect_strstr.
5007         (__strstr_sse42): Use typeof __redirect_strstr.
5008         (__strstr_ia32): Likewise.
5009         (__libc_strstr): New prototype.
5010         (strstr): Renamed to ...
5011         (__libc_strstr): This.
5012         (strstr): New strong alias of __libc_strstr.
5013         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
5014         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
5015         __redirect_time.
5016         Include <time.h>.
5017         (__libc_time): New prototype.
5018         (time_ifunc): Replace time with __libc_time.
5019         (time): New strong alias and hidden definition of __libc_time.
5020         (__GI_time): Remove strong alias.
5021         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
5022         Include <stddef.h>.
5023         (memmove): Redefined to __redirect_memmove.
5024         (__memmove_sse2): Use typeof __redirect_memmove.
5025         (__memmove_ssse3): Likewise.
5026         (__memmove_ssse3_back): Likewise.
5027         (__libc_memmove): New prototype.
5028         (memmove): Renamed to ...
5029         (__libc_memmove): This.
5030         (memmove): New strong alias of __libc_memmove.
5031
5032 2012-08-08  Mark Salter  <msalter@redhat.com>
5033
5034         * elf/elf.h
5035         (R_MN10300_TLS_GD): Define.
5036         (R_MN10300_TLS_LD): Likewise.
5037         (R_MN10300_TLS_LDO): Likewise.
5038         (R_MN10300_TLS_GOTIE): Likewise.
5039         (R_MN10300_TLS_IE): Likewise.
5040         (R_MN10300_TLS_LE): Likewise.
5041         (R_MN10300_TLS_DTPMOD): Likewise.
5042         (R_MN10300_TLS_DTPOFF): Likewise.
5043         (R_MN10300_TLS_TPOFF): Likewise.
5044         (R_MN10300_SYM_DIFF): Likewise.
5045         (R_MN10300_ALIGN): Likewise.
5046         (R_MN10300_NUM): Update.
5047
5048 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
5049
5050         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
5051         Remove.
5052
5053 2012-08-08  Roland McGrath  <roland@hack.frob.com>
5054
5055         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
5056
5057         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
5058         sysdeps/unix -> sysdeps/posix move.
5059         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
5060
5061 2012-08-07      Allan McRae     <allan@archlinux.org>
5062
5063         [BZ #14303]
5064         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
5065         (SUNOS_CPP): Likewise.
5066         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
5067         not found.
5068         (open_input): Call CPP using execvp.
5069
5070 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
5071
5072         * sysdeps/unix/sysv/linux/kernel-features.h
5073         (__ASSUME_PROT_GROWSUPDOWN): Remove.
5074         (__ASSUME_NO_CLONE_DETACHED): Likewise.
5075         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
5076         (__ASSUME_WAITID_SYSCALL): Likewise.
5077         * sysdeps/unix/sysv/linux/dl-execstack.c
5078         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
5079         code unconditional.
5080         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
5081         conditional code.
5082         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
5083         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
5084         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
5085         code.
5086         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
5087         unconditional.
5088         [__ASSUME_WAITID_SYSCALL]: Likewise.
5089         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
5090
5091 2012-08-07  Roland McGrath  <roland@hack.frob.com>
5092
5093         * sysdeps/unix/closedir.c: Renamed to ...
5094         * sysdeps/posix/closedir.c: ... here.
5095         * sysdeps/unix/dirfd.c: Renamed to ...
5096         * sysdeps/posix/dirfd.c: ... here.
5097         * sysdeps/unix/dirstream.h: Renamed to ...
5098         * sysdeps/posix/dirstream.h: ... here.
5099         * sysdeps/unix/fdopendir.c: Renamed to ...
5100         * sysdeps/posix/fdopendir.c: ... here.
5101         * sysdeps/unix/opendir.c: Renamed to ...
5102         * sysdeps/posix/opendir.c: ... here.
5103         * sysdeps/unix/readdir.c: Renamed to ...
5104         * sysdeps/posix/readdir.c: ... here.
5105         * sysdeps/unix/readdir_r.c: Renamed to ...
5106         * sysdeps/posix/readdir_r.c: ... here.
5107         * sysdeps/unix/rewinddir.c: Renamed to ...
5108         * sysdeps/posix/rewinddir.c: ... here.
5109         * sysdeps/unix/seekdir.c: Renamed to ...
5110         * sysdeps/posix/seekdir.c: ... here.
5111         * sysdeps/unix/telldir.c: Renamed to ...
5112         * sysdeps/posix/telldir.c: ... here.
5113         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
5114         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
5115         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
5116         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
5117
5118         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
5119         * bits/fcntl.h: ... here.
5120
5121         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
5122         not 0.
5123         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
5124         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
5125         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
5126         (struct flock): Move l_start, l_len to the beginning.
5127         Use __pid_t for l_pid.
5128         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
5129         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
5130         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
5131         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
5132         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
5133         [__USE_LARGEFILE64] (struct flock64): New type.
5134         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
5135
5136         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
5137         * bits/dirent.h: ... here.
5138
5139         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
5140         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
5141
5142 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
5143
5144         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5145         Change from 2.6.0 to 2.6.16.
5146         * sysdeps/unix/sysv/linux/configure: Regenerated.
5147         * sysdeps/unix/sysv/linux/kernel-features.h
5148         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
5149         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
5150         version.
5151         (__ASSUME_UTIMES): Likewise.
5152         (__ASSUME_CLONE_STOPPED): Remove.
5153         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
5154         architectures, not kernel version.
5155         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
5156         (__ASSUME_NO_CLONE_DETACHED): Likewise.
5157         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
5158         (__ASSUME_WAITID_SYSCALL): Likewise.
5159         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
5160         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
5161         * README: State 2.6.16 as minimum Linux kernel version.  Do not
5162         refer to older versions.
5163
5164 2012-08-06  Roland McGrath  <roland@hack.frob.com>
5165
5166         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
5167         Define alphasort64 as an alias.
5168         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
5169         Define versionsort64 as an alias.
5170         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
5171         Define scandir64 as an alias.
5172         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
5173         Define scandirat64 as an alias.
5174         * dirent/alphasort64.c (alphasort64):
5175         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
5176         * dirent/versionsort64.c: Likewise.
5177         * dirent/scandir64.c: Likewise.
5178         * dirent/scandirat64.c: Likewise.
5179         * sysdeps/wordsize-64/alphasort.c: File removed.
5180         * sysdeps/wordsize-64/alphasort64.c: File removed.
5181         * sysdeps/wordsize-64/scandir.c: File removed.
5182         * sysdeps/wordsize-64/scandir64.c: File removed.
5183         * sysdeps/wordsize-64/scandirat.c: File removed.
5184         * sysdeps/wordsize-64/scandirat64.c: File removed.
5185         * sysdeps/wordsize-64/versionsort.c: File removed.
5186         * sysdeps/wordsize-64/versionsort64.c: File removed.
5187         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
5188         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
5189         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
5190         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
5191         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
5192         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
5193         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
5194         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
5195
5196         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
5197         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
5198         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
5199         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5200         [defined __arch64__ || defined __sparcv9]
5201         (__INO_T_MATCHES_INO64_T): New macro.
5202         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
5203         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
5204         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
5205         * sysdeps/unix/sysv/linux/bits/dirent.h
5206         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
5207         (_DIRENT_MATCHES_DIRENT64): New macro.
5208
5209         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
5210         Define lockf64 as an alias.
5211         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
5212         Define fseeko64 as an alias.
5213         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
5214         Define ftello64 as an alias.
5215         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
5216         Define _IO_fgetpos64 and fgetpos64 as aliases.
5217         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
5218         Define _IO_fsetpos64 and fsetpos64 as aliases.
5219         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
5220         Conditionalize body on this.
5221         * libio/fseeko64.c: Likewise.
5222         * libio/ftello64.c: Likewise.
5223         * libio/iofgetpos64.c: Likewise.
5224         * libio/iofsetpos64.c: Likewise.
5225         * sysdeps/wordsize-64/lockf.c: File removed.
5226         * sysdeps/wordsize-64/lockf64.c: File removed.
5227         * sysdeps/wordsize-64/fseeko.c: File removed.
5228         * sysdeps/wordsize-64/fseeko64.c: File removed.
5229         * sysdeps/wordsize-64/ftello.c: File removed.
5230         * sysdeps/wordsize-64/ftello64.c: File removed.
5231         * sysdeps/wordsize-64/iofgetpos.c: File removed.
5232         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
5233         * sysdeps/wordsize-64/iofsetpos.c: File removed.
5234         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
5235         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
5236         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
5237         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
5238         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
5239         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
5240         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
5241         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
5242         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
5243         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
5244         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
5245
5246         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
5247         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
5248         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
5249         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5250         [defined __arch64__ || defined __sparcv9]
5251         (__OFF_T_MATCHES_OFF64_T): New macro.
5252         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
5253         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
5254         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5255         (__OFF_T_MATCHES_OFF64_T): New macro.
5256
5257 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
5258
5259         * stdlib/secure-getenv.c (__secure_getenv): Replace
5260         GLIBC_2_16 with GLIBC_2_17.
5261
5262 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
5263
5264         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
5265         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
5266
5267 2012-08-03  David S. Miller  <davem@davemloft.net>
5268
5269         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5270
5271 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
5272
5273         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
5274         Remove.
5275         (__ASSUME_CORRECT_SI_PID): Likewise.
5276         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
5277         (__ASSUME_TMPFS_NAME): Likewise.
5278         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
5279         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
5280         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
5281         (HAVE_AUX_SECURE): Make definition unconditional.
5282         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
5283         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
5284
5285 2012-08-03  Roland McGrath  <roland@hack.frob.com>
5286
5287         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
5288         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
5289         * sysdeps/mach/hurd/eloop-threshold.h: New file.
5290         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
5291         __eloop_threshold instead of SYMLOOP_MAX.
5292
5293         * sysdeps/generic/eloop-threshold.h: New file.
5294         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
5295         of MAXSYMLINKS.
5296         * elf/chroot_canon.c (chroot_canon): Likewise.
5297
5298 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
5299
5300         [BZ #13717]
5301         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5302         Change to 2.6.0 everywhere.
5303         * sysdeps/unix/sysv/linux/configure: Regenerated.
5304         * sysdeps/unix/sysv/linux/kernel-features.h
5305         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
5306         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
5307         kernel versions.
5308         (__ASSUME_POSIX_TIMERS): Define unconditionally.
5309         (__ASSUME_FUTEX_REQUEUE): Remove.
5310         (__ASSUME_STATFS64): Define unconditionally.
5311         (__ASSUME_AT_SECURE): Likewise.
5312         (__ASSUME_CORRECT_SI_PID): Likewise.
5313         (__ASSUME_TGKILL): Define without depending on kernel version for
5314         i386.
5315         (__ASSUME_UTIMES): Likewise.
5316         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
5317         kernel version.
5318         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
5319         (__ASSUME_TMPFS_NAME): Likewise.
5320         * README: Update reference to Linux kernel versions.
5321
5322 2012-08-02  Marek Polacek  <polacek@redhat.com>
5323
5324         [BZ# 14150]
5325         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
5326         libc_cv_asm_type_prefix with %.
5327         * configure: Regenerated.
5328         * include/libc-symbols.h: Remove comment about
5329         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
5330         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
5331         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
5332         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
5333         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
5334         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
5335         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
5336         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
5337         * elf/tst-unique2mod1.c: Likewise.
5338         * elf/tst-unique1mod2.c: Likewise.
5339         * elf/tst-unique1mod1.c: Likewise.
5340         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
5341         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
5342         Replace ASM_TYPE_DIRECTIVE with .type.
5343         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5344         * sysdeps/i386/sysdep.h: Likewise.
5345         * sysdeps/x86_64/sysdep.h: Likewise.
5346         * sysdeps/sh/sysdep.h: Likewise.
5347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
5348         Do not define ASM_TYPE_DIRECTIVE.
5349         * sysdeps/powerpc/sysdep.h: Likewise.
5350         * sysdeps/powerpc/powerpc32/sysdep.h:
5351         Replace ASM_TYPE_DIRECTIVE with .type.
5352         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5353         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5354         * sysdeps/i386/fpu/e_powf.S: Likewise.
5355         * sysdeps/i386/fpu/e_expl.S: Likewise.
5356         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
5357         * sysdeps/i386/fpu/e_acosh.S: Likewise.
5358         * sysdeps/i386/fpu/e_pow.S: Likewise.
5359         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
5360         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
5361         * sysdeps/i386/fpu/s_expm1.S: Likewise.
5362         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
5363         * sysdeps/i386/fpu/e_log2.S: Likewise.
5364         * sysdeps/i386/fpu/e_log2l.S: Likewise.
5365         * sysdeps/i386/fpu/e_scalb.S: Likewise.
5366         * sysdeps/i386/fpu/e_powl.S: Likewise.
5367         * sysdeps/i386/fpu/e_log10f.S: Likewise.
5368         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
5369         * sysdeps/i386/fpu/e_logl.S: Likewise.
5370         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
5371         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
5372         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
5373         * sysdeps/i386/fpu/e_log2f.S: Likewise.
5374         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
5375         * sysdeps/i386/fpu/e_log.S: Likewise.
5376         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
5377         * sysdeps/i386/fpu/e_logf.S: Likewise.
5378         * sysdeps/i386/fpu/e_log10l.S: Likewise.
5379         * sysdeps/i386/fpu/e_atanh.S: Likewise.
5380         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
5381         * sysdeps/i386/fpu/e_log10.S: Likewise.
5382         * sysdeps/i386/fpu/s_frexp.S: Likewise.
5383         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
5384         * sysdeps/i386/fpu/s_asinh.S: Likewise.
5385         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
5386         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
5387         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
5388         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
5389         * sysdeps/i386/i686/strtok.S: Likewise.
5390         * sysdeps/i386/i386-mcount.S: Likewise.
5391         * sysdeps/i386/strtok.S: Likewise.
5392         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
5393         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
5394         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
5395         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
5396         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
5397         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
5398         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5399         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
5400         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
5401         * sysdeps/x86_64/_mcount.S: Likewise.
5402         * sysdeps/x86_64/strtok.S: Likewise.
5403         * sysdeps/sh/_mcount.S: Likewise.
5404
5405 2012-08-01  Roland McGrath  <roland@hack.frob.com>
5406
5407         * libio/iofopen.c: Include <fcntl.h>.
5408         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
5409         (_IO_fopen64, fopen64): Define as aliases.
5410         * libio/iofopen64.c: Include <fcntl.h>.
5411         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
5412         Conditionalize body on this.
5413         * sysdeps/wordsize-64/iofopen.c: File removed.
5414         * sysdeps/wordsize-64/iofopen64.c: File removed.
5415
5416 2012-08-01  Marek Polacek  <polacek@redhat.com>
5417
5418         * libc/Makeconfig: Use elf in place of binfmt-subdir.
5419         Use dlfcn directly instead of a variable.
5420         (binfmt-subdir): Do not define.
5421         (dlfcn): Likewise.
5422
5423 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
5424
5425         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
5426         Remove all definitions.
5427         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
5428         <kernel-features.h>.
5429         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
5430         (miss_F_GETOWN_EX): Remove all definitions.
5431         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
5432         macro definition.
5433         [!__ASSUME_FCNTL64]: Remove conditional code.
5434         [__ASSUME_FCNTL64]: Make code unconditional.
5435         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
5436         <kernel-features.h>.
5437         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
5438         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
5439         (lockf64) [__NR_fcntl64]: Make code unconditional.
5440         (lockf64) [__ASSUME_FCNTL64]: Likewise.
5441
5442         * sysdeps/unix/sysv/linux/kernel-features.h
5443         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
5444         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
5445         Make code unconditional.
5446         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
5447         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
5448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
5449         [__NR_vfork]: Make code unconditional.
5450         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
5451         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
5452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
5453         [__NR_vfork]: Make code unconditional.
5454         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
5455         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
5456
5457 2012-08-01  Roland McGrath  <roland@hack.frob.com>
5458
5459         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
5460         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
5461
5462         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
5463         Define mkstemp64 as an alias.
5464         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
5465         Define mkstemps64 as an alias.
5466         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
5467         Define mkostemp64 as an alias.
5468         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
5469         Define mkostemps64 as an alias.
5470         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
5471         Conditionalize body on this.
5472         * misc/mkostemp64.c: Likewise.
5473         * misc/mkostemps64.c: Likewise.
5474         * misc/mkstemps64.c: Likewise.
5475         * sysdeps/wordsize-64/mkstemp64.c: File removed.
5476         * sysdeps/wordsize-64/mkostemp64.c: File removed.
5477         * sysdeps/wordsize-64/mkostemp.c: File removed.
5478         * sysdeps/wordsize-64/mkstemp.c: File removed.
5479         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
5480         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
5481         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
5482         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
5483
5484         [BZ #14138]
5485         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
5486         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
5487         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
5488         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
5489
5490         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
5491         compat_symbol macros from <shlib-compat.h> rather than the underlying
5492         default_symbol_version and symbol_version macros, so that DEFAULT
5493         lines in shlib-versions are respected.
5494         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
5495
5496 2012-08-01  Florian Weimer  <fweimer@redhat.com>
5497
5498         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
5499         Declare with warn_unused_result.
5500         (setgid, setregid, setegid, setresgid): Likewise.
5501         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
5502         Likewise.
5503         * WUR-REPORT: Remove set*id functions.
5504
5505 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
5506
5507         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
5508
5509 2012-07-31  Roland McGrath  <roland@hack.frob.com>
5510
5511         * include/sys/socket.h (__libc_accept, __libc_accept4):
5512         Add attribute_hidden.
5513         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
5514
5515         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
5516         use of PTR_MANGLE.
5517         * inet/getnetgrent_r.c (setup): Likewise.
5518
5519         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
5520
5521 2012-07-31  David S. Miller  <davem@davemloft.net>
5522
5523         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5524
5525 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
5526
5527         [BZ #13629]
5528         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
5529         value between 1.0 and 2.0 and smaller part has absolute value less
5530         than 1.0.
5531         * math/s_clog10.c (__clog10): Likewise.
5532         * math/s_clog10f.c (__clog10f): Likewise.
5533         * math/s_clog10l.c (__clog10l): Likewise.
5534         * math/s_clogf.c (__clogf): Likewise.
5535         * math/s_clogl.c (__clogl): Likewise.
5536         * math/libm-test.inc (clog_test): Add more tests.
5537         (clog10_test): Likewise.
5538         * sysdeps/i386/fpu/libm-test-ulps: Update.
5539         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5540
5541 2012-07-31  Florian Weimer  <fweimer@redhat.com>
5542
5543         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
5544         Exit with zero in case no suitable GID is found, and write a
5545         message to standard error.
5546
5547 2012-07-30  Roland McGrath  <roland@hack.frob.com>
5548
5549         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
5550         rather than to 1.
5551         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
5552         (MAXPATHLEN): Removed.
5553         (NOGROUP, NODEV): New macros.
5554         (setbit, clrbit, isset, isclr): New macros.
5555         (howmany, roundup, powerof2): New macros.
5556         (DEV_BSIZE): New macro.
5557
5558         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
5559         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
5560
5561         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
5562         definition on [!__NO_LONG_DOUBLE_MATH].
5563
5564         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
5565         PTR_MANGLE and PTR_DEMANGLE.
5566
5567         * socket/accept4.c (accept4): Rename to __libc_accept4.
5568         Define accept4 as a weak alias.
5569
5570         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
5571         on [_DIRENT_HAVE_D_TYPE].
5572         * io/ftw.c (ftw_dir): Likewise.
5573
5574         * io/xmknod.c (__xmknod): Don't check PATH for being null.
5575
5576         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
5577
5578         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
5579         Use the BSD numbers rather than the arbitrary ones we had.
5580         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
5581         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
5582         (SIGXCPU, SIGXFSZ): New macros.
5583         (_NSIG): Now 32.
5584
5585         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
5586         initializer on [_LIBC_REENTRANT].
5587
5588         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
5589         definitions inside [_POSIX_MAPPED_FILES].
5590
5591         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
5592
5593         * dirent/opendir.c: Include <fcntl.h>.
5594
5595         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
5596         (__libc_getspecific): Likewise.
5597         (__libc_key_create): Likewise.
5598
5599         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
5600         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
5601         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
5602         (tmpfile64): Define as alias.
5603         * sysdeps/wordsize-64/tmpfile.c: File removed.
5604         * sysdeps/wordsize-64/tmpfile64.c: File removed.
5605         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
5606         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
5607
5608         * stdio-common/vfscanf.c: Include <stdbool.h>.
5609         * nss/makedb.c: Likewise.
5610         * stdio-common/_i18n_number.h: Likewise.
5611         * argp/argp-help.c: Likewise.
5612         * posix/wordexp.c: Likewise.
5613         * sysdeps/posix/spawni.c: Likewise.
5614         * nss/nss_files/files-initgroups.c: Likewise.
5615         * stdio-common/reg-modifier.c: Include <stdlib.h>.
5616         * nss/nss_files/files-initgroups.c: Likewise.
5617         * nss/nss_db/db-netgrp.c: Likewise.
5618         * nss/nss_db/db-initgroups.c: Likewise.
5619         * io/fchmodat.c: Include <sys/stat.h>.
5620
5621         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
5622         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
5623
5624         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
5625         [HAVE_MMAP].
5626
5627         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
5628         Add multiple inclusion protection.
5629
5630 2012-07-27  David S. Miller  <davem@davemloft.net>
5631
5632         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5633
5634 2012-07-27  Gary Benson  <gbenson@redhat.com>
5635
5636         [BZ #14298]
5637         * elf/rtld.c: Include <stap-probe.h>.
5638         (dl_main): Added static probes "init_start" and "init_complete".
5639         * elf/dl-load.c: Include <stap-probe.h>.
5640         (lose): Take new parameter "nsid".
5641         Added static probe "map_failed".
5642         (_dl_map_object_from_fd): Pass namespace id to lose.
5643         Added static probe "map_start".
5644         (open_verify): Pass namespace id to lose.
5645         * elf/dl-open.c: Include <stap-probe.h>.
5646         (dl_open_worker) Added static probes "map_complete", "reloc_start"
5647         and "reloc_complete".
5648         * elf/dl-close.c: Include <stap-probe.h>.
5649         (_dl_close_worker): Added static probes "unmap_start" and
5650         "unmap_complete".
5651         * elf/rtld-debugger-interface.txt: New file documenting the above.
5652
5653 2012-07-26  Roland McGrath  <roland@hack.frob.com>
5654
5655         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
5656         rather than a string variable.
5657         * sunrpc/rpc_main.c (h_output): Likewise.
5658         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
5659
5660 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
5661
5662         * inet/check_native.c: New file.
5663
5664 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
5665
5666         [BZ #13629]
5667         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
5668         if larger part has absolute value 1.0.
5669         * math/s_clog10.c (__clog10): Likewise.
5670         * math/s_clog10f.c (__clog10f): Likewise.
5671         * math/s_clog10l.c (__clog10l): Likewise.
5672         * math/s_clogf.c (__clogf): Likewise.
5673         * math/s_clogl.c (__clogl): Likewise.
5674         * math/libm-test.inc (clog_test): Add more tests.
5675         (clog10_test): Likewise.
5676         * sysdeps/i386/fpu/libm-test-ulps: Update.
5677         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5678
5679         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
5680         (pltexit): Likewise.
5681         (La_regs): Likewise.
5682         (La_retval): Likewise.
5683         (int_retval): Likewise.
5684         Update #error for removed macros to refer only to definitions in
5685         tst-audit.h.
5686         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
5687         macro.
5688         (pltexit): Likewise.
5689         (La_regs): Likewise.
5690         (La_retval): Likewise.
5691         (int_retval): Likewise.
5692         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
5693         macro.
5694         (pltexit): Likewise.
5695         (La_regs): Likewise.
5696         (La_retval): Likewise.
5697         (int_retval): Likewise.
5698         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
5699         macro.
5700         (pltexit): Likewise.
5701         (La_regs): Likewise.
5702         (La_retval): Likewise.
5703         (int_retval): Likewise.
5704         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
5705         macro.
5706         (pltexit): Likewise.
5707         (La_regs): Likewise.
5708         (La_retval): Likewise.
5709         (int_retval): Likewise.
5710         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
5711         macro.
5712         (pltexit): Likewise.
5713         (La_regs): Likewise.
5714         (La_retval): Likewise.
5715         (int_retval): Likewise.
5716         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
5717         macro.
5718         (pltexit): Likewise.
5719         (La_regs): Likewise.
5720         (La_retval): Likewise.
5721         (int_retval): Likewise.
5722         * sysdeps/generic/tst-audit.h: Update comment to refer only to
5723         macro definitions in tst-audit.h.
5724         * sysdeps/i386/tst-audit.h: New file.
5725         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
5726         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
5727         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
5728         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
5729         * sysdeps/sh/tst-audit.h: Likewise.
5730         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
5731         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
5732         * sysdeps/x86_64/tst-audit.h: Likewise.
5733
5734 2012-07-26  Andreas Jaeger  <aj@suse.de>
5735
5736         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
5737         ptrace.
5738
5739         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
5740         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
5741         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
5742         PTRACE_O_MASK.
5743         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
5744         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
5745         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
5746
5747         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
5748         value.
5749
5750         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
5751         _sigsys.
5752         (si_call_addr, si_syscall, si_arch): Define new macro.
5753         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
5754         _sigsys.
5755         (si_call_addr, si_syscall, si_arch): Define new marcro.
5756         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
5757         _sigsys.
5758         (si_call_addr, si_syscall, si_arch): Define new macro.
5759         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
5760         _sigsys.
5761         (si_call_addr, si_syscall, si_arch): Define new macro.
5762
5763 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
5764
5765         [BZ #13717]
5766         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5767         Change to 2.4.21 where previously 2.4.1.
5768         * sysdeps/unix/sysv/linux/configure: Regenerated.
5769         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
5770         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
5771         Linux kernel version.
5772         (__ASSUME_STD_AUXV): Remove.
5773         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
5774         kernel version.
5775         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
5776         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
5777         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
5778         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
5779         (__ASSUME_NETLINK_SUPPORT): Likewise.
5780         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
5781         (__no_netlink_support): Remove conditional definition.
5782         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
5783         Remove.
5784         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
5785         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
5786         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
5787         (if_nameindex_ioctl): Remove.
5788         (if_nameindex_netlink): Do not handle __no_netlink_support.
5789         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
5790         code.
5791         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
5792         Remove conditional code.
5793         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
5794         code.
5795         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
5796         unconditional.
5797         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
5798         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
5799         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
5800         Remove.
5801         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
5802         [!__ASSUME_STD_AUXV]: Remove conditional code.
5803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
5804         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
5805         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
5806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
5807         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
5808         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
5809         code.
5810         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
5811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
5812         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
5813         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5814         conditional code.
5815         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
5816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
5817         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
5818         code.
5819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
5820         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5821         conditional code.
5822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
5823         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5824         code unconditional.
5825         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5826         conditional code.
5827         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5828         unconditional.
5829         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5830         conditional code.
5831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
5832         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5833         unconditional.
5834         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5835         conditional code.
5836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5837         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5838         code unconditional.
5839         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5840         conditional code.
5841         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5842         unconditional.
5843         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5844         conditional code.
5845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5846         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5847         code unconditional.
5848         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5849         conditional code.
5850         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5851         unconditional.
5852         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5853         conditional code.
5854
5855 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
5856
5857         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
5858         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
5859         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
5860         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
5861         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
5862         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
5863         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
5864         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
5865         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
5866         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
5867         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
5868         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
5869         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
5870         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
5871         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
5872         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
5873         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
5874         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
5875         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
5876         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
5877         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
5878         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
5879         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5880
5881 2012-07-25  Florian Weimer  <fweimer@redhat.com>
5882
5883         * Versions.def: Add GLIBC_2.17.
5884         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
5885         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
5886         Introduce __libc_secure_getenv.
5887         * stdlib/Versions (2.17): Add secure_getenv
5888         (GLIBC_PRIVATE): Add __libc_secure_getenv.
5889         * stdlib/secure-getenv.c: Rename __secure_getenv to
5890         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
5891         symbol __secure_getenv for GLIBC_2.0.
5892         * stdlib/tst-secure-getenv.c: New.
5893         * stdlib/Makefile (tests): Add testcase.
5894         * manual/startup.texi (Environment Access): Document
5895         secure_getenv.
5896         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
5897         __libc_secure_getenv.
5898         * inet/ruserpass.c (ruserpass): Likewise.
5899         * malloc/mtrace.c (mtrace): Likewise.
5900         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
5901         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
5902         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
5903         * sysdeps/posix/tempname.c: Likewise.  Evaluate
5904         HAVE_SECURE_GETENV.
5905         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
5906         __secure_getenv to __libc_secure_getenv.
5907         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
5908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5909         Likewise.
5910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5911         Likewise.
5912         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
5913         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
5914         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
5915         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
5916         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
5917         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
5918         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
5919
5920 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
5921
5922         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
5923         (struct La_i86_retval): Likewise.
5924         (struct La_x86_64_regs): Likewise.
5925         (struct La_x86_64_retval): Likewise.
5926         (struct La_x32_regs): Likewise.
5927         (struct La_x32_retval): Likewise.
5928         (struct La_ppc32_regs): Likewise.
5929         (struct La_ppc32_retval): Likewise.
5930         (struct La_ppc64_regs): Likewise.
5931         (struct La_ppc64_retval): Likewise.
5932         (struct La_sh_regs): Likewise.
5933         (struct La_sh_retval): Likewise.
5934         (struct La_s390_32_regs): Likewise.
5935         (struct La_s390_32_retval): Likewise.
5936         (struct La_s390_64_regs): Likewise.
5937         (struct La_s390_64_retval): Likewise.
5938         (struct La_sparc32_regs): Likewise.
5939         (struct La_sparc32_retval): Likewise.
5940         (struct La_sparc64_regs): Likewise.
5941         (struct La_sparc64_retval): Likewise.
5942         (struct audit_ifaces): Remove architecture-specific pltenter and
5943         pltexit members.
5944         * sysdeps/i386/ldsodefs.h: New file.
5945         * sysdeps/powerpc/ldsodefs.h: Likewise.
5946         * sysdeps/s390/ldsodefs.h: Likewise.
5947         * sysdeps/sh/ldsodefs.h: Likewise.
5948         * sysdeps/sparc/ldsodefs.h: Likewise.
5949         * sysdeps/x86_64/ldsodefs.h: Likewise.
5950
5951 2012-07-25  Marek Polacek  <polacek@redhat.com>
5952
5953         [BZ #6808]
5954         * math/libm-test.inc (yn_test): Add another test.
5955         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
5956         to ERANGE when the result is +-Inf.
5957         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
5958         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
5959         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
5960         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
5961
5962 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
5963
5964         * conform/data/time.h-data (NULL): Use macro-constant.  Require
5965         equal to 0.
5966         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
5967         clock_t.
5968         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
5969
5970 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
5971
5972         * configure.in <sysdeps resolving>: Correct printing
5973         Implies_before.
5974         * configure: Regenerate.
5975
5976 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
5977
5978         * math/w_ilogb.c: Include <limits.h>.
5979         * math/w_ilogbl.c: Likewise.
5980
5981 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
5982
5983         * manual/lang.texi (__va_copy): Document primarily as ISO C99
5984         va_copy.  Document allowing for unavailable va_copy only as
5985         pre-C99 compatibility.
5986         * manual/string.texi (Copying and Concatenation): Use va_copy
5987         instead of __va_copy in concat example.
5988
5989 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
5990
5991         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
5992         (__sendto): Use create_address_port.  Initialize APORT and deallocate
5993         it if not null.
5994
5995         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
5996         with O_NOLINK passed to __file_name_lookup.
5997
5998         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
5999         with O_NOLINK passed to __file_name_lookup.
6000
6001         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
6002         negative N or less than NGIDS.
6003
6004         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
6005         type to string_t.  Set ERANGE as errno and return it if NAME is not big
6006         enough.  Use memcpy instead of strncpy.
6007
6008 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
6009
6010         * elf/Makefile (check-data): Remove.
6011         (localplt.data): New vpath directive.
6012         ($(objpfx)check-localplt.out): Use localplt.data from vpath
6013         instead of $(check-data).
6014         * scripts/data/localplt-generic.data: Move to ...
6015         * sysdeps/generic/localplt.data: ... here.
6016         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
6017         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
6018         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
6019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
6020         ... here.
6021         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
6022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
6023         ... here.
6024         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
6025         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
6026         ... here.
6027         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
6028         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
6029         ... here.
6030         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
6031         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
6032         ... here.
6033         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
6034         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
6035         ... here.
6036
6037 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6038
6039         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
6040         PPC32 and PPC64 files.
6041         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
6042         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
6043
6044 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6045
6046         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
6047         __makecontext_ret to ...
6048         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
6049         ... here and call exit if uc_link is NULL.  New file.
6050         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
6051         __makecontext_ret.S.
6052         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
6053         __makecontext_ret to ...
6054         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
6055         ... here and call exit if uc_link is NULL.  New file.
6056         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
6057         __makecontext_ret.S.
6058
6059 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6060
6061         * elf/elf.h (R_390_IRELATIVE): New definition.
6062         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
6063         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
6064         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
6065         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
6066         (elf_machine_lazy_rel): Likewise.
6067         * sysdeps/s390/dl-irel.h: New file.
6068         * sysdeps/s390/s390-64/memcpy.S: New asm code.
6069         * sysdeps/s390/s390-64/memset.S: New asm code.
6070         * sysdeps/s390/s390-64/memcmp.S: New asm code.
6071         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
6072         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
6073         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
6074         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
6075         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
6076         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
6077         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
6078         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
6079         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
6080         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
6081         * sysdeps/s390/s390-32/memcpy.S: New asm code.
6082         * sysdeps/s390/s390-32/memset.S: New asm code.
6083         * sysdeps/s390/s390-32/memcmp.S: New asm code.
6084
6085 2012-07-17  Marek Polacek  <polacek@redhat.com>
6086
6087         [BZ #14349]
6088         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
6089         * sysdeps/s390/s390-64/configure.in: Likewise.
6090         * sysdeps/sparc/configure.in: Likewise.
6091         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
6092         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
6093         * sysdeps/i386/configure.in: Likewise.
6094         * sysdeps/x86_64/configure.in: Likewise.
6095         * sysdeps/sh/configure.in: Likewise.
6096         * sysdeps/s390/s390-32/configure: Regenerated.
6097         * sysdeps/s390/s390-64/configure: Likewise.
6098         * sysdeps/x86_64/configure: Likewise.
6099         * sysdeps/sh/configure: Likewise.
6100         * sysdeps/powerpc/powerpc64/configure: Likewise.
6101         * sysdeps/powerpc/powerpc32/configure: Likewise.
6102         * sysdeps/sparc/configure: Likwise.
6103         * sysdeps/i386/configure: Likewise.
6104
6105         * elf/dl-open.c: Comment fixes.
6106
6107 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
6108
6109         * Makefile [CXX] (check-data): Remove.
6110         [CXX] (c++-types.data): New vpath directive.
6111         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
6112         vpath.  Do not allow for C++ type data being missing.
6113         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
6114         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
6115         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
6116         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
6117         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
6118         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
6119         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
6120         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
6121         ... here.
6122         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
6123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
6124         ... here.
6125         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
6126         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
6127         ... here.
6128         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
6129         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
6130         ... here.
6131         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
6132         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
6133         ... here.
6134         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
6135         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
6136         ... here.
6137         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
6138         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
6139         ... here.
6140         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
6141         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
6142
6143         * elf/tls-macros.h (TLS_LE): Move architecture-specific
6144         definitions to architecture-specific files.
6145         (TLS_IE): Likewise.
6146         (TLS_LD): Likewise.
6147         (TLS_GD): Likewise.
6148         * sysdeps/i386/tls-macros.h: New file.
6149         * sysdeps/powerpc/tls-macros.h: Likewise.
6150         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
6151         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
6152         * sysdeps/sh/tls-macros.h: Likewise.
6153         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
6154         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
6155         * sysdeps/x86_64/tls-macros.h: Likewise.
6156
6157 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
6158
6159         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
6160         zero value for regular exit case.
6161
6162         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
6163         (__start_context): Preserve zero value for regular exit case.
6164
6165 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
6166             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6167
6168         * manual/setjmp.texi (setcontext): Clarify normal process
6169         termination when uc_link is the null pointer.
6170         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
6171         exit call.
6172
6173 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
6174
6175         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
6176         preprocessor.  Test for each exception mask separately.
6177
6178 2012-07-16  Andreas Jaeger  <aj@suse.de>
6179
6180         * po/ru.po: Update from translation team.
6181
6182 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
6183
6184         * conform/data/string.h-data (NULL): Use macro-constant.  Require
6185         equal to 0.
6186         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6187         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6188         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
6189         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
6190         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6191
6192 2012-07-13  Andreas Jaeger  <aj@suse.de>
6193
6194         * po/fr.po: Update from translation team.
6195
6196 2012-07-12  Marek Polacek  <polacek@redhat.com>
6197
6198         [BZ #14173]
6199         * math/libm-test.inc (yn_test): Add test for BZ #14173.
6200         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
6201         loop condition.
6202
6203 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
6204
6205         [BZ #13717]
6206         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
6207         Change to 2.4.1 where previously 2.4.0.
6208         * sysdeps/unix/sysv/linux/configure: Regenerated.
6209         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
6210         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
6211         version.
6212         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
6213         (__ASSUME_AT_CLKTCK): Remove.
6214         (__ASSUME_AT_PAGESIZE): Likewise.
6215         (__ASSUME_AT_XID): Likewise.
6216         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
6217         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
6218         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
6219         unconditionally.
6220         (HAVE_AUX_PAGESIZE): Likewise.
6221         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
6222         [__ASSUME_AT_CLKTCK]: Make code unconditional.
6223         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
6224
6225 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
6226
6227         [BZ #14307]
6228         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
6229         the temporary buffer used to invoke __gethostbyname2_r,
6230         __gethostbyaddr_r and gethostbyname4_r to make room for struct
6231         host_data / struct gaih_addrtuple.
6232         * resolv/nss_dns/dns-host.c (global scope): Move definition of
6233         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
6234         header file nss/nsswitch.h.
6235         * nss/nsswitch.h (global scope): Add definition of implementation
6236         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
6237         resolv/nss_dns/dns-host.c).
6238
6239 2012-07-11  Andreas Jaeger  <aj@suse.de>
6240
6241         * po/fr.po: Update from translation team.
6242
6243         * po/sv.po: Update from translation team
6244         * po/fr.po: Another update from translation team.
6245
6246 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6247
6248         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
6249         for subnormals or multiply small sinh result by itself.
6250         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
6251         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6252
6253 2012-07-11  David S. Miller  <davem@davemloft.net>
6254
6255         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6256
6257 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
6258
6259         [BZ #14347]
6260         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
6261         (INTERNAL_MARK): Shift it here.
6262
6263 2012-07-10  Marek Polacek  <polacek@redhat.com>
6264
6265         [BZ #14151]
6266         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
6267         libc_cv_asm_global_directive with .globl.
6268         * configure: Regenerated.
6269         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
6270         with .globl.
6271         * sysdeps/i386/configure: Regenerated.
6272         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
6273         with .globl.
6274         * sysdeps/x86_64/configure: Regenerated.
6275         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
6276         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
6277         * elf/tst-unique2mod2.c: Likewise.
6278         * elf/tst-unique2mod1.c: Likewise.
6279         * elf/tst-unique1mod2.c: Likewise.
6280         * elf/tst-unique1mod1.c: Likewise.
6281         * sysdeps/s390/s390-32/sysdep.h: Likewise.
6282         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
6283         * sysdeps/s390/s390-64/sysdep.h: Likewise.
6284         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
6285         * sysdeps/mach/sysdep.h: Likewise.
6286         * sysdeps/i386/sysdep.h: Likewise.
6287         * sysdeps/i386/i386-mcount.S: Likewise.
6288         * sysdeps/x86_64/_mcount.S: Likewise.
6289         * sysdeps/x86_64/sysdep.h: Likewise.
6290         * sysdeps/sh/_mcount.S: Likewise.
6291         * sysdeps/sh/sysdep.h: Likewise.
6292         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
6293         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
6294         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
6295         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
6296         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
6297         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
6298         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
6299         * locale/localeinfo.h: Likewise.
6300         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
6301         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
6302
6303 2012-07-09  Roland McGrath  <roland@hack.frob.com>
6304
6305         [BZ #14336]
6306         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
6307         system".
6308         * manual/message.texi (The Uniforum approach): Likewise.
6309         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
6310         (glibc iconv Implementation): Likewise.
6311
6312 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
6313
6314         [BZ #14337]
6315         * math/s_clog.c (__clog): Avoid scaling a value down where that
6316         could result in underflow.
6317         * math/s_clog10.c (__clog10): Likewise.
6318         * math/s_clog10f.c (__clog10f): Likewise.
6319         * math/s_clog10l.c (__clog10l): Likewise.
6320         * math/s_clogf.c (__clogf): Likewise.
6321         * math/s_clogl.c (__clogl): Likewise.
6322         * math/libm-test.inc (clog_test): Add more tests.
6323         (clog10_test): Likewise.
6324         * sysdeps/i386/fpu/libm-test-ulps: Update.
6325         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6326
6327 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
6328
6329         [BZ #14283]
6330         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
6331         by 7 not 8 to examine high bit of fractional part.
6332
6333         [BZ #14042]
6334         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
6335         for call to __mcount_internal.
6336         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
6337         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
6338         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
6339
6340 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
6341
6342         [BZ #14154]
6343         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
6344         approximation for values within 0x1p-13f of an odd multiple of
6345         pi/4.
6346         * math/libm-test.inc (tan_test): Do not allow spurious underflow
6347         exception.  Add more tests.
6348         * sysdeps/i386/fpu/libm-test-ulps: Update.
6349
6350         [BZ #6778]
6351         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
6352         inputs and return -1 for them.  Do not check for +Inf in case not
6353         reachable for +Inf.
6354         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
6355         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
6356         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
6357         and return -1 for them.  Do not check for +Inf in case not
6358         reachable for +Inf.
6359         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
6360         define.
6361         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
6362         and return -1 for them.  Do not check for +Inf in case not
6363         reachable for +Inf.
6364         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
6365         spurious underflow.
6366         * sysdeps/i386/fpu/libm-test-ulps: Update.
6367         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6368
6369 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
6370
6371         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
6372
6373 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
6374
6375         [BZ #14157]
6376         [BZ #14331]
6377         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
6378         could result in spurious underflow.  Scale down values above
6379         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
6380         * math/s_csqrtf.c (__csqrtf): Likewise.
6381         * math/s_csqrtl.c (__csqrtl): Likewise.
6382         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
6383         spurious underflow.
6384         * sysdeps/i386/fpu/libm-test-ulps: Update.
6385         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6386
6387 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
6388
6389         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
6390         xopen-msg.sed.
6391         * catgets/xopen-msg.awk: New file.
6392         * catgets/xopen-msg.sed: Removed.
6393
6394         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
6395         po2text.sed.
6396         * intl/po2test.awk: New file.
6397         * intl/po2test.sed: Removed.
6398
6399 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
6400
6401         [BZ #14328]
6402         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
6403         or multiply small sinh result by itself.
6404         * math/s_ctanf.c (__ctanf): Likewise.
6405         * math/s_ctanh.c (__ctanh): Likewise.
6406         * math/s_ctanhf.c (__ctanhf): Likewise.
6407         * math/s_ctanhl.c (__ctanhl): Likewise.
6408         * math/s_ctanl.c (__ctanl): Likewise.
6409         * math/libm-test.inc (ctan_test_tonearest): New function.
6410         (ctan_test_towardzero): Likewise.
6411         (ctan_test_downward): Likewise.
6412         (ctan_test_upward): Likewise.
6413         (ctanh_test_tonearest): Likewise.
6414         (ctanh_test_towardzero): Likewise.
6415         (ctanh_test_downward): Likewise.
6416         (ctanh_test_upward): Likewise.
6417         (main): Call these new functions.
6418         * sysdeps/i386/fpu/libm-test-ulps: Update.
6419         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6420
6421 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
6422
6423         * .gitignore: Delete /ports entry.
6424
6425 2012-07-03  Andreas Jaeger  <aj@suse.de>
6426
6427         * po/bg.po: Update from translation team.
6428         * po/cs.po: Likewise.
6429         * po/de.po: Likewise.
6430         * po/hr.po: Likewise.
6431         * po/nl.pl: Likewise.
6432         * po/pl.po: Likewise.
6433         * po/vi.po: Likewise.
6434
6435 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
6436
6437         * Makeconfig [!+link] (+link-before-libc): New variable.
6438         [!+link] (+link-after-libc): Likewise.
6439         [!+link] (+link-tests): Likewise.
6440         [!+link] (+link): Define in terms of $(+link-before-libc) and
6441         $(+link-after-libc).
6442         [!+link-static] (+link-static-before-libc): New variable.
6443         [!+link-static] (+link-static-after-libc): Likewise.
6444         [!+link-static] (+link-static-tests): Likewise.
6445         [!+link-static] (+link-static): Define in terms of
6446         $(+link-static-before-libc) and $(+link-static-after-libc).
6447         [build-shared] (link-libc-before-gnulib): New variable.
6448         [build-shared] (link-libc-tests): Likewise.
6449         [build-shared] (link-libc): Define in terms of
6450         $(link-libc-before-gnulib).
6451         [!build-shared] (link-libc-tests): New variable.
6452         (link-libc-static-tests): New variable.
6453         [!gnulib] (gnulib-arch): New variable.
6454         [!gnulib] (gnulib-tests): Likewise.
6455         [!gnulib] (static-gnulib-arch): Likewise.
6456         [!gnulib] (static-gnulib-tests): Likewise.
6457         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
6458         Define with "=" instead of ":=".
6459         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
6460         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
6461         * Rules (binaries-all-notests): New variable.
6462         (binaries-all-tests): Likewise.
6463         (binaries-static-notests): Likewise.
6464         (binaries-static-tests): Likewise.
6465         (binaries-all): Define using $(binaries-all-notests) and
6466         $(binaries-all-tests).
6467         (binaries-static): Define using $(binaries-static-notests) and
6468         $(binaries-static-tests).
6469         (binaries-shared-tests): New variable.
6470         (binaries-shared-notests): Likewise.
6471         (binaries-shared): Remove variable.
6472         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
6473         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
6474         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
6475         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
6476         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
6477         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
6478         * elf/Makefile (sln-modules): New variable.
6479         (extra-objs): Add $(sln-modules:=.o).
6480         (ldconfig-modules): Add static-stubs.
6481         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
6482         * elf/static-stubs.c: New file.
6483
6484         [BZ #14283]
6485         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
6486         by 7 not 8 to examine high bit of fractional part.  Use volatile
6487         variables when splitting into final array of floats if
6488         __FLT_EVAL_METHOD__ != 0.
6489         * math/libm-test.inc (cos_test): Add another test.
6490         (sin_test): Likewise.
6491         * sysdeps/i386/fpu/libm-test-ulps: Update.
6492
6493         [BZ #14273]
6494         * math/libm-test.inc (cosh_test): Add more tests.
6495
6496         * version.h (RELEASE): Set to "development".
6497         (VERSION): Set to "2.16.90".
6498
6499 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
6500
6501         * NEWS: Update copyright. Remove last-updated date.
6502         Mention math library bug fixes and timezone data changes.
6503         * README: Mention GNU/Hurd, x32, and HPPA support status.
6504
6505 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
6506
6507         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
6508
6509 2012-06-27  Andreas Jaeger  <aj@suse.de>
6510
6511         * manual/contrib.texi (Contributors): Add Samuel Thibault.
6512
6513 2012-06-25  Andreas Jaeger  <aj@suse.de>
6514
6515         * sysdeps/s390/fpu/libm-test-ulps: Update.
6516
6517 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
6518             Thomas Schwinge  <thomas@codesourcery.com>
6519
6520         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
6521         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
6522         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
6523         fanotify_mark.
6524
6525 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
6526
6527         * sysdeps/mach/start.c: Remove file.
6528         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
6529         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
6530         * sysdeps/sh/init-first.c: Likewise.
6531
6532         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
6533         registers for frame unwinding purposes, add CFI directives.
6534         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
6535         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
6536         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
6537         Likewise.
6538
6539         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
6540         __fortify_fail returning.
6541         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
6542
6543         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
6544         sysdeps/sh/____longjmp_chk.S.
6545         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
6546         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
6547         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
6548         (gen-as-const-headers): Append sigaltstack-offsets.sym.
6549
6550         * sysdeps/sh/abort-instr.h: New file.
6551         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
6552         process in case exit returns.
6553
6554         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
6555         initialize the GOT register before use.
6556
6557         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
6558         calculation of ARGC > 4.
6559
6560         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
6561         meaningful names to some local labels.
6562
6563 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
6564             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6565
6566         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
6567         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
6568         (__arch_compare_and_exchange_val_16_acq): Likewise.
6569         (__arch_compare_and_exchange_val_32_acq): Likewise.
6570         (atomic_exchange_and_add): Fix gUSA sequence.
6571         (atomic_add): Likewise.
6572         (atomic_add_negative): Likewise.
6573         (atomic_add_zero): Likewise.
6574         (atomic_bit_test_set): Likewise.
6575
6576 2012-06-22  Andreas Schwab  <schwab@redhat.com>
6577
6578         [BZ #13579]
6579         * include/link.h (struct link_map): Add l_free_initfini.
6580         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
6581         l_initfini.
6582         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
6583         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
6584         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
6585         set.
6586
6587 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
6588
6589         * configure.in: Use AC_LANG_SOURCE.
6590         * configure: Regenerate.
6591
6592 2012-06-22  Roland McGrath  <roland@hack.frob.com>
6593
6594         * configure.in (libc_cv_localstatedir): New substituted variable.
6595         * configure: Regenerated.
6596         * config.make.in (localstatedir): New variable, substituted from
6597         libc_cv_localstatedir.
6598         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
6599         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
6600         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
6601         * sysdeps/gnu/configure: Regenerated.
6602
6603 2012-06-21  Jeff Law  <law@redhat.com>
6604
6605         [BZ #14277]
6606         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
6607         free.  Simplify list management for _LIBC case.
6608
6609 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
6610
6611         [BZ #14273]
6612         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
6613         Clear sign bit of 64-bit integer value before comparing against
6614         overflow value.
6615
6616         * sysdeps/mach/configure: Regenerated.
6617
6618 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
6619
6620         [BZ #14278]
6621         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
6622
6623 2012-06-21  Jeff Law  <law@redhat.com>
6624
6625         [BZ #13882]
6626         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
6627         uint16_t for elements in the "seen" array to avoid char overflows.
6628         * elf/dl-fini.c (_dl_sort_fini): Likewise.
6629         * elf/dl-open.c (dl_open_worker): Likewise.
6630
6631 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
6632
6633         * scripts/list-sources.sh: Scan PORTS for translations.
6634         * po/libc.pot: Regenerated.
6635
6636 2012-06-21  Andreas Jaeger  <aj@suse.de>
6637
6638         [BZ #12194]
6639         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
6640         warning.
6641         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
6642         * bits/byteswap-16.h (__bswap_16): Likewise.
6643         * bits/byteswap.h (__bswap_constant_16): Likewise.
6644
6645 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
6646
6647         [BZ #14117]
6648         * sysdeps/i386/fpu_control.h: Removed.
6649         * sysdeps/x86_64/fpu_control.h: Moved to ...
6650         * sysdeps/x86/fpu_control.h: Here.
6651
6652         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
6653         (_FPU_SETCW): Likewise.
6654
6655 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
6656
6657         [BZ #14117]
6658         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
6659         * sysdeps/x86/fpu/bits/mathinline.h: This.
6660         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
6661
6662         [BZ #14050]
6663         [BZ #14117]
6664         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
6665         functions if __x86_64__ is defined.
6666
6667 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
6668
6669         * string/endian.h: Add !__ASSEMBLER__ condition for including
6670         conversion interfaces.
6671
6672 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
6673
6674         [BZ #14241]
6675         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
6676         of ABS(x) in calculating zero to negative powers other than odd
6677         integers.
6678         * math/libm-test.inc (pow_test): Add more tests.
6679
6680 2012-06-15  Andreas Jaeger  <aj@suse.de>
6681
6682         * manual/contrib.texi (Contributors): Update entry of Liubov
6683         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
6684         Machado Filho.
6685
6686 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
6687
6688         * string/string.h: Add __wur to GNU version of strerror_r.
6689
6690 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
6691
6692         [BZ #14229]
6693         * string/Makefile (tests): Add tst-strtok_r.
6694         * string/tst-strtok_r.c: New file.
6695         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
6696         RAX_LP/RDX_LP on SAVE_PTR.
6697
6698 2012-06-14  Roland McGrath  <roland@hack.frob.com>
6699
6700         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
6701
6702 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
6703
6704         * libm_test.inc (csqrt_test): Allow more spurious underflow
6705         exceptions.
6706         (j0_test): Likewise.
6707         (j1_test): Likewise.
6708         (y0_test): Likewise.
6709         (y1_test): Likewise.
6710
6711 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
6712
6713         * po/Makefile (libc.pot): Use UTF-8 charset.
6714
6715 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
6716
6717         [BZ #14210]
6718         Suppress sign-conversion warning from FD_SET.
6719         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
6720         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
6721         not unsigned long int.
6722         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
6723
6724 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
6725
6726         [BZ #14050]
6727         [BZ #14117]
6728         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
6729         __extern_always_inline instead of __extern_inline.
6730         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
6731         (__signbit): Likewise.
6732         (__signbitl): Support C++ namespace.
6733         (lrintf): New inline function.
6734         (lrint): Likewise.
6735         (llrintf): Likewise.
6736         (llrint): Likewise.
6737         (fmaxf): Likewise.
6738         (fmax): Likewise.
6739         (fminf): Likewise.
6740         (fmin): Likewise.
6741         (rint): Likewise.
6742         (rintf): Likewise.
6743         (ceil): Likewise.
6744         (ceilf): Likewise.
6745         (floor): Likewise.
6746         (floorf): Likewise.
6747         (nearbyint): Likewise.
6748         (nearbyintf): Likewise.
6749
6750 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
6751
6752         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
6753         non-default versions.
6754
6755 2012-06-11  Roland McGrath  <roland@hack.frob.com>
6756
6757         [BZ #14218]
6758         * manual/argp.texi (Argp): Reword argp_parse description slightly.
6759
6760 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
6761
6762         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
6763         (FE_UPWARD, FE_DOWNWARD): Don't define.
6764         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
6765         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6766
6767         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
6768         reading it.
6769         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6770         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6771
6772 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6773
6774         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
6775         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
6776         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
6777         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
6778
6779 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
6780
6781         [BZ #14117]
6782         * sysdeps/i386/fpu/bits/fenv.h: Removed.
6783         * sysdeps/i386/fpu/Implies: New file.
6784         * sysdeps/x86_64/fpu/Implies: Likewise.
6785         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
6786         * sysdeps/x86/fpu/bits/fenv.h: This.
6787
6788         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
6789         __SSE_MATH__.
6790
6791 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
6792
6793         [BZ #14134]
6794         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
6795         character 0xffff that matches the last element of the
6796         conversion table.
6797
6798 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6799
6800         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
6801         fmodl commit.
6802
6803 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6804
6805         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
6806         values higher than 25.6283.
6807
6808 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6809
6810         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
6811         subnormal exponent extraction and add some __builtin_expect.
6812         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
6813         Fix for subnormal mantissa calculation.
6814
6815 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
6816
6817         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
6818         cpu2 is -1 and errno is not ENOSYS.
6819
6820 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
6821
6822         [BZ #14117]
6823         * sysdeps/i386/i486/bits/string.h: Renamed to ...
6824         * sysdeps/x86/bits/string.h: This.
6825         * sysdeps/x86_64/bits/string.h: Removed.
6826
6827         * sysdeps/i386/i486/bits/string.h: Define inline functions only
6828         if not compiling for x86-64, but compiling for >= i486.
6829
6830         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
6831         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
6832
6833         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
6834         New macro from Linux kernel 3.4.0.
6835         (FP_XSTATE_MAGIC2): Likewise.
6836         (FP_XSTATE_MAGIC2_SIZE): Likewise.
6837         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
6838         (struct _fpx_sw_bytes): New struct.
6839         (struct _xsave_hdr): Likewise.
6840         (struct _ymmh_state): Likewise.
6841         (struct _xstate): Likewise.
6842
6843         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
6844         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
6845         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
6846         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
6847         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
6848         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
6849
6850         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
6851         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
6852         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
6853         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
6854         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
6855         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
6856
6857 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6858
6859         [BZ #13743]
6860         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
6861         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
6862         (sysdep_headers): Include sys/platform/ppc.h.
6863         * sysdeps/powerpc/test-gettimebase.c: Test for
6864         __ppc_get_timebase() to catch future ISA opcode/insn changes.
6865         * manual/Makefile (appendices): Include platform.texi.
6866         * manual/contrib.texi (Contributors): Update @node pointers.
6867         * manual/maint.texi (Maintenance): Likewise.
6868         (Platform): New node.
6869         * manual/platform.texi: New file.  Document the new features.
6870
6871 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6872             Jakub Jelinek  <jakub@redhat.com>
6873
6874         [BZ #14188]
6875         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
6876         where __builtin_expect is unavailable.
6877
6878 2012-06-03  David S. Miller  <davem@davemloft.net>
6879
6880         * stdlib/longlong.h: Updated from GCC.
6881
6882 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
6883
6884         [BZ #14042]
6885         * sysdeps/powerpc/powerpc32/mcount.c: New file.
6886         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
6887         __mcount_internal.
6888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
6889         (GLIBC_2.16): Likewise.
6890
6891 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6892
6893         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
6894
6895 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6896
6897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
6898         (default-abi): New variable.
6899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
6900         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
6901         variable.
6902         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
6903         Likewise.
6904         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
6905         Likewise.
6906         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
6907         Likewise.
6908
6909         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
6910         definition.  Document in comment.
6911
6912 2012-06-01  David S. Miller  <davem@davemloft.net>
6913
6914         * stdlib/longlong.h: Updated from GCC.
6915
6916 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6917
6918         [BZ #14117]
6919         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
6920         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
6921         sys/debugreg.h sys/io.h here.
6922         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
6923         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
6924         sys/io.h.
6925         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
6926         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
6927         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
6928         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
6929         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
6930         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
6931
6932         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
6933         Define only if __x86_64__ is defined.
6934
6935 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6936
6937         [BZ #14048]
6938         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
6939         Use int64_t for variable i.
6940         * math/libm-test.inc (fmod_test): Add more tests.
6941
6942         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
6943         z computation is not scheduled after fetestexcept.
6944         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
6945         Use math_force_eval instead of asm to ensure calculation scheduled
6946         before exception test.
6947         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
6948         Ensure a1 + u.d computation is not scheduled after fetestexcept.
6949
6950 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
6951
6952         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
6953         computation is not scheduled after fetestexcept.
6954
6955 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6956
6957         [BZ #14117]
6958         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
6959         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
6960
6961 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6962
6963         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
6964         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
6965
6966 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6967
6968         [BZ #14117]
6969         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
6970         <bits/wordsize.h>.
6971         (__WCHAR_MIN): Support __WORDSIZE == 64.
6972         (__WCHAR_MAX): Likewise.
6973
6974         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
6975         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
6976
6977         [BZ #14183]
6978         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
6979         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
6980
6981         [BZ #14117]
6982         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
6983         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
6984
6985         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
6986         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
6987
6988         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
6989         Defined to 1 if __x86_64__ isn't defined.
6990         (_STAT_VER_LINUX_OLD): New.
6991         (st_atime): Remove duplicate.
6992         (st_mtime): Likewise.
6993         (st_ctime): Likewise.
6994
6995 2012-05-31  David S. Miller  <davem@davemloft.net>
6996
6997         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
6998         entries.
6999
7000 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7001
7002         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
7003         gen-libm-test.pl.
7004
7005         [BZ #14132]
7006         * elf/dl-reloc.c: Include <_itoa.h>.
7007         (_dl_reloc_bad_type): Remove use of INTUSE.
7008         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
7009         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
7010         * stdio-common/psiginfo.c (psiginfo): Likewise.
7011         * stdio-common/psignal.c (psignal): Likewise.
7012         * string/strsignal.c (strsignal): Likewise.
7013         * include/signal.h (_sys_siglist): Declare hidden proto.
7014         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
7015         INTVARDEF with libc_hidden_data_def.
7016         * stdio-common/itoa-udigits.c: Likewise.
7017         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
7018         (_itoa_lower_digits_internal): Remove declaration.
7019         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
7020         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
7021         (_sys_sigabbrev_internal): Remove aliases.
7022         (_sys_siglist): Define hidden alias.
7023
7024 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
7025
7026         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7027         bits/sysctl.h.
7028
7029 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
7030
7031         [BZ #14117]
7032         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
7033         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
7034
7035         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
7036         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
7037         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
7038         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
7039         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
7040         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
7041
7042         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
7043         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
7044         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
7045
7046         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
7047         with __addr.
7048         (insw): Likewise.
7049         (insl): Likewise.
7050         (outsb): Likewise.
7051         (outsw): Likewise.
7052         (outsl): Likewise.
7053
7054         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
7055         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
7056         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
7057
7058         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
7059         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
7060         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
7061         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
7062         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
7063         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
7064
7065         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
7066         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
7067
7068         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
7069         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
7070
7071         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
7072         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
7073         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
7074
7075         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
7076         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
7077         to ...
7078         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
7079
7080         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
7081         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
7082         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
7083
7084         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
7085         for x86-64.
7086         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
7087
7088 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
7089
7090         * math/math.h (M_El): Use two more decimal places.
7091         (M_LOG2El): Likewise.
7092         (M_LOG10El): Likewise.
7093         (M_LN2l): Likewise.
7094         (M_LN10l): Likewise.
7095         (M_PIl): Likewise.
7096         (M_PI_2l): Likewise.
7097         (M_PI_4l): Likewise.
7098         (M_1_PIl): Likewise.
7099         (M_2_PIl): Likewise.
7100         (M_2_SQRTPIl): Likewise.
7101         (M_SQRT2l): Likewise.
7102         (M_SQRT1_2l): Likewise.
7103
7104 2012-05-31  David S. Miller  <davem@davemloft.net>
7105
7106         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
7107         values between float registers.
7108         * sysdeps/sparc/sparc64/memset.S: Likewise.
7109         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
7110
7111 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
7112
7113         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
7114         -D_FORTIFY_SOURCE=1.
7115         (CPPFLAGS-tst-longjmp_chk.c): Define.
7116         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
7117         (CPPFLAGS-tst-longjmp_chk2.c): Define.
7118         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
7119         CFLAGS-tst-wchar-h.c.
7120
7121 2012-05-31  Marek Polacek  <polacek@redhat.com>
7122
7123         [BZ #14132]
7124         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
7125         __endmntent_internal): Remove declaration.
7126         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
7127         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
7128         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
7129
7130 2012-05-30  David S. Miller  <davem@davemloft.net>
7131
7132         * sysdeps/sparc/sparc32/soft-fp/q_util.c
7133         (___Q_simulate_exceptions): Use real FP ops rather than writing
7134         into the %fsr.
7135         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
7136         Likewise.
7137
7138 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
7139
7140         [BZ #14117]
7141         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
7142         * sysdeps/x86/bits/xtitypes.h: This.
7143
7144         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
7145         * sysdeps/x86/bits/wordsize.h: This.
7146
7147         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
7148         * sysdeps/x86/bits/huge_vall.h: This.
7149
7150         * sysdeps/i386/bits/select.h: Removed.
7151         * sysdeps/x86_64/bits/select.h: Renamed to ...
7152         * sysdeps/x86/bits/select.h: This.
7153
7154         * sysdeps/i386/bits/setjmp.h: Removed.
7155         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
7156         * sysdeps/x86/bits/setjmp.h: This.
7157
7158         * sysdeps/i386/bits/mathdef.h: Removed.
7159         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
7160         * sysdeps/x86/bits/mathdef.h: This.
7161
7162 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
7163
7164         [BZ #14132]
7165         * include/sys/socket.h (__connect_internal)
7166         (__libc_sa_len_internal): Remove declaration.
7167         (__connect, __libc_sa_len): Declare hidden_proto.
7168         (SA_LEN): Remove use of INTUSE.
7169         * socket/connect.c: Add libc_hidden_def.
7170         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
7171         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
7172         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
7173         alias.
7174         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7175         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7176         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
7177         of adding _internal alias.
7178
7179 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
7180
7181         [BZ #14117]
7182         * sysdeps/i386/bits/link.h: Removed.
7183         * sysdeps/i386/bits/linkmap.h: Likewise.
7184         * sysdeps/x86_64/bits/link.h: Renamed to ...
7185         * sysdeps/x86/bits/link.h: This.
7186         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
7187         * sysdeps/x86/bits/linkmap.h: This.
7188
7189         * sysdeps/i386/bits/endian.h: Removed.
7190         * sysdeps/x86_64/bits/endian.h: Renamed to ...
7191         * sysdeps/x86/bits/endian.h: This.
7192
7193         * sysdeps/i386/bits/byteswap.h: Removed.
7194         * sysdeps/i386/bits/byteswap-16.h: Likewise.
7195         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
7196         * sysdeps/x86/bits/byteswap.h: This.
7197         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
7198         * sysdeps/x86/bits/byteswap-16.h: This.
7199         * sysdeps/i386/Implies: Add x86.
7200         * sysdeps/x86_64/Implies: Likewise.
7201
7202 2012-05-30  David S. Miller  <davem@davemloft.net>
7203
7204         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
7205         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
7206         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
7207         (FP_TRAPPING_EXCEPTIONS): Define.
7208         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
7209         (FP_TRAPPING_EXCEPTIONS): Define.
7210         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
7211         subnormals only when inexact has been signalled or underflow
7212         exceptions are enabled.
7213         (_FP_PACK_CANONICAL): Likewise.
7214
7215 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
7216
7217         [BZ #14183]
7218         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
7219         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
7220
7221 2012-05-30  Richard Henderson  <rth@twiddle.net>
7222
7223         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
7224         with #ifndef NOT_IN_libc.
7225
7226         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
7227         marked to avoid plt entry.
7228
7229 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
7230
7231         [BZ #14112]
7232         * Makeconfig (default-abi): New macro.
7233         (abi-includes): Likewise.
7234         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
7235         $(abi-$(default-abi)-lib-soname) for soname if defined.
7236         ($(common-objpfx)gnu/lib-names.stmp): Generate from
7237         abi-variants.
7238         * Makefile (installed-stubs): Likewise.
7239         * include/stubs-biarch.h: Removed.
7240         * scripts/lib-names.awk: Only handle one library at a time.
7241         * scripts/soversions.awk: Remove WORDSIZE support.
7242         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
7243         entries.
7244         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
7245         Removed.
7246         (syscall-list-default-condition): Likewise.
7247         (syscall-list-default-condition): Likewise.
7248         (syscall-list-includes): Likewise.
7249         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
7250         syscall-list-* with abi-*.  Handle undefined abi-variants.
7251         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
7252         * sysdeps/unix/sysv/linux/i386/Implies: New file.
7253         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
7254         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
7255         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
7256         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
7257         Removed.
7258         (syscall-list-32-options): Likewise.
7259         (syscall-list-32-condition): Likewise.
7260         (syscall-list-64-options): Likewise.
7261         (syscall-list-64-condition): Likewise.
7262         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
7263         macro.
7264         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
7265         Renamed to ...
7266         (abi-*): This.
7267         (abi-64-ld-soname): New macro.
7268         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
7269         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
7270         Renamed to ...
7271         (abi-*): This.
7272         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
7273         * sysdeps/x86_64/x32/shlib-versions: Likewise.
7274
7275 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
7276
7277         * sysdeps/unix/sysv/linux/kernel-features.h
7278         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
7279         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
7280         include <kernel-features.h>.
7281         [!__NR_ftruncate64]: Remove conditional code.
7282         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
7283         [__NR_ftruncate64]: Make code unconditional.
7284         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
7285         * sysdeps/unix/sysv/linux/truncate64.c: Do not
7286         include <kernel-features.h>.
7287         [!__NR_ftruncate64]: Remove conditional code.
7288         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
7289         [__NR_ftruncate64]: Make code unconditional.
7290         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
7291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
7292         include <kernel-features.h>.
7293         [!__NR_ftruncate64]: Remove conditional code.
7294         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
7295         [__NR_ftruncate64]: Make code unconditional.
7296         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
7297         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
7298         include <kernel-features.h>.
7299         [!__NR_ftruncate64]: Remove conditional code.
7300         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
7301         [__NR_ftruncate64]: Make code unconditional.
7302         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
7303
7304         * configure.in (libc_cv_fpie): Weaken to a compile test using
7305         LIBC_TRY_CC_OPTION.
7306         * configure: Regenerated.
7307
7308 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7309
7310         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
7311         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
7312         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
7313         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7314         Refreshed.
7315         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
7316         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
7317         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
7318         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
7319         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
7320         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7321         Refreshed.
7322
7323 2012-05-27  David S. Miller  <davem@davemloft.net>
7324
7325         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
7326         (___Q_zero): New.
7327         (__Q_simulate_exceptions): Return void.  Change to simulate
7328         exceptions by writing into the %fsr.
7329         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
7330         (__Qp_handle_exceptions): Likewise.
7331         (numbers): Delete.
7332         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
7333         __Qp_handle_exceptions.
7334         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
7335         __Qp_handle_exceptions.
7336         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
7337         as unused and give dummy FP_RND_NEAREST initializer.
7338         (FP_INHIBIT_RESULTS): Define.
7339         (___Q_simulate_exceptions): Update declaration.
7340         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
7341         formatting.
7342         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
7343         as unused and give dummy FP_RND_NEAREST initializer.
7344         (__Qp_handle_exceptions): Update declaration.
7345         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
7346         formatting.
7347
7348 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
7349
7350         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
7351         the temporary FPU control word.
7352         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
7353         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
7354         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
7355         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
7356         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
7357         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
7358         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
7359         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
7360         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
7361         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
7362         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
7363
7364 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7365
7366         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
7367         fields.
7368
7369 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
7370
7371         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
7372         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
7373         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
7374         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
7375         Likewise.
7376         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
7377         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
7378         Likewise.
7379
7380 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
7381
7382         * po/h.po: Update from translation team.
7383
7384 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
7385
7386         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
7387
7388         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
7389         handling of denormals.
7390         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7391         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
7392         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
7393         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
7394         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7395         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
7396         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
7397         Likewise.
7398
7399 2012-05-26  Marek Polacek  <polacek@redhat.com>
7400
7401         [BZ #14152]
7402         * math/libm-test.inc (fma_test): Don't always expect underflow
7403         exception.
7404
7405 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7406
7407         [BZ #12416]
7408         * elf/tst-execstack.c: Include stackinfo.h.
7409         (do_test): Adjust test case to ensure that pthread_getattr_np
7410         behaviour remains the same after marking stack executable.
7411
7412 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
7413
7414         * sysdeps/unix/sysv/linux/kernel-features.h
7415         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
7416         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
7417         kernel-features.h.
7418         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
7419         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
7420         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
7421         kernel-features.h.
7422         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
7423         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
7424
7425 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
7426
7427         * configure.in: Define the default includes to being none.
7428         * configure: Regenerated.
7429
7430 2012-05-25  Roland McGrath  <roland@hack.frob.com>
7431
7432         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
7433         * sysdeps/x86_64/setjmp.S: Likewise.
7434         * sysdeps/i386/bsd-setjmp.S: Likewise.
7435         * sysdeps/i386/bsd-_setjmp.S: Likewise.
7436         * sysdeps/i386/setjmp.S: Likewise.
7437         * sysdeps/i386/__longjmp.S: Likewise.
7438         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
7439         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
7440
7441         * include/stap-probe.h: New file.
7442         * configure.in: Handle --enable-systemtap.
7443         * configure: Regenerated.
7444         * config.h.in (USE_STAP_PROBE): New #undef.
7445         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
7446         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
7447         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
7448
7449 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
7450
7451         [BZ #13717]
7452         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
7453         to 2.4.0 where earlier.
7454         * sysdeps/unix/sysv/linux/configure: Regenerated.
7455         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
7456         <kernel-features.h>.
7457         [__ASSUME_32BITUIDS]: Make code unconditional.
7458         [!__ASSUME_32BITUIDS]: Remove conditional code.
7459         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
7460         <kernel-features.h>.
7461         [__ASSUME_32BITUIDS]: Make code unconditional.
7462         [!__ASSUME_32BITUIDS]: Remove conditional code.
7463         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
7464         [__ASSUME_32BITUIDS]: Make code unconditional.
7465         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
7466         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
7467         <kernel-features.h>.
7468         [__ASSUME_32BITUIDS]: Make code unconditional.
7469         [!__ASSUME_32BITUIDS]: Remove conditional code.
7470         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
7471         <kernel-features.h>.
7472         [__ASSUME_32BITUIDS]: Make code unconditional.
7473         [!__ASSUME_32BITUIDS]: Remove conditional code.
7474         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
7475         <kernel-features.h>.
7476         [__ASSUME_32BITUIDS]: Make code unconditional.
7477         [!__ASSUME_32BITUIDS]: Remove conditional code.
7478         * sysdeps/unix/sysv/linux/i386/getgroups.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/getresgid.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/getresuid.c: Do not include
7487         <kernel-features.h>.
7488         [__ASSUME_32BITUIDS]: Make code unconditional.
7489         [!__ASSUME_32BITUIDS]: Remove conditional code.
7490         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
7491         <kernel-features.h>.
7492         [__ASSUME_32BITUIDS]: Make code unconditional.
7493         [!__ASSUME_32BITUIDS]: Remove conditional code.
7494         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
7495         <kernel-features.h>.
7496         [__ASSUME_32BITUIDS]: Make code unconditional.
7497         [!__ASSUME_32BITUIDS]: Remove conditional code.
7498         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
7499         <kernel-features.h>.
7500         [__ASSUME_32BITUIDS]: Make code unconditional.
7501         [!__ASSUME_32BITUIDS]: Remove conditional code.
7502         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
7503         <kernel-features.h>.
7504         [__ASSUME_32BITUIDS]: Make code unconditional.
7505         [!__ASSUME_32BITUIDS]: Remove conditional code.
7506         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
7507         <kernel-features.h>.
7508         [__NR_setresgid] (__setresgid): Do not declare.
7509         [__ASSUME_32BITUIDS]: Make code unconditional.
7510         [!__ASSUME_32BITUIDS]: Remove conditional code.
7511         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
7512         <kernel-features.h>.
7513         [__NR_setresuid] (__setresuid): Do not declare.
7514         [__ASSUME_32BITUIDS]: Make code unconditional.
7515         [!__ASSUME_32BITUIDS]: Remove conditional code.
7516         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
7517         <kernel-features.h>.
7518         [__ASSUME_32BITUIDS]: Make code unconditional.
7519         [!__ASSUME_32BITUIDS]: Remove conditional code.
7520         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
7521         <kernel-features.h>.
7522         [__ASSUME_32BITUIDS]: Make code unconditional.
7523         [!__ASSUME_32BITUIDS]: Remove conditional code.
7524         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
7525         <kernel-features.h>.
7526         [__ASSUME_32BITUIDS]: Make code unconditional.
7527         [!__ASSUME_32BITUIDS]: Remove conditional code.
7528         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
7529         <kernel-features.h>.
7530         [__ASSUME_32BITUIDS]: Make code unconditional.
7531         [!__ASSUME_32BITUIDS]: Remove conditional code.
7532         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
7533         <kernel-features.h>.
7534         [__ASSUME_32BITUIDS]: Make code unconditional.
7535         [!__ASSUME_32BITUIDS]: Remove conditional code.
7536         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
7537         <kernel-features.h>.
7538         [__ASSUME_32BITUIDS]: Make code unconditional.
7539         [!__ASSUME_32BITUIDS]: Remove conditional code.
7540         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
7541         <kernel-features.h>.
7542         [__ASSUME_32BITUIDS]: Make code unconditional.
7543         [!__ASSUME_32BITUIDS]: Remove conditional code.
7544         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
7545         <kernel-features.h>.
7546         [__ASSUME_32BITUIDS]: Make code unconditional.
7547         [!__ASSUME_32BITUIDS]: Remove conditional code.
7548         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
7549         <kernel-features.h>.
7550         [__ASSUME_32BITUIDS]: Make code unconditional.
7551         [!__ASSUME_32BITUIDS]: Remove conditional code.
7552         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
7553         <kernel-features.h>.
7554         [__ASSUME_32BITUIDS]: Make code unconditional.
7555         [!__ASSUME_32BITUIDS]: Remove conditional code.
7556         * sysdeps/unix/sysv/linux/kernel-features.h
7557         (__ASSUME_SETRESUID_SYSCALL): Remove.
7558         (__ASSUME_SETRESGID_SYSCALL): Likewise.
7559         (__ASSUME_32BITUIDS): Likewise.
7560         (__ASSUME_LDT_WORKS): Likewise.
7561         (__ASSUME_O_DIRECTORY): Likewise.
7562         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
7563         architecture but not kernel version.
7564         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
7565         (__ASSUME_MMAP2_SYSCALL): Likewise.
7566         (__ASSUME_STAT64_SYSCALL): Likewise.
7567         (__ASSUME_IPC64): Likewise.
7568         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
7569         <kernel-features.h>.
7570         [__ASSUME_32BITUIDS]: Make code unconditional.
7571         [!__ASSUME_32BITUIDS]: Remove conditional code.
7572         * sysdeps/unix/sysv/linux/opendir.c: Do not include
7573         <kernel-features.h>.
7574         [__ASSUME_O_DIRECTORY]: Make code unconditional.
7575         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
7576         132096]: Remove conditional code.
7577         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
7578         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
7579         <kernel-features.h>.
7580         [__ASSUME_32BITUIDS]: Make code unconditional.
7581         [!__ASSUME_32BITUIDS]: Remove conditional code.
7582         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
7583         <kernel-features.h>.
7584         [__ASSUME_32BITUIDS]: Make code unconditional.
7585         [!__ASSUME_32BITUIDS]: Remove conditional code.
7586         * sysdeps/unix/sysv/linux/setegid.c: Do not include
7587         <kernel-features.h>.
7588         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
7589         unconditional.
7590         (__setresgid): Do not declare.
7591         [__ASSUME_32BITUIDS]: Make code unconditional.
7592         [!__ASSUME_32BITUIDS]: Remove conditional code.
7593         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
7594         <kernel-features.h>.
7595         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
7596         unconditional.
7597         (__setresuid): Do not declare.
7598         [__ASSUME_32BITUIDS]: Make code unconditional.
7599         [!__ASSUME_32BITUIDS]: Remove conditional code.
7600         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
7601         <kernel-features.h>.
7602         [__ASSUME_32BITUIDS]: Make code unconditional.
7603         [!__ASSUME_32BITUIDS]: Remove conditional code.
7604         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
7605         <kernel-features.h>.
7606         [__ASSUME_32BITUIDS]: Make code unconditional.
7607         [!__ASSUME_32BITUIDS]: Remove conditional code.
7608
7609 2012-05-25  Richard Henderson  <rth@twiddle.net>
7610
7611         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
7612         dl_hwcap to ifunc resolver.
7613         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
7614         elf_ifunc_invoke.
7615         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
7616         dl_hwcap to ifunc resolver.
7617         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
7618
7619 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
7620
7621         [BZ #14153]
7622         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
7623         for |x| <= 2**-26, not 2**-57.
7624         * math/libm-test.inc (acos_test): Do not allow spurious underflow
7625         exception.
7626
7627 2012-05-24  Jeff Law  <law@redhat.com>
7628
7629         * stdio-common/Makefile (tests): Add bug25.
7630         * stdio-common/bug25.c: New test.
7631
7632 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7633
7634         [BZ #13576]
7635         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
7636         multiple of MALLOC_ALIGNMENT in size.
7637         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
7638
7639 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
7640
7641         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
7642         Require >= 256.
7643         (FILENAME_MAX): Use macro-int-constant.
7644         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
7645         (_IOFBF): Use macro-int-constant.
7646         (_IOLBF): Likewise.
7647         (_IONBF): Likewise.
7648         (SEEK_CUR): Likewise.
7649         (SEEK_END): Likewise.
7650         (SEEK_SET): Likewise.
7651         (TMP_MAX): Likewise.
7652         (EOF): Use macro-int-constant.  Require < 0.
7653         (NULL): Use macro-constant.  Require == 0.
7654         (stdin): Require type to be FILE *.
7655         (stdout): Likewise.
7656         (stderr): Likewise.
7657         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
7658         macro-int-constant.
7659         (EXIT_SUCCESS): Likewise.
7660         (NULL): Use macro-constant.  Require == 0.
7661         (RAND_MAX): Use macro-int-constant.
7662         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
7663         [C99-based standards] (strtof): Require function.
7664         [C99-based standards] (strtold): Likewise.
7665         [C99-based standards] (strtoll): Likewise.
7666         [C99-based standards] (strtoull): Likewise.
7667         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
7668         [ISO || ISO99 || ISO11] (limits.h): Likewise.
7669         [ISO || ISO99 || ISO11] (math.h): Likewise.
7670         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
7671         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
7672         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7673
7674 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
7675
7676         [BZ #14132]
7677         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
7678         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
7679         * intl/dgettext.c (DCGETTEXT): Likewise.
7680         * intl/gettext.c (DCGETTEXT): Likewise.
7681         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
7682         * posix/regex_internal.h (gettext): Likewise.
7683         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
7684         Remove declaration.
7685         * include/argz.h (__argz_count_internal)
7686         (__argz_stringify_internal): Remove declaration.
7687         (__argz_count, __argz_stringify): Declare hidden proto.
7688         * intl/dcgettext.c: Remove use of INTDEF.
7689         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
7690         * string/argz-stringify.c: Likewise.
7691         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
7692         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
7693         Declare hidden proto.
7694         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
7695         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
7696         Declare hidden proto.
7697         * include/stdio.h (__asprintf_internal): Don't declare.
7698         (__asprintf): Don't define as macro.  Declare hidden proto.
7699         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
7700         (__fsetlocking): Declare hidden proto.
7701         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
7702         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
7703         hidden proto.
7704         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
7705         (_IO_setlinebuf): Remove use of INTUSE.
7706         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
7707         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
7708         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
7709         Remove declaration.
7710         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
7711         (_IO_do_flush): Remove use of INTUSE.
7712         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
7713         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
7714         (_IO_adjust_column, _IO_least_wmarker)
7715         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
7716         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
7717         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
7718         (_IO_default_doallocate, _IO_wdefault_doallocate)
7719         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
7720         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
7721         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
7722         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
7723         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
7724         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
7725         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
7726         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
7727         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
7728         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
7729         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
7730         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
7731         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
7732         proto.
7733         (_IO_flush_all_internal, _IO_adjust_column_internal)
7734         (_IO_default_uflow_internal, _IO_default_finish_internal)
7735         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
7736         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
7737         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
7738         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
7739         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
7740         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
7741         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
7742         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
7743         (_IO_file_close_internal, _IO_file_close_it_internal)
7744         (_IO_file_underflow_internal, _IO_file_overflow_internal)
7745         (_IO_file_init_internal, _IO_file_attach_internal)
7746         (_IO_file_fopen_internal, _IO_file_read_internal)
7747         (_IO_file_sync_internal, _IO_file_seek_internal)
7748         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
7749         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
7750         (_IO_str_underflow_internal, _IO_str_overflow_internal)
7751         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
7752         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
7753         (_IO_list_all_internal, _IO_link_in_internal)
7754         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
7755         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
7756         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
7757         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
7758         (_IO_do_write_internal, _IO_padn_internal)
7759         (_IO_getline_info_internal, _IO_getline_internal)
7760         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
7761         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
7762         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
7763         (_IO_vfscanf_internal, _IO_vfprintf_internal)
7764         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
7765         (_IO_init_internal, _IO_un_link_internal): Don't declare.
7766         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
7767         with libc_hidden_ver, remove use of INTUSE.
7768         * libio/genops.c: Likewise.
7769         * libio/freopen.c: Likewise.
7770         * libio/freopen64.c: Likewise.
7771         * libio/iofclose.c: Likewise.
7772         * libio/iofdopen.c: Likewise.
7773         * libio/iofflush.c: Likewise.
7774         * libio/iofflush_u.c: Likewise.
7775         * libio/iofgets.c: Likewise.
7776         * libio/iofgets_u.c: Likewise.
7777         * libio/iofopen.c: Likewise.
7778         * libio/iofopncook.c: Likewise.
7779         * libio/iofread.c: Likewise.
7780         * libio/iofread_u.c: Likewise.
7781         * libio/ioftell.c: Likewise.
7782         * libio/iofwrite.c: Likewise.
7783         * libio/iogetline.c: Likewise.
7784         * libio/iogets.c: Likewise.
7785         * libio/iogetwline.c: Likewise.
7786         * libio/iopadn.c: Likewise.
7787         * libio/iopopen.c: Likewise.
7788         * libio/ioseekoff.c: Likewise.
7789         * libio/ioseekpos.c: Likewise.
7790         * libio/iosetbuffer.c: Likewise.
7791         * libio/iosetvbuf.c: Likewise.
7792         * libio/ioungetc.c: Likewise.
7793         * libio/ioungetwc.c: Likewise.
7794         * libio/iovdprintf.c: Likewise.
7795         * libio/iovsprintf.c: Likewise.
7796         * libio/iovsscanf.c: Likewise.
7797         * libio/memstream.c: Likewise.
7798         * libio/obprintf.c: Likewise.
7799         * libio/oldfileops.c: Likewise.
7800         * libio/oldiofclose.c: Likewise.
7801         * libio/oldiofdopen.c: Likewise.
7802         * libio/oldiofopen.c: Likewise.
7803         * libio/oldiopopen.c: Likewise.
7804         * libio/oldstdfiles.c: Likewise.
7805         * libio/putc.c: Likewise.
7806         * libio/setbuf.c: Likewise.
7807         * libio/setlinebuf.c: Likewise.
7808         * libio/stdfiles.c: Likewise.
7809         * libio/strops.c: Likewise.
7810         * libio/vasprintf.c: Likewise.
7811         * libio/vscanf.c: Likewise.
7812         * libio/vsnprintf.c: Likewise.
7813         * libio/vswprintf.c: Likewise.
7814         * libio/wfiledoalloc.c: Likewise.
7815         * libio/wfileops.c: Likewise.
7816         * libio/wgenops.c: Likewise.
7817         * libio/wmemstream.c: Likewise.
7818         * libio/wstrops.c: Likewise.
7819         * libio/__fpurge.c: Likewise.
7820         * libio/__fsetlocking.c: Likewise.
7821         * assert/assert.c: Likewise.
7822         * debug/fgets_chk.c: Likewise.
7823         * debug/fgets_u_chk.c: Likewise.
7824         * debug/fread_chk.c: Likewise.
7825         * debug/fread_u_chk.c: Likewise.
7826         * debug/gets_chk.c: Likewise.
7827         * debug/obprintf_chk.c: Likewise.
7828         * debug/vasprintf_chk.c: Likewise.
7829         * debug/vdprintf_chk.c: Likewise.
7830         * debug/vsnprintf_chk.c: Likewise.
7831         * debug/vsprintf_chk.c: Likewise.
7832         * malloc/mtrace.c: Likewise.
7833         * misc/error.c: Likewise.
7834         * misc/syslog.c: Likewise.
7835         * stdio-common/asprintf.c: Likewise.
7836         * stdio-common/fxprintf.c: Likewise.
7837         * stdio-common/getw.c: Likewise.
7838         * stdio-common/isoc99_fscanf.c: Likewise.
7839         * stdio-common/isoc99_scanf.c: Likewise.
7840         * stdio-common/isoc99_vfscanf.c: Likewise.
7841         * stdio-common/isoc99_vscanf.c: Likewise.
7842         * stdio-common/isoc99_vsscanf.c: Likewise.
7843         * stdio-common/printf-prs.c: Likewise.
7844         * stdio-common/printf_fp.c: Likewise.
7845         * stdio-common/printf_fphex.c: Likewise.
7846         * stdio-common/printf_size.c: Likewise.
7847         * stdio-common/putw.c: Likewise.
7848         * stdio-common/scanf.c: Likewise.
7849         * stdio-common/sprintf.c: Likewise.
7850         * stdio-common/tmpfile.c: Likewise.
7851         * stdio-common/vfprintf.c: Likewise.
7852         * stdio-common/vfscanf.c: Likewise.
7853         * stdlib/strfmon_l.c: Likewise.
7854         * sunrpc/openchild.c: Likewise.
7855         * sunrpc/xdr_stdio.c: Likewise.
7856         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
7857         * sysdeps/mach/hurd/tmpfile.c: Likewise.
7858
7859 2012-05-24  Roland McGrath  <roland@hack.frob.com>
7860
7861         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7862
7863         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
7864         in the third column, to generate for the shared library an IFUNC
7865         that uses _dl_vdso_vsym.
7866         * Makerules (COMPILE.c, compile-stdin.c): New variables.
7867         * Makeconfig (object-suffixes-noshared): New variable.
7868
7869         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
7870         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
7871         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
7872         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
7873
7874         [BZ #14132]
7875         * include/sys/time.h (__gettimeofday): Remove macro.
7876         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
7877         * time/gettimeofday.c (__gettimeofday): Remove #undef.
7878         Remove INTDEF.
7879         (__gettimeofday): Add libc_hidden_def.
7880         (gettimeofday): Add libc_hidden_weak.
7881         * sysdeps/mach/gettimeofday.c: Likewise.
7882         * sysdeps/posix/gettimeofday.c: Likewise.
7883         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
7884         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
7885         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
7886         (__gettimeofday_internal): Remove strong_alias.
7887         (__gettimeofday): Add libc_hidden_def.
7888         (gettimeofday): Add libc_hidden_weak.
7889         * sysdeps/unix/syscalls.list (gettimeofday):
7890         Remove __gettimeofday_internal alias.
7891
7892 2012-05-24  Daniel Jacobowitz  <drow@false.org>
7893             H.J. Lu  <hongjiu.lu@intel.com>
7894
7895         [BZ #12495]
7896         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
7897         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
7898         (largebin_index_32_big): New.
7899         (largebin_index): Use it for 16-byte alignment.
7900         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
7901         correction with front_misalign.
7902
7903 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7904
7905         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
7906         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
7907         Likewise.
7908         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
7909         Likewise.
7910         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
7911         Likewise.
7912         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
7913         Likewise.
7914         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
7915         Likewise.
7916         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
7917         Likewise.
7918         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
7919         Likewise.
7920         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
7921         Likewise.
7922         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
7923         Likewise.
7924         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
7925         Likewise.
7926         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
7927         Likewise.
7928         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
7929         Likewise.
7930
7931         * scripts/data/c++-types-x32-linux-gnu.data: New file.
7932         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
7933
7934 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
7935
7936         [BZ #10846]
7937         [BZ #14036]
7938         * math/libm-test.inc (exp_test): Add test from bug 14036.
7939         (pow_test): Add test from bug 10846.
7940
7941         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
7942         and other flags.
7943         (special_function): Do not include flags in test name.
7944         (parse_args): Likewise.
7945         * sysdeps/i386/fpu/libm-test-ulps: Update.
7946         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7947         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7948         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7949         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7950
7951         * math/gen-libm-test.pl (%beautify): Add entries for underflow
7952         exceptions.
7953         * math/libm-test.inc ("Philosophy"): Update comment about
7954         exception testing.
7955         (UNDERFLOW_EXCEPTION): New macro.
7956         (UNDERFLOW_EXCEPTION_OK): Likewise.
7957         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
7958         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
7959         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
7960         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
7961         (INVALID_EXCEPTION_OK): Update value.
7962         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
7963         (OVERFLOW_EXCEPTION_OK): Likewise.
7964         (IGNORE_ZERO_INF_SIGN): Likewise.
7965         (test_exceptions): Handle underflow exceptions.
7966         (acos_test): Update for underflow exception expectations.
7967         (cexp_test): Likewise.
7968         (clog_test): Likewise.
7969         (clog10_test): Likewise.
7970         (csqrt_test): Likewise.
7971         (ctan_test): Likewise.
7972         (ctanh_test): Likewise.
7973         (exp_test): Likewise.
7974         (exp10_test): Likewise.
7975         (exp2_test): Likewise.
7976         (expm1_test): Likewise.
7977         (fma_test): Likewise.
7978         (j0_test): Likewise.
7979         (jn_test): Likewise.
7980         (nexttoward_test): Likewise.
7981         (pow_test): Likewise.
7982         (scalbn_test): Likewise.
7983         (scalbln_test): Likewise.
7984         (tan_test): Likewise.
7985         (y1_test): Likewise.
7986         * sysdeps/i386/fpu/libm-test-ulps: Update.
7987         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7988
7989 2012-05-23  David S. Miller  <davem@davemloft.net>
7990
7991         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7992         (__libc_sigaction): Remove unused local variables.
7993
7994 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7995
7996         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
7997
7998 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7999
8000         mktime: avoid signed integer overflow
8001         * time/mktime.c (__mktime_internal): Do not mishandle the case
8002         where diff == INT_MIN.
8003
8004         mktime: simplify computation of average
8005         * time/mktime.c (ranged_convert): Use new time_t_avg function
8006         instead of rolling our own (probably-slower) code.
8007
8008         mktime: do not assume signed right shift propagates sign bit
8009         * time/mktime.c (isdst_differ): New static function.
8010         (__mktime_internal): No need to normalize tm_isdst now.
8011         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
8012         tm_isdst values.
8013
8014         mktime: merge another wrapv change from gnulib
8015         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
8016         from some compilers.
8017
8018         mktime: remove incorrect attempt at unusual arithmetics
8019         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
8020         The code didn't really work on such machines anyway.
8021         (TYPE_MINIMUM): Assume two's complement.
8022         (twos_complement_arithmetic): Verify that long_int and time_t
8023         are two's complement (or unsigned, in the latter case).
8024
8025         mktime: check signed shifts on long_int and time_t, too
8026         * time/mktime.c (SHR): Check that shifts work as desired
8027         on the types long_int and time_t too, as SHR is used on
8028         such types.
8029
8030         mktime: do not assume 'long' is wide enough
8031         * time/mktime.c (verify): Move decl up.
8032         (long_int): New type.
8033         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
8034         to remove assumption in the code that 'long' is wide enough to
8035         store year values.  This assumption is not true on x32 and on
8036         some non-glibc platforms.
8037
8038         mktime: merge wrapv change from gnulib
8039         * time/mktime.c (WRAPV): New macro.
8040         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
8041         (guess_time_tm, __mktime_internal): Do not assume that signed
8042         integer overflow wraps around; modern compilers generate code
8043         where this assumption is no longer valid.
8044
8045 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
8046
8047         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
8048         Replace "jmp L(pseudo_end)" with "ret".
8049         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
8050         Likewise.
8051
8052 2012-05-23  Andreas Jaeger  <aj@suse.de>
8053
8054         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
8055         * sysdeps/unix/sysv/linux/poll.c: Remove file.
8056
8057 2012-05-23  Andreas Jaeger  <aj@suse.de>
8058             Maximilian Attems  <max@stro.at>
8059
8060         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
8061         New macros.
8062
8063 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
8064
8065         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
8066         code so that pseudo_end is just ret and the stack pointer is
8067         correct also for static library in error case.
8068
8069 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
8070
8071         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
8072         move to syscalls.list.
8073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
8074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
8075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
8076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
8077
8078         * manual/install.texi (Running make install): Do not mention Linux
8079         kernel version for which pt_chown is not needed.
8080         (Linux): Do not mention problems with nscd with 2.0 kernels.
8081         * INSTALL: Regenerated.
8082
8083 2012-05-23  Andreas Jaeger  <aj@suse.de>
8084
8085         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
8086         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
8087         macro.
8088         * sysdeps/unix/sysv/linux/s390/bits/mman.h
8089         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
8090         * sysdeps/unix/sysv/linux/sh/bits/mman.h
8091         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
8092         * sysdeps/unix/sysv/linux/i386/bits/mman.h
8093         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
8094         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
8095         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
8096         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
8097         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
8098         * sysdeps/unix/sysv/linux/bits/in.h
8099         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
8100
8101 2012-05-22  Roland McGrath  <roland@hack.frob.com>
8102
8103         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
8104         (PREPARE_VERSION): Just use assert instead, it will be elided
8105         under [NDEBUG] anyway.
8106
8107 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
8108
8109         * sysdeps/unix/sysv/linux/Makefile: Include
8110         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
8111         (sysdep_routines): Remove sysctl.
8112         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
8113         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
8114         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
8115         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
8116         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
8117
8118 2012-05-22  Andreas Jaeger  <aj@suse.de>
8119
8120         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
8121         that pseudo_end is just ret and the stack pointer is correct also
8122         for static library in error case.
8123
8124 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
8125
8126         [BZ #14122]
8127         * nss/nsswitch.c (defconfig_entries): New variable.
8128         (__nss_database_lookup): Don't leak defconfig entries.
8129         (nss_parse_service_list): Don't leak on error paths.
8130         (free_database_entries): New function.
8131         (free_defconfig): New function.
8132         (free_mem): Move common code to free_database_entries.
8133
8134 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
8135
8136         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
8137         Add arch_prctl.
8138         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
8139
8140         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
8141         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
8142         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
8143         New macro.
8144         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
8145         (INTERNAL_SYSCALL_TYPES): Likewise.
8146         (LOAD_ARGS_TYPES_[1-6]): Likewise.
8147         (LOAD_REGS_TYPES_[1-6]): Likewise.
8148         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
8149         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
8150
8151 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8152
8153         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
8154         copysignl for GLIBC_2_0.
8155         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
8156         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
8157         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
8158         logbl for GLIBC_2_0.
8159         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
8160         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
8161
8162 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
8163
8164         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
8165         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
8166
8167         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
8168         Use "neg %eax".
8169
8170         * time/mktime.c: Update copyright years.
8171
8172 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
8173
8174         mktime: merge comment-quoting-style change from gnulib
8175         * time/mktime.c: Quote 'like this' in comments.
8176         The GNU coding standards suggest that we no longer quote `like this',
8177         as "`" and "'" are typically rendered asymmetrically nowadays.
8178         The typical gnulib style is to quote 'like this' when quoting
8179         code, and "like this" when quoting English.
8180
8181         * time/mktime.c (compile-command): Add "-I.".
8182
8183         mktime: merge mktime-internal.h change from gnulib
8184         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
8185
8186         mktime: merge time_r change from gnulib
8187         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
8188
8189         mktime: merge DEBUG change from gnulib
8190         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
8191         case system <time.h> has a #define.
8192
8193         mktime: merge <sys/types.h> change from gnulib
8194         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
8195         since <time.t> is now guaranteed to define time_t.
8196
8197         mktime: merge HAVE_CONFIG_H change from gnulib
8198         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
8199
8200 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
8201
8202         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
8203         Use "neg %eax".
8204
8205         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
8206         __rlim_t cast.
8207         (struct rusage): Use anonymous union to pad each field to
8208         __syscall_slong_t.
8209
8210 2012-05-21  David S. Miller  <davem@davemloft.net>
8211
8212         * Makefules (o-iterator): Remove .s cases.
8213         (compile-command.s): Delete.
8214         (COMPILE.s): Delete.
8215         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
8216
8217 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
8218
8219         * configure.in (libc_cv_predef_stack_protector): Only consider
8220         "foobar" and "__stack_chk_fail" lines in libc_undefs.
8221         * configure: Regenerated.
8222
8223 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
8224
8225         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
8226         New macro.  Use R*LP on int and pointer.
8227         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
8228         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
8229         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
8230         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
8231
8232         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
8233         [__WORDSIZE_TIME64_COMPAT32] instead of
8234         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
8235         (struct utmp): Likewise.
8236         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
8237         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
8238         Renamed to ...
8239         (__WORDSIZE_TIME64_COMPAT32): This.
8240         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
8241         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
8242         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
8243         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
8244         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
8245         (__WORDSIZE_TIME64_COMPAT32): New macro.
8246
8247 2012-05-21  Andreas Jaeger  <aj@suse.de>
8248
8249         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
8250         only if [SHARED]. Add prototype for __wcschr_ia32.
8251
8252 2012-05-21  Roland McGrath  <roland@hack.frob.com>
8253
8254         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
8255         of %rbp unmolested in the jmp_buf while mangling the low bits.
8256         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
8257         unmolested high bits of %rbp while demangling the low bits.
8258         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
8259
8260 2012-05-21  Andreas Jaeger  <aj@suse.de>
8261
8262         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
8263         * sunrpc/svc_simple.c: Use it for registerrpc.
8264         * sunrpc/xcrypt.c: Use it for passwd2des.
8265
8266         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
8267
8268 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
8269
8270         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
8271         Don't define if [__SYSCALL_WORDSIZE != 32].
8272         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
8273         New macro.
8274
8275 2012-05-21  Bruno Haible  <bruno@clisp.org>
8276             Andreas Jaeger  <aj@suse.de>
8277
8278         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
8279         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
8280         inptr and inend for must_buffer_ch.
8281         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
8282         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
8283         * stdio-common/Makefile (tests): Remove bug15.
8284         (bug15-ENV): Remove macro.
8285         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
8286         anymore.
8287
8288 2012-05-19  Andreas Jaeger  <aj@suse.de>
8289             Roland McGrath  <roland@hack.frob.com>
8290
8291         * manual/contrib.texi: Completely rewritten. It contains now an
8292         alphabetical list of contributors and their contributions.
8293
8294 2012-05-21  Richard Henderson  <rth@twiddle.net>
8295
8296         * misc/getauxval.c (__getauxval): Use unsigned long int.
8297         * misc/sys/auxv.h: Include <sys/cdefs.h>.
8298         (getauxval): Use unsigned long int.
8299
8300 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
8301
8302         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
8303
8304 2012-05-21  Roland McGrath  <roland@hack.frob.com>
8305
8306         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
8307         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
8308         __alignof__ (long double).
8309
8310 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8311
8312         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8313
8314 2012-05-20  Richard Henderson  <rth@twiddle.net>
8315
8316         * misc/getauxval.c: New file.
8317         * misc/sys/auxv.h: New file.
8318         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
8319         (routines): Add getauxval.
8320         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
8321         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
8322         * elf/dl-sysdep.c (_dl_auxv): Remove.
8323         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
8324         * elf/dl-support.c (_dl_auxv): New variable.
8325         (_dl_aux_init): Initialize it.
8326         * manual/startup.texi (Auxiliary Vector): New node.
8327         * sysdeps/generic/bits/hwcap.h: New file.
8328         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
8329         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
8330         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
8331         * sysdeps/sparc/sysdep.h: ... here.  Include it.
8332         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
8333         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
8334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8335         Update.
8336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
8337         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
8338         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
8339         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
8340         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
8341         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
8342         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
8343         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
8344
8345 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8346
8347         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8348
8349 2012-05-19  David S. Miller  <davem@davemloft.net>
8350
8351         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8352
8353 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
8354
8355         [BZ #14123]
8356         * math/s_ccosh.c: Include <float.h>
8357         (__ccosh): Avoid internal overflow calculating sinh and cosh
8358         values before multiplying by sin and cos values.
8359         * math/s_ccoshf.c: Likewise.
8360         * math/s_ccoshl.c: Likewise.
8361         * math/s_csin.c: Likewise.
8362         * math/s_csinf.c: Likewise.
8363         * math/s_csinl.c: Likewise.
8364         * math/s_csinh.c: Likewise.
8365         * math/s_csinhf.c: Likewise.
8366         * math/s_csinhl.c: Likewise.
8367         * math/libm-test.inc (ccos_test): Add more tests.
8368         (ccosh_test): Likewise.
8369         (csin_test): Likewise.
8370         (csinh_test): Likewise.
8371         * sysdeps/i386/fpu/libm-test-ulps: Update.
8372         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8373
8374 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8375
8376         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
8377         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
8378
8379         * sysdeps/x86_64/x32/_itoa.h: Add comment.
8380
8381 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
8382
8383         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
8384         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
8385         * sysdeps/powerpc/soft-fp/Versions: Likewise.
8386         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
8387         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
8388         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
8389         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
8390         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
8391         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
8392         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
8393         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
8394         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
8395         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
8396         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
8397         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
8398         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
8399         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
8400         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
8401         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
8402         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
8403         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
8404         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
8405         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
8406         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
8407         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
8408         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
8409         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
8410         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
8411         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
8412         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
8413         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
8414
8415 2012-05-18  Andreas Jaeger  <aj@suse.de>
8416
8417         * csu/.gitignore: Delete.
8418
8419 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8420
8421         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
8422         (timex): Use __syscall_slong_t.
8423
8424 2012-05-18  Andreas Jaeger  <aj@suse.de>
8425             Carlos O'Donell  <carlos_odonell@mentor.com>
8426
8427         * manual/install.texi (Configuring and compiling): Update
8428         description about files modified in the source directory.
8429         * INSTALL: Regenerated.
8430
8431 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8432
8433         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
8434         value.  Use "or" to set return value to -1.
8435         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
8436         negate return value.
8437
8438 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8439
8440         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
8441         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
8442         failure if the compiler has Graphite support disabled.
8443         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
8444         Likewise.
8445         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
8446         CFLAGS-memmove.c): Likewise.
8447         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
8448         Likewise.
8449
8450 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8451
8452         * sysdeps/x86_64/x32/_itoa.h: New file.
8453
8454         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
8455         getdents system call only if kernel and user dirents have the
8456         same d_ino and d_off.
8457
8458         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
8459         LLONG_MAX != LONG_MAX.
8460         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8461         (_fitoa_word): Likewise.
8462
8463         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
8464         years.
8465         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
8466         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
8467         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
8468
8469         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
8470         include <bits/wordsize.h>.  Check __x86_64__ instead of
8471         __WORDSIZE.
8472         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
8473         if __x86_64__ is defined.  Use anonymous union on fpstate.
8474
8475         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
8476         anonymous union.
8477
8478 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
8479
8480         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
8481         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
8482         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
8483         Refer to _rtld_local_ro instead of _rtld_global_ro.
8484         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
8485         Likewise.
8486         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
8487         Likewise.
8488         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
8489         Likewise.
8490         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
8491         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
8492         of _rtld_global, and rtld_progname instead of _dl_argv[0].
8493
8494         * sysdeps/powerpc/powerpc32/dl-machine.c
8495         (__elf_machine_runtime_setup) [PROF]: Don't reference
8496         _dl_prof_resolve.
8497
8498 2012-05-18  Andreas Jaeger  <aj@suse.de>
8499
8500         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
8501         function only available for GCCs before 3.4 since GCC 3.4
8502         introduced a builtin.
8503         (lrint): Likewise.
8504         (llrintf): Likewise.
8505         (llrint): Likewise.
8506         (fmaxf): Likewise.
8507         (fmax): Likewise.
8508         (fminf): Likewise.
8509         (fmin): Likewise.
8510         (rint): Likewise.
8511         (rintf): Likewise.
8512         (nearbyint): Likewise.
8513         (nearbyintf): Likewise.
8514         (ceil): Likewise.
8515         (ceilf): Likewise.
8516         (floor): Likewise.
8517         (floorf): Likewise.
8518
8519 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
8520
8521         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
8522         on both fields and cast pointer to __syscall_ulong_t.
8523
8524         * bits/types.h (__fsword_t): New type.
8525         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
8526         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
8527         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8528         (__FSWORD_T_TYPE): Likewise.
8529         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8530         (__FSWORD_T_TYPE): Likewise.
8531         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8532         (__FSWORD_T_TYPE): Likewise.
8533         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
8534         (__FSWORD_T_TYPE): Likewise.
8535         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
8536         __SWORD_TYPE with __fsword_t.
8537         (statfs64): Likewise.
8538
8539 2012-05-17  David S. Miller  <davem@davemloft.net>
8540
8541         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
8542
8543 2012-05-17  Andreas Jaeger  <aj@suse.de>
8544
8545         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
8546         warning.
8547
8548 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
8549
8550         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
8551
8552 2012-05-17  Andreas Jaeger  <aj@suse.de>
8553
8554         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
8555         when it is used.
8556
8557 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
8558
8559         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
8560
8561 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
8562
8563         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
8564         * sysdeps/x86_64/tst-mallocalign1.c: New file.
8565
8566 2012-05-17  Andreas Jaeger  <aj@suse.de>
8567             Carlos O'Donell  <carlos_odonell@mentor.com>
8568
8569         [BZ #14059]
8570         * sysdeps/x86_64/multiarch/init-arch.h
8571         (bit_YMM_Usable): Rename to...
8572         (bit_AVX_Usable): ... this.
8573         (bit_FMA4_Usable): New macro.
8574         (bit_XMM_state): New macro.
8575         (bit_YMM_state): New macro.
8576         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
8577         [__ASSEMBLER__] (index_AVX_Usable): ... this.
8578         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
8579         (CPUID_OSXSAVE): New macro.
8580         (CPUID_AVX): New macro.
8581         (CPUID_FMA4): New macro.
8582         (index_YMM_Usable): Rename to...
8583         (index_AVX_Usable): ... this.
8584         (HAS_AVX): Use HAS_ARCH_FEATURE.
8585         (HAS_FMA4): Likewise.
8586         (HAS_YMM_USABLE): Remove.
8587         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8588         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
8589         are present.
8590         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
8591         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
8592         * sysdeps/x86_64/multiarch/Makefile: Likewise.
8593         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
8594         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
8595
8596 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
8597
8598         * math/libm-test.c: Support platforms without multiple rounding modes.
8599         * math/bug-nextafter.c: Support platforms without FP exceptions.
8600         * math/bug-nexttoward.c: Likewise.
8601         * math/test-fenv.c: Likewise.
8602         * math/test-misc.c: Likewise.
8603         * stdlib/bug-getcontext.c: Likewise.
8604
8605 2012-05-17  Andreas Jaeger  <aj@suse.de>
8606
8607         * manual/examples/search.c (critter_cmp): Change signature to
8608         avoid warnings.
8609         * manual/string.texi (Collation Functions): Likewise.
8610
8611 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
8612
8613         * bits/types.h: Fold copyright years.
8614         * bits/typesizes.h: Likewise.
8615         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
8616         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
8617         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
8618         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
8619         * time/time.h: Likewise.
8620
8621 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
8622
8623         [BZ #208]
8624         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
8625         in instead of returning them.  Return void.
8626         (__libc_mallinfo): Accumulate over all arenas.
8627         (__malloc_stats): Adjust for change in int_mallinfo interface.
8628
8629 2012-05-16  Roland McGrath  <roland@hack.frob.com>
8630
8631         [BZ #10375]
8632         * configure.in (NM): Add AC_CHECK_TOOL for it.
8633         (libc_extra_cflags): New substituted variable.
8634         Check for -fstack-protector being used implicitly.
8635         * configure: Regenerated.
8636         * config.make.in (config-extra-cflags): New variable,
8637         gets @libc_extra_cflags@.
8638         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
8639
8640         [BZ #10375]
8641         * configure.in: Check for _FORTIFY_SOURCE being predefined.
8642         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
8643         * configure: Regenerated.
8644         * config.make.in (CPPUNDEFS): New substituted variable.
8645         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
8646         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
8647         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
8648
8649 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
8650
8651         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
8652         (mq_attr): Use __syscall_slong_t.
8653
8654 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
8655
8656         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
8657         Check __x86_64__ instead of __WORDSIZE.
8658         (_STAT_VER_LINUX): Likewise.
8659         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
8660         __syscall_ulong_t and __syscall_slong_t.
8661         (stat64): Likewise.
8662
8663 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
8664
8665         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
8666
8667 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
8668
8669         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
8670
8671 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
8672
8673         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
8674         __syscall_ulong_t.
8675
8676         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
8677         include <bits/wordsize.h>.  Check __x86_64__ instead of
8678         __WORDSIZE.
8679         (greg_t): Use "__extension__ long long int" if __x86_64__ is
8680         defined.
8681         (mcontext_t): Replace "unsigned long" with "unsigned long long".
8682
8683         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
8684         include <bits/wordsize.h>.  Check __x86_64__ instead of
8685         __WORDSIZE.
8686         (user_regs_struct): Use "__extension__ unsigned long long"
8687         instead of "unsigned long" if __x86_64__ is defined.
8688         (user): Likewise.  Pad after pointer field if __ILP32__ is
8689         defined.
8690
8691 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
8692
8693         * configure.in (makeinfo): Require version 4.5 or later.  Allow
8694         versions 5 to 9.
8695         * configure: Regenerated.
8696         * manual/install.texi (texinfo): Increase version requirement to
8697         4.5 or later.
8698         * INSTALL: Regenerated.
8699
8700         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
8701
8702 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
8703
8704         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
8705
8706         * sysdeps/x86_64/x32/ffs.c: New file.
8707
8708         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
8709         __syscall_ulong_t.
8710         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
8711         defined.  Use __syscall_ulong_t.
8712         (shminfo): Use __syscall_ulong_t.
8713         (shm_info): Likewise.
8714
8715         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
8716         __syscall_ulong_t.
8717
8718         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
8719         <bits/wordsize.h>.
8720         (msgqnum_t): Use __syscall_ulong_t.
8721         (msglen_t): Likewise.
8722         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
8723         __syscall_ulong_t.
8724
8725         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
8726         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
8727
8728         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
8729
8730         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
8731         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
8732
8733         * sysvipc/sys/msg.h (msgbuf): Replace long int with
8734         __syscall_slong_t.
8735
8736         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
8737         include <bits/wordsize.h>.  Check __x86_64__ instead of
8738         __WORDSIZE.
8739
8740         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
8741         "unsigned long long int" if __x86_64__ is defined.
8742         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
8743
8744         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
8745         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
8746         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
8747
8748         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
8749         <stdint.h>.
8750         (GET_PC): Cast to uintptr_t first.
8751         (GET_FRAME): Likewise.
8752         (GET_STACK): Likewise.
8753
8754         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
8755         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
8756         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
8757         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
8758         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
8759         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
8760         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
8761         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
8762         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
8763         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
8764         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
8765         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
8766         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
8767         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
8768         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
8769         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
8770         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
8771         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
8772         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
8773         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
8774         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
8775         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
8776         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
8777         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
8778         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
8779         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
8780         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
8781         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
8782         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
8783
8784 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
8785
8786         * Makerules (+depfiles): Also collect depfiles from .oS in
8787         $(extra-objs).
8788         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
8789         .oS, $(libnldbl-routines)).
8790
8791         * Makerules (native-compile-mkdep-flags): Define.
8792         * sunrpc/Makefile (extra-objs): Add $(addprefix
8793         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
8794         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
8795         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
8796         calling $(make-target-directory).
8797
8798 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8799
8800         * bits/types.h (__snseconds_t): Removed.
8801         * time/time.h (struct timespec): Replace __snseconds_t with
8802         __syscall_slong_t.
8803         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
8804         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
8805         Likewise.
8806         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8807         (__SNSECONDS_T_TYPE): Likewise.
8808         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8809         (__SNSECONDS_T_TYPE): Likewise.
8810         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8811         (__SNSECONDS_T_TYPE): Likewise.
8812
8813 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8814
8815         * sysdeps/mach/hurd/bits/typesizes.h
8816         (__SYSCALL_SLONG_TYPE): New macro.
8817         (__SYSCALL_ULONG_TYPE): Likewise.
8818
8819 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8820
8821         * bits/types.h (__syscall_slong_t): New type.
8822         (__syscall_ulong_t): Likewise.
8823
8824         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
8825         (__SYSCALL_ULONG_TYPE): Likewise.
8826         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8827         (__SYSCALL_SLONG_TYPE): Likewise.
8828         (__SYSCALL_ULONG_TYPE): Likewise.
8829         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8830         (__SYSCALL_SLONG_TYPE): Likewise.
8831         (__SYSCALL_ULONG_TYPE): Likewise.
8832         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8833         (__SYSCALL_SLONG_TYPE): Likewise.
8834         (__SYSCALL_ULONG_TYPE): Likewise.
8835
8836 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8837
8838         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
8839         Add sigaltstack-offsets.sym.
8840         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8841         <sigaltstack-offsets.h>.
8842         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
8843         longjmp_msg pointer.
8844         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
8845         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
8846         signal stack.
8847         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
8848
8849 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
8850
8851         * elf/stackguard-macros.h: Remove file.
8852         * sysdeps/generic/stackguard-macros.h: New file.
8853         * sysdeps/i386/stackguard-macros.h: Likewise.
8854         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
8855         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
8856         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
8857         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
8858         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
8859         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
8860         * sysdeps/x86_64/stackguard-macros.h: Likewise.
8861         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
8862         <elf/stackguard-macros.h>.
8863
8864         [BZ #14109]
8865         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
8866         __aligned__ in attribute.
8867         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
8868         (gregset_t): Likewise.
8869
8870 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8871
8872         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
8873         * sysdeps/x86_64/64/Implies-after: Here.  New file.
8874         * sysdeps/x86_64/x32/Implies-after: New file.
8875
8876 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8877
8878         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
8879         and access return value for _dl_profile_fixup.  Use R10_LP to
8880         load frame size.
8881
8882 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8883
8884         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
8885
8886 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8887
8888         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
8889         * sysdeps/x86_64/x32/sysdep.h: New file.
8890
8891 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8892
8893         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
8894         * sysdeps/x86_64/setjmp.S: Likewise.
8895
8896 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8897
8898         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
8899         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
8900         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
8901         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
8902         remove unused global constant.
8903
8904 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
8905
8906         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
8907         include of <not-cancel.h>.
8908
8909 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8910
8911         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
8912
8913 2012-05-15  Jeff Law  <law@redhat.com>
8914             Andreas Jaeger  <aj@suse.de>
8915
8916         [BZ #13594]
8917         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
8918         out from...
8919         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
8920         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
8921         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
8922         code changing __hst_map_handle.map.
8923
8924 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8925
8926         * configure.in (sysnames): Look for Implies-before and Implies-after
8927         files.
8928         * configure: Regenerated.
8929
8930 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8931
8932         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
8933         8-byte data alignment with LP_SIZE alignment.
8934
8935 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8936
8937         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
8938         into R10_LP.
8939
8940 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8941
8942         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
8943
8944 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8945
8946         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
8947         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
8948         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
8949         Likewise.
8950         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
8951
8952 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8953
8954         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
8955         (stackinfo_sub_sp): Likewise.
8956
8957 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8958
8959         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
8960         RAX_LP.
8961
8962 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8963
8964         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
8965         into R*_LP.
8966
8967 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8968
8969         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
8970         sizes into R*_LP.
8971
8972 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8973
8974         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
8975
8976 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8977
8978         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
8979         into R11_LP and load __x86_64_shared_cache_size_half into
8980         R8_LP.
8981
8982 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8983
8984         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
8985         R8_LP.
8986
8987 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8988
8989         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
8990         logb for POWER7.
8991         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
8992         logbf for POWER7.
8993         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
8994         logbl for POWER7.
8995         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
8996         powerpc32/power7/fpu/s_logb.c via #include.
8997         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
8998         powerpc32/power7/fpu/s_logbf.c via #include.
8999         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
9000         powerpc32/power7/fpu/s_logbl.c via #include.
9001
9002 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
9003
9004         * README.libm: Remove file.
9005
9006 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
9007
9008         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
9009         count for x32.  Use R*_LP and omit operand-size suffix.
9010
9011 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
9012
9013         * shlib-versions: Move x86_64-.*-linux.* entries to ...
9014         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
9015         * sysdeps/x86_64/x32/shlib-versions: New file.
9016
9017 2012-05-14  Roland McGrath  <roland@hack.frob.com>
9018
9019         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
9020         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
9021         Use _dl_fatal_printf instead.
9022
9023 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
9024
9025         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
9026         set if not set by the user.  Do not allow for being unset.
9027         * sysdeps/unix/sysv/linux/configure: Regenerated.
9028
9029 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
9030
9031         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
9032         the `q' suffix from lea and replace .quad with ASM_ADDR.
9033
9034 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
9035
9036         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
9037         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
9038         instead of $17.
9039         (PTR_DEMANGLE): Likewise.
9040
9041 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
9042
9043         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
9044         (LP_OP): Likewise.
9045         (ASM_ADDR): Likewise.
9046         (RAX_LP): Likewise.
9047         (RBP_LP): Likewise.
9048         (RBX_LP): Likewise.
9049         (RCX_LP): Likewise.
9050         (RDI_LP): Likewise.
9051         (RSI_LP): Likewise.
9052         (RSP_LP): Likewise.
9053         (R8_LP): Likewise.
9054         (R9_LP): Likewise.
9055         (R10_LP): Likewise.
9056         (R10_LP): Likewise.
9057         (R11_LP): Likewise.
9058         (R12_LP): Likewise.
9059         (R13_LP): Likewise.
9060         (R14_LP): Likewise.
9061         (R15_LP): Likewise.
9062
9063 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
9064
9065         * sysdeps/x86_64/x32/dl-machine.h: New file.
9066
9067 2012-05-14  Andreas Jaeger  <aj@suse.de>
9068
9069         * manual/Makefile (subdir): Remove export of subdir.
9070         (all): Remove target.
9071         (.PHONY): Remove all from list.
9072         (mkinstalldirs): Remove.
9073         (.PHONY): Remove installdirs from list.
9074         ($(inst_infodir)/libc.info): Use make-target-directory.
9075         (installdirs): Remove.
9076         (subdir_%): Remove.
9077         (glibc-targets): Remove.
9078         (lib): Remove.
9079         (stubs): Remove.
9080         ($(objpfx)stubs ../po/manual.pot): Remove.
9081         ($(objpfx)stamp%): Remove.
9082         (make-target-directory): Remove.
9083         (subdir_install): Remove.
9084         (routines): Remove.
9085         (aux): Remove.
9086         (sources): Remove.
9087         (objects): Remove.
9088         (headers): Remove.
9089
9090         [BZ #13750]
9091         * manual/.gitignore: Remove, it's not needed anymore.
9092         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
9093         all files in it.
9094         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
9095         directory.
9096         (texis): Renamed to $(objpfx)texis.
9097         (texis-path): New, contains path to generated files.
9098         (chapters.%): Use texis-path for complete path, add extra argument
9099         libc-texinfo.sh.
9100         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
9101         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
9102         (summary,texi, stamp-summary): Use complete path of
9103         files. Generate files in build dir.
9104         (dir-add.texi): Build in build dir.
9105         (libm-err.texi,stamp-libm-err): Likewise.
9106         (version.texi, stamp-version): Likewise.
9107         (.%c.texi): Likewise.
9108         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
9109         (mostlyclean): Remove target.
9110         (realclean): Remove target.
9111         (generated): Add new variable with contents from mostlyclean and
9112         realclean, remove entries duplicated in common-mostlyclean, add
9113         stamp-libm-err and stamp-version.
9114         (generated-dirs): Add libc directory.
9115         ($(inst_infodir)/libc.info): Install files from build dir.
9116
9117         * manual/install.texi (Configuring and compiling): Adjust since
9118         the info files are not part of the tar ball anymore.
9119
9120 2012-05-14  Andreas Jaeger  <aj@suse.de>
9121
9122         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
9123         variable.
9124
9125 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
9126
9127         [BZ #13717]
9128         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
9129         to 2.2.0 where earlier.
9130         * sysdeps/unix/sysv/linux/configure: Regenerated.
9131         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
9132         Remove conditional code.
9133         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
9134         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
9135         Remove conditional code.
9136         [!__NR_lchown]: Likewise.
9137         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
9138         [__NR_lchown]: Likewise.
9139         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
9140         comment referencing __ASSUME_LCHOWN_SYSCALL.
9141         * sysdeps/unix/sysv/linux/i386/sigaction.c
9142         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
9143         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
9144         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
9145         Remove conditional code.
9146         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
9147         (__protocol_available): Remove #if 0 code.
9148         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
9149         conditional code.
9150         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
9151         * sysdeps/unix/sysv/linux/kernel-features.h
9152         (__ASSUME_GETCWD_SYSCALL): Don't define.
9153         (__ASSUME_REALTIME_SIGNALS): Likewise.
9154         (__ASSUME_PREAD_SYSCALL): Likewise.
9155         (__ASSUME_PWRITE_SYSCALL): Likewise.
9156         (__ASSUME_POLL_SYSCALL): Likewise.
9157         (__ASSUME_LCHOWN_SYSCALL): Likewise.
9158         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
9159         non-SPARC.
9160         (__ASSUME_SIOCGIFNAME): Don't define.
9161         (__ASSUME_MSG_NOSIGNAL): Likewise.
9162         (__ASSUME_SENDFILE): Define unconditionally.
9163         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
9164         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
9165         conditional code.
9166         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
9167         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
9168         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
9169         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
9170         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
9171         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
9172         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
9173         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
9174         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
9175         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
9176         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
9177         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
9178         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
9179         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
9180         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
9181         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
9182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
9183         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
9184         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
9185         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
9186         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
9187         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
9188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
9189         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
9190         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
9191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
9192         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
9193         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
9194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
9195         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
9196         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
9197         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
9198         Remove conditional code.
9199         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
9200         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
9201         Remove conditional code.
9202         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
9203         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
9204         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
9205         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
9206         Remove conditional code.
9207         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
9208         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
9209         Remove conditional code.
9210         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
9211         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
9212         Remove conditional code.
9213         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
9214         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
9215         Remove conditional code.
9216         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
9217         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
9218         Remove conditional code.
9219         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
9220         * sysdeps/unix/sysv/linux/sh/pwrite64.c
9221         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
9222         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
9223         * sysdeps/unix/sysv/linux/sigaction.c
9224         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
9225         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
9226         * sysdeps/unix/sysv/linux/sigpending.c
9227         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
9228         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
9229         * sysdeps/unix/sysv/linux/sigprocmask.c
9230         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
9231         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
9232         * sysdeps/unix/sysv/linux/sigsuspend.c
9233         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
9234         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
9235         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
9236         (__libc_missing_rt_sigs): Remove.
9237         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
9238         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
9239         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
9240         Remove conditional code.
9241         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
9242         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
9243         return 1.
9244         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
9245         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
9246         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
9247         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
9248
9249 2012-05-14  Andreas Jaeger  <aj@suse.de>
9250
9251         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
9252         it's not used in glibc.
9253         (__coshm1): Likewise.
9254         (__acosh1p): Likewise.
9255         (__sgn): Likewise.
9256
9257         * manual/string.texi (Copying and Concatenation): Add missing
9258         variable in concat example.
9259         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
9260
9261 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
9262
9263         [BZ #14103]
9264         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
9265         __builtin_clzl with __builtin_clzll.
9266
9267 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
9268
9269         [BZ #14104]
9270         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
9271         libc_freeres_ptr.
9272
9273 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9274
9275         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
9276         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
9277         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
9278         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
9279
9280 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
9281
9282         * NEWS: Update ia64 info.
9283
9284 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
9285
9286         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
9287         used as bcopy.
9288
9289 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
9290
9291         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
9292         * sysdeps/unix/syscalls.list (dup3): Likewise.
9293         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
9294         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
9295
9296 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
9297
9298         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
9299         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
9300
9301 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
9302
9303         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
9304         thread pointer.
9305         (TLS_IE): Use mov/add instead of movq/addq to load thread
9306         pointer.
9307         (TLS_GD_PREFIX): New.
9308         (TLS_GD): Use it.
9309
9310 2012-05-11  David S. Miller  <davem@davemloft.net>
9311
9312         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
9313         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
9314         (_FPU_SETCW): Likewise.
9315
9316 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
9317
9318         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
9319         is 32-byte aligned.
9320
9321 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
9322
9323         [BZ #11837]
9324         * iconvdata/gb18030.c: Update tables.
9325         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
9326         characters specially.
9327         (BODY for TO_LOOP): Add encoding of missing ranges.
9328
9329 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
9330
9331         [BZ #13673]
9332         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
9333         * sysdeps/mach/hurd/dup3.c: Likewise.
9334         * sysdeps/mach/hurd/readlinkat.c: Likewise.
9335         * sysdeps/powerpc/memmove.c:: Likewise.
9336
9337 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
9338
9339         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
9340         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
9341
9342 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
9343
9344         * elf/elf.h (R_X86_64_RELATIVE64): New.
9345         (R_X86_64_NUM): Updated.
9346         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
9347         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
9348         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
9349         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
9350         tst-quad1pie tst-quad2pie
9351         (modules-names): Add tst-quadmod1 tst-quadmod2.
9352         ($(objpfx)tst-quad1): New dependency.
9353         ($(objpfx)tst-quad2): Likewise.
9354         ($(objpfx)tst-quad1pie): Likewise.
9355         ($(objpfx)tst-quad2pie): Likewise.
9356         * sysdeps/x86_64/tst-quad1.c: New file.
9357         * sysdeps/x86_64/tst-quad1pie.c: New file.
9358         * sysdeps/x86_64/tst-quad2.c: Likewise.
9359         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
9360         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
9361         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
9362         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
9363         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
9364
9365 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9366
9367         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
9368         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
9369         * streams/stropts.h (t_scalar_t): Define type.
9370
9371         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
9372         (_PATH_PRESERVE): Set to "/var/lib".
9373         (_PATH_RWHODIR): Set to "/var/spool/rwho".
9374
9375         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
9376         instead of int.
9377
9378         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
9379         if __dir_mkfile succeeded.
9380
9381         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
9382         checking for _hurd_dtablesize.  Unlock it right after having
9383         finished _hurd_dtable allocation.
9384
9385 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
9386
9387         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
9388         * sysdeps/mach/hurd/configure: Regenerated.
9389         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
9390         special-casing to...
9391         * sysdeps/gnu/configure.in: ... this new file.
9392         * sysdeps/unix/sysv/linux/configure: Regenerated.
9393         * sysdeps/gnu/configure: New generated file.
9394
9395         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
9396         for Linux: use nsec instead of usec, as well as:
9397         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
9398         members of type struct timespec.
9399         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
9400         New macros.
9401         (struct stat64): Likewise.
9402         (_STATBUF_ST_NSEC): New macro.
9403         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
9404
9405         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
9406         __strtoul_internal rather than strtoul.
9407
9408 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
9409
9410         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
9411         and reject them.
9412
9413 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9414
9415         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
9416         which preserves existing values.
9417         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
9418
9419 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
9420
9421         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
9422         TIMEOUT values.  Return EINVAL for NFDS values either negative or
9423         greater than FD_SETSIZE.
9424
9425 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9426
9427         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
9428         allocated, call __vm_protect to finish enabling the existing space, and
9429         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
9430         allocate the remainder.
9431
9432 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
9433
9434         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
9435         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
9436
9437 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9438
9439         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
9440         sysdeps/mach/hurd/readlink.c.
9441
9442         * posix/tst-sysconf.c (posix_options): Only use
9443         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
9444         _POSIX_SYNCHRONIZED_IO when they are defined
9445         * sysdeps/mach/hurd/bits/posix_opt.h:
9446         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
9447         (_XOPEN_REALTIME): Undefine macro.
9448         (_XOPEN_REALTIME_THREADS): Undefine macro.
9449         (_XOPEN_SHM): Undefine macro.
9450         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
9451         macro to -1.
9452         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
9453         macro to -1.
9454         (_POSIX_ASYNC_IO): Undefine macro.
9455         (_POSIX_PRIORITIZED_IO): Undefine macro.
9456         (_POSIX_SPIN_LOCKS): Define macro to -1.
9457
9458         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
9459         SA_NODEFER, SA_RESETHAND.
9460         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
9461         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
9462         F_DUPFD_CLOEXEC.
9463
9464 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
9465
9466         * elf/Makefile (pldd-modules): Define unconditionally.
9467
9468 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
9469
9470         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
9471
9472 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9473
9474         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
9475         Return ENOENT when name is empty.
9476         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
9477
9478 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
9479
9480         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
9481
9482         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
9483
9484 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9485
9486         Fix mlock in all cases except non-readable pages.
9487         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
9488         instead of VM_PROT_ALL as parameter to __vm_wire function.
9489
9490         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
9491         (__mkdir): When path is `/', just fail with EEXIST.
9492         * sysdeps/mach/hurd/mkdirat.c: Likewise.
9493
9494 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
9495
9496         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
9497         <sys/uio.h> (for writev).
9498         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
9499         and <sys/param.h> (for MIN).
9500
9501 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
9502
9503         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
9504         REQUESTED_TIME.  Properly set the remaining time and return EINTR
9505         if interrupted.
9506
9507 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
9508
9509         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
9510         Depend on against $(link-rpcuserlibs).
9511
9512 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9513
9514         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
9515         (__libc_stack_end): Do not use attribute_relro.
9516         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
9517         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
9518         to libthread-provided value.
9519         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
9520         attribute_relro.
9521
9522 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
9523
9524         [BZ #3748]
9525         * bits/libc-lock.h (__libc_once_get): New macro.
9526         * sysdeps/mach/bits/libc-lock.h: Likewise.
9527         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
9528         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
9529         instead of using implementation details.
9530
9531         * libio/fileops.c: Unconditionally include <kernel-features.h>.
9532         * libio/freopen.c: Likewise.
9533         * libio/freopen64.c: Likewise.
9534         * misc/syslog.c: Likewise.
9535         * nscd/connections.c: Likewise.
9536         * nscd/netgroupcache.c: Likewise.
9537         * sysdeps/posix/getcwd.c: Likewise.
9538
9539 2012-05-10  Roland McGrath  <roland@hack.frob.com>
9540
9541         * math/w_ilogbf.c: Add #include <limits.h>.
9542
9543 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9544
9545         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
9546         path instead of returning without unlocking.
9547
9548         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
9549         immediate-write ioctls.
9550         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
9551
9552 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
9553
9554         * sysdeps/mach/hurd/i386/init-first.c (init): Use
9555         __builtin_frame_address instead of making assumptions about the
9556         location of the return address relative to DATA.  Force early load of
9557         the return address.
9558         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
9559         __builtin_frame_address.
9560
9561         dup3 for GNU Hurd.
9562         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
9563         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
9564         implement dup3 and do some further code clean-ups.
9565         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
9566         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
9567
9568 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9569
9570         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
9571
9572         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
9573         HURD_CRITICAL_END around holding _hurd_dtable_lock.
9574         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
9575         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
9576         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
9577         d->port.lock.
9578
9579         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
9580         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
9581         when handler == SIG_ERR, not when handler != SIG_ERR.
9582
9583 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
9584
9585         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
9586         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
9587         definitions.
9588
9589         accept4 for GNU Hurd.
9590         * include/sys/socket.h (__libc_accept4): New prototype.
9591         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
9592         to implement __libc_accept4.
9593         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
9594         __libc_accept4.
9595         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
9596
9597         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
9598         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
9599         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
9600         signal-defines.sym.
9601
9602 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9603
9604         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
9605
9606 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
9607
9608         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
9609         assertion on O_CLOEXEC flag.
9610         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
9611         * hurd/intern-fd.c: Likewise.
9612         * hurd/port2fd.c: Likewise.
9613
9614 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9615
9616         [BZ #3906]
9617         * bits/in.h (IPV6_PKTINFO): Define new macro.
9618         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
9619
9620 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9621
9622         [BZ #13954]
9623         [BZ #13955]
9624         [BZ #13956]
9625         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
9626         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
9627         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
9628         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
9629         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
9630         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
9631         * math/libm-test.inc (logb_test) : Additional logb tests.
9632
9633 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
9634             Andreas Jaeger  <aj@suse.de>
9635
9636         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
9637         * configure: Regenerated.
9638         * config.h.in (LINK_OBSOLETE_RPC): New macro.
9639         * config.make.in (link-obsolete-rpc): New substituted variable.
9640         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
9641         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
9642         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
9643         (shared-only-routines): Don't set it under [link-obsolete-rpc],
9644         so that libc.a contains the symbols.
9645         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
9646         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
9647         * sunrpc/auth_none.c: Likewise.
9648         * sunrpc/auth_unix.c: Likewise.
9649         * sunrpc/authdes_prot.c: Likewise.
9650         * sunrpc/authuxprot.c: Likewise.
9651         * sunrpc/clnt_gen.c: Likewise.
9652         * sunrpc/clnt_perr.c: Likewise.
9653         * sunrpc/clnt_raw.c: Likewise.
9654         * sunrpc/clnt_simp.c: Likewise.
9655         * sunrpc/clnt_tcp.c: Likewise.
9656         * sunrpc/clnt_udp.c: Likewise.
9657         * sunrpc/clnt_unix.c: Likewise.
9658         * sunrpc/des_crypt.c: Likewise.
9659         * sunrpc/des_soft.c: Likewise.
9660         * sunrpc/get_myaddr.c: Likewise.
9661         * sunrpc/key_call.c: Likewise.
9662         * sunrpc/key_prot.c: Likewise.
9663         * sunrpc/netname.c: Likewise.
9664         * sunrpc/pm_getmaps.c: Likewise.
9665         * sunrpc/pm_getport.c: Likewise.
9666         * sunrpc/pmap_clnt.c: Likewise.
9667         * sunrpc/pmap_prot.c: Likewise.
9668         * sunrpc/pmap_prot2.c: Likewise.
9669         * sunrpc/pmap_rmt.c: Likewise.
9670         * sunrpc/publickey.c: Likewise.
9671         * sunrpc/rpc_cmsg.c: Likewise.
9672         * sunrpc/rpc_common.c: Likewise.
9673         * sunrpc/rpc_dtable.c: Likewise.
9674         * sunrpc/rpc_prot.c: Likewise.
9675         * sunrpc/rpc_thread.c: Likewise.
9676         * sunrpc/rtime.c: Likewise.
9677         * sunrpc/svc.c: Likewise.
9678         * sunrpc/svc_auth.c: Likewise.
9679         * sunrpc/svc_raw.c: Likewise.
9680         * sunrpc/svc_run.c: Likewise.
9681         * sunrpc/svc_tcp.c: Likewise.
9682         * sunrpc/svc_udp.c: Likewise.
9683         * sunrpc/svc_unix.c: Likewise.
9684         * sunrpc/svcauth_des.c: Likewise.
9685         * sunrpc/xcrypt.c: Likewise.
9686         * sunrpc/xdr.c: Likewise.
9687         * sunrpc/xdr_array.c: Likewise.
9688         * sunrpc/xdr_float.c: Likewise.
9689         * sunrpc/xdr_intXX_t.c: Likewise.
9690         * sunrpc/xdr_mem.c: Likewise.
9691         * sunrpc/xdr_rec.c: Likewise.
9692         * sunrpc/xdr_ref.c: Likewise.
9693         * sunrpc/xdr_sizeof.c: Likewise.
9694         * sunrpc/xdr_stdio.c: Likewise.
9695
9696 2012-05-10  Roland McGrath  <roland@hack.frob.com>
9697
9698         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
9699         change.  Update copyright years.
9700
9701 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
9702
9703         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
9704
9705 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
9706             Joseph Myers  <joseph@codesourcery.com>
9707             Paul Pluzhnikov  <ppluzhnikov@google.com>
9708
9709         [BZ #14012]
9710         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
9711         requiring rpcgen.
9712         [cross-compiling] (extra-libs): Likewise.
9713         [cross-compiling] (extra-libs-others): Likewise.
9714         [cross-compiling] (librpcsvc-routines): Likewise.
9715         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
9716         [cross-compiling] (omit-deps): Likewise.
9717         (sunrpc-CPPFLAGS): New variable.
9718         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
9719         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
9720         (cross-rpcgen-objs): New variable.
9721         (extra-objs): Append $(cross-rpcgen-objs).
9722         ($(cross-rpcgen-objs)): New rule.
9723         ($(objpfx)cross-rpcgen): Likewise.
9724         (rpcgen-cmd): Define to use $(built-program-file).  Expand
9725         comment.
9726         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
9727         ($(objpfx)x%.stmp): Likewise.
9728         * sunrpc/proto.h [IS_IN_build] (_): Define.
9729         [IS_IN_build] (_libc_intl_domainname): Likewise.
9730
9731 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
9732
9733         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
9734         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
9735         and R_X86_64_TPOFF64.
9736
9737 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
9738
9739         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
9740         sysdeps/unix/sysv/syscalls.list.
9741         (stime): Likewise.
9742         (utime): Likewise.
9743         * sysdeps/unix/sysv/syscalls.list: Remove file.
9744
9745 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
9746
9747         [BZ #3440]
9748         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
9749         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
9750         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
9751         (__LC_IDENTIFICATION): Make these macros useful in #if
9752         expressions, as required by C99.
9753
9754 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
9755
9756         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
9757         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
9758         after this.
9759
9760 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
9761
9762         * stdlib/longlong.h: Updated from GCC.
9763
9764 2012-05-09  Andreas Jaeger  <aj@suse.de>
9765
9766         * nscd/nscd.c (run_modes): Make named enum, reorder so that
9767         default is first entry.
9768         (run_mode): Set type.
9769         (main): Remove informal message about syslog.
9770         (options): Fix typo.
9771
9772         [BZ #14053]
9773         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
9774         to asm.
9775         (lrint): Likewise.
9776         (llrintf): Likewise.
9777         (llrint): Likewise.
9778         (rint): Likewise.
9779         (rintf): Likewise.
9780         (nearbyint): Likewise.
9781         (nearbyintf): Likewise.
9782
9783 2012-05-09  Andreas Jaeger  <aj@suse.de>
9784             Pedro Alves  <palves@redhat.com>
9785
9786         * nscd/nscd.c (run_mode): Use enum.
9787         (main): Cleanup coding style issue.
9788
9789 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
9790             Andreas Jaeger  <aj@suse.de>
9791
9792         * nscd/nscd.c (go_background): Replaced with...
9793         (run_mode): ... this.
9794         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
9795         (options): Add -F --foreground.
9796         (main): Implement it.
9797         (parse_opt): Parse it.
9798
9799 2012-05-09  Andreas Jaeger  <aj@suse.de>
9800
9801         [BZ #14083]
9802         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
9803         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
9804         -Wconversion warning.
9805         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
9806         Likewise.
9807
9808 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
9809
9810         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
9811         == 0.
9812         (LC_ALL): Use macro-int-constant.
9813         (LC_COLLATE): Likewise.
9814         (LC_CTYPE): Likewise.
9815         (LC_MESSAGES): Likewise.
9816         (LC_MONETARY): Likewise.
9817         (LC_NUMERIC): Likewise.
9818         (LC_TIME): Likewise.
9819         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
9820         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9821         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9822         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
9823         Specify type.
9824         [C99-based standards] (float_t): Expect type.
9825         [C99-based standards] (double_t): Expect type.
9826         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
9827         type.
9828         [C99-based standards] (HUGE_VALL): Likewise.
9829         [C99-based standards] (INFINITY): Likewise.
9830         [C99-based standards] (NAN): Likewise.
9831         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
9832         [C99-based standards] (FP_NAN): Likewise.
9833         [C99-based standards] (FP_NORMAL): Likewise.
9834         [C99-based standards] (FP_SUBNORMAL): Likewise.
9835         [C99-based standards] (FP_ZERO): Likewise.
9836         [C99-based standards] (FP_FAST_FMA): Use
9837         optional-macro-int-constant.  Specify type.  Require == 1.
9838         [C99-based standards] (FP_FAST_FMAF): Likewise.
9839         [C99-based standards] (FP_FAST_FMAL): Likewise.
9840         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
9841         [C99-based standards] (FP_ILOGBNAN): Likewise.
9842         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
9843         Specify type.
9844         [C99-based standards] (MATH_ERREXCEPT): Likewise.
9845         [C99-based standards] (math_errhandling): Specify type.
9846         [ISO99 || ISO11] (signgam): Do not allow.
9847         [non-C99-based standards] (copysignf): Do not allow.
9848         [non-C99-based standards] (exp2f): Likewise.
9849         [non-C99-based standards] (log2f): Likewise.
9850         [non-C99-based standards] (modff): Allow.
9851         [non-C99-based standards] (erff): Do not allow.
9852         [non-C99-based standards] (erfcf): Likewise.
9853         [non-C99-based standards] (gammaf): Likewise.
9854         [non-C99-based standards] (hypotf): Likewise.
9855         [non-C99-based standards] (j0f): Likewise.
9856         [non-C99-based standards] (j1f): Likewise.
9857         [non-C99-based standards] (jnf): Likewise.
9858         [non-C99-based standards] (lgammaf): Likewise.
9859         [non-C99-based standards] (tgammaf): Likewise.
9860         [non-C99-based standards] (y0f): Likewise.
9861         [non-C99-based standards] (y1f): Likewise.
9862         [non-C99-based standards] (ynf): Likewise.
9863         [non-C99-based standards] (isnanf): Likewise.
9864         [non-C99-based standards] (acoshf): Likewise.
9865         [non-C99-based standards] (asinhf): Likewise.
9866         [non-C99-based standards] (atanhf): Likewise.
9867         [non-C99-based standards] (cbrtf): Likewise.
9868         [non-C99-based standards] (expm1f): Likewise.
9869         [non-C99-based standards] (ilogbf): Likewise.
9870         [non-C99-based standards] (log1pf): Likewise.
9871         [non-C99-based standards] (logbf): Likewise.
9872         [non-C99-based standards] (nextafterf): Likewise.
9873         [non-C99-based standards] (remainderf): Likewise.
9874         [non-C99-based standards] (rintf): Likewise.
9875         [non-C99-based standards] (scalbf): Likewise.
9876         [non-C99-based standards] (copysignl): Likewise.
9877         [non-C99-based standards] (exp2l): Likewise.
9878         [non-C99-based standards] (log2l): Likewise.
9879         [non-C99-based standards] (modfl): Allow.
9880         [non-C99-based standards] (erfl): Do not allow.
9881         [non-C99-based standards] (erfcl): Likewise.
9882         [non-C99-based standards] (gammal): Likewise.
9883         [non-C99-based standards] (hypotl): Likewise.
9884         [non-C99-based standards] (j0l): Likewise.
9885         [non-C99-based standards] (j1l): Likewise.
9886         [non-C99-based standards] (jnl): Likewise.
9887         [non-C99-based standards] (lgammal): Likewise.
9888         [non-C99-based standards] (tgammal): Likewise.
9889         [non-C99-based standards] (y0l): Likewise.
9890         [non-C99-based standards] (y1l): Likewise.
9891         [non-C99-based standards] (ynl): Likewise.
9892         [non-C99-based standards] (isnanl): Likewise.
9893         [non-C99-based standards] (acoshl): Likewise.
9894         [non-C99-based standards] (asinhl): Likewise.
9895         [non-C99-based standards] (atanhl): Likewise.
9896         [non-C99-based standards] (cbrtl): Likewise.
9897         [non-C99-based standards] (expm1l): Likewise.
9898         [non-C99-based standards] (ilogbl): Likewise.
9899         [non-C99-based standards] (log1pl): Likewise.
9900         [non-C99-based standards] (logbl): Likewise.
9901         [non-C99-based standards] (nextafterl): Likewise.
9902         [non-C99-based standards] (remainderl): Likewise.
9903         [non-C99-based standards] (rintl): Likewise.
9904         [non-C99-based standards] (scalbl): Likewise.
9905         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9906         [non-C99-based standards] (FP_*): Do not allow.
9907         [C99-based standards] (FP_*): Change to
9908         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9909         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9910         allow.
9911         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
9912         (SIG_ERR): Likewise.
9913         [X/Open-based standards] (SIG_HOLD): Likewise.
9914         (SIG_IGN): Likewise.
9915         (SIGABRT): Use macro-int-constant.  Specify type.  Require
9916         positive value.
9917         (SIGFPE): Likewise.
9918         (SIGILL): Likewise.
9919         (SIGINT): Likewise.
9920         (SIGSEGV): Likewise.
9921         (SIGTER): Likewise.
9922         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
9923         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
9924         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
9925         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
9926         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
9927         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
9928         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
9929         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
9930         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
9931         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
9932         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
9933         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
9934         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
9935         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
9936         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
9937         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
9938         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
9939         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
9940         [X/Open-based standards] (SIGTRAP): Likewise.
9941         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
9942         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
9943         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
9944         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
9945         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9946         allow.
9947
9948 2012-05-08  Ian Wienand  <ianw@vmware.com>
9949
9950         [BZ #14080]
9951         * time/tzset.c (__tzset_parse_tz): Update default rules for
9952         daylight time changes in the Energy Policy Act of 2005.
9953
9954 2012-05-09  Andreas Jaeger  <aj@suse.de>
9955
9956         [BZ #13983]
9957         * elf/ldconfig.c (parse_conf): Change string to make clear that
9958         ldconfig only issued a warning if ld.so.conf does not exist.
9959
9960 2012-05-08  David S. Miller  <davem@davemloft.net>
9961
9962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
9963         movxtod instead of popping the value on the stack.
9964
9965         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9966
9967 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
9968
9969         * config.h.in: Add HAVE_ARM_PCS_VFP.
9970
9971 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
9972
9973         [BZ #13979]
9974         * include/features.h: Warn if user requests __FORTIFY_SOURCE
9975         checking but the checks are disabled for any reason.
9976
9977 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
9978
9979         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
9980         and ELF64_R_TYPE with ELFW(R_TYPE).
9981
9982 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
9983
9984         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
9985         (ulimit): Likewise.
9986
9987         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
9988         (settimeofday): Likewise.
9989
9990 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
9991
9992         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
9993         a struct th_u2 inside the union, and move tu_block/tu_code into
9994         a new th_u3 union of tu_block/tu_code inside of that.  Move
9995         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
9996         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
9997         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
9998         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
9999         (th_stuff): Change to th_u1.tu_stuff.
10000         (th_data): Define.
10001         (th_msg): Change to th_u1.th_u2.tu_data.
10002
10003 2012-05-07  David S. Miller  <davem@davemloft.net>
10004
10005         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10006
10007         [BZ #14074]
10008         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
10009         (SETUP_PIC_REG): Use it.
10010         (SETUP_PIC_REG_LEAF): Use it.
10011
10012 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
10013
10014         [BZ #13885]
10015         [BZ #13923]
10016         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
10017         USE_AS_EXPM1L.
10018         (EXPL_FINITE): Likewise.
10019         (FLDLOG): Likewise.
10020         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
10021         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
10022         e_expl.S.
10023         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
10024         USE_AS_EXPM1L.
10025         (EXPL_FINITE): Likewise.
10026         (FLDLOG): Likewise.
10027         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
10028         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
10029         e_expl.S.
10030         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
10031         test of -max_value argument for long double.
10032         * sysdeps/i386/fpu/libm-test-ulps: Update.
10033         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10034
10035 2012-05-06  David S. Miller  <davem@davemloft.net>
10036
10037         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
10038         quad soft-float symbols whose references which are compiler
10039         generated.
10040         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
10041
10042 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
10043
10044         [BZ #13884]
10045         [BZ #13914]
10046         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
10047         USE_AS_EXP10L.
10048         (EXPL_FINITE): Likewise.
10049         (FLDLOG): Likewise.
10050         (c0): Likewise.
10051         (c1): Likewise.
10052         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
10053         Adjust comments for base varying.
10054         (__expl_finite): Change alias to EXPL_FINITE.
10055         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
10056         e_expl.S.
10057         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
10058         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
10059         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
10060         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
10061         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
10062         USE_AS_EXP10L.
10063         (EXPL_FINITE): Likewise.
10064         (FLDLOG): Likewise.
10065         (c0): Likewise.
10066         (c1): Likewise.
10067         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
10068         Adjust comments for base varying.
10069         (__expl_finite): Change alias to EXPL_FINITE.
10070         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
10071         tests for bugs.
10072         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10073
10074         [BZ #14064]
10075         * math/libm-test.inc (check_float_internal): Correct ulp
10076         calculation for subnormal expected results.
10077
10078 2012-05-06  Andreas Jaeger  <aj@suse.de>
10079
10080         * Makeconfig (+math-flags): New, set to -frounding-math.
10081         (+cflags): Add +math-flags so that all of glibc gets compiled with
10082         it.
10083
10084         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
10085
10086 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
10087
10088         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
10089         Disable one test.
10090
10091         [BZ #13787]
10092         [BZ #13922]
10093         [BZ #14036]
10094         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
10095         (__ieee754_expl): Allow for and saturate large arguments.
10096         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
10097         (u_threshold): Likewise.
10098         (__exp): Call __ieee754_exp before checking for overflow and
10099         underflow.
10100         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
10101         (u_threshold): Likewise.
10102         (__expf): Call __ieee754_expf before checking for overflow and
10103         underflow.
10104         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
10105         (u_threshold): Likewise.
10106         (__expl): Call __ieee754_expl before checking for overflow and
10107         underflow.
10108         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
10109         (__ieee754_expl): Allow for and saturate large arguments.
10110         * math/libm-test.inc (exp_test): Add another test.  Do not allow
10111         missing overflow exception on overflow.
10112         (expm1_test): Do not allow missing overflow exception on overflow.
10113
10114         * sysdeps/i386/fpu/e_expl.c: Move to ...
10115         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
10116         rather than using inline asm.
10117         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
10118         * sysdeps/x86_64/fpu/e_expl.S: Copy from
10119         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
10120
10121         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
10122         (nice): Likewise.
10123         (poll): Likewise.
10124         (signal): Likewise.
10125         (time): Likewise.
10126         (times): Likewise.
10127
10128 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
10129
10130         * sysdeps/unix/syscalls.list (adjtime): Add entry from
10131         sysdeps/unix/common/syscalls.list.
10132         (fchmod): Likewise.
10133         (fchown): Likewise.
10134         (ftruncate): Likewise.
10135         (getrusage): Likewise.
10136         (gettimeofday): Likewise.
10137         (setpgid): Likewise.
10138         (setregid): Likewise.
10139         (setreuid): Likewise.
10140         (sigaction): Likewise.
10141         (truncate): Likewise.
10142         (vhangup): Likewise.
10143         * sysdeps/unix/common/syscalls.list: Remove file.
10144         * sysdeps/unix/bsd/Implies: Don't include unix/common.
10145         * sysdeps/unix/sysv/linux/Implies: Likewise.
10146
10147 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
10148
10149         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
10150         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
10151         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
10152         Moved to ...
10153         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
10154         Here.
10155         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
10156         to ...
10157         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
10158         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
10159         to ...
10160         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
10161         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
10162         to ...
10163         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
10164         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
10165         to ...
10166         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
10167         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
10168         to ...
10169         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
10170         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
10171         to ...
10172         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
10173         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
10174         to ...
10175         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
10176         Here.
10177         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
10178         to ...
10179         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
10180         Here.
10181         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
10182         to ...
10183         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
10184         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
10185         Moved to ...
10186         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
10187         Here.
10188         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
10189         to ...
10190         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
10191
10192 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
10193
10194         * sysdeps/unix/common/bits/dirent.h: Remove file.
10195         * sysdeps/unix/common/bits/fcntl.h: Likewise.
10196
10197         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
10198         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
10199         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
10200         * sysdeps/unix/bsd/isatty.c: Likewise.
10201         * sysdeps/unix/bsd/tcdrain.c: Likewise.
10202         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
10203         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
10204
10205 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10206
10207         [BZ #13563]
10208         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
10209         long double comparison inaccuracies.
10210         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
10211         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10212
10213 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
10214
10215         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
10216         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
10217
10218 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
10219
10220         [BZ #14049]
10221         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
10222         nonzero digits before rounding a hex value.
10223         * stdlib/tst-strtod.c (tests): Add another test.
10224
10225 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10226
10227         * sysdeps/s390/fpu/libm-test-ulps: Update.
10228
10229 2012-05-03  Andreas Jaeger  <aj@suse.de>
10230
10231         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
10232         does not get optimized out.
10233         (malloc_opt_barrier): New.
10234
10235 2012-05-03  Andreas Jaeger  <aj@suse.de>
10236             Roland McGrath  <roland@hack.frob.com>
10237
10238         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
10239         intermediate file deletion.
10240         (generated): Add .symlist files.
10241
10242 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
10243
10244         [BZ #13775]
10245         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
10246         Redirect under this condition.
10247         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
10248         [__USE_GNU] (__dprintf_chk): Not under this condition.
10249         [__USE_GNU] (__vdprintf_chk): Likewise.
10250         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
10251         under this condition.
10252         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
10253         [__USE_XOPEN2K8] (dprintf): Define under this condition.
10254         [__USE_XOPEN2K8] (vdprintf): Likewise.
10255         [__USE_GNU] (__dprintf_chk): Not under this condition.
10256         [__USE_GNU] (__vdprintf_chk): Likewise.
10257         [__USE_GNU] (dprintf): Likewise.
10258         [__USE_GNU] (vdprintf): Likewise.
10259
10260 2012-05-03  Roland McGrath  <roland@hack.frob.com>
10261
10262         * elf/Makefile (common-generated): Set this instead of generated for
10263         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
10264         $(all-built-dso)-derived lists.
10265
10266 2012-05-03  Andreas Jaeger  <aj@suse.de>
10267
10268         * sysdeps/i386/fpu/libm-test-ulps: Update.
10269
10270         * FAQ: Removed.
10271         * FAQ.in: Likewise.
10272         * scripts/gen-FAQ.pl: Likewise.
10273         * manual/install.texi (Installation): Point to online location of
10274         FAQ.
10275         * Makefile (files-for-dist): Remove FAQ.
10276         (FAQ): Remove.
10277
10278 2012-05-02  Allan McRae  <allan@archlinux.org>
10279
10280         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
10281         (LDFLAGS-reldepmod5.so): Likewise.
10282         (LDFLAGS-reldep6mod1.so): Likewise.
10283         (LDFLAGS-reldep6mod4.so): Likewise.
10284         (LDFLAGS-reldep8mod3.so): Likewise.
10285         (LDFLAGS-unload4mod1.so): Likewise.
10286         (LDFLAGS-unload4mod2.so): Likewise.
10287         (LDFLAGS-tst-initorder): Likewise.
10288         (LDFLAGS-tst-initordera2.so): Likewise.
10289         (LDFLAGS-tst-initordera3.so): Likewise.
10290         (LDFLAGS-tst-initordera4.so): Likewise.
10291         (LDFLAGS-tst-initorderb2.so): Likewise.
10292         (LDFLAGS-noload): Likewise.
10293         (LDFLAGS-next): Likewise.
10294         (LDFLAGS-order2mod1.so): Likewise.
10295         (LDFLAGS-order2mod2.so): Likewise.
10296         (LDFLAGS-tst-initorder2): Likewise.
10297         (LDFLAGS-tst-initorder2a.so): Likewise.
10298         (LDFLAGS-tst-initorder2b.so): Likewise.
10299         (LDFLAGS-tst-initorder2c.so): Likewise.
10300         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
10301
10302 2012-05-02  David S. Miller  <davem@davemloft.net>
10303
10304         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10305
10306 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
10307
10308         [BZ #14055]
10309         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
10310
10311 2012-05-02  Andreas Jaeger  <aj@suse.de>
10312
10313         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
10314         since we manipulate rounding mode.
10315         (CPPFLAGS-test-idouble.c): Likewise.
10316         (CPPFLAGS-test-ifloat.c): Likewise.
10317         (CFLAGS-test-ldouble.c): Likewise.
10318         (CFLAGS-test-double.c): Likewise.
10319         (CFLAGS-test-float.c): Likewise.
10320         (CFLAGS-test-misc.c): Likewise.
10321         (CFLAGS-test-test-fenv.c): Likewise.
10322
10323 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10324
10325         [BZ #2550]
10326         [BZ #2570]
10327         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
10328         comparisons to determine direction to adjust input.
10329
10330 2012-05-01  Roland McGrath  <roland@hack.frob.com>
10331
10332         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
10333         output to the target.
10334
10335         * scripts/localplt.awk: New file.
10336         * elf/Makefile ($(objpfx)check-localplt): Target removed.
10337         (check-localplt-CFLAGS): Variable removed.
10338         ($(all-built-dso:=.jmprel)): New static pattern rule.
10339         (generated): Add those targets.
10340         (localplt-built-dso): New variable.
10341         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
10342
10343         * elf/check-localplt.c: File removed.
10344
10345         * scripts/check-execstack.awk: New file.
10346         * elf/Makefile ($(objpfx)check-execstack): Target removed.
10347         (check-execstack-CFLAGS): Variable removed.
10348         ($(objpfx)check-execstack.h): Target removed.
10349         ($(objpfx)execstack-default): New target.
10350         (generated): Add that instead of check-execstack.h.
10351         ($(all-built-dso:=.phdr)): New static pattern rule.
10352         (generated): Add those targets.
10353         * elf/check-execstack.c: File removed.
10354
10355         * scripts/check-textrel.awk: New file.
10356         * elf/Makefile ($(objpfx)check-textrel): Target removed.
10357         (check-textrel-CFLAGS): Variable removed.
10358         (all-built-dso): Use := to define.o
10359         ($(all-built-dso:=.dyn)): New static pattern rule.
10360         (generated): Add those targets.
10361         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
10362         * config.make.in (READELF): New substituted variable.
10363         * elf/check-textrel.c: File removed.
10364
10365 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
10366
10367         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
10368         allow.
10369         * conform/data/ctype.h-data [C99-based standards] (isblank):
10370         Expect function.
10371         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
10372         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
10373         [ISO || ISO99 || ISO11] (*_t): Do not allow.
10374         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
10375         Specify type.  Require positive value.
10376         (EILSEQ): Likewise.
10377         (ERANGE): Likewise.
10378         [ISO || POSIX] (EILSEQ): Do not expect.
10379         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
10380         Specify type.  Require positive value.
10381         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
10382         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
10383         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
10384         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
10385         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
10386         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
10387         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
10388         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
10389         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
10390         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
10391         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
10392         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
10393         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
10394         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
10395         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
10396         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
10397         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
10398         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
10399         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
10400         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
10401         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
10402         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
10403         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
10404         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
10405         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
10406         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
10407         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
10408         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
10409         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
10410         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
10411         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
10412         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
10413         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
10414         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
10415         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
10416         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
10417         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
10418         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
10419         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
10420         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
10421         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
10422         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
10423         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
10424         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
10425         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
10426         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
10427         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
10428         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
10429         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
10430         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
10431         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
10432         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
10433         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
10434         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
10435         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
10436         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
10437         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
10438         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
10439         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
10440         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
10441         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
10442         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
10443         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
10444         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
10445         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
10446         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
10447         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
10448         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
10449         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
10450         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
10451         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
10452         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
10453         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
10454         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
10455         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
10456         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
10457         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
10458         Require >= 2.
10459         (FLT_ROUNDS): Expect as macro, not constant.
10460         (FLT_MANT_DIG): Use macro-int-constant.
10461         (DBL_MANT_DIG): Likewise.
10462         (LDBL_MANT_DIG): Likewise.
10463         (FLT_DIG): Likewise.
10464         (DBL_DIG): Likewise.
10465         (LDBL_DIG): Likewise.
10466         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
10467         (DBL_MIN_EXP): Likewise.
10468         (LDBL_MIN_EXP): Likewise.
10469         (FLT_MAX_EXP): Use macro-int-constant.
10470         (DBL_MAX_EXP): Likewise.
10471         (LDBL_MAX_EXP): Likewise.
10472         (FLT_MAX_10_EXP): Likewise.
10473         (DBL_MAX_10_EXP): Likewise.
10474         (LDBL_MAX_10_EXP): Likewise.
10475         (FLT_MAX): Use macro-constant.
10476         (DBL_MAX): Likewise.
10477         (LDBL_MAX): Likewise.
10478         (FLT_EPSILON): Use macro-constant.  Give upper bound.
10479         (DBL_EPSILON): Likewise.
10480         (LDBL_EPSILON): Likewise.
10481         (FLT_MIN): Likewise.
10482         (DBL_MIN): Likewise.
10483         (LDBL_MIN): Likewise.
10484         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
10485         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
10486         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
10487         [ISO11] (FLT_HAS_SUBNORM): Likewise.
10488         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
10489         [ISO11] (DBL_DECIMAL_DIG): Likewise.
10490         [ISO11] (FLT_DECIMAL_DIG): Likewise.
10491         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
10492         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
10493         [ISO11] (FLT_TRUE_MIN): Likewise.
10494         [ISO11] (LDBL_TRUE_MIN): Likewise.
10495         [ISO || ISO99 || ISO11] (*_t): Do not allow.
10496         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
10497         (SCHAR_MIN): Use macro-int-constant.  Specify type.
10498         (SCHAR_MAX): Likewise.
10499         (UCHAR_MAX): Likewise.
10500         (CHAR_MIN): Likewise.
10501         (CHAR_MAX): Likewise.
10502         (MB_LEN_MAX): Use macro-int-constant.
10503         (SHRT_MIN): Use macro-int-constant.  Specify type.
10504         (SHRT_MAX): Likewise.
10505         (USHRT_MAX): Likewise.
10506         (INT_MAX): Likewise.
10507         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
10508         bound negative.
10509         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
10510         bound with "U".
10511         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
10512         bound with "L".
10513         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
10514         bound negative.  Suffix upper bound with "L".
10515         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
10516         bound with "UL".
10517         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
10518         Specify type.
10519         [C99-based standards] (LLONG_MAX): Likewise.
10520         [C99-based standards] (ULLONG_MAX): Likewise.
10521         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
10522         == 0.
10523         [ISO11] (max_align_t): Require type.
10524         [ISO || ISO99 || ISO11] (*_t): Do not allow.
10525
10526         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
10527         from $CFLAGS, without defining away __attribute__ calls.
10528         (checknamespace): Use $CFLAGS_namespace.
10529
10530         * conform/conformtest.pl (@keywords): Only include C99 keywords
10531         for standards based on C99 or C11.
10532
10533         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
10534         Disable tests.
10535         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
10536         UNIX98]: Likewise.
10537
10538         * conform/conformtest.pl: Handle "macro-int-constant" and test for
10539         usability of symbols in #if.
10540
10541         * conform/conformtest.pl: If macro or constant types start
10542         "promoted:", expect the symbol to be of the following type
10543         promoted by the integer promotions.
10544
10545         * conform/conformtest.pl: Parse all "constant" and "macro" lines
10546         in one place.  Also handle "macro-constant".
10547
10548         * conform/conformtest.pl: Only accept expected macro values with
10549         "==".  Parse all "macro" lines in one place.
10550         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
10551
10552         * conform/conformtest.pl: Handle braced types on "constant" lines
10553         instead of handling "typed-constant".
10554         * conform/data/signal.h-data: Use "constant" instead of
10555         "typed-constant".
10556
10557         * conform/conformtest.pl: Handle "optional-" at start of lines in
10558         one place rather than duplicating several cases.  Handle each
10559         format of "macro" line with initial "optional-".
10560
10561         * conform/conformtest.pl: Only accept expected constant or
10562         optional-constant values with "==".  Parse all "constant" lines in
10563         one place.  Parse all "optional-constant" lines in one place.
10564         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
10565         * conform/data/fmtmsg.h-data: Likewise.
10566         * conform/data/netinet/in.h-data: Likewise.
10567         * conform/data/tar.h-data: Likewise.
10568         * conform/data/limits.h-data: Use "==" form on "constant" and
10569         "optional-constant" lines.
10570
10571         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
10572         Use -std=c99 for XOPEN2K.
10573         (@knownproblems): Remove.
10574         (newtoken): Don't check %isknown.
10575
10576         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
10577         Do not expect macro.
10578         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
10579         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
10580         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
10581         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
10582         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
10583         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
10584         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
10585         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
10586         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
10587         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
10588         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
10589         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
10590         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
10591         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
10592         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
10593         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
10594         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
10595         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
10596         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
10597         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
10598         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
10599         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
10600         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
10601         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
10602         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
10603         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
10604         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
10605         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
10606         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
10607         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
10608         [XPG3] (acosh): Likewise.
10609         [XPG3] (asinh): Likewise.
10610         [XPG3] (atanh): Likewise.
10611         [XPG3] (cbrt): Likewise.
10612         [XPG3] (expm1): Likewise.
10613         [XPG3] (ilogb): Likewise.
10614         [XPG3] (log1p): Likewise.
10615         [XPG3] (logb): Likewise.
10616         [XPG3] (nextafter): Likewise.
10617         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
10618         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
10619         [XPG3] (remainder): Likewise.
10620         [XPG3] (rint): Likewise.
10621         [XPG3 || XPG4 || UNIX98] (round): Likewise.
10622         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
10623         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
10624         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
10625         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
10626         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
10627         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
10628         [UNIX98 || XOPEN2K] (scalb): Expect.
10629         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
10630         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
10631         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
10632         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
10633         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
10634         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
10635         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
10636         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
10637         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
10638         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
10639         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
10640         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
10641         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
10642         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
10643         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
10644         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
10645         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
10646         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
10647         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
10648         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
10649         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
10650         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
10651         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
10652         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
10653         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
10654         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
10655         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
10656         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
10657         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
10658         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
10659         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
10660         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
10661         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
10662         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
10663         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
10664         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
10665         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
10666         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
10667         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
10668         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
10669         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
10670         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
10671         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
10672         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
10673         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
10674         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
10675         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
10676         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
10677         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
10678         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
10679         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
10680         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
10681         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
10682         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
10683         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
10684         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
10685         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
10686         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
10687         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
10688         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
10689         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
10690         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
10691         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
10692         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
10693         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
10694         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
10695         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
10696         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
10697         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
10698         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
10699         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
10700         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
10701         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
10702         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
10703         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
10704         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
10705         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
10706         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
10707         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
10708         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
10709         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
10710         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
10711         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
10712         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
10713         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
10714         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
10715         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
10716         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
10717         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
10718         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
10719         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
10720         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
10721         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
10722         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
10723         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
10724         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
10725         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
10726         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
10727         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
10728         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
10729         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
10730         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
10731         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
10732         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
10733         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
10734         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
10735         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
10736         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
10737         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
10738         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
10739         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
10740         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
10741         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
10742         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
10743         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
10744         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
10745         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
10746         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
10747         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
10748         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
10749         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
10750         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
10751         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
10752         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
10753         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
10754         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
10755         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
10756         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
10757         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
10758         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
10759         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
10760         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
10761         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
10762         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
10763         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
10764         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
10765         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
10766
10767         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
10768         _XOPEN_SOURCE_EXTENDED for XPG4.
10769
10770         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
10771
10772         * Makeconfig (localtime): Remove variable.
10773         (inst_localtime-file): Likewise.
10774
10775 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10776
10777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
10778         Update.
10779         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
10780         Update.
10781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
10782         Update.
10783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
10784         Update.
10785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
10786         Update.
10787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
10788         Update.
10789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
10790         Update.
10791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
10792         Update.
10793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10794         Update.
10795
10796 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
10797
10798         [BZ #2550]
10799         [BZ #2570]
10800         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
10801         comparisons to determine direction to adjust input.
10802         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10803         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
10804         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10805         Likewise.
10806         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10807         Likewise.
10808         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10809         Likewise.
10810         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10811         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10812         Likewise.
10813         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10814         Likewise.
10815         * math/libm-test.inc (nexttoward_test): Add more tests.
10816
10817 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10818
10819         [BZ #14040]
10820         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
10821         in version GLIBC_2.1, not GLIBC_2.0.
10822         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
10823         Likewise.
10824
10825 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
10826
10827         [BZ #13942]
10828         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
10829         (1 - x) * (1 + x).
10830         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10831         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
10832         * math/libm-test.inc (acos_test): Add more tests.
10833         (asin_test): Likewise.
10834         * sysdeps/i386/fpu/libm-test-ulps: Update.
10835         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10836
10837         [BZ #14034]
10838         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
10839         of square root.
10840         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
10841         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10842         * math/libm-test.inc (acos_test_tonearest): New function.
10843         (acos_test_towardzero): Likewise.
10844         (acos_test_downward): Likewise.
10845         (acos_test_upward): Likewise.
10846         (asin_test_tonearest): Likewise.
10847         (asin_test_towardzero): Likewise.
10848         (asin_test_downward): Likewise.
10849         (asin_test_upward): Likewise.
10850         (main): Call the new functions.
10851         * sysdeps/i386/fpu/libm-test-ulps: Update.
10852         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10853
10854         [BZ #13884]
10855         [BZ #13924]
10856         * math/e_exp10.c: Include <float.h>.
10857         (__ieee754_exp10): Handle underflow here rather than multiplying
10858         large negative argument by M_LN10.
10859         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
10860         of __ieee754_expf.
10861         * math/e_exp10l.c: Include <float.h>.
10862         (__ieee754_exp10l): Handle underflow here rather than multiplying
10863         large negative argument by M_LN10l.
10864         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
10865         spurious overflow exception on underflow.
10866
10867 2012-04-29  Marek Polacek  <polacek@redhat.com>
10868
10869         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
10870         (__fortify_function): New macro.
10871         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
10872         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
10873         __extern_always_inline.
10874         * libio/bits/stdio2.h: Likewise.
10875         * libio/bits/stdio.h: Likewise.
10876         * string/string.h: Likewise.
10877         * string/bits/string3.h: Likewise.
10878         * include/stdio.h: Likewise.
10879         * stdlib/bits/stdlib.h: Likewise.
10880         * stdlib/stdlib.h: Likewise.
10881         * rt/bits/mqueue2.h: Likewise.
10882         * rt/mqueue.h: Likewise.
10883         * posix/bits/unistd.h: Likewise.
10884         * posix/unistd.h: Likewise.
10885         * io/bits/poll2.h: Likewise.
10886         * io/bits/fcntl2.h: Likewise.
10887         * io/fcntl.h: Likewise.
10888         * io/sys/poll.h: Likewise.
10889         * misc/bits/syslog.h: Likewise.
10890         * misc/bits/syslog-ldbl.h: Likewise.
10891         * misc/sys/syslog.h: Likewise.
10892         * socket/bits/socket2.h: Likewise.
10893         * socket/sys/socket.h: Likewise.
10894         * debug/tst-chk1.c: Likewise.
10895         * wcsmbs/bits/wchar2.h: Likewise.
10896         * wcsmbs/bits/wchar-ldbl.h: Likewise.
10897         * wcsmbs/wchar.h: Likewise.
10898
10899 2012-04-29  Andreas Jaeger  <aj@suse.de>
10900
10901         * Makerules (tests): Remove enable-check-abi protection.
10902         (check-abi-warn): Remove.
10903         (check-abi-%): Remove check-abi-warn usage.
10904
10905         * configure.in: Remove check-abi configure option.
10906         * configure: Regenerated.
10907         * config.make.in (enable-check-abi): Remove.
10908
10909 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
10910
10911         [BZ #14033]
10912         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
10913         double functions to double *_finite functions.
10914
10915         [BZ #13941]
10916         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
10917         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
10918         LDBL_MIN_EXP.
10919         * stdio-common/Makefile (tests): Add tst-sprintf3.
10920         * stdio-common/tst-sprintf3.c: New file.
10921
10922         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
10923         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
10924
10925 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10926
10927         * conform/conformtest.pl: Remove duplicate typed-constant
10928         handling.
10929
10930 2012-04-28  David S. Miller  <davem@davemloft.net>
10931
10932         * Makerules (%.abilist): Add vpath on sysdep_dirs.
10933         (check-abi-%): Remove AWK script prerequisite and explicit
10934         abilist directory.
10935         (check-abi): Rewrite to just diff the symlist with the abilist.
10936         (config-tls, config-abi-config): Delete, no longer used.
10937         (update-abi-%): Remove AWK script and explicit abilist directory.
10938         (update-abi): Rewrite to simply compare and conditionally copy the
10939         symlist and the sysdep abilist file.  Remove update-abi-config
10940         checks.
10941         * abilist/ld.abilist: Remove.
10942         * abilist/libBrokenLocale.abilist: Remove.
10943         * abilist/libanl.abilist: Remove.
10944         * abilist/libcrypt.abilist: Remove.
10945         * abilist/libdl.abilist: Remove.
10946         * abilist/librt.abilist: Remove.
10947         * abilist/libthread_db.abilist: Remove.
10948         * abilist/libutil.abilist: Remove.
10949         * scripts/extract-abilist.awk: Remove.
10950         * scripts/merge-abilist.awk: Remove.
10951         * sysdeps/generic/libcidn.abilist: New file.
10952         * sysdeps/generic/libnss_compat.abilist: New file.
10953         * sysdeps/generic/libnss_db.abilist: New file.
10954         * sysdeps/generic/libnss_dns.abilist: New file.
10955         * sysdeps/generic/libnss_files.abilist: New file.
10956         * sysdeps/generic/libnss_hesiod.abilist: New file.
10957         * sysdeps/generic/libnss_nis.abilist: New file.
10958         * sysdeps/generic/libnss_nisplus.abilist: New file.
10959         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
10960         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
10961         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
10962         file.
10963         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
10964         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
10965         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
10966         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
10967         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
10968         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
10969         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
10970         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
10971         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
10972         file.
10973         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
10974         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
10975         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
10976         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
10977         file.
10978         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
10979         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
10980         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
10981         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
10982         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
10983         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
10984         file.
10985         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
10986         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
10987         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
10988         file.
10989         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
10990         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
10991         New file.
10992         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
10993         New file.
10994         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
10995         New file.
10996         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
10997         New file.
10998         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
10999         New file.
11000         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
11001         New file.
11002         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
11003         New file.
11004         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
11005         New file.
11006         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
11007         New file.
11008         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
11009         New file.
11010         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
11011         New file.
11012         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
11013         New file.
11014         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
11015         New file.
11016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
11017         file.
11018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
11019         New file.
11020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
11021         New file.
11022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
11023         file.
11024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
11025         New file.
11026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
11027         New file.
11028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
11029         file.
11030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
11031         New file.
11032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
11033         New file.
11034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
11035         New file.
11036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
11037         New file.
11038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
11039         New file.
11040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
11041         New file.
11042         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
11043         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
11044         file.
11045         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
11046         New file.
11047         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
11048         file.
11049         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
11050         file.
11051         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
11052         file.
11053         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
11054         file.
11055         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
11056         file.
11057         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
11058         New file.
11059         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
11060         file.
11061         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
11062         file.
11063         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
11064         New file.
11065         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
11066         file.
11067         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
11068         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
11069         file.
11070         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
11071         New file.
11072         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
11073         file.
11074         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
11075         file.
11076         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
11077         file.
11078         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
11079         file.
11080         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
11081         file.
11082         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
11083         New file.
11084         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
11085         file.
11086         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
11087         file.
11088         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
11089         New file.
11090         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
11091         file.
11092         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
11093         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
11094         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
11095         file.
11096         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
11097         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
11098         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
11099         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
11100         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
11101         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
11102         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
11103         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
11104         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
11105         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
11106         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
11107         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
11108         file.
11109         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
11110         New file.
11111         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
11112         file.
11113         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
11114         file.
11115         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
11116         file.
11117         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
11118         file.
11119         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
11120         file.
11121         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
11122         New file.
11123         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
11124         New file.
11125         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
11126         file.
11127         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
11128         New file.
11129         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
11130         file.
11131         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
11132         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
11133         file.
11134         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
11135         New file.
11136         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
11137         file.
11138         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
11139         file.
11140         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
11141         file.
11142         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
11143         file.
11144         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
11145         file.
11146         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
11147         New file.
11148         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
11149         New file.
11150         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
11151         file.
11152         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
11153         New file.
11154         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
11155         file.
11156
11157 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
11158
11159         * conform/conformtest.pl: Fix typo in handling typed-constant from
11160         allow-header.
11161
11162 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
11163
11164         * README: Cut down references to pre-2.6 Linux kernels and
11165         Linuxthreads.  Update lists of configurations in libc and ports
11166         and sort alphabetically.  Say "or newer" with Linux kernel version
11167         requirements.
11168
11169         * config.h.in [IS_IN_build]: Allow compiling without optimization.
11170
11171 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
11172
11173         [BZ #887]
11174         * math/libm-test.inc (logb_test_downward): New test to expose
11175         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
11176         rounding mode.
11177
11178 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
11179
11180         [BZ #14027]
11181         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
11182         to be done.
11183         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
11184         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
11185
11186 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
11187
11188         * sysdeps/unix/i386/brk.S: Remove file.
11189         * sysdeps/unix/i386/dl-brk.S: Likewise.
11190         * sysdeps/unix/i386/pipe.S: Likewise.
11191         * sysdeps/unix/i386/sigreturn.S: Likewise.
11192         * sysdeps/unix/i386/syscall.S: Likewise.
11193         * sysdeps/unix/i386/vfork.S: Likewise.
11194         * sysdeps/unix/i386/wait.S: Likewise.
11195
11196         * sysdeps/unix/common/tcsendbrk.c: Move to ...
11197         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
11198
11199         * configure.in (arm*-none*): Do not allow without
11200         --enable-hacker-mode.
11201         (netbsd*): Remove case setting base_os.
11202         (386bsd*): Likewise.
11203         (freebsd*): Likewise.
11204         (bsdi*): Likewise.
11205         (osf*): Likewise.
11206         (sunos*): Likewise.
11207         (ultrix*): Likewise.
11208         (newsos*): Likewise.
11209         (dynix*): Likewise.
11210         (*bsd*): Likewise.
11211         (sysv*): Likewise.
11212         (isc*): Likewise.
11213         (esix*): Likewise.
11214         (sco*): Likewise.
11215         (minix*): Likewise.
11216         (irix4*): Likewise.
11217         (irix6*): Likewise.
11218         (solaris[2-9]*): Likewise.
11219         (none): Likewise.
11220         * configure: Regenerated.
11221
11222 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11223
11224         [BZ #11521]
11225         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
11226         overflow or cancellation in calculating denominator.
11227         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
11228         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
11229         down expression to avoid unexpected rounding in newer GCCs.
11230         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
11231
11232 2012-04-26  David S. Miller  <davem@davemloft.net>
11233
11234         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
11235         long-double compat symbols.
11236         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
11237         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
11238         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
11239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
11240         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
11241         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
11242         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
11243         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
11244         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
11245         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
11246         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
11247         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
11248         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11249
11250 2012-04-25  David S. Miller  <davem@davemloft.net>
11251
11252         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
11253         HWCAP_* values only after the memory barriers have been defined.
11254         (atomic_full_barrier): Define.
11255         (atomic_read_barrier): Define.
11256         (atomic_write_barrier): Define.
11257
11258 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11259
11260         * shlib-versions: Add libgcc_s version information.
11261         * sysdeps/generic/libgcc_s.h: Remove.
11262         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
11263         libgcc_s.h.
11264         * sysdeps/gnu/unwind-resume.c: Likewise.
11265         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
11266
11267 2012-04-25  David S. Miller  <davem@davemloft.net>
11268
11269         * sysdeps/unix/sparc/brk.S: Delete.
11270         * sysdeps/unix/sparc/dl-brk.S: Delete.
11271         * sysdeps/unix/sparc/pipe.S: Delete.
11272         * sysdeps/unix/sparc/sysdep.S: Delete.
11273         * sysdeps/unix/sparc/sysdep.h: Delete.
11274         * sysdeps/unix/sparc/vfork.S: Delete.
11275         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
11276         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
11277         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
11278         ret_ERRVAL, r0, r1, MOVE): Define.
11279         (JUMPTARGET): Remove.
11280         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
11281         sysdeps/unix/sparc/sysdep.h
11282         (ENTRY, END): Remove.
11283         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11284
11285 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
11286
11287         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
11288         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
11289         -DIS_IN_build.
11290
11291         * timezone/README: Update upstream location and email address for
11292         tzcode and tzdata.
11293         * timezone/zdump.c: Update from tzcode 2012b.
11294         * timezone/zic.c: Likewise.
11295
11296         * configure.in (libc_cv_as_needed): Remove test.
11297         * configure: Regenerated.
11298         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
11299         conditional definition.
11300         [$(have-as-needed) != yes] (no-as-needed): Likewise.
11301         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
11302         * config.make.in (have-as-needed): Remove variable.
11303
11304 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
11305             Paul Pluzhnikov  <ppluzhnikov@google.com>
11306
11307         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
11308         strings correctly.
11309
11310 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
11311
11312         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
11313         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
11314         * sysdeps/sh/strlen.S: Likewise.
11315
11316 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
11317
11318         * sysdeps/unix/fork.S: Remove file.
11319         * sysdeps/unix/i386/fork.S: Likewise.
11320         * sysdeps/unix/sparc/fork.S: Likewise.
11321
11322         * sysdeps/unix/system.c: Remove file.
11323         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
11324
11325         * sysdeps/unix/getegid.S: Remove file.
11326         * sysdeps/unix/geteuid.S: Likewise.
11327
11328 2012-04-24  Roland McGrath  <roland@hack.frob.com>
11329
11330         * scripts/check-localplt.awk: New file.
11331         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
11332         of diff.
11333         * scripts/data/localplt-generic.data: Add a comment.
11334
11335         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
11336         NODE when __dir_mkfile failed.
11337         * sysdeps/mach/hurd/symlinkat.c: Likewise.
11338         Reported by Ludovic Courtès <ludo@gnu.org>.
11339
11340 2012-04-24  Andreas Jaeger  <aj@suse.de>
11341
11342         * Makerules (common-clean): Also remove gen-as-const-headers
11343         files.
11344
11345 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
11346
11347         * Makerules (native-compile): Do not change working directory for
11348         build.  Use $(OUTPUT_OPTION) in command.
11349         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
11350
11351 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11352
11353         [BZ #13886]
11354         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
11355         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
11356         * math/libm-test.inc (floor_test): Add more tests.
11357         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
11358
11359 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
11360
11361         * sysdeps/unix/getdents.c: Remove file.
11362         * sysdeps/unix/sysv/getdents.c: Likewise.
11363         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
11364
11365         * sysdeps/unix/syscalls.list (madvise): Add syscall from
11366         sysdeps/unix/mman/syscalls.list.
11367         (mmap): Likewise.
11368         (mprotect): Likewise.
11369         (msync): Likewise.
11370         (munmap): Likewise.
11371         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
11372         * sysdeps/unix/mman/syscalls.list: Remove.
11373         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
11374
11375         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
11376         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
11377         * configure: Regenerated.
11378         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
11379         $(libgcc_s_suffix).
11380         * config.make.in (libgcc_s_suffix): Remove variable.
11381
11382 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
11383
11384         * sysdeps/unix/sysv/gethostname.c: Move to ...
11385         * sysdeps/posix/gethostname.c: ... here.
11386
11387         * sysdeps/unix/execve.S: Remove file.
11388
11389         * sysdeps/unix/_exit.S: Remove file.
11390
11391 2012-04-23  Andreas Jaeger  <aj@suse.de>
11392
11393         [BZ #13739]
11394         * manual/Makefile: Remove make dist support, there's no
11395         need for a stand-alone documentation tar ball.
11396         (TEXI2DVI): Define always, it's not in Makeconfig.
11397         (dist): Removed.
11398         (tar-it): Removed.
11399         (edition): Removed.
11400         (glibc-doc-$(edition).tar): Removed
11401         (%.Z): Removed.
11402         (%.gz): Removed.
11403         (%.uu): Removed.
11404         (ETAGS): Remove, it's in Makeconfig.
11405         (move-if-change): Remove, it's in Makeconfig.
11406
11407 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
11408
11409         [BZ #13970]
11410         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
11411         (strtod, strtof, strtold, strtol, strtoul, strtoq)
11412         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
11413         (strtod_l, strtof_l, strtold_l): Remove __wur.
11414         It is not necessarily an error to ignore strtol's return value.
11415         One can reliably look at the stored endptr to decide whether
11416         the number had valid syntax.
11417
11418 2012-04-21  Andreas Jaeger  <aj@suse.de>
11419
11420         [BZ #13739]
11421         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
11422
11423 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
11424
11425         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
11426         * sysdeps/unix/sysv/Versions: Remove file.
11427
11428 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
11429
11430         [BZ #13927]
11431         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11432
11433 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
11434
11435         [BZ #7064]
11436         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
11437         version from __vm86.
11438
11439 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
11440
11441         * sysdeps/unix/common/lxstat.c: Remove file.
11442         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
11443
11444         * sysdeps/unix/sysv/Makefile: Remove file.
11445
11446         * sysdeps/unix/sysv/direct.h: Remove file.
11447
11448         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
11449         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
11450         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
11451         * sysdeps/unix/sysv/bits/signum.h: Likewise.
11452         * sysdeps/unix/sysv/bits/stat.h: Likewise.
11453         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
11454         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
11455
11456         * sysdeps/unix/sysv/setrlimit.c: Remove file.
11457
11458         * sysdeps/unix/xmknod.c: Remove file.
11459         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
11460
11461         * sysdeps/unix/sysv/settimeofday.c: Remove file.
11462
11463         * sysdeps/unix/sysv/i386/time.S: Remove file.
11464
11465         * sysdeps/unix/fxstat.c: Remove file.
11466         * sysdeps/unix/xstat.c: Likewise.
11467         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
11468
11469         * sysdeps/unix/sysv/sigaction.c: Remove file.
11470
11471         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
11472         (sysdep_headers): Remove variable.
11473         [termio.h not in sysdep_headers] (generated): Likewise.
11474         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
11475         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
11476         * sysdeps/unix/sysv/tcdrain.c: Likewise.
11477         * sysdeps/unix/sysv/tcflow.c: Likewise.
11478         * sysdeps/unix/sysv/tcflush.c: Likewise.
11479         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
11480         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
11481         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
11482         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
11483         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
11484
11485         * sysdeps/unix/siglist.c: Remove file.
11486
11487         * sysdeps/unix/getppid.S: Remove file.
11488
11489         * sysdeps/unix/mkdir.c: Remove file.
11490         * sysdeps/unix/rmdir.c: Likewise.
11491
11492 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
11493
11494         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
11495         ERR_MAX value.
11496         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
11497         errlist-compat value.
11498
11499 2012-04-18  David S. Miller  <davem@davemloft.net>
11500
11501         * sysdeps/generic/memcopy.h (reg_char): Delete.
11502         * debug/strcat_chk.c: Use char, not reg_char.
11503         * debug/strcpy_chk.c: Likewise.
11504         * debug/strncat_chk.c: Likewise.
11505         * debug/strncpy_chk.c: Likewise.
11506         * string/memchr.c: Likewise.
11507         * string/memrchr.c: Likewise.
11508         * string/rawmemchr.c: Likewise.
11509         * string/strcat.c: Likewise.
11510         * string/strchr.c: Likewise.
11511         * string/strchrnul.c: Likewise.
11512         * string/strcmp.c: Likewise.
11513         * string/strcpy.c: Likewise.
11514         * string/strncat.c: Likewise.
11515         * string/strncmp.c: Likewise.
11516         * string/strncpy.c: Likewise.
11517
11518 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
11519
11520         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
11521         __builtin_memcopy is called when src and dest ranges are known to not
11522         overlap.
11523
11524 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
11525
11526         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
11527         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
11528         fwd_align_merge macro call.
11529         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
11530         bwd_align_merge macro call.
11531         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
11532
11533 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
11534
11535         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
11536         bwd_align_merge macros.
11537         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
11538         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
11539         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
11540
11541 2012-04-18  David S. Miller  <davem@davemloft.net>
11542
11543         * sysdeps/sparc/sparc64/memcopy.h: Delete.
11544
11545 2012-04-18  Andreas Jaeger  <aj@suse.de>
11546
11547         [BZ# 6794]
11548         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
11549         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
11550         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
11551
11552         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
11553         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
11554         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
11555
11556         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
11557         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
11558         Adjust for changed ldbl-128 files.
11559
11560         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
11561         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
11562         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
11563
11564 2012-04-17  David S. Miller  <davem@davemloft.net>
11565
11566         * sysdeps/sparc/sparc32/memcopy.h: Delete.
11567
11568 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
11569
11570         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
11571         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
11572         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
11573         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
11574         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
11575         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
11576
11577 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11578
11579         [BZ #6794]
11580         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
11581         * math/libm-test.inc: Add ilogb errno and exception tests.
11582         * math/w_ilogb.c: New file: ilogb wrapper.
11583         * math/w_ilogbf.c: New file: ilogbf wrapper.
11584         * math/w_ilogbl.c: New file: ilogbl wrapper.
11585         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
11586         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
11587         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
11588         exception being thrown with 0.0 as argument.
11589         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
11590         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
11591         exception being thrown with 0.0 as argument.
11592         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
11593         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
11594         exception being thrown with 0.0 as argument.
11595         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
11596         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
11597         exception being thrown with 0.0 as argument.
11598         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
11599         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
11600         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
11601         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
11602         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
11603         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
11604         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
11605         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
11606         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
11607
11608 2012-04-17  Petr Baudis  <pasky@ucw.cz>
11609
11610         * include/sys/uio.h: Change __vector to __iovec to avoid clash
11611         with altivec.
11612
11613 2012-04-16  Marek Polacek  <polacek@redhat.com>
11614
11615         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
11616
11617 2012-04-16  Marek Polacek  <polacek@redhat.com>
11618
11619         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
11620         operands of fdivp instruction.
11621
11622 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
11623
11624         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
11625         * elf/tst-auditmod3b.c: Likewise.
11626         * elf/tst-auditmod4b.c: Likewise.
11627         * elf/tst-auditmod5b.c: Likewise.
11628         * elf/tst-auditmod6b.c: Likewise.
11629         * elf/tst-auditmod6c.c: Likewise.
11630         * elf/tst-auditmod7b.c: Likewise.
11631         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
11632         * sysdeps/x86_64/preconfigure.in: Likewise.
11633         * sysdeps/x86_64/preconfigure: Regenerated.
11634
11635 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
11636
11637         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
11638         __ILP32__.
11639
11640 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
11641
11642         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11643         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
11644
11645 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
11646
11647         [BZ #13973]
11648         * locale/iso-639.def: Fix gl language name. Spotted by
11649         Yaron Shahrabani.
11650
11651 2012-04-12  Roland McGrath  <roland@hack.frob.com>
11652
11653         [BZ #2074]
11654         * libio/libio.h (__io_write_fn): Update comment.
11655
11656 2012-04-12  Petr Baudis  <pasky@ucw.cz>
11657
11658         [BZ #2074]
11659         * stdio.texi (Hook Functions): The user provided writer function
11660         is not allowed to return -1.
11661
11662 2012-04-11  David S. Miller  <davem@davemloft.net>
11663
11664         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11665
11666 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
11667
11668         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
11669         Add a leading slash to rtkaio.
11670
11671 2012-04-11  Jim Meyering  <meyering@redhat.com>
11672
11673         [BZ #11959]
11674         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
11675         It is not necessarily an error to ignore fwrite's return
11676         value.  One can reliably use ferror to test for errors after
11677         the fact.
11678
11679 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
11680
11681         * bits/types.h (__snseconds_t): New type.
11682         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
11683
11684         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
11685         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11686         (__SNSECONDS_T_TYPE): Likewise.
11687         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
11688         (__SNSECONDS_T_TYPE): Likewise.
11689         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11690         (__SNSECONDS_T_TYPE): Likewise.
11691
11692 2012-04-10  Andreas Jaeger  <aj@suse.de>
11693
11694         [BZ #2636]
11695         * manual/time.texi (Processor Time): Return type of times is
11696         elapsed real time since an arbitrary point in the past.
11697         (CPU Time): Move CLK_TCK from here...
11698         (Processor Time): ...to here.  Correct description.
11699         * manual/conf.texi (Constants for Sysconf): Correct description of
11700         _SC_CLK_TCK.
11701
11702 2012-04-10  David S. Miller  <davem@davemloft.net>
11703
11704         [BZ #13967]
11705         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
11706         where the is a gap between DT_REL(A) and DT_JMPREL.
11707
11708 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
11709
11710         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
11711         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
11712         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
11713
11714 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
11715
11716         * elf/dl-support.c (_dl_inhibit_cache): New variable.
11717         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
11718         (dl_main): Handle --inhibit-cache.
11719         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
11720         _dl_inhibit_cache.
11721         * elf/dl-load.c (_dl_map_object): Use it.
11722         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
11723
11724 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
11725
11726         [BZ #13872]
11727         * sysdeps/i386/fpu/e_powl.S (p78): New object.
11728         (__ieee754_powl): Saturate large exponents rather than testing for
11729         overflow of y*log2(x).
11730         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11731         * math/libm-test.inc (pow_test): Do not permit spurious overflow
11732         exceptions.
11733
11734         [BZ #11521]
11735         * math/s_ctan.c: Include <float.h>.
11736         (__ctan): Avoid internal overflow or cancellation in calculating
11737         denominator.
11738         * math/s_ctanf.c: Likewise.
11739         * math/s_ctanl.c: Likewise.
11740         * math/s_ctanh.c: Likewise.
11741         * math/s_ctanhf.c: Likewise.
11742         * math/s_ctanhl.c: Likewise.
11743         * math/libm-test.inc (ctan_test): Add more tests.
11744         (ctanh_test): Likewise.
11745         * sysdeps/i386/fpu/libm-test-ulps: Update.
11746         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11747
11748 2012-04-09  Andreas Jaeger  <aj@suse.de>
11749
11750         [BZ #6894]
11751         * manual/filesys.texi (Directory Entries): Mention that d_namlen
11752         is an optional BSD extension.
11753
11754         [BZ #10254]
11755         * manual/stdio.texi (Opening Streams): Document additional fopen
11756         parameters.
11757
11758 2012-04-09  Roland McGrath  <roland@hack.frob.com>
11759
11760         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
11761         %eax without telling the compiler.
11762
11763 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
11764
11765         [BZ # 13963]
11766         * manual/install.texi: Use sourceware.org.
11767
11768 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
11769
11770         [BZ #13873]
11771         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
11772         (__ieee754_pow): Generate overflow and underflow using huge*huge
11773         and tiny*tiny rather than just returning constant infinity or zero
11774         for large exponents.
11775         * math/libm-test.inc (pow_test): Require overflow exceptions for
11776         applicable cases of large exponents.
11777
11778         [BZ #706]
11779         * sysdeps/i386/fpu/e_pow.S (p10): New object.
11780         (__ieee754_pow): Use iterative multiplication algorithm only for
11781         integer exponents with absolute value below 1024.  Check for odd
11782         integer exponents when using algorithm for real exponents.
11783         * math/libm-test.inc (pow_test): Add more tests.
11784         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11785
11786 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
11787
11788         [BZ #13705]
11789         * math/libm-test.inc (exp_test): Do not allow overflow exception
11790         on underflow test.
11791
11792 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
11793
11794         [BZ #13705]
11795         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
11796         instead of __kernel_standard_f.
11797
11798 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
11799
11800         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
11801         * sysdeps/x86_64/memset_chk.S: Likewise.
11802
11803 2012-04-08  Andreas Jaeger  <aj@suse.de>
11804
11805         [BZ #10153]
11806         * manual/startup.texi (Environment Access): Describe return value
11807         for putenv and setenv.
11808
11809         [BZ #6895]
11810         * manual/filesys.texi (Directory Entries): Add description for
11811         DT_LNK.
11812
11813         [BZ #6890]
11814         * manual/filesys.texi (Directory Entries): Clarify that it's file
11815         system not operating system in the description of DT_UNKNOWN.
11816
11817         [BZ #6578]
11818         * manual/syslog.texi (closelog): Fix reference, it's openlog.
11819
11820 2012-04-08  Stephen Compall  <s11@member.fsf.org>
11821
11822         [BZ #6649]
11823         * manual/llio.texi (Opening and Closing Files): Add cross
11824         reference to explain mode argument.
11825
11826 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
11827
11828         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
11829         * sysdeps/x86_64/memset_chk.S: Likewise.
11830
11831 2012-04-07  David S. Miller  <davem@davemloft.net>
11832
11833         * elf/elf.h (R_SPARC_WDISP10): Define.
11834         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
11835         R_SPARC_SIZE32.
11836         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
11837         R_SPARC_SIZE64 and R_SPARC_H34.
11838
11839 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
11840
11841         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
11842         conditions and remove no longer applicable assertion.
11843
11844 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11845
11846         * bits/byteswap.h: Include <features.h>.
11847         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
11848         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
11849
11850 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11851
11852         * bits/byteswap.h (__bswap_16): Removed.
11853         Include <bits/byteswap-16.h> to get __bswap_16.
11854         * sysdeps/i386/bits/byteswap.h: Likewise.
11855         * sysdeps/s390/bits/byteswap.h: Likewise.
11856         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11857         * bits/byteswap-16.h: New file.
11858         * sysdeps/i386/bits/byteswap-16.h: Likewise.
11859         * sysdeps/s390/bits/byteswap-16.h: Likewise.
11860         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
11861         * string/Makefile (headers): Add bits/byteswap-16.h.
11862
11863 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
11864
11865         [BZ #13895]
11866         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
11867         extra indirection.
11868         * nss/Makefile (tests-static, tests): Add tst-nss-static.
11869         * nss/tst-nss-static.c: New.
11870
11871 2012-04-06  Robert Millan  <rmh@gnu.org>
11872
11873         [BZ #6486]
11874         * manual/llio.texi (File Position Primitive): lseek
11875         refers to WHENCE when it really means OFFSET.
11876
11877 2012-04-06  Andreas Jaeger  <aj@suse.de>
11878
11879         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
11880         strncmp declarations.
11881
11882         * abilist/libc.abilist: Add __poll and __ppoll.
11883
11884 2012-04-05  David S. Miller  <davem@davemloft.net>
11885
11886         * scripts/check-local-headers.sh: Accept a host triplet in the
11887         path matched by the exclude regexp.
11888
11889         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
11890         definition.
11891         * sysdeps/powerpc/powerpc32/dl-machine.h
11892         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
11893         * sysdeps/s390/s390-32/dl-machine.h
11894         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11895         * sysdeps/sparc/sparc32/dl-machine.h
11896         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11897         * sysdeps/sparc/sparc64/dl-machine.h
11898         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11899
11900         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
11901         lazy binding.
11902         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
11903         undefined symbol errors.
11904
11905         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
11906         DT_NEEDED entries.
11907
11908 2012-04-05  Michael Matz  <matz@suse.de>
11909
11910         [BZ #13592]
11911         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
11912
11913 2012-04-05  Andreas Jaeger  <aj@suse.de>
11914
11915         [BZ #13908]
11916         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
11917         comment.
11918
11919 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11920
11921         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
11922         which ROUND is no valid rounding mode.
11923
11924 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11925
11926         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
11927         read again.
11928         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
11929
11930 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11931
11932         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
11933         an exception using FPU order intentionally.
11934
11935 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11936
11937         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
11938         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
11939         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
11940         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
11941
11942 2012-04-05  Simon Josefsson  <simon@josefsson.org>
11943
11944         [BZ #12340]
11945         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
11946         EINVAL when BUFLEN is too smal.
11947
11948 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
11949
11950         [BZ #13553]
11951         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
11952         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11953
11954 2012-04-03  Andreas Jaeger  <aj@suse.de>
11955
11956         [BZ #13938]
11957         * manual/setjmp.texi (System V contexts): Fix sentence.
11958
11959         [BZ #13926]
11960         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
11961         New macro for this case.
11962         [!__GNUC__] (__bswap_64): New inline function for this case.
11963         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11964         * bits/byteswap.h: Likewise.
11965         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
11966         ull, guard with __GLIBC_HAVE_LONG_LONG.
11967
11968         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
11969         __GLIBC_HAVE_LONG_LONG.
11970
11971         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
11972         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
11973
11974 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
11975
11976         [BZ #13691]
11977         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
11978         inptr and inend, rather than using last_ch.
11979
11980 2012-04-02  David S. Miller  <davem@davemloft.net>
11981
11982         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
11983         * stdio-common/printf-parse.h (read_int): Change return type to
11984         'int', return -1 on INT_MAX overflow.
11985         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
11986         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
11987         overflows INT_MAX.  Check for overflow of in-format-string precision
11988         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
11989         SIZE_MAX not INT_MAX for integer overflow test.
11990         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
11991         skip the construct in the format string but do not record anything.
11992         * stdio-common/bug22.c: Adjust to test both width/prevision
11993         INT_MAX overflow as well as total length INT_MAX overflow.  Check
11994         explicitly for proper errno values.
11995
11996 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
11997
11998         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
11999         CHAR_MAX.
12000         * string/test-strcmp.c [! WIDE]: Likewise.
12001         * time/tst-mktime2.c: Likewise for INT_MAX.
12002         * string/test-string.h: #include <sys/param.h> for MIN.
12003
12004         * csu/init-first.c (__libc_init_first): Call __ctype_init.
12005         * sysdeps/i386/init-first.c (init): Likewise.
12006         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
12007         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
12008         * sysdeps/sh/init-first.c (init): Likewise.
12009
12010 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
12011
12012         * po/ru.po: Update from translation team.
12013         * po/vi.po: Likewise.
12014
12015 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
12016
12017         * resolv/nss_dns/dns-host.c: Merge copyright years.
12018
12019 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12020
12021         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
12022         Optimize memcpy with prefetch if
12023         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
12024         src, dst pointers have unequal 16 byte alignments.
12025
12026 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
12027
12028         [BZ #13928]
12029         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
12030         from a CNAME entry and return the minimum ttl for the query.
12031         (gaih_getanswer_slice): Likewise.
12032
12033 2012-03-30  Jeff Law  <law@redhat.com>
12034
12035         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
12036         due to long keys.
12037         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
12038         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
12039
12040         * resolv/nss_dns/dns-host.c: Update copyright year.
12041
12042 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
12043
12044         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
12045         requests to save a system call.  Fix check that all bytes are sent.
12046
12047         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
12048         comments for sendmmsg.
12049
12050 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12051
12052         [BZ #13691]
12053         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
12054         with only 1 character between 0x0041 and 0x01b0.
12055         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
12056         * wcsmbs/tst-mbsnrtowcs.c: New file.
12057
12058 2012-03-29  David S. Miller  <davem@davemloft.net>
12059
12060         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
12061         small copies by hand.
12062
12063 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12064
12065         [BZ #13761]
12066         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
12067         _nss_compat_initgroups_dyn): Fall back to malloc/free
12068         for large group memberships.
12069
12070 2012-03-28  David S. Miller  <davem@davemloft.net>
12071
12072         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
12073         that branches into memcpy.
12074         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
12075         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
12076         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
12077         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
12078         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
12079         bits.
12080         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
12081         implementation too.
12082         * sysdeps/sparc/mempcpy.S: New file.
12083
12084         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
12085         the IFUNC routine in the libc case.
12086         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12087
12088         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
12089         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
12090         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
12091         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
12092         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
12093         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
12094         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
12095         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
12096
12097         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
12098         loop to 256 bytes instead of 64 bytes and fix test signedness.
12099
12100         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
12101         * sysdeps/sparc/sparc32/Makefile: rather than here...
12102         * sysdeps/sparc/sparc64/Makefile: and here.
12103
12104 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
12105
12106         * malloc/mallocbug.c: Avoid warnings about unused variables.
12107
12108 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
12109
12110         [BZ #13760]
12111         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
12112         in the right place. Discard and retry query if response is
12113         larger than input buffer size.
12114
12115 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
12116
12117         [BZ #369]
12118         [BZ #2678]
12119         [BZ #3866]
12120         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
12121         x for large integer exponent.
12122         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
12123         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
12124         sign of result as needed afterwards.
12125         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
12126         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
12127         result for underflowing pow the same as for overflow.
12128         (__kernel_standard_l): Handle powl overflow and underflow here
12129         rather than calling __kernel_standard.
12130         * math/libm-test.inc (pow_test): Add more tests.
12131
12132         [BZ #3868]
12133         [BZ #13879]
12134         [BZ #13910]
12135         [BZ #13911]
12136         [BZ #13912]
12137         [BZ #13913]
12138         [BZ #13915]
12139         [BZ #13916]
12140         [BZ #13917]
12141         [BZ #13918]
12142         [BZ #13919]
12143         [BZ #13920]
12144         [BZ #13921]
12145         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
12146         * sysdeps/ieee754/k_standard.c: Include <float.h>.
12147         (__kernel_standard_l): New function.
12148         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
12149         __kernel_standard.
12150         * math/w_acosl.c (__acosl): Likewise.
12151         * math/w_asinl.c (__asinl): Likewise.
12152         * math/w_atan2l.c (__atan2l): Likewise.
12153         * math/w_atanhl.c (__atanhl): Likewise.
12154         * math/w_coshl.c (__coshl): Likewise.
12155         * math/w_exp10l.c (__exp10l): Likewise.
12156         * math/w_exp2l.c (__exp2l): Likewise.
12157         * math/w_fmodl.c (__fmodl): Likewise.
12158         * math/w_hypotl.c (__hypotl): Likewise.
12159         * math/w_j0l.c (__j0l, __y0l): Likewise.
12160         * math/w_j1l.c (__j1l, __y1l): Likewise.
12161         * math/w_jnl.c (__jnl, __ynl): Likewise.
12162         * math/w_lgammal.c (__lgammal): Likewise.
12163         * math/w_log10l.c (__log10l): Likewise.
12164         * math/w_log2l.c (__log2l): Likewise.
12165         * math/w_logl.c (__logl): Likewise.
12166         * math/w_powl.c (__powl): Likewise.
12167         * math/w_remainderl.c (__remainderl): Likewise.
12168         * math/w_scalbl.c (sysv_scalbl): Likewise.
12169         * math/w_sinhl.c (__sinhl): Likewise.
12170         * math/w_sqrtl.c (__sqrtl): Likewise.
12171         * math/w_tgammal.c (__tgammal): Likewise.
12172         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
12173         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
12174         * math/libm-test.inc (acos_test): Add more tests.
12175         (acosh_test): Likewise.
12176         (asin_test): Likewise.
12177         (atanh_test): Likewise.
12178         (exp_test): Likewise.
12179         (exp10_test): Likewise.
12180         (exp2_test): Likewise.
12181         (expm1_test): Likewise.
12182         (lgamma_test): Likewise.
12183         (log_test): Likewise.
12184         (log10_test): Likewise.
12185         (log1p_test): Likewise.
12186         (log2_test): Likewise.
12187         (pow_test): Do not allow some spurious overflow exceptions.
12188         (sqrt_test): Add more tests.
12189         (tgamma_test): Likewise.
12190         (y0_test): Likewise.
12191         (y1_test): Likewise.
12192         (yn_test): Likewise.
12193
12194 2012-03-27  Anton Blanchard  <anton@samba.org>
12195
12196         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
12197         MAP_HUGETLB.
12198         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12199         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
12200         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
12201
12202 2012-03-27  David S. Miller  <davem@davemloft.net>
12203
12204         * conform/Makefile: Run run-conformtest.sh using $(BASH).
12205
12206         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
12207         have-as-vis3 check.
12208
12209 2012-03-27  Andreas Jaeger  <aj@suse.de>
12210
12211         * sysdeps/x86_64/elf/configure.in: Moved to ...
12212         * sysdeps/x86_64/configure.in: ... here.
12213         * sysdeps/x86_64/elf/start.S: Moved to ...
12214         * sysdeps/x86_64/start.S: ... here.
12215         * sysdeps/x86_64/elf/configure: Delete.
12216
12217         * sysdeps/x86_64/configure.in: Merge contents from
12218         sysdeps/i386/configure.in (without i686 check).
12219
12220         * sysdeps/i386/elf/Versions: Merge into ...
12221         * sysdeps/i386/Versions: ... this.
12222         * sysdeps/i386/elf/Versions: Delete file.
12223         * sysdeps/i386/elf/start.S: Moved to ...
12224         * sysdeps/i386/start.S: ...here.
12225         * sysdeps/i386/elf/configure.in: Merge into...
12226         * sysdeps/i386/configure.in: ...here.
12227         * sysdeps/i386/elf/configure.in: Delete file.
12228         * sysdeps/i386/elf/configure: Delete file.
12229
12230         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
12231         * debug/backtracesyms.c: ... here.
12232         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
12233         * debug/backtracesymsfd.c: ... here.
12234         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
12235         * sysdeps/generic/ifunc-sel.h: ... here.
12236
12237         * sysdeps/unix/i386/start.c: Delete file.
12238         * sysdeps/unix/sparc/start.c: Delete file.
12239         * sysdeps/unix/start.c: Delete file.
12240
12241         * sysdeps/sh/elf/configure.in: Moved to ...
12242         * sysdeps/sh/configure.in: ... here.
12243         * sysdeps/sh/elf/start.S: Moved to ...
12244         * sysdeps/sh/start.S: ... here.
12245         * sysdeps/sh/elf/configure: Delete file.
12246
12247         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
12248         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
12249         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
12250         * sysdeps/powerpc/powerpc64/entry.h: ... here.
12251         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
12252         * sysdeps/powerpc/powerpc64/start.S: here.
12253         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
12254         * sysdeps/powerpc/powerpc64/Makefile: ... this.
12255         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
12256         * sysdeps/powerpc/powerpc64/configure.in: ... this.
12257         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
12258
12259         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
12260         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
12261         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
12262         * sysdeps/powerpc/powerpc32/start.S: ... here.
12263         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
12264         * sysdeps/powerpc/powerpc32/configure.in: ... this.
12265         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
12266
12267         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
12268         * sysdeps/powerpc/ifunc-sel.h: ... here.
12269         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
12270         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
12271
12272         * sysdeps/sparc/elf/configure.in: Moved to ...
12273         * sysdeps/sparc/configure.in: ... here.
12274         * sysdeps/sparc/elf/configure: Delete file.
12275         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
12276         * sysdeps/sparc/sparc32/start.S: ... here.
12277         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
12278         * sysdeps/sparc/sparc64/start.S: ... here.
12279         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
12280         * sysdeps/sparc/sparc32/Makefile: ... this.
12281         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
12282         * sysdeps/sparc/sparc64/Makefile: ... this.
12283
12284         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
12285         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
12286         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
12287         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
12288         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
12289         * sysdeps/s390/s390-32/setjmp.S: ... here.
12290         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
12291         * sysdeps/s390/s390-32/configure.in: ... here.
12292         * sysdeps/s390/s390-32/elf/configure: Delete file.
12293         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
12294         * sysdeps/s390/s390-32/start.S: ... here.
12295
12296         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
12297         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
12298         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
12299         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
12300         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
12301         * sysdeps/s390/s390-64/setjmp.S: ... here.
12302         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
12303         * sysdeps/s390/s390-64/configure.in: ... here
12304         * sysdeps/s390/s390-64/elf/configure: Delete file.
12305         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
12306         * sysdeps/s390/s390-64/start.S: ... here.
12307         * sysdeps/s390/s390-64/elf/configure: Delete.
12308
12309         * configure.in: Remove support for elf directories in sysdeps.
12310
12311         * configure: Regenerated.
12312         * sysdeps/i386/configure: Regenerated.
12313         * sysdeps/powerpc/powerpc32/configure: Regenerated.
12314         * sysdeps/powerpc/powerpc64/configure: Regenerated.
12315         * sysdeps/s390/s390-32/configure: Regenerated.
12316         * sysdeps/s390/s390-64/configure: Regenerated.
12317         * sysdeps/sh/configure: Regenerated.
12318         * sysdeps/sparc/configure: Regenerated.
12319         * sysdeps/x86_64/configure: Regenerated.
12320
12321 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
12322
12323         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12324
12325         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
12326         denormal result into account.
12327
12328 2012-03-25  Roland McGrath  <roland@hack.frob.com>
12329
12330         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
12331         Reported by Allan McRae <allan@archlinux.org>.
12332
12333 2012-03-23  Jeff Law  <law@redhat.com>
12334
12335         * nss/getnssent.c (__nss_getent): Fix typo.
12336
12337 2012-03-23  David S. Miller  <davem@davemloft.net>
12338
12339         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12340
12341 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
12342
12343         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
12344         to pad to uint64_t for each field.
12345         (dl_tls_index): Replace unsigned long with uint64_t.
12346
12347 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
12348         Paul Pluzhnikov  <ppluzhnikov@google.com>
12349
12350         [BZ #6528]
12351         * grp/Makefile (otherlibs): Don't set it.
12352         * inet/Makefile (otherlibs): Likewise.
12353         * login/Makefile (otherlibs): Likewise.
12354         * nscd/Makefile (otherlibs): Likewise.
12355         * posix/Makefile (otherlibs): Likewise.
12356         * pwd/Makefile (otherlibs): Likewise.
12357         * rt/Makefile (otherlibs): Likewise.
12358         * sunrpc/Makefile (otherlibs): Likewise.
12359         * nss/Makefile (otherlibs): Likewise.
12360         Add libnss_files to routines and static-only-routines.
12361         ($(objpfx)getent): Remove rule.
12362         * resolv/Makefile: Add libnss_dns and libresolv to routines and
12363         static-only-routines.
12364
12365 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
12366
12367         [BZ #13892]
12368         * math/s_cexp.c: Include <float.h>.
12369         (__cexp): Handle exp result overflowing not necessarily
12370         overflowing both real and imaginary parts of result.
12371         * math/s_cexpf.c: Likewise.
12372         * math/s_cexpl.c: Likewise.
12373         * math/libm-test.inc (cexp_test): Add more tests.
12374         * sysdeps/i386/fpu/libm-test-ulps: Update.
12375         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12376
12377 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
12378
12379         * include/link.h (ELFW): New macro.
12380         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
12381         Replace ELF64_R_TYPE with ELFW(R_TYPE).
12382
12383 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
12384
12385         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
12386         with uint64_t.
12387
12388 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
12389
12390         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
12391         declaration.
12392         (struct La_x32_retval): Likewise.
12393
12394 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
12395
12396         * sysdeps/x86_64/preconfigure.in: New file.
12397         * sysdeps/x86_64/preconfigure: New generated file.
12398
12399 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
12400
12401         [BZ #13824]
12402         * math/e_exp2l.c: Include <float.h>.
12403         (__ieee754_exp2l): Handle overflow and underflow cases
12404         separately.  Only pass fractional part of argument to
12405         __ieee754_expl.
12406         * math/libm-test.inc (exp2_test): Add more tests.
12407
12408         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
12409         negating x to take absolute value.
12410         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
12411         Likewise.
12412         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
12413         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
12414         Likewise.
12415         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
12416         computing low part if x was negated.
12417         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
12418
12419 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
12420
12421         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
12422         la_x32_gnu_pltexit.
12423         (pltexit): Cast int_retval to ptrdiff_t.
12424         * elf/tst-auditmod3b.c: Likewise.
12425         * elf/tst-auditmod4b.c: Likewise.
12426         * elf/tst-auditmod5b.c: Likewise.
12427         * elf/tst-auditmod6b.c: Likewise.
12428         * elf/tst-auditmod6c.c: Likewise.
12429         * elf/tst-auditmod7b.c: Likewise.
12430
12431         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
12432         and x32_gnu_pltexit.
12433
12434         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
12435         __ELF_NATIVE_CLASS.
12436         (La_x32_regs): New macro.
12437         (La_x32_retval): Likewise.
12438         (la_x32_gnu_pltenter): New function prototype.
12439         (la_x32_gnu_pltexit): Likewise.
12440
12441 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
12442
12443         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
12444         exponent.
12445
12446         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12447
12448         * configure.in (libc_cv_cc_nofma): Check for option to disable
12449         generation of FMA instructions.
12450         * configure: Regenerate.
12451         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
12452         * sysdeps/ieee754/dbl-64/Makefile: New file.
12453         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
12454         Remove brandred-fma4.
12455         (CFLAGS-brandred-fma4.c): Remove.
12456         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
12457         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
12458         define.
12459         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
12460         define.
12461
12462 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
12463
12464         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
12465         LLONG_MAX != LONG_MAX.
12466         (_itoa_word): Use _ITOA_WORD_TYPE on value.
12467         (_fitoa_word): Likewise.
12468         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
12469         LLONG_MAX != LONG_MAX.
12470         * stdio-common/_itowa.h: Include <_itoa.h>.
12471         (_itowa_word): Use _ITOA_WORD_TYPE on value.
12472         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
12473         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
12474         only if not defined.
12475         (_ITOA_WORD_TYPE): Likewise.
12476         (_itoa_word): Use _ITOA_WORD_TYPE on value.
12477         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
12478
12479 2012-03-21  David S. Miller  <davem@davemloft.net>
12480
12481         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12482
12483 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
12484
12485         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
12486         of x86_64 when setting libc_cv_slibdir, libdir and
12487         libc_cv_localedir.
12488         * sysdeps/unix/sysv/linux/configure: Regenerated.
12489
12490 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
12491
12492         * manual/lang.texi (Old Varargs): Remove section.
12493         (How Variadic): Update menu.
12494         (va_start): Do not mention varargs.h.
12495
12496 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
12497             Joseph Myers  <joseph@codesourcery.com>
12498
12499         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
12500         link test.
12501         * configure: Regenerated.
12502
12503 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
12504
12505         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
12506         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
12507         conformtest.pl
12508
12509 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
12510
12511         * NOTES: Remove.
12512         * Makefile (files-for-dist): Remove NOTES.
12513         (NOTES): Remove rule.
12514         * README: Don't refer to NOTES.
12515         * manual/creature.texi: Don't include macros.texi.
12516         * manual/intro.texi (creature.texi): Remove comment referring to
12517         NOTES.
12518
12519         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
12520         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
12521         * configure: Regenerated.
12522         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
12523         LIBC_TRY_CC_OPTION.
12524         (libc_cv_as_i686): Likewise.
12525         (libc_cv_cc_avx): Likewise.
12526         (libc_cv_cc_sse2avx): Likewise.
12527         (libc_cv_cc_fma4): Likewise.
12528         (libc_cv_cc_novzeroupper): Likewise.
12529         * sysdeps/i386/configure: Regenerated.
12530
12531         [BZ #13883]
12532         * sysdeps/i386/fpu/s_cexp.S: Remove.
12533         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
12534         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12535         * math/libm-test.inc (cexp_test): Add more tests.
12536         * sysdeps/i386/fpu/libm-test-ulps: Update.
12537         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12538
12539 2012-03-21  Allan McRae  <allan@archlinux.org>
12540
12541         * timezone/Makefile: Do not install iso3166.tab and zone.tab
12542
12543 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
12544
12545         [BZ #13871]
12546         * math/w_exp2.c: Do not include <float.h>.
12547         (o_threshold, u_threshold): Remove.
12548         (__exp2): Calculate result before checking finiteness and calling
12549         __kernel_standard.
12550         * math/w_exp2f.c: Likewise.
12551         * math/w_exp2l.c: Likewise.
12552         * math/libm-test.inc (exp2_test): Require overflow exception for
12553         1e6 input.
12554
12555         [BZ #3866]
12556         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
12557         range of signed 64-bit integers before using fistpll.  Remove
12558         checks for whether integers fit in mantissa bits.
12559         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
12560         the range of signed 32-bit integers before using fistpl.  Remove
12561         checks for whether integers fit in mantissa bits.
12562         * sysdeps/i386/fpu/e_powl.S (p64): New object.
12563         (__ieee754_powl): Test for y outside the range of signed 64-bit
12564         integers before using fistpll.  Reduce 64-bit values to 63-bit
12565         ones as needed.
12566         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
12567         divide-by-zero is raised for zero to large negative powers.
12568         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
12569         (__ieee754_powl): Test for y outside the range of signed 64-bit
12570         integers before using fistpll.  Reduce 64-bit values to 63-bit
12571         ones as needed.
12572         * math/libm-test.inc (pow_test): Add more tests.
12573
12574 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
12575
12576         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
12577         <stdio-common/_itoa.h>.
12578         * debug/segfault.c: Likewise.
12579         * elf/dl-cache.c: Likewise.
12580         * elf/dl-minimal.c: Likewise.
12581         * elf/dl-misc.c: Likewise.
12582         * elf/dl-sysdep.c: Likewise.
12583         * elf/dl-version.c: Likewise.
12584         * elf/rtld.c: Likewise.
12585         * hurd/hurdsock.c: Likewise.
12586         * hurd/lookup-retry.c: Likewise.
12587         * malloc/malloc.c: Likewise.
12588         * malloc/mtrace.c: Likewise.
12589         * nscd/nscd_getgr_r.c: Likewise.
12590         * nscd/nscd_getpw_r.c: Likewise.
12591         * nscd/nscd_getserv_r.c: Likewise.
12592         * posix/getopt_init.c: Likewise.
12593         * posix/wordexp.c: Likewise.
12594         * stdio-common/_itoa.c: Likewise.
12595         * stdio-common/printf_fphex.c: Likewise.
12596         * stdio-common/vfprintf.c: Likewise.
12597         * string/_strerror.c: Likewise.
12598         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
12599         * sysdeps/i386/i686/hp-timing.h: Likewise.
12600         * sysdeps/mach/_strerror.c: Likewise.
12601         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
12602         * sysdeps/mach/hurd/sethostid.c: Likewise.
12603         * sysdeps/mach/hurd/xmknodat.c: Likewise.
12604         * sysdeps/mach/xpg-strerror.c: Likewise.
12605         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
12606         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
12607         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
12608         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
12609         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
12610         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
12611         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
12612         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
12613         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
12614         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
12615         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
12616         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
12617         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
12618         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
12619         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
12620         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
12621         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
12622         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
12623         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
12624         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
12625         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
12626
12627         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
12628
12629         * stdio-common/_itoa.h: Moved to ...
12630         * sysdeps/generic/_itoa.h: Here.
12631
12632         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
12633
12634         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
12635         instead of "_itoa.h" and "_itowa.h".
12636         * stdio-common/vfprintf.: Likewise.
12637
12638 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
12639
12640         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
12641         <bits/wordsize.h>.
12642         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
12643         (__signbit): Likwise.
12644         (llrintf): Likwise.
12645         (llrint): Likwise.
12646
12647 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
12648
12649         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
12650         __WORDSIZE != 64.
12651
12652 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
12653
12654         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
12655         OVERFLOW_EXCEPTION_OK.
12656         * math/libm-test.inc ("Philosophy"): Update comment about
12657         exception testing.
12658         (OVERFLOW_EXCEPTION): Define.
12659         (OVERFLOW_EXCEPTION_OK): Likewise.
12660         (INVALID_EXCEPTION_OK): Renumber.
12661         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
12662         (IGNORE_ZERO_INF_SIGN): Likewise.
12663         (test_exceptions): Handle FE_OVERFLOW.
12664         (exp10_test): Expect overflow exceptions.
12665         (exp2_test): Likewise.
12666         (expm1_test): Likewise.
12667         (nextafter_test): Likewise.
12668         (pow_test): Likewise.
12669         (scalbn_test): Likewise.
12670         (scalbln_test): Likewise.
12671
12672 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
12673
12674         * sysdeps/x86_64/bits/atomic.h
12675         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
12676         64bit integer.
12677         (atomic_exchange_acq): Likewise.
12678         (__arch_exchange_and_add_body): Likewise.
12679         (__arch_add_body): Likewise.
12680         (atomic_add_negative): Likewise.
12681         (atomic_add_zero): Likewise.
12682
12683 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
12684
12685         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
12686         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
12687
12688 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
12689
12690         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
12691         Check __x86_64__ instead of __WORDSIZE.
12692
12693 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
12694
12695         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
12696
12697 2012-03-19  David S. Miller  <davem@davemloft.net>
12698
12699         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12700
12701         * sysdeps/sparc/fpu/fenv_private.h: New file.
12702         * sysdeps/sparc/fpu/math_private.h: Use it.
12703         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
12704         Remove.
12705         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
12706         (libc_feholdexcept_setroundl): Remove.
12707         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
12708         Remove.
12709         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
12710         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
12711
12712 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
12713
12714         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
12715         int64_t instead of long int.
12716         (INSERT_WORDS64): Likwise.
12717
12718 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
12719
12720         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
12721         _Unwind_GetCFA return to _Unwind_Ptr first.
12722
12723 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
12724
12725         [BZ #13629]
12726         * math/s_clog.c: Include <float.h>.
12727         (__clog): Scale large or subnormal inputs.
12728         * math/s_clogf.c: Likewise.
12729         * math/s_clogl.c: Likewise.
12730         * math/s_clog10.c: Include <float.h>.
12731         (M_LOG10_2): Define.
12732         (__clog10): Scale large or subnormal inputs.
12733         * math/s_clog10f.c: Likewise.
12734         * math/s_clog10l.c: Likewise.
12735         * math/libm-test.inc (clog_test): Add more tests.
12736         (clog10_test): Likewise.
12737         * sysdeps/i386/fpu/libm-test-ulps: Update.
12738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12739
12740         [BZ #11451]
12741         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
12742         x and y.
12743         * math/libm-test.inc (atan2_test): Add another test.
12744
12745         * Makerules (common-objdir-compile): Remove.
12746         * sysdeps/unix/Makefile (config-generated): Do not add
12747         $(unix-generated) to variable.
12748         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
12749         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
12750         Remove rule.
12751         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
12752         Likewise.
12753         [generic bits/local_lim.h] (before-compile): Do not append to
12754         variable.
12755         [generic bits/local_lim.h] (common-generated): Likewise.
12756         [generic sys/param.h] (before-compile): Do not append to variable.
12757         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
12758         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
12759         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
12760         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
12761         include.
12762         [generic sys/param.h] (sys/param.h-includes): Remove variable.
12763         [generic sys/param.h] (sys/param.h-includes): Remove rule.
12764         [generic sys/param.h] ($(addprefix
12765         $(common-objpfx),$(sys/param.h-includes))): Likewise.
12766         [generic sys/param.h] (common-generated): Do not append to
12767         variable.
12768         [generic sys/param.h] (sysdep_headers): Likewise.
12769         [generic bits/errno.h] (before-compile): Do not append to
12770         variable.
12771         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
12772         rule.
12773         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
12774         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
12775         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
12776         [generic bits/errno.h] (common-generated): Do not append to
12777         variable.
12778         [generic bits/ioctls.h] (before-compile): Do not append to
12779         variable.
12780         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
12781         rule.
12782         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
12783         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
12784         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
12785         rule.
12786         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
12787         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
12788         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
12789         [generic bits/ioctls.h] (common-generated): Do not append to
12790         variable.
12791         [generic sys/syscall.h] (syscall.h): Remove variable.
12792         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
12793         rule.
12794         [generic sys/syscall.h] (before-compile): Do not append to
12795         variable.
12796         [generic sys/syscall.h] (common-generated): Likewise.
12797         * sysdeps/unix/errnos-tmpl.c: Remove file.
12798         * sysdeps/unix/errnos.awk: Likewise.
12799         * sysdeps/unix/ioctls-tmpl.c: Likewise.
12800         * sysdeps/unix/ioctls.awk: Likewise.
12801         * sysdeps/unix/mk-local_lim.c: Likewise.
12802         * sysdeps/unix/snarf-ioctls: Likewise.
12803
12804 2012-03-19  Richard Henderson  <rth@twiddle.net>
12805
12806         * sysdeps/i386/fpu/fenv_private.h: New file.
12807         * sysdeps/i386/fpu/math_private.h: Use it.
12808         (math_opt_barrier, math_force_eval): Remove.
12809         (libc_feholdexcept_setround_53bit): Remove.
12810         (libc_feupdateenv_53bit): Remove.
12811         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12812         (math_opt_barrier, math_force_eval): Remove.
12813         (libc_feholdexcept): Remove.
12814         (libc_feholdexcept_setround): Remove.
12815         (libc_fetestexcept, libc_fesetenv): Remove.
12816         (libc_feupdateenv_test): Remove.
12817         (libc_feupdateenv, libc_feholdsetround): Remove.
12818         (libc_feresetround): Remove.
12819
12820         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
12821         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
12822
12823         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
12824         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
12825         (libc_feupdateenv_testl): New.
12826         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
12827         (libc_feupdateenv_testf): New.
12828         (libc_feupdateenv): Use libc_feupdateenv_test.
12829         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
12830         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
12831
12832         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
12833         (libc_feholdsetroundf, libc_feholdsetroundl): New.
12834         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
12835         (libc_feresetround_noex): New.
12836         (libc_feresetround_noexf): New.
12837         (libc_feresetround_noexl): New.
12838         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
12839         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
12840         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
12841         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
12842         SET_RESTORE_ROUND.
12843         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
12844         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
12845         (__cos): Likewise.
12846         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
12847         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
12848         SET_RESTORE_ROUND_NOEX.
12849         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
12850         SET_RESTORE_ROUND_NOEXF.
12851         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
12852         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
12853         (libc_feholdsetroundf): New.
12854         (libc_feresetround, libc_feresetroundf): New.
12855
12856         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
12857         (libc_feholdexcept_setround_53bit): Convert from macro to function.
12858         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
12859
12860         * sysdeps/generic/math_private.h: Include <fenv.h>.
12861         (default_libc_feholdexcept): New.
12862         (default_libc_feholdexcept_setround): New.
12863         (default_libc_fesetenv, default_libc_feupdateenv): New.
12864         (libc_feholdexcept): Only define if undefined.
12865         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
12866         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
12867         (libc_feholdexcept_setroundl): Likewise.
12868         (libc_feholdexcept_setround_53bit): Likewise.
12869         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
12870         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
12871         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
12872         (libc_feupdateenv_53bit): Likewise.
12873         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
12874         (libc_feholdexcept): Convert from macro to inline function.
12875         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
12876         (libc_fesetenv, libc_feupdateenv): Likewise.
12877
12878         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
12879         not previously defined.
12880         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
12881         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
12882         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
12883         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
12884         * sysdeps/ieee754/flt-32/math_private.h: New file.
12885         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
12886         math_private.h below SET_FLOAT_WORD.
12887         (__isnan, __isinf_ns, __finite): Remove.
12888         (__isnanf, __isinf_nsf, __finitef): Remove.
12889
12890 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
12891
12892         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12893
12894 2012-03-17  David S. Miller  <davem@davemloft.net>
12895
12896         [BZ #6471]
12897         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
12898         for 2.16.
12899
12900 2012-03-16  David S. Miller  <davem@davemloft.net>
12901
12902         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
12903         warnings.
12904
12905         [BZ #6471]
12906         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
12907         properly.
12908         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
12909         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
12910         sysdep_routines when subdir is sysvipc.
12911         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
12912         __getshmlba helper.
12913
12914         * sysdeps/sparc/fpu/libm-test/ulps: Update.
12915
12916 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12917
12918         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
12919         [__LP64__].
12920
12921 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12922
12923         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
12924         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
12925         (__lround): Renamed to ...
12926         (__llround): This.  Replace long int with long long int.
12927         Define lround functions as aliases of llround functions.
12928         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
12929
12930 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12931
12932         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
12933         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
12934         adresses to uintptr_t.  Replace "long int" and "unsigned long
12935         int" with "greg_t" on va_arg.
12936
12937 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12938
12939         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
12940         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
12941
12942         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
12943         Move e_machine check before EI_CLASS check.  Handle x32
12944         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
12945         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
12946         SKIP_EM_IA_64 and include
12947         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
12948
12949         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
12950         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
12951         (add_system_dir): New macro.
12952
12953         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
12954         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
12955
12956 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12957
12958         [BZ #2551]
12959         [BZ #2552]
12960         [BZ #2553]
12961         [BZ #2554]
12962         [BZ #2562]
12963         [BZ #2563]
12964         [BZ #2565]
12965         [BZ #2566]
12966         [BZ #2576]
12967         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
12968         (y0): Likewise.
12969         * math/w_j0f.c (j0f): Likewise.
12970         (y0f): Likewise.
12971         * math/w_j0l.c (__j0l): Likewise.
12972         (__y0l): Likewise.
12973         * math/w_j1.c (j1): Likewise.
12974         (y1): Likewise.
12975         * math/w_j1f.c (j1f): Likewise.
12976         (y1f): Likewise.
12977         * math/w_j1l.c (__j1l): Likewise.
12978         (__y1l): Likewise.
12979         * math/w_jn.c (jn): Likewise.
12980         (yn): Likewise.
12981         * math/w_jnf.c (jnf): Likewise.
12982         (ynf): Likewise.
12983         * math/w_jnl.c (__jnl): Likewise.
12984         (__ynl): Likewise.
12985         * math/libm-test.inc (j0_test): Add more tests.
12986         (j1_test): Likewise.
12987         (jn_test): Likewise.  Add trailing semicolon to existing test.
12988         (y0_test): Likewise.
12989         (y1_test): Likewise.
12990         * sysdeps/i386/fpu/libm-test-ulps: Update.
12991         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12992
12993         [BZ #13851]
12994         [BZ #13854]
12995         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
12996         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
12997         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
12998         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
12999         (__tanl): Set errno for infinite argument.
13000         * sysdeps/i386/fpu/mptan.c: Remove.
13001         * sysdeps/i386/fpu/s_tan.S: Likewise.
13002         * sysdeps/i386/fpu/s_tanl.S: Likewise.
13003         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
13004         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
13005         * math/libm-test.inc (tan_test): Add more tests and enable more
13006         tests for double and long double.
13007         * sysdeps/i386/fpu/libm-test-ulps: Update.
13008         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13009
13010 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13011
13012         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
13013         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
13014
13015 2012-03-16  Roland McGrath  <roland@hack.frob.com>
13016
13017         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
13018         * configure.in: Use it for both main tree and add-ons.
13019         * configure: Regenerated.
13020
13021 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
13022
13023         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
13024
13025 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
13026
13027         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
13028         in comment.
13029
13030         [BZ #13851]
13031         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
13032         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
13033         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
13034         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
13035         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
13036         infinite argument.
13037         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
13038         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
13039         != 0 for prec == 2.
13040         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
13041         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
13042         * sysdeps/i386/fpu/s_cosl.S: Likewise.
13043         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
13044         * sysdeps/i386/fpu/s_sinl.S: Likewise.
13045         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
13046         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
13047         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
13048         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
13049         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
13050         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
13051         * math/libm-test.inc (cos_test): Add more tests and enable more
13052         tests for long double.
13053         (sin_test): Likewise.
13054         (sincos_test): Likewise.
13055         * sysdeps/i386/fpu/libm-test-ulps: Update.
13056         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13057
13058 2012-03-16  David S. Miller  <davem@davemloft.net>
13059
13060         * sysdeps/sparc/fpu/math_private.h: New file.
13061
13062 2012-03-15  David S. Miller  <davem@davemloft.net>
13063
13064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
13065         file.
13066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
13067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
13068         file.
13069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
13070         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
13071         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
13072         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
13073         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
13074         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
13075         sysdep routines.
13076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
13077
13078         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
13079         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
13080
13081         * sysdeps/sparc/sparc-ifunc.h: New file.
13082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
13083         sparc-ifunc.h
13084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
13085         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
13086         Likewise.
13087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
13088         Likewise.
13089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
13090         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
13091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
13092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
13093         Likewise.
13094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
13095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
13096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
13097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
13098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
13099         Likewise.
13100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
13101         Likewise.
13102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
13103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
13104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
13105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
13106         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
13107         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
13108         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
13109         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
13110         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
13111         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
13112         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
13113         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
13114         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
13115         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
13116         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
13117         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
13118         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
13119         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
13120         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
13121         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
13122         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
13123         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
13124         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
13125         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
13126
13127 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
13128
13129         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
13130         scaling.
13131         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13132
13133 2012-03-15  Andreas Jaeger  <aj@suse.de>
13134
13135         [BZ #13852]
13136         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
13137         ieee754/flt-32 implementation for sin, cos and sincos.
13138         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
13139         * sysdeps/i386/fpu/s_cosf.S: Likewise.
13140         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
13141         * sysdeps/i386/fpu/s_sinf.S: Likewise.
13142         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
13143         ieee754/flt-32 implementation for tan.
13144
13145         * math/libm-test.inc (cos_test): Enable some large input tests for
13146         float as well
13147         (sin_test): Likewise.
13148         (sincos_test): Likewise.
13149         (tan_test): Add tests for large input.
13150
13151         * sysdeps/i386/fpu/libm-test-ulps: Update.
13152
13153 2012-03-15  Andreas Jaeger  <aj@suse.de>
13154
13155         [BZ #13658]
13156         * math/libm-test.inc (cos_test): Add more test cases.
13157         (sin_test): Likewise.
13158         (sincos_test): Likewise.
13159
13160 2012-03-15  Andreas Jaeger  <aj@suse.de>
13161
13162         [BZ #13837]
13163         * math/libm-test.inc (cos_test): Add a test case for large input
13164         value.
13165         (sin_test): Likewise.
13166         (sincos_test): Likewise.
13167
13168 2012-03-15  Andreas Jaeger  <aj@suse.de>,
13169         Joseph Myers  <joseph@codesourcery.com>
13170
13171         [BZ #13658]
13172         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
13173         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
13174         * sysdeps/i386/fpu/branred.c: Likewise.
13175         * sysdeps/i386/fpu/dosincos.c: Likewise.
13176         * sysdeps/i386/fpu/mpa.c: Likewise.
13177         * sysdeps/i386/fpu/s_cos.S: Likewise.
13178         * sysdeps/i386/fpu/s_sin.S: Likewise.
13179         * sysdeps/i386/fpu/s_sincos.S: Likewise.
13180         * sysdeps/i386/fpu/sincos32.c: Likewise.
13181
13182         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
13183         Define.
13184         (libc_feupdateenv_53bit): Define.
13185         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
13186         Define.
13187         (libc_feupdateenv_53bit): Define.
13188
13189         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
13190         53 bit (without extend i386 double precision).
13191
13192         * math/libm-test.inc (sincos_test): Add tests for large input.
13193         (sin): Likewise.
13194         (cos): Likewise.
13195
13196         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
13197
13198 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
13199
13200         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13201
13202 2012-03-15  David S. Miller  <davem@davemloft.net>
13203
13204         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
13205         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
13206         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
13207         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
13208         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
13209         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
13210         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
13211         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
13212         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
13213         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
13214         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
13215         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
13216         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
13217         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
13218         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
13219         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
13220         file.
13221         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
13222         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
13223         file.
13224         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
13225         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
13226         file.
13227         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
13228         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
13229         file.
13230         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
13231         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
13232         fmin/fmax sysdep routines.
13233         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
13234
13235 2012-03-14  David S. Miller  <davem@davemloft.net>
13236
13237         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
13238         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
13239         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
13240         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
13241         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
13242         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
13243         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
13244         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
13245         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
13246         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
13247         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
13248         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
13249         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
13250         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
13251         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
13252         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
13253         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
13254         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
13255         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
13256         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
13257         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
13258         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
13259         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
13260         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
13261         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
13262         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
13263         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
13264         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
13265         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
13266         routines.
13267         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
13268         file.
13269         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
13270         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
13271         file.
13272         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
13273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
13274         file.
13275         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
13276         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
13277         file.
13278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
13279         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
13280         file.
13281         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
13282         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
13283         file.
13284         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
13285         file.
13286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
13287         file.
13288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
13289         file.
13290         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
13291         New file.
13292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
13293         file.
13294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
13295         file.
13296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
13297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
13298         file.
13299         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
13300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
13301         file.
13302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
13303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
13304         file.
13305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
13306         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
13307         VIS3 routines.
13308
13309         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
13310         New file.
13311
13312         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13313
13314         * sysdeps/sparc/configure.in: New file.
13315         * sysdeps/sparc/configure: Generate.
13316         * configure.in (libc_cv_sparc_as_vis3): Substitute.
13317         * configure: Regenerate.
13318         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
13319         * config.make.in (have-as-vis3): New.
13320         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
13321         available use -Av9d instead of -Av9a.
13322         * sysdeps/sparc/sparc64/Makefile: Likewise.
13323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
13324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
13325         New file.
13326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
13327         file.
13328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
13329         New file.
13330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
13331         file.
13332         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
13333         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
13334         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
13335         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
13336         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
13337
13338         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
13339         fzeros/fnegs to load 0x80000000 into a float register instead of
13340         using the stack.
13341         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
13342
13343 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
13344
13345         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13346         bits/syscall.h.
13347         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
13348         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
13349         ($(inst_includedir)/bits/syscall.h): Remove rule.
13350         ($(objpfx)bits/syscall.d): Include instead of
13351         $(objpfx)syscall-list.d.
13352         (generated): Change syscall-list.h and syscall-list.d to
13353         bits/syscall.h and bits/syscall.d.
13354
13355 2012-03-14  Roland McGrath  <roland@hack.frob.com>
13356
13357         [BZ #13846]
13358         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
13359
13360 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
13361
13362         [BZ #13841]
13363         * math/s_csqrt.c: Include <float.h>.
13364         (__csqrt): Scale large or subnormal inputs.
13365         * math/s_csqrtf.c: Likewise.
13366         * math/s_csqrtl.c: Likewise.
13367         * math/libm-test.inc (csqrt_test): Add more tests.
13368         * sysdeps/i386/fpu/libm-test-ulps: Update.
13369         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13370
13371         [BZ #13840]
13372         * math/libm-test.inc (hypot_test): Add more tests.
13373
13374 2012-03-13  David S. Miller  <davem@davemloft.net>
13375
13376         [BZ #13840]
13377         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
13378         double-precision for the calculation instead of scaling.
13379
13380 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
13381
13382         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
13383         manipulate bits before adding and subtracting TWO52[sx].
13384         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
13385         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
13386         Likewise.
13387         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
13388
13389 2012-03-13  David S. Miller  <davem@davemloft.net>
13390
13391         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
13392         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
13393         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
13394         rtld-global-offsets.h
13395         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13396
13397         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
13398         large parameters.
13399
13400         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
13401
13402         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
13403         'err' in the ifdef scope in which it is actually used.
13404
13405         * nss/nss_db/db-init.c: Include string.h
13406
13407 2012-03-12  David S. Miller  <davem@davemloft.net>
13408
13409         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
13410         masking out of the most significant byte of random value used.
13411         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
13412         Fix coding style in previous change.
13413
13414         * sysdeps/unix/sysv/linux/kernel-features.h
13415         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
13416         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
13417         expression.
13418         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
13419         later.
13420
13421 2012-03-11  David S. Miller  <davem@davemloft.net>
13422
13423         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
13424         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
13425         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
13426         for 'resultvar' otherwise things get truncated on 64-bit.
13427
13428         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
13429         Fix masking out of the most significant byte of random value used.
13430
13431         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13432
13433 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
13434
13435         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13436
13437 2012-03-09  David S. Miller  <davem@davemloft.net>
13438
13439         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
13440         variables with appropriate CPP guards.
13441         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
13442         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
13443         on resulting framesize and the management of the outregs buffer for pltexit.
13444         Preserve floating point return values across _dl_call_pltexit call.
13445         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
13446         framesize and the management of the outregs buffer for pltexit.
13447         Preserve floating point return values across _dl_call_pltexit
13448         call.
13449         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
13450         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
13451         (print_exit): Fix format string for return register value.
13452
13453 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
13454
13455         * sunrpc/Makefile (others): Add rpcgen.
13456         ($(objpfx)rpcgen): Remove special build rule and dependency on
13457         libc.
13458         * sunrpc/rpcgen.c: New file.
13459
13460 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
13461
13462         [BZ #13673]
13463         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
13464         * stdio-common/bug-vfprintf-nargs.c: Likewise.
13465         * sysdeps/i386/crti.S: Likewise.
13466         * sysdeps/i386/crtn.S: Likewise.
13467         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
13468         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
13469         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
13470         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
13471         * sysdeps/sh/crti.S: Likewise.
13472         * sysdeps/sh/crtn.S: Likewise.
13473         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
13474
13475         [BZ #13673]
13476         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
13477         with URL.
13478         * locale/programs/locfile-kw.gperf: Likewise.
13479         * locale/programs/charmap-kw.h: Regenerated.
13480         * locale/programs/locfile-kw.h: Likewise.
13481
13482         [BZ #13673]
13483         * intl/plural.y: Replace FSF snail mail address with URL.
13484         * intl/plural.c: Regenerated.
13485
13486 2012-03-09  Richard Henderson  <rth@twiddle.net>
13487
13488         * include/math_private.h: Remove file.
13489         * math/math_private.h: Move file ...
13490         * sysdeps/generic/math_private.h: ... here.
13491
13492         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
13493         * sysdeps/powerpc/fpu/math_private.h: Likewise.
13494         * sysdeps/x86_64/fpu/math_private.h: Likewise.
13495
13496         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
13497         and <math_private.h>.
13498         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13499         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13500         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13501         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13502         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13503         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
13504         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13505         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13506         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
13507         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13508         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13509         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13510         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
13511         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13512         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
13513         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
13514         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13515         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13516         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13517         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
13518         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13519         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
13520         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
13521         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13522         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
13523         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
13524         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13525         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13526         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13527         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13528         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
13529         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13530         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
13531         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13532         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13533         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13534         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13535         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13536         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13537         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13538         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
13539         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13540         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13541         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
13542         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
13543         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13544         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13545         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13546         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13547         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13548         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13549         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13550         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
13551         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13552         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
13553         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13554         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13555         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
13556         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
13557         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
13558         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13559         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13560         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13561         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13562         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
13563         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13564         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13565         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13566         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
13567         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
13568         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
13569         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13570         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
13571         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13572         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
13573         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
13574         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
13575         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13576         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
13577         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13578         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
13579         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13580         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
13581         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
13582         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13583         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
13584         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
13585         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
13586         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
13587         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13588         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13589         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
13590         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13591         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
13592         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
13593         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
13594         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13595         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13596         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13597         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
13598         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
13599         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
13600         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
13601         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
13602         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13603         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
13604         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13605         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
13606         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13607         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13608         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13609         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13610         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
13611         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13612         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
13613         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13614         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13615         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13616         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13617         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13618         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13619         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13620         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13621         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
13622         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13623         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13624         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
13625         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
13626         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13627         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13628         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13629         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13630         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13631         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13632         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13633         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13634         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13635         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13636         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
13637         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
13638         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13639         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13640         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13641         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
13642         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
13643         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13644         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13645         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13646         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
13647         * sysdeps/ieee754/k_standard.c: Likewise.
13648         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
13649         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
13650         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13651         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
13652         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
13653         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
13654         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
13655         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
13656         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
13657         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13658         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13659         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
13660         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
13661         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
13662         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
13663         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
13664         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
13665         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
13666         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
13667         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
13668         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
13669         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
13670         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13671         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13672         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
13673         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
13674         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13675         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13676         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13677         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13678         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
13679         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13680         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13681         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13682         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
13683         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13684         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13685         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
13686         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
13687         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13688         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13689         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13690         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
13691         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13692         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13693         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13694         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13695         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13696         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13697         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13698         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13699         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
13700         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13701         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
13702         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13703         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13704         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
13705         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
13706         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13707         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13708         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13709         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
13710         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13711         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
13712         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13713         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13714         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
13715         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
13716         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
13717         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
13718         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
13719         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13720         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
13721         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
13722         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
13723         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
13724         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
13725         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
13726         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13727         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
13728         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
13729         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
13730         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13731         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13732         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
13733         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13734         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13735         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
13736         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
13737         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13738         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
13739         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13740         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
13741         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
13742         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13743         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13744         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
13745         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
13746         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
13747         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
13748         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13749         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13750         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13751         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13752         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
13753         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13754         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13755         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
13756         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
13757         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13758         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13759         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13760         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
13761         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13762         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
13763         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13764         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
13765         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13766         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13767         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
13768         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13769         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
13770         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
13771         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13772         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13773         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
13774         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13775         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13776         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13777         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13778         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13779         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13780         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13781         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
13782         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13783         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13784         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
13785         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
13786         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13787         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13788         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13789         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13790         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13791         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13792         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13793         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13794         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13795         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13796         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13797         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
13798         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13799         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13800         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13801         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13802         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
13803         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
13804         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13805         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13806         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13807         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
13808         * sysdeps/ieee754/s_lib_version.c: Likewise.
13809         * sysdeps/ieee754/s_matherr.c: Likewise.
13810         * sysdeps/ieee754/s_signgam.c: Likewise.
13811         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13812         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
13813         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13814         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13815         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13816         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13817         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
13818         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
13819         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
13820         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
13821         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
13822         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13823         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13824         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13825         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
13826         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
13827         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
13828         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
13829         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
13830         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13831         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13832
13833 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13834
13835         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
13836         * sunrpc/rpc_main.c: Likewise.
13837         * sunrpc/rpc_svcout.c: Likewise.
13838
13839 2012-03-09  David S. Miller  <davem@davemloft.net>
13840
13841         * include/math_private.h: New file.
13842
13843 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13844
13845         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
13846         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
13847         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
13848         from <bits/socket_type.h>.
13849         (enum __socket_type): Don't define here.
13850         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
13851         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13852         bits/socket_type.h.
13853
13854         [BZ #13566]
13855         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
13856         checking __USE_GNU.
13857
13858         * Makerules ($(inst_includedir)/%.h): New rule.
13859         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
13860         (install-others): Remove variable setting.
13861         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
13862
13863 2012-03-08  Richard Henderson  <rth@twiddle.net>
13864
13865         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
13866         from macro to inline function; merge with the
13867         !__LIBC_INTERNAL_MATH_INLINES version.
13868         (__ieee754_sqrtf): Likewise.
13869
13870         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
13871         to inline function.
13872         (__rintf, __floor, __floorf): Likewise.
13873
13874         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
13875         macro to inline function.
13876         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
13877
13878         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
13879         not <math/math_private.h>.
13880
13881 2012-03-08  David S. Miller  <davem@davemloft.net>
13882
13883         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
13884         copyright year.
13885         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
13886
13887 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
13888
13889         * resolv/gai_misc.c (handle_requests): Fix struct timespec
13890         normalization.
13891         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
13892         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
13893
13894 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
13895
13896         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
13897         be defined individually, they must be defined as a block.  Define
13898         S for printing a string instead of hidint the different by using a
13899         macro for adding the 'l'.
13900         * stdio-common/tst-fphex-wide.c: Adjust.
13901
13902 2012-03-07  Marek Polacek  <polacek@redhat.com>
13903
13904         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
13905
13906 2012-03-08  Marek Polacek  <polacek@redhat.com>
13907
13908         [BZ #13806]
13909         * stdio-common/Makefile (tests): Add tst-fphex-wide.
13910         * stdio-common/tst-fphex.c: Define a few macros to make the
13911         test reusable.  Use them.
13912         * stdio-common/tst-fphex-wide.c: New file.
13913
13914 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
13915
13916         [BZ #6911]
13917         * manual/macros.texi (gnusystems): New macro.
13918         (nongnusystems): Likewise.
13919         (gnulinuxhurdsystems): Likewise.
13920         (gnuhurdsystems): Likewise..
13921         (gnulinuxsystems): Likewise.
13922         * manual/charset.texi: Use new macros or @theglibc{} to refer to
13923         variants of the GNU system, not "GNU system".
13924         * manual/conf.texi: Likewise.
13925         * manual/errno.texi: Likewise.  Update example of errno macro
13926         expansion.
13927         * manual/filesys.texi: Likewise.
13928         (getumask): Document as specific to GNU/Hurd.
13929         * manual/install.texi: Likewise.  Reword some references to
13930         GNU/Linux.
13931         * manual/intro.texi: Likewise.
13932         * manual/io.texi: Likewise.
13933         (File Name Portability): Detail which constraints are inapplicable
13934         to all GNU systems and which are only inapplicable to GNU/Hurd.
13935         * manual/job.texi: Likewise.
13936         * manual/llio.texi: Likewise.
13937         (O_NOCTTY): Document as present on GNU/Linux.
13938         * manual/maint.texi: Likewise.
13939         * manual/memory.texi: Likewise.
13940         * manual/pattern.texi: Likewise.
13941         * manual/pipe.texi: Likewise.
13942         * manual/process.texi: Likewise.
13943         * manual/resource.texi: Likewise.
13944         (RUSAGE_CHILDREN): Remove statement about specifying a particular
13945         child on GNU/Hurd.
13946         * manual/setjmp.texi: Likewise.
13947         * manual/signal.texi: Likewise.
13948         * manual/startup.texi: Likewise.
13949         * manual/stdio.texi: Likewise.
13950         * manual/terminal.texi: Likewise.
13951         (ONLCR): Document as POSIX.
13952         (OXTABS): Document availability on GNU/Linux as XTABS.
13953         (ONOEOT): Document availability separately from other bits.
13954         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
13955         * manual/time.texi: Likewise.
13956         * manual/users.texi: Likewise.
13957         * INSTALL: Regenerated.
13958         * sysdeps/gnu/errlist.c: Regenerated.
13959
13960         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
13961         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
13962         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
13963         puts.
13964         * configure: Regenerated.
13965
13966 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
13967
13968         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
13969         default includes instead of AC_HEADER_CHECK.
13970         * sysdeps/i386/configure: Regenerated.
13971
13972         [BZ #10716]
13973         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
13974         * math/s_cacoshf.c (__cacoshf): Likewise.
13975         * math/s_cacoshl.c (__cacoshl): Likewise.
13976         * math/s_casinh.c (__casinh): Set signs of result from argument.
13977         * math/s_casinhf.c (__casinhf): Likewise.
13978         * math/s_casinhl.c (__casinhl): Likewise.
13979         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
13980         (casinh_test): Add more tests.
13981         * sysdeps/i386/fpu/libm-test-ulps: Update.
13982         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13983
13984 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
13985
13986         * po/zh_TW.po: Update from translation team.
13987
13988         * login/Makefile (distribute): Remove variable.
13989         * catgets/Makefile: Likewise.
13990         * mach/Makefile: Likewise.
13991         * malloc/Makefile: Likewise.
13992         * misc/Makefile: Likewise.
13993         * iconv/Makefile: Likewise.
13994         * nscd/Makefile: Likewise.
13995         * hurd/Makefile: Likewise.
13996         * manual/Makefile: Likewise.
13997         * locale/Makefile: Likewise.
13998         * intl/Makefile: Likewise.
13999         * conform/Makefile: Likewise.
14000         * nss/Makefile: Likewise.
14001         * time/Makefile: Likewise.
14002         * soft-fp/Makefile: Likewise.
14003         * dirent/Makefile: Likewise.
14004         * gmon/Makefile: Likewise.
14005         * po/Makefile: Likewise.
14006         * rt/Makefile: Likewise.
14007         * socket/Makefile: Likewise.
14008         * math/Makefile: Likewise.
14009         * signal/Makefile: Likewise.
14010         * debug/Makefile: Likewise.
14011         * elf/Makefile: Likewise.
14012         * timezone/Makefile: Likewise.
14013         * stdlib/Makefile: Likewise.
14014         * iconvdata/Makefile: Likewise.
14015         * sunrpc/Makefile: Likewise.
14016         * io/Makefile: Likewise.
14017         * argp/Makefile: Likewise.
14018         * inet/Makefile: Likewise.
14019         * hesiod/Makefile: Likewise.
14020         * grp/Makefile: Likewise.
14021         * csu/Makefile: Likewise.
14022         * wctype/Makefile: Likewise.
14023         * crypt/Makefile: Likewise.
14024         * libio/Makefile: Likewise.
14025         * string/Makefile: Likewise.
14026         * nis/Makefile: Likewise.
14027         * resolv/Makefile: Likewise.
14028         * stdio-common/Makefile: Likewise.
14029         * wcsmbs/Makefile: Likewise.
14030         * dlfcn/Makefile: Likewise.
14031         * posix/Makefile: Likewise.
14032
14033         [BZ #6959]
14034         * timezone/Makefile: Don't install timezone files, just the programs
14035         and scripts.
14036
14037 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
14038
14039         * nss/databases.def: Add missing gshadow entry.
14040
14041         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
14042
14043 2012-03-06  Marek Polacek  <polacek@redhat.com>
14044
14045         [BZ #13726]
14046         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
14047         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
14048         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
14049         * stdio-common/tst-long-dbl-fphex.c: New file.
14050
14051 2012-03-06  David S. Miller  <davem@davemloft.net>
14052
14053         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14054         (set_obp_int): New function.
14055         (get_obp_int): New function.
14056         (__get_clockfreq_via_dev_openprom): Likewise.
14057         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
14058         Avoid unused variable warnings on 'val' and use builtin_expect.
14059         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
14060         __builtin_expect.
14061         (INLINE_CLONE_SYSCALL): Likewise.
14062
14063 2012-03-05  David S. Miller  <davem@davemloft.net>
14064
14065         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14066
14067 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
14068
14069         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14070
14071         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
14072         only for |x| >= 40.
14073         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14074
14075 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
14076
14077         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
14078         Replace gettimeofday with __vdso_gettimeofday.
14079
14080         * sysdeps/unix/sysv/linux/x86_64/init-first.c
14081         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
14082         __vdso_clock_gettime and __vdso_getcpu.
14083
14084         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
14085         time with __vdso_time.
14086
14087 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
14088
14089         * manual/lang.texi (size_t): Note types to which size_t may be
14090         equivalent with the GNU C Library, but do not describe when
14091         differences between them are significant.
14092
14093 2012-03-05  Andreas Jaeger  <aj@suse.de>
14094
14095         * sysdeps/i386/fpu/libm-test-ulps: Update.
14096
14097 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
14098
14099         [BZ #3976]
14100         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
14101         (__ieee754_pow): Save and restore rounding mode and use
14102         round-to-nearest for main computations.
14103         * math/libm-test.inc (pow_test_tonearest): New function.
14104         (pow_test_towardzero): Likewise.
14105         (pow_test_downward): Likewise.
14106         (pow_test_upward): Likewise.
14107         (main): Call the new functions.
14108         * sysdeps/i386/fpu/libm-test-ulps: Update.
14109         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14110
14111         [BZ #3976]
14112         * math/libm-test.inc (cosh_test_tonearest): New function.
14113         (cosh_test_towardzero): Likewise.
14114         (cosh_test_downward): Likewise.
14115         (cosh_test_upward): Likewise.
14116         (sinh_test_tonearest): Likewise.
14117         (sinh_test_towardzero): Likewise.
14118         (sinh_test_downward): Likewise.
14119         (sinh_test_upward): Likewise.
14120         (main): Call the new functions.
14121         * sysdeps/i386/fpu/libm-test-ulps: Update.
14122         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14123
14124 2012-03-05  Tom de Vries  <tom@codesourcery.com>
14125
14126         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
14127         default stack guard is set in last bytes.
14128         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
14129
14130 2012-03-05  Kees Cook  <keescook@chromium.org>
14131
14132         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
14133
14134         [BZ #13656]
14135         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
14136         possibly allocate from heap instead of stack.
14137         * stdio-common/bug-vfprintf-nargs.c: New file.
14138         * stdio-common/Makefile (tests): Add nargs overflow test.
14139
14140 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
14141
14142         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14143
14144 2012-03-03  Marek Polacek  <polacek@redhat.com>
14145
14146         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
14147         * math/math_private.h: Likewise.
14148         * stdlib/tst-strtod.c: Likewise.
14149         * sysdeps/i386/i486/bits/atomic.h: Likewise.
14150         * sysdeps/x86_64/bits/atomic.h: Likewise.
14151
14152 2012-03-02  David S. Miller  <davem@davemloft.net>
14153
14154         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
14155         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
14156         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
14157         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
14158         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
14159         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
14160         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
14161         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
14162
14163 2012-03-02  Roland McGrath  <roland@hack.frob.com>
14164
14165         [BZ #13792]
14166         * manual/examples/README: New file, says the example source files
14167         can be used under GPL>=2.
14168         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
14169         line containing just "*/".
14170         * manual/examples/add.c: Add copyright header (GPL>=2).
14171         * manual/examples/argp-ex1.c: Likewise.
14172         * manual/examples/argp-ex2.c: Likewise.
14173         * manual/examples/argp-ex3.c: Likewise.
14174         * manual/examples/argp-ex4.c: Likewise.
14175         * manual/examples/atexit.c: Likewise.
14176         * manual/examples/db.c: Likewise.
14177         * manual/examples/dir.c: Likewise.
14178         * manual/examples/dir2.c: Likewise.
14179         * manual/examples/execinfo.c: Likewise.
14180         * manual/examples/filecli.c: Likewise.
14181         * manual/examples/filesrv.c: Likewise.
14182         * manual/examples/fmtmsgexpl.c: Likewise.
14183         * manual/examples/genpass.c: Likewise.
14184         * manual/examples/inetcli.c: Likewise.
14185         * manual/examples/inetsrv.c: Likewise.
14186         * manual/examples/isockad.c: Likewise.
14187         * manual/examples/longopt.c: Likewise.
14188         * manual/examples/memopen.c: Likewise.
14189         * manual/examples/memstrm.c: Likewise.
14190         * manual/examples/mkfsock.c: Likewise.
14191         * manual/examples/mkisock.c: Likewise.
14192         * manual/examples/mygetpass.c: Likewise.
14193         * manual/examples/pipe.c: Likewise.
14194         * manual/examples/popen.c: Likewise.
14195         * manual/examples/rprintf.c: Likewise.
14196         * manual/examples/search.c: Likewise.
14197         * manual/examples/select.c: Likewise.
14198         * manual/examples/setjmp.c: Likewise.
14199         * manual/examples/sigh1.c: Likewise.
14200         * manual/examples/sigusr.c: Likewise.
14201         * manual/examples/stpcpy.c: Likewise.
14202         * manual/examples/strdupa.c: Likewise.
14203         * manual/examples/strftim.c: Likewise.
14204         * manual/examples/strncat.c: Likewise.
14205         * manual/examples/subopt.c: Likewise.
14206         * manual/examples/swapcontext.c: Likewise.
14207         * manual/examples/termios.c: Likewise.
14208         * manual/examples/testopt.c: Likewise.
14209         * manual/examples/testpass.c: Likewise.
14210         * manual/examples/timeval_subtract.c: Likewise.
14211
14212         [BZ #13792]
14213         * manual/time.texi (Elapsed Time): Move timeval_subtract example
14214         function to ...
14215         * manual/timeval_subtract.c.texi: ... here, new file.
14216
14217 2012-03-02  David S. Miller  <davem@davemloft.net>
14218
14219         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
14220
14221 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
14222
14223         [BZ #3976]
14224         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
14225         (__sin): Save and restore rounding mode and use round-to-nearest
14226         for all computations.
14227         (__cos): Save and restore rounding mode and use round-to-nearest
14228         for all computations.
14229         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
14230         <fenv.h>.
14231         (tan): Save and restore rounding mode and use round-to-nearest for
14232         all computations.
14233         * math/libm-test.inc (cos_test_tonearest): New function.
14234         (cos_test_towardzero): Likewise.
14235         (cos_test_downward): Likewise.
14236         (cos_test_upward): Likewise.
14237         (sin_test_tonearest): Likewise.
14238         (sin_test_towardzero): Likewise.
14239         (sin_test_downward): Likewise.
14240         (sin_test_upward): Likewise.
14241         (tan_test_tonearest): Likewise.
14242         (tan_test_towardzero): Likewise.
14243         (tan_test_downward): Likewise.
14244         (tan_test_upward): Likewise.
14245         (main): Call the new functions.
14246         * sysdeps/i386/fpu/libm-test-ulps: Update.
14247         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14248
14249         [BZ #10135]
14250         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
14251         small n, then large n, before computing and testing k+n.
14252         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
14253         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
14254         Likewise.
14255         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
14256         Likewise.
14257         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
14258         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
14259         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
14260         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
14261         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
14262         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
14263         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
14264         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
14265         * math/libm-test.inc (scalbn_test): Add more tests.
14266         (scalbln_test): Likewise.
14267
14268         * manual/filesys.texi (mode_t): Describe constraints on size and
14269         signedness, not exact equivalence to a particular type.
14270         (ino_t): Likewise.
14271         (ino64_t): Likewise.
14272         (dev_t): Likewise.
14273         (nlink_t): Likewise.
14274         (blkcnt_t): Likewise.
14275         (blkcnt64_t): Likewise.
14276         * manual/llio.texi (off_t): Likewise.
14277
14278         [BZ #3976]
14279         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
14280         (__ieee754_exp): Save and restore rounding mode and use
14281         round-to-nearest for all computations.
14282         * math/libm-test.inc (exp_test_tonearest): New function.
14283         (exp_test_towardzero): Likewise.
14284         (exp_test_downward): Likewise.
14285         (exp_test_upward): Likewise.
14286         (main): Call the new functions.
14287         * sysdeps/i386/fpu/libm-test-ulps: Update.
14288         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14289
14290 2012-03-01  Chris Demetriou  <cgd@google.com>
14291
14292         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
14293         have predictable order.
14294
14295 2012-03-01  David S. Miller  <davem@davemloft.net>
14296
14297         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
14298
14299         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
14300         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
14301         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
14302         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
14303
14304         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
14305         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
14306         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
14307         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
14308         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
14309         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
14310         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
14311         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
14312         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
14313
14314         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14315
14316         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
14317         * sysdeps/sparc/fpu/libm-test-ulps: to here.
14318         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
14319
14320         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
14321         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
14322         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
14323         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
14324         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
14325         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
14326         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
14327         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
14328         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
14329         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
14330         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
14331         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14332         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
14333         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
14334         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
14335         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14336         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
14337         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
14338         * sysdeps/sparc/elf/configure: Regenerated.
14339
14340 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
14341
14342         * configure.in (AS, LD): Require binutils 2.20 or later.
14343         * configure: Regenerated.
14344         * manual/install.texi (Tools for Compilation): Give binutils 2.20
14345         as required minimum version.
14346         * INSTALL: Regenerated.
14347
14348         [BZ #2541]
14349         [BZ #4108]
14350         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
14351         before squaring exponent.
14352         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
14353         bottom long double and 27 bits of top long double before squaring
14354         exponent.
14355         * math/libm-test.inc (erfc_test): Add more tests.
14356         * sysdeps/i386/fpu/libm-test-ulps: Update.
14357         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14358         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14359
14360 2012-03-01  Kai Tietz  <ktietz@redhat.com>
14361
14362         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
14363         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
14364         containing bit-fields.
14365         * soft-fp/extended.h (_FP_UNION_E): Likewise.
14366         * soft-fp/single.h (_FP_UNION_S): Likewise.
14367         * soft-fp/double.h (_FP_UNION_D): Likewise.
14368
14369 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
14370
14371         [BZ #13786]
14372         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
14373         not include ../strcmp.S.
14374         [USE_AS_STRNCASECMP_L]: Likewise.
14375         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
14376         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
14377         * sysdeps/i386/i686/multiarch/strncase_l-c.c
14378         (__strncasecmp_l_ia32): Define as alias to
14379         __strncasecmp_l_nonascii.
14380
14381         [BZ #5794]
14382         * math/libm-test.inc (expm1_test): Add test for bug 5794.
14383         * sysdeps/i386/fpu/libm-test-ulps: Update.
14384         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14385
14386         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
14387         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14388
14389 2012-02-29  Jeff Law  <law@redhat.com>
14390
14391         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
14392         out of bounds read.
14393
14394 2012-02-29  Marek Polacek  <polacek@redhat.com>
14395
14396         [BZ #13706]
14397         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
14398         * elf/Makefile: Add rules to run tst-unused-dep.out.
14399
14400 2012-02-28  David S. Miller  <davem@davemloft.net>
14401
14402         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
14403         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
14404         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
14405         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
14406         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
14407         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
14408
14409 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
14410
14411         * math/libm-test.inc (llround_test): Move one test from
14412         lround_test.  Use TEST_f_L in moved test.
14413         (lround_test): Move misplaced test to llround_test.  Add testcase
14414         from bug 2561.
14415
14416 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
14417
14418         * sysdeps/x86_64/fpu/e_expf.S: New file.
14419         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
14420
14421 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
14422
14423         [BZ #13637]
14424         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
14425         of remain_len that may cause incomplete multi-byte character and
14426         false match.
14427         * posix/bug-regex33.c: New file.
14428         * posix/Makefile (tests): Add bug-regex33.
14429
14430 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
14431
14432         * manual/macros.texi: New file.
14433         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
14434         * manual/libc.texinfo: Include macros.texi.
14435         * manual/creatute.texi: Likewise.
14436         * manual/install.texi: Likewise.
14437         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
14438         @glibcadj{} in references to the GNU C Library.
14439         * manual/charset.texi: Likewise.
14440         * manual/conf.texi: Likewise.
14441         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
14442         when not using those macros.
14443         * manual/creature.texi: Likewise.
14444         * manual/crypt.texi: Likewise.
14445         * manual/errno.texi: Likewise.
14446         * manual/filesys.texi: Likewise.
14447         * manual/header.texi: Likewise.
14448         * manual/install.texi: Likewise.
14449         * manual/intro.texi: Likewise.
14450         * manual/io.texi: Likewise.
14451         * manual/job.texi: Likewise.
14452         * manual/lang.texi: Likewise.
14453         * manual/libc.texiinfo: Likewise.
14454         * manual/llio.texi: Likewise.
14455         * manual/locale.texi: Likewise.
14456         * manual/maint.texi: Likewise.
14457         * manual/math.texi: Likewise.
14458         * manual/memory.texi: Likewise.
14459         * manual/message.texi: Likewise.
14460         * manual/nss.texi: Likewise.
14461         * manual/pattern.texi: Likewise.
14462         * manual/process.texi: Likewise.
14463         * manual/resource.texi: Likewise.
14464         * manual/search.texi: Likewise.
14465         * manual/setjmp.texi: Likewise.
14466         * manual/signal.texi: Likewise.
14467         * manual/socket.texi: Likewise.
14468         * manual/startup.texi: Likewise.
14469         * manual/stdio.texi: Likewise.
14470         * manual/string.texi: Likewise.
14471         * manual/sysinfo.texi: Likewise.
14472         * manual/syslog.texi: Likewise.
14473         * manual/terminal.texi: Likewise.
14474         * manual/time.texi: Likewise.
14475         * manual/users.texi: Likewise.
14476         * INSTALL: Regenerated.
14477         * NOTES: Regenerated.
14478         * sysdeps/gnu/errlist.c: Regenerated.
14479
14480 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
14481
14482         * include/dirent.h: Include <dirstream.h> before
14483         <dirent/dirent.h>.
14484
14485 2012-02-28  David S. Miller  <davem@davemloft.net>
14486
14487         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
14488         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
14489         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
14490         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
14491
14492 2012-02-27  David S. Miller  <davem@davemloft.net>
14493
14494         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
14495         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
14496         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
14497         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
14498
14499         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
14500         frame pointer instead of stack pointer relative arg slot.
14501         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
14502         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
14503         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
14504
14505 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
14506
14507         [BZ #3992]
14508         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
14509
14510 2012-02-27  David S. Miller  <davem@davemloft.net>
14511
14512         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
14513         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
14514         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
14515         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
14516         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
14517         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
14518         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
14519         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
14520
14521 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
14522
14523         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
14524         later.  Allow versions 5-9.
14525         * configure: Regenerated.
14526         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
14527         required minimum version and 4.6 as recommended version.  Do not
14528         mention bugs in GCC 2.7 and 2.8.
14529         * INSTALL: Regenerated.
14530
14531 2012-02-27  David S. Miller  <davem@davemloft.net>
14532
14533         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
14534         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
14535         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
14536         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
14537         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
14538         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
14539         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
14540         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
14541
14542         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
14543         manipulate bits before adding and subtracting TWO112[sx].
14544         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
14545
14546 2012-02-27  Roland McGrath  <roland@hack.frob.com>
14547
14548         [BZ #13775]
14549         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
14550         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
14551         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
14552         being in POSIX, because they are in 1003.1-2008.
14553
14554         * rt/tst-aio.c: Include <fcntl.h>.
14555         * rt/tst-aio7.c: Likewise.
14556         * rt/tst-aio64.c: Likewise.
14557
14558         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
14559
14560 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
14561
14562         * manual/install.texi (--with-headers): Describe headers as
14563         interface headers, not private headers.
14564         (Specific advice for GNU/Linux systems): Describe use of headers
14565         from "make headers_install", not private headers from older
14566         kernels.
14567         * INSTALL: Regenerated.
14568         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
14569         Change to 2.6.19.
14570         * sysdeps/unix/sysv/linux/configure: Regenerated.
14571
14572         * manual/llio.texi (fclean): Remove documentation.
14573
14574         * manual/Makefile (libc-texi-generated): New variable.  Include
14575         version.texi.
14576         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
14577         $(libc-texi-generated), not duplicated list of files.
14578         (version.texi, stamp-version): New rules.
14579         (realclean): Remove $(libc-texi-generated), not individual files
14580         from that list.  Do not remove dir-add.texinfo.
14581         * manual/libc.texinfo: Comment out uses of edition numbers and
14582         references to printed manual.  Remove last-updated dates.
14583         (EDITION): Comment out.
14584         (ISBN): Likewise.
14585         (VERSION, UPDATED): Remove.
14586         (version.texi): Include.
14587
14588 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
14589
14590         * sysdeps/posix/spawni.c: Include <signal.h>.
14591         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
14592         * sysdeps/pthread/aio_fsync.c: Likewise.
14593
14594 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
14595
14596         * conform/Makefile (tests): Run only when not cross-compiling and
14597         when fast-check is not defined.
14598
14599         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
14600         * conform/data/limits.h-data: Fixes for POSIX2008.
14601         * conform/run-conformtest.sh: Run all tests.
14602         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
14603         headers.
14604         * include/bits/dlfcn.h: Likewise.
14605         * include/langinfo.h: Likewise.
14606         * include/monetary.h: Likewise.
14607         * include/sys/poll.h: Likewise.
14608
14609         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
14610         for __USE_GNU.
14611         * posix/spawn.h: Define __need_sigset_t.
14612         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
14613         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
14614         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
14615         to get sigevent_t only.
14616         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
14617         only for __USE_GNU.
14618         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14619         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14620         process_vm_writev only for __USE_GNU.
14621         * termios/termios.h: Declare tcgetsid also for POSIX2008.
14622
14623         * conform/Makefile: For now ignore errors from run-conformtest.
14624         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
14625         POSIX to avoid namespace pollution.  Don't prepend headers.
14626         * conform/data/aio.h-data: Fixes for POSIX testing.
14627         * conform/data/fcntl.h-data: Likewise.
14628         * conform/data/glob.h-data: Likewise.
14629         * conform/data/grp.h-data: Likewise.
14630         * conform/data/pthread.h-data: Likewise.
14631         * conform/data/pwd.h-data: Likewise.
14632         * conform/data/signal.h-data: Likewise.
14633         * conform/data/spawn.h-data: Likewise.
14634         * conform/data/stdio.h-data: Likewise.
14635         * conform/data/stdlib.h-data: Likewise.
14636         * conform/data/stropts.h-data: Likewise.
14637         * conform/data/sys/mman.h-data: Likewise.
14638         * conform/data/sys/stat.h-data: Likewise.
14639         * conform/data/sys/types.h-data: Likewise.
14640         * conform/data/sys/wait.h-data: Likewise.
14641         * conform/data/time.h-data: Likewise.
14642         * conform/data/unistd.h-data: Likewise.
14643         * conform/data/utime.h-data: Likewise.
14644
14645         * io/sys/stat.h: fchmod was always in POSIX.
14646         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
14647         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
14648         * rt/aio.h: Define __need_timespec before including <time.h>.
14649         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
14650         struct.  Add forward declaration of pthread_attr_t and use it in
14651         sigevent.
14652         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
14653         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
14654         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
14655         always remove CLK_TCK definition.
14656
14657 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
14658
14659         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
14660
14661 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
14662
14663         * conform/run-conformtest.sh: New file.
14664         * conform/Makefile: Run run-conformtest for tests.
14665         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
14666         support.
14667
14668         * conform/data/uchar.h-data: New file.
14669         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
14670         * conform/data/arpa/inet.h-data: Likewise.
14671         * conform/data/assert.h-data: Likewise.
14672         * conform/data/complex.h-data: Likewise.
14673         * conform/data/cpio.h-data: Likewise.
14674         * conform/data/ctype.h-data: Likewise.
14675         * conform/data/dirent.h-data: Likewise.
14676         * conform/data/dlfcn.h-data: Likewise.
14677         * conform/data/errno.h-data: Likewise.
14678         * conform/data/fcntl.h-data: Likewise.
14679         * conform/data/float.h-data: Likewise.
14680         * conform/data/fmtmsg.h-data: Likewise.
14681         * conform/data/fnmatch.h-data: Likewise.
14682         * conform/data/ftw.h-data: Likewise.
14683         * conform/data/glob.h-data: Likewise.
14684         * conform/data/grp.h-data: Likewise.
14685         * conform/data/iconv.h-data: Likewise.
14686         * conform/data/inttypes.h-data: Likewise.
14687         * conform/data/langinfo.h-data: Likewise.
14688         * conform/data/libgen.h-data: Likewise.
14689         * conform/data/limits.h-data: Likewise.
14690         * conform/data/locale.h-data: Likewise.
14691         * conform/data/math.h-data: Likewise.
14692         * conform/data/monetary.h-data: Likewise.
14693         * conform/data/mqueue.h-data: Likewise.
14694         * conform/data/ndbm.h-data: Likewise.
14695         * conform/data/net/if.h-data: Likewise.
14696         * conform/data/netdb.h-data: Likewise.
14697         * conform/data/netinet/in.h-data: Likewise.
14698         * conform/data/nl_types.h-data: Likewise.
14699         * conform/data/poll.h-data: Likewise.
14700         * conform/data/pthread.h-data: Likewise.
14701         * conform/data/pwd.h-data: Likewise.
14702         * conform/data/regex.h-data: Likewise.
14703         * conform/data/sched.h-data: Likewise.
14704         * conform/data/search.h-data: Likewise.
14705         * conform/data/semaphore.h-data: Likewise.
14706         * conform/data/setjmp.h-data: Likewise.
14707         * conform/data/signal.h-data: Likewise.
14708         * conform/data/spawn.h-data: Likewise.
14709         * conform/data/stdarg.h-data: Likewise.
14710         * conform/data/stdio.h-data: Likewise.
14711         * conform/data/stdlib.h-data: Likewise.
14712         * conform/data/string.h-data: Likewise.
14713         * conform/data/strings.h-data: Likewise.
14714         * conform/data/stropts.h-data: Likewise.
14715         * conform/data/sys/ipc.h-data: Likewise.
14716         * conform/data/sys/mman.h-data: Likewise.
14717         * conform/data/sys/msg.h-data: Likewise.
14718         * conform/data/sys/resource.h-data: Likewise.
14719         * conform/data/sys/select.h-data: Likewise.
14720         * conform/data/sys/sem.h-data: Likewise.
14721         * conform/data/sys/shm.h-data: Likewise.
14722         * conform/data/sys/socket.h-data: Likewise.
14723         * conform/data/sys/stat.h-data: Likewise.
14724         * conform/data/sys/statvfs.h-data: Likewise.
14725         * conform/data/sys/time.h-data: Likewise.
14726         * conform/data/sys/timeb.h-data: Likewise.
14727         * conform/data/sys/times.h-data: Likewise.
14728         * conform/data/sys/types.h-data: Likewise.
14729         * conform/data/sys/uio.h-data: Likewise.
14730         * conform/data/sys/un.h-data: Likewise.
14731         * conform/data/sys/utsname.h-data: Likewise.
14732         * conform/data/sys/wait.h-data: Likewise.
14733         * conform/data/syslog.h-data: Likewise.
14734         * conform/data/tar.h-data: Likewise.
14735         * conform/data/termios.h-data: Likewise.
14736         * conform/data/utime.h-data: Likewise.
14737         * conform/data/utmpx.h-data: Likewise.
14738         * conform/data/varargs.h-data: Likewise.
14739         * conform/data/wchar.h-data: Likewise.
14740         * conform/data/wctype.h-data: Likewise.
14741         * conform/data/wordexp.h-data: Likewise.
14742
14743         * include/stropts.h: New file.
14744         * include/uchar.h: New file.
14745         * include/aio.h: Changes to allow conformtest.pl to use the headers.
14746         * include/assert.h: Likewise.
14747         * include/ctype.h: Likewise.
14748         * include/dirent.h: Likewise.
14749         * include/dlfcn.h: Likewise.
14750         * include/fcntl.h: Likewise.
14751         * include/fnmatch.h: Likewise.
14752         * include/glob.h: Likewise.
14753         * include/grp.h: Likewise.
14754         * include/libio.h: Likewise.
14755         * include/locale.h: Likewise.
14756         * include/math.h: Likewise.
14757         * include/net/if.h: Likewise.
14758         * include/netdb.h: Likewise.
14759         * include/netinet/in.h: Likewise.
14760         * include/pthread.h: Likewise.
14761         * include/pwd.h: Likewise.
14762         * include/regex.h: Likewise.
14763         * include/sched.h: Likewise.
14764         * include/search.h: Likewise.
14765         * include/setjmp.h: Likewise.
14766         * include/signal.h: Likewise.
14767         * include/stdio.h: Likewise.
14768         * include/stdlib.h: Likewise.
14769         * include/string.h: Likewise.
14770         * include/sys/cdefs.h: Likewise.
14771         * include/sys/mman.h: Likewise.
14772         * include/sys/msg.h: Likewise.
14773         * include/sys/resource.h: Likewise.
14774         * include/sys/select.h: Likewise.
14775         * include/sys/socket.h: Likewise.
14776         * include/sys/stat.h: Likewise.
14777         * include/sys/statvfs.h: Likewise.
14778         * include/sys/time.h: Likewise.
14779         * include/sys/times.h: Likewise.
14780         * include/sys/uio.h: Likewise.
14781         * include/sys/utsname.h: Likewise.
14782         * include/sys/wait.h: Likewise.
14783         * include/termios.h: Likewise.
14784         * include/time.h: Likewise.
14785         * include/ulimit.h: Likewise.
14786         * include/unistd.h: Likewise.
14787         * include/utime.h: Likewise.
14788         * include/wchar.h: Likewise.
14789         * include/wctype.h: Likewise.
14790         * include/wordexp.h: Likewise.
14791
14792         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
14793
14794         * time/time.h: TIME_UTC must be a macro.
14795         Make timespec_get available for ISO C11 only as well.
14796
14797 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
14798
14799         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
14800         Reported by Peng Haitao <penght@cn.fujitsu.com>.
14801
14802 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14803
14804         * configure.in: Use -o not -a in test for unsupported multi-arch.
14805
14806 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14807
14808         * manual/texinfo.tex: Update to version 2012-01-19.16.
14809
14810 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14811
14812         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
14813
14814 2012-02-24  Roland McGrath  <roland@hack.frob.com>
14815
14816         [BZ #13738]
14817         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
14818         * manual/fdl-1.3.texi: New file.
14819         * manual/fdl-1.1.texi: File removed.
14820
14821         [BZ #13738]
14822         * manual/libc.texinfo (FDL_VERSION): New @set.
14823         Use it for mention of FDL in cover text.
14824         (Documentation License): Use it in @include file name.
14825
14826 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14827             Roland McGrath  <roland@hack.frob.com>
14828
14829         [BZ #5461]
14830         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
14831         not LONG_LONG_MAX and LONG_LONG_MIN.
14832         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
14833         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
14834         name.
14835         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
14836
14837 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14838
14839         [BZ #2547]
14840         [BZ #11365]
14841         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
14842         manipulate bits before adding and subtracting TWO23[sx].
14843         * math/libm-test.inc (nearbyint_test): Add more tests.
14844
14845 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14846
14847         [BZ #2548]
14848         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
14849         bits before adding and subtracting TWO23[sx].
14850         * math/libm-test.inc (rint_test): Add more tests.
14851         (rint_test_tonearest): Likewise.
14852         (rint_test_towardzero): Likewise.
14853         (rint_test_downward): Likewise.
14854         (rint_test_upward: Likewise.
14855
14856 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14857
14858         [BZ #10110]
14859         * include/stdc-predef.h: New file.  Extracted from features.h.
14860         * include/features.h: Include stdc-predef.h.
14861         * Makefile (headers): Add stdc-predef.h.
14862         * CONFORMANCE (Compiler limitations): Update.
14863
14864 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14865
14866         * manual/libc.texinfo (VERSION, UPDATED): Revert.
14867
14868 2012-02-21  David S. Miller  <davem@davemloft.net>
14869
14870         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
14871         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14872
14873 2012-02-20  David S. Miller  <davem@davemloft.net>
14874
14875         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
14876         using a normal save/restore sequence, rather than allocating a
14877         dummy stack frame just to store a frame pointer and restore.
14878         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14879
14880 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14881
14882         * manual/install.texi: Fix stray word in line-wrapped comment.
14883
14884 2012-02-20  David S. Miller  <davem@davemloft.net>
14885
14886         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
14887         both binutils and gcc support GOTDATA.
14888
14889         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
14890         "rd %pc" in the PIC register setup sequences.
14891
14892         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
14893         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
14894         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
14895         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
14896         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
14897         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
14898         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14899         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14900         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
14901         (SYSCALL_ERROR_HANDLER): Likewise.
14902         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
14903         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
14904         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
14905         (SYSCALL_ERROR_HANDLER): Likewise.
14906
14907         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
14908         (HAVE_GCC_GOTDATA): New.
14909         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
14910         relocation support in both binutils and gcc.
14911         * sysdeps/sparc/elf/configure: Regenerate.
14912
14913         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
14914         * sysdeps/sparc/sparc32/elf/configure: Delete.
14915         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
14916         * sysdeps/sparc/sparc64/elf/configure: Delete.
14917         * sysdeps/sparc/elf/configure.in: New file.
14918         * sysdeps/sparc/elf/configure: Generate.
14919
14920         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
14921         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
14922         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14923         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
14924         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
14925
14926 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14927
14928         * manual/install.texi: Do not mention specific glibc version
14929         numbers.
14930         * manual/libc.texinfo (VERSION, UPDATED): Update.
14931         (@copying): Use @copyright{} and range of years.
14932
14933 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14934
14935         [BZ #13695]
14936         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
14937         [crti.S not in sysdirs] (generated): Do not append.
14938         [crti.S not in sysdirs] (omit-deps): Likewise.
14939         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
14940         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
14941         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
14942         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
14943         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
14944         Likewise.
14945         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
14946         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
14947         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
14948         * csu/defs.awk: Remove file.
14949         * sysdeps/generic/initfini.c: Likewise.
14950         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
14951         variable.
14952         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
14953         Likewise.
14954
14955 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14956
14957         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
14958         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
14959         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
14960         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
14961         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14962         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
14963         <bits/epoll.h>.
14964         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
14965         (__EPOLL_PACKED): Define to empty if not defined by
14966         <bits/epoll.h>.
14967         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
14968         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14969         bits/epoll.h.
14970
14971 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14972
14973         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
14974         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
14975         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
14976         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
14977         <bits/timerfd.h>.
14978         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
14979         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14980         bits/timerfd.h.
14981
14982 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14983
14984         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
14985         in C locale.
14986         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14987         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
14988         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
14989         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14990
14991 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
14992
14993         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14994         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14995
14996 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
14997
14998         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
14999         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
15000         defined.
15001         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
15002         Likewise.
15003         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
15004         entry for 2.16.
15005
15006 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
15007
15008         * math/w_acos.c: Use non-signaling floating-point comparisons.
15009         * math/w_acosf.c: Likewise.
15010         * math/w_acosh.c: Likewise.
15011         * math/w_acoshf.c: Likewise.
15012         * math/w_acoshl.c: Likewise.
15013         * math/w_acosl.c: Likewise.
15014         * math/w_asin.c: Likewise.
15015         * math/w_asinf.c: Likewise.
15016         * math/w_asinl.c: Likewise.
15017         * math/w_atanh.c: Likewise.
15018         * math/w_atanhf.c: Likewise.
15019         * math/w_atanhl.c: Likewise.
15020         * math/w_exp2.c: Likewise.
15021         * math/w_exp2f.c: Likewise.
15022         * math/w_exp2l.c: Likewise.
15023         * math/w_j0.c: Likewise.
15024         * math/w_j0f.c: Likewise.
15025         * math/w_j0l.c: Likewise.
15026         * math/w_j1.c: Likewise.
15027         * math/w_j1f.c: Likewise.
15028         * math/w_j1l.c: Likewise.
15029         * math/w_jn.c: Likewise.
15030         * math/w_jnf.c: Likewise.
15031         * math/w_log.c: Likewise.
15032         * math/w_log10.c: Likewise.
15033         * math/w_log10f.c: Likewise.
15034         * math/w_log10l.c: Likewise.
15035         * math/w_log2.c: Likewise.
15036         * math/w_log2f.c: Likewise.
15037         * math/w_log2l.c: Likewise.
15038         * math/w_logf.c: Likewise.
15039         * math/w_logl.c: Likewise.
15040         * math/w_sqrt.c: Likewise.
15041         * math/w_sqrtf.c: Likewise.
15042         * math/w_sqrtl.c: Likewise.
15043         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15044         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
15045         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15046         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15047         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15048
15049 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
15050
15051         [BZ #9739]
15052         * manual/string.texi (strnlen): Use correct parameter name in
15053         equivalent expression.
15054
15055 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
15056
15057         [BZ #11174]
15058         * manual/users.texi (seteuid): Consistently use neweuid for
15059         argument name.
15060
15061 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
15062
15063         [BZ #13704]
15064         * manual/nss.texi (Services in the NSS configuration): Correct
15065         list of services in example configuration file.
15066
15067 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
15068
15069         [BZ #11322]
15070         * manual/arith.texi: Remove statements about negative zero
15071         behaving identically to zero.
15072
15073 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
15074
15075         [BZ #5993]
15076         * manual/install.texi: Do not document upgrading from libc5.
15077
15078 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
15079
15080         [BZ #4596]
15081         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
15082
15083 2012-02-18  David S. Miller  <davem@davemloft.net>
15084
15085         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
15086         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
15087         %o7 across the call.
15088         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
15089         instead.
15090         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
15091         SETUP_PIC_REG_LEAF.
15092         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15093         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
15094         * sysdeps/sparc/crtn.S: Likewise.
15095
15096 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
15097
15098         * aout/Makefile: Remove.
15099
15100 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
15101
15102         [BZ #13058]
15103         * manual/examples/argp-ex1.c (main): Format definition in GNU
15104         style.
15105         * manual/examples/argp-ex2.c (main): Likewise.
15106         * manual/examples/argp-ex3.c (main): Likewise.
15107         * manual/examples/argp-ex4.c (main): Likewise.
15108         * manual/examples/longopt.c (main): Use new-style prototype
15109         definition.
15110         * manual/examples/strncat.c (main): Specify return type and use
15111         (void) for arguments.
15112         * manual/examples/subopt.c (main): Use char **argv argument.
15113
15114 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
15115
15116         [BZ #5077]
15117         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
15118         rounding modes.
15119
15120 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
15121
15122         [BZ #6907]
15123         * manual/string.texi (strchr): Change when strchrnul is
15124         recommended.
15125
15126 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
15127
15128         [BZ #174]
15129         * manual/locale.texi (setlocale): Document LOCPATH.
15130
15131 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
15132
15133         [BZ #10210]
15134         * manual/process.texi (execle): Move @dots{} before last argument.
15135
15136 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
15137
15138         [BZ #12047]
15139         * manual/charset.texi (Generic Charset Conversion): Fix typo
15140         (LC_TYPE -> LC_CTYPE).
15141
15142 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
15143
15144         [BZ #5805]
15145         * manual/arith.texi (scalbn): Use @var{} on parameter names.
15146         (scalbnf): Likewise.
15147         (scalbnl): Likewise.
15148         (scalbln): Likewise.
15149         (scalblnf): Likewise.
15150         (scalblnl): Likewise.
15151         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
15152         (vwarnx): Likewise.
15153         (verr): Likewise.
15154         (verrx): Likewise.
15155         * manual/filesys.texi (telldir): Use braces around return type.
15156         * manual/llio.texi (mmap): Add space after comma.
15157         (mmap64): Likewise.
15158         * manual/math.texi (jn): Use @var{} on parameter names.
15159         (jnf): Likewise.
15160         (jnl): Likewise.
15161         (yn): Likewise.
15162         (ynf): Likewise.
15163         (ynl): Likewise.
15164         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
15165         line.
15166         * manual/resource.texi (ulimit): Use @dots{} instead of literal
15167         "...".
15168         (sched_get_priority_min): Remove semicolon on @deftypefun line.
15169         (sched_get_priority_max): Likewise.
15170         * manual/signal.texi (sigvec): Add space after comma.
15171         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
15172         names.
15173         (if_indextoname): Likewise.
15174         (if_freenameindex): Likewise.
15175         (sendto): Use ',' instead of '.' in prototype.
15176         * manual/startup.texi (syscall): Use @dots{} instead of literal
15177         "...".
15178         * manual/stdio.texi (__fpending): Separate initial words of
15179         paragraph from @deftypefun line.
15180         * manual/syslog.texi (syslog): Use @dots{} instead of literal
15181         "...".
15182         (vsyslog): Use @var{} on parameter names.
15183         * manual/terminal.texi (stty): Use @var{} on parameter names.
15184         * manual/users.texi (getutmp): Use @var{} on parameter names.
15185         (getutmpx): Likewise.
15186
15187 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
15188
15189         [BZ #6884]
15190         * manual/stdio.texi (fopen): Fix typos in description of
15191         ",ccs=STRING".
15192
15193 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
15194
15195         [BZ #4026]
15196         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
15197         get clock_id definition.
15198
15199 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
15200
15201         [BZ #4822]
15202         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
15203         (madvise): Cast every argument to void on its own.
15204
15205 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
15206
15207         [BZ #9902]
15208         * manual/startup.texi (Exit Status): Fix typo.
15209
15210 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
15211
15212         [BZ #10140]
15213         * manual/examples/argp-ex1.c: Include <stdlib.h>.
15214         * manual/examples/argp-ex2.c: Likewise.
15215         * manual/examples/argp-ex3.c: Likewise.
15216
15217 2012-02-16  Richard Henderson  <rth@redhat.com>
15218
15219         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
15220         * sysdeps/s390/s390-32/initfini.c: Remove.
15221         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
15222         * sysdeps/s390/s390-64/initfini.c: Remove.
15223
15224 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
15225
15226         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
15227         compiler output for sysdeps/generic/initfini.c.
15228         * sysdeps/sh/elf/initfini.c: Remove file.
15229
15230 2012-02-16  David S. Miller  <davem@davemloft.net>
15231
15232         [BZ #11494]
15233         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
15234
15235         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
15236         * sysdeps/sparc/crti.S: New file.
15237         * sysdeps/sparc/crtn.S: New file.
15238         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
15239         * sysdeps/sparc/sparc64/Makefile: Likewise.
15240
15241 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
15242
15243         [BZ #3335]
15244         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
15245
15246 2012-02-15  Roland McGrath  <roland@hack.frob.com>
15247
15248         [BZ #4822]
15249         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
15250
15251         * mach/devstream.c (cookie_io_functions_t): Macro removed.
15252         (write, read, close): Likewise.
15253         Patch by Aurelien Jarno <aurelien@aurel32.net>.
15254
15255 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
15256
15257         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
15258         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
15259         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
15260         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
15261         <bits/signalfd.h>.
15262         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
15263         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
15264         bits/signalfd.h.
15265
15266 2012-02-14  Marek Polacek  <polacek@redhat.com>
15267
15268         * sysdeps/x86_64/crti.S: New file.
15269         * sysdeps/x86_64/crtn.S: New file.
15270         * sysdeps/x86_64/elf/initfini.c: Remove file.
15271
15272 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
15273
15274         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
15275         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
15276         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
15277         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
15278         <bits/inotify.h>.
15279         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
15280         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
15281         bits/inotify.h.
15282
15283 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
15284
15285         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
15286         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
15287         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
15288         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
15289         <bits/eventfd.h>.
15290         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
15291         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
15292         bits/eventfd.h.
15293
15294 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
15295
15296         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
15297         __feraiseexcept instead of feraiseexcept.
15298
15299         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
15300         nanosleep invocations.
15301         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
15302         strings, and add error checking for a nanosleep invocations.
15303
15304 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15305
15306         Replace FSF snail mail address with URLs, as per GNU coding standards.
15307         Most of the snail mail addresses were wrong anyway, and omitting
15308         them makes the source code easier to maintain.  Almost all of the
15309         changes are to license notices and to locale LC_IDENTIFICATION
15310         addresses, except for this one:
15311         * manual/libc.texinfo: In "Published by", give the FSF's URL,
15312         not its snail mail address.
15313
15314 2012-02-09  Richard Henderson  <rth@twiddle.net>
15315
15316         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
15317         of kernel-features.h.
15318
15319         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
15320
15321 2012-02-08  Marek Polacek  <polacek@redhat.com>
15322
15323         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
15324         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
15325         * sysdeps/gnu/_G_config.h: Likewise.
15326         * sysdeps/generic/_G_config.h: Likewise.
15327
15328 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
15329
15330         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
15331         tests.
15332         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15333
15334         * sysdeps/powerpc/powerpc32/crti.S: New file.
15335         * sysdeps/powerpc/powerpc32/crtn.S: New file.
15336         * sysdeps/powerpc/powerpc64/crti.S: New file.
15337         * sysdeps/powerpc/powerpc64/crtn.S: New file.
15338
15339         * Makeconfig (have-initfini): Don't set.
15340         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
15341         * configure.in (nopic_initfini): Don't substitute.
15342         * config.h.in (HAVE_INITFINI): Don't #undef.
15343         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
15344         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
15345
15346 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
15347
15348         Support crti.S and crtn.S provided directly by architectures.
15349         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
15350         [crti.S in sysdirs] (omit-deps): Likewise.
15351         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
15352         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
15353         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
15354         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
15355         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
15356         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
15357         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
15358         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
15359         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
15360         compiler output for sysdeps/generic/initfini.c.
15361         * sysdeps/i386/elf/Makefile: Remove file.
15362         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
15363
15364 2012-02-07  Marek Polacek  <polacek@redhat.com>
15365
15366         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
15367         * sysdeps/gnu/_G_config.h: Likewise.
15368         * sysdeps/mach/hurd/_G_config.h: Likewise.
15369
15370 2012-02-07  Marek Polacek  <polacek@redhat.com>
15371
15372         * math/Makefile (tests): Add tst-CMPLX2.
15373         * math/tst-CMPLX2.c: New file.
15374
15375 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
15376
15377         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15378
15379         * math/libm-test.inc (jn_test): Add missing L suffix.
15380
15381 2012-02-06  Marek Polacek  <polacek@redhat.com>
15382
15383         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
15384         * sysdeps/i386/fpu/e_powf.S: Likewise.
15385         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15386         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
15387         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15388         * sysdeps/i386/fpu/e_pow.S: Likewise.
15389         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
15390         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15391         * sysdeps/i386/fpu/s_expm1.S: Likewise.
15392         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
15393         * sysdeps/i386/fpu/e_log2.S: Likewise.
15394         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15395         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15396         * sysdeps/i386/fpu/e_powl.S: Likewise.
15397         * sysdeps/i386/fpu/s_log1p.S: Likewise.
15398         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15399         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
15400         * sysdeps/i386/fpu/e_logl.S: Likewise.
15401         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
15402         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
15403         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
15404         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
15405         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15406         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15407         * sysdeps/i386/fpu/e_log.S: Likewise.
15408         * sysdeps/i386/fpu/s_cexp.S: Likewise.
15409         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15410         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
15411         * sysdeps/i386/fpu/e_logf.S: Likewise.
15412         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15413         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15414         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
15415         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
15416         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
15417         * sysdeps/i386/fpu/e_log10.S: Likewise.
15418         * sysdeps/i386/fpu/s_frexp.S: Likewise.
15419         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15420         * sysdeps/i386/fpu/s_asinh.S: Likewise.
15421         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
15422         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15423         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
15424         * sysdeps/i386/asm-syntax.h: Likewise.
15425         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15426         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15427         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15428         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
15429         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
15430         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15431         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
15432         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
15433         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15434         * sysdeps/powerpc/sysdep.h: Likewise.
15435         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
15436         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
15437
15438 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
15439
15440         [BZ #411]
15441         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
15442
15443 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
15444
15445         * sysdeps/i386/sysdep.h: Include <features.h>.
15446         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
15447         version.
15448
15449 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
15450
15451         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
15452         Define.
15453         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
15454         LOAD_PIC_REG_STR.
15455
15456 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
15457
15458         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
15459         (SETUP_PIC_REG): Use GET_PC_THUNK.
15460         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
15461         macro.
15462
15463 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
15464
15465         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
15466         for non-PIC compilation.
15467         (SETUP_PIC_REG): Add .p2align directive.
15468         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
15469         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
15470         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
15471         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
15472         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
15473         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
15474         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
15475         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
15476         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
15477         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
15478         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
15479         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
15480         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
15481         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
15482         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
15483         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
15484         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
15485         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
15486         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
15487         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
15488         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
15489         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
15490         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
15491         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
15492         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
15493         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
15494         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
15495         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
15496         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
15497         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
15498         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
15499         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15500         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
15501         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
15502         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
15503         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
15504         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
15505         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
15506         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
15507         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
15508         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
15509
15510 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
15511
15512         * math/tst-CMPLX.c: Include <stdio.h>.
15513
15514 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
15515
15516         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
15517         float.
15518         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
15519         * sysdeps/sparc/bits/mathdef.h: Likewise.
15520
15521 2012-01-31  Marek Polacek  <polacek@redhat.com>
15522
15523         * libio/libio.h: Don't define _PARAMS.
15524         * locale/programs/config.h: Don't define PARAMS.
15525         * stdlib/strtol_l.c: Likewise.
15526         (__strtol_l): Remove PARAMS from the prototype.
15527
15528 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
15529
15530         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
15531         names.  Just use the correct names.  Remove unnecessary wrapper
15532         functions.
15533         * malloc/arena.c: Likewise.
15534         * malloc/hooks.c: Likewise.
15535
15536         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
15537         ARENA_TEST says not to.  Simplify test for creation of a new arena.
15538         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
15539
15540 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
15541
15542         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
15543         into tail calls.
15544         (update_get_addr): New function.
15545         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
15546         GET_ADDR_MODULE parameter.
15547
15548 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
15549
15550         * crypt/cert.c: Remove __STDC__ conditionals.
15551         * crypt/crypt-entry.c: Likewise.
15552         * crypt/crypt_util.c: Likewise.
15553         * libio/filedoalloc.c: Likewise.
15554         * libio/fileops.c: Likewise.
15555         * libio/genops.c: Likewise.
15556         * libio/iofclose.c: Likewise.
15557         * libio/iofdopen.c: Likewise.
15558         * libio/iofopen.c: Likewise.
15559         * libio/iofopen64.c: Likewise.
15560         * libio/iogetdelim.c: Likewise.
15561         * libio/iopopen.c: Likewise.
15562         * libio/obprintf.c: Likewise.
15563         * libio/oldfileops.c: Likewise.
15564         * libio/oldiofclose.c: Likewise.
15565         * libio/oldiofdopen.c: Likewise.
15566         * libio/oldiofopen.c: Likewise.
15567         * libio/oldiopopen.c: Likewise.
15568         * libio/wfiledoalloc.c: Likewise.
15569         * libio/wgenops.c: Likewise.
15570         * locale/programs/xmalloc.c: Likewise.
15571         * misc/syslog.c: Likewise.
15572         * stdio-common/xbug.c: Likewise.
15573         * string/memchr.c: Likewise.
15574         * string/memcmp.c: Likewise.
15575         * string/memrchr.c: Likewise.
15576         * string/rawmemchr.c: Likewise.
15577         * sysdeps/posix/getcwd.c: Likewise.
15578         * time/strftime_l.c: Likewise.
15579
15580 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
15581
15582         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
15583         * config.make.in (config-cflags-sse2avx): Define.
15584         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
15585         Fix typo.
15586
15587 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
15588
15589         * scripts/config.guess: Update from upstream config git repository.
15590         * scripts/config.sub: Likewise.
15591
15592 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
15593
15594         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
15595         (EM_NUM): Update.
15596         (R_TILEPRO_*, R_TILEGX_*): New macros.
15597
15598         * scripts/firstversions.awk: Fix bug in version range handling.
15599
15600         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
15601
15602         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
15603
15604         * include/sys/epoll.h: New file.
15605         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
15606         libc_hidden_def.
15607
15608 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
15609
15610         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
15611         Avoid unnecessary __WORDSIZE == 64 test.
15612         (fmaxf): Use VEX format if possible.
15613         (fmax): Likewise.
15614         (fminf): Likewise.
15615         (fmin): Likewise.
15616
15617         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
15618         * math/math_private.h: Remove libc_fegetround* and
15619         libc_fesetround*.
15620         * sysdeps/i386/configure.in: Check for -msse2avx.
15621         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
15622         also if SSE2AVX is defined.
15623         Remove libc_fegetround* and libc_fesetround*.
15624         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
15625         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
15626         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
15627         of HAS_YMM_USABLE.
15628         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15629         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15630         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15631         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15632         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15633
15634         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
15635
15636 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15637
15638         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
15639         size is not set.
15640         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
15641
15642 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
15643
15644         [BZ #13618]
15645         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
15646         relocation.
15647         * Makeconfig (libm): Define.
15648         * elf/Makefile: Add rules to build and run tst-relsort1.
15649         * elf/tst-relsort1.c: New file.
15650         * elf/tst-relsort1mod1.c: New file.
15651         * elf/tst-relsort1mod2.c: New file.
15652
15653 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
15654
15655         * math/s_ldexp.c: Remove __STDC__ conditionals.
15656         * math/s_ldexpf.c: Likewise.
15657         * math/s_ldexpl.c: Likewise.
15658         * math/s_nextafter.c: Likewise.
15659         * math/s_nexttowardf.c: Likewise.
15660         * math/s_significand.c: Likewise.
15661         * math/s_significandf.c: Likewise.
15662         * math/s_significandl.c: Likewise.
15663         * math/w_jnl.c: Likewise.
15664         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
15665         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
15666         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
15667         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
15668         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
15669         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
15670         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
15671         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
15672         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
15673         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
15674         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
15675         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15676         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
15677         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
15678         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
15679         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
15680         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
15681         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
15682         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
15683         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15684         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15685         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
15686         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
15687         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
15688         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
15689         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
15690         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
15691         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
15692         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
15693         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
15694         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
15695         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
15696         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
15697         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
15698         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
15699         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
15700         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
15701         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
15702         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
15703         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
15704         * sysdeps/ieee754/k_standard.c: Likewise.
15705         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15706         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
15707         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
15708         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
15709         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
15710         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
15711         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
15712         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
15713         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
15714         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
15715         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
15716         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
15717         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
15718         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
15719         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
15720         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
15721         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
15722         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
15723         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
15724         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
15725         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
15726         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
15727         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
15728         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
15729         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
15730         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
15731         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15732         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15733         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15734         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
15735         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
15736         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
15737         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
15738         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
15739         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
15740         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
15741         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
15742         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
15743         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
15744         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
15745         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
15746         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
15747         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
15748         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
15749         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
15750         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
15751         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
15752         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
15753         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
15754         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
15755         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
15756         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
15757         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
15758         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
15759         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
15760         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
15761         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
15762         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15763         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15764         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15765         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
15766         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
15767         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
15768         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
15769         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
15770         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
15771         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
15772         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
15773         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
15774         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
15775         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
15776         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
15777         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
15778         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
15779         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
15780         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
15781         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
15782         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
15783         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
15784         * sysdeps/ieee754/s_matherr.c: Likewise.
15785         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
15786         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
15787         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
15788         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
15789
15790 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
15791
15792         * crypt/md5.h: Remove __STDC__ conditionals.
15793         * libio/libioP.h: Likewise.
15794         * locale/programs/config.h: Likewise.
15795         * sysdeps/generic/sysdep.h: Likewise.
15796         * sysdeps/i386/asm-syntax.h: Likewise.
15797         * sysdeps/s390/asm-syntax.h: Likewise.
15798         * sysdeps/unix/sysdep.h: Likewise.
15799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
15800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
15801
15802 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
15803
15804         * libio/libio.h: Remove __STDC__ conditionals.
15805         * malloc/obstack.h: Likewise.
15806         * math/complex.h: Likewise.
15807         * math/math.h: Likewise.
15808         * sysdeps/generic/_G_config.h: Likewise.
15809         * sysdeps/gnu/_G_config.h: Likewise.
15810         * sysdeps/mach/hurd/_G_config.h: Likewise.
15811         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15812         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
15813         * sysdeps/sparc/bits/mathdef.h: Likewise.
15814
15815 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
15816
15817         [BZ #13583]
15818         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
15819         Clean up HAS_* macros.
15820         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
15821         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
15822         possible.
15823         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
15824         HAS_AVX.
15825         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15826         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15827         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15828         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15829         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15830
15831 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
15832
15833         * elf/tst-unique3.cc (gets): Remove declaration.
15834         * elf/tst-unique3lib.cc (gets): Likewise.
15835         * elf/tst-unique3lib2.cc (gets): Likewise.
15836         * elf/tst-unique4.cc (gets): Likewise.
15837
15838 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
15839
15840         * include/stdio.h: Add C++ protection.  Add gets declarations and
15841         definitions.
15842         * debug/tst-chk1.c: Don't declare gets here.
15843         * stdio-common/tst-gets.c: Likewise.
15844
15845 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15846
15847         * posix/glob: Remove directory.
15848
15849 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15850
15851         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
15852
15853 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
15854
15855         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
15856         of the non-standard EPFNOSUPPORT.
15857
15858 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15859
15860         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
15861         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
15862         ANYWHERE set to 1 only on KERN_NO_SPACE error.
15863
15864 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
15865
15866         * wcsmbs/uchar.h: Test __STDC_VERSION__.
15867
15868 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
15869
15870         * nscd/aicache.c (addhstaiX): Do not cache negative results of
15871         transient errors.
15872         * nscd/grpcache.c (cache_addgr): Likewise.
15873         * nscd/hstcache.c (cache_addhst): Likewise.
15874         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15875         * nscd/pwdcache.c (cache_addpw): Likewise.
15876         * nscd/servicescache.c (cache_addserv): Likewise.
15877
15878 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
15879
15880         * malloc/malloc.c: Various cleanups.
15881         * malloc/hooks.c: Likewise.
15882
15883         * stdlib/Makefile (tests): Add bug-fmtmsg1.
15884         * stdlib/bug-fmtmsg1.c: New file.
15885
15886         * stdlib/fmtmsg.c (init): Add missing unlock.
15887         Patch by Peng Haitao <penght@cn.fujitsu.com>.
15888
15889 2012-01-12  Marek Polacek  <polacek@redhat.com>
15890
15891         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
15892         and _GNU_SOURCE.
15893
15894 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15895
15896         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
15897         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
15898         macro to ensure uniqueness of label name.
15899         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15900         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15901
15902 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
15903
15904         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
15905
15906         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
15907         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
15908         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
15909         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
15910
15911 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
15912
15913         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
15914
15915         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
15916         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
15917         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
15918
15919         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
15920
15921         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
15922         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
15923         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
15924         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
15925
15926         * math/bits/math-finite.h: Add ldexp support.
15927
15928 2012-01-10  Marek Polacek  <polacek@redhat.com>
15929
15930         * locale/programs/localedef.h (show_archive_content): Add noreturn
15931         attribute.
15932
15933 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
15934
15935         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
15936
15937 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15938
15939         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
15940
15941         * io/Makefile (headers): Add bits/poll2.h.
15942
15943 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
15944
15945         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
15946         typo #include statement.
15947
15948 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15949
15950         * include/sys/cdefs.h: Define __attribute_alloc_size.
15951         * catgets/gencat.c: Add alloc_size attribute and apply consistently
15952         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
15953         * elf/pldd.c: Likewise.
15954         * iconv/iconv_charmap.c: Likewise.
15955         * iconv/iconvconfig.c: Likewise.
15956         * iconv/strtab.c: Likewise.
15957         * locale/programs/locale.c: Likewise.
15958         * locale/programs/localedef.h: Likewise.
15959         * locale/programs/simple-hash.c: Likewise.
15960         * nscd/nscd.h: Likewise.
15961         * nss/makedb.c: Likewise.
15962         * sysdeps/generic/ldconfig.h: Likewise.
15963         * locale/programs/localedef.c: Remove xmalloc prototype.
15964         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
15965
15966 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15967
15968         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
15969         appropriate.
15970
15971 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15972
15973         * math/Makefile (tests): Add tst-CMPLX.
15974         * math/tst-CMPLX.c: New file.
15975
15976         * math/complex.h (CMPLXL): Fix typo.
15977
15978         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
15979         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
15980         GLIBC_2.16.
15981         * debug/tst-chk1.c: Add poll and ppoll tests.
15982         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
15983         * include/sys/poll.h: Add hidden proto for ppoll.
15984         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
15985         * sysdeps/mach/hurd/ppoll.c: Likewise.
15986         * io/ppoll.c: Likewise.
15987         * debug/poll_chk.c: New file.
15988         * debug/ppoll_chk.c: New file.
15989         * include/bits/poll2.h: New file.
15990         * io/bits/poll2.h: New file.
15991
15992         [BZ #1350]
15993         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
15994
15995         * configure.in: static is always set to yes.  Remove.
15996         * config.make.in: Don't set build-static.
15997         * Makeconfig: Remove use of build-static.
15998         * dlfcn/Makefile: Likewise.
15999         * elf/Makefile: Likewise.
16000         * math/Makefile: Likewise.
16001         * misc/Makefile: Likewise.
16002         * nptl/Makefile: Likewise.
16003         * sysdeps/mach/hurd/Makefile: Likewise.
16004
16005         * configure.in: PWD_P is not used anymore.
16006         * config.make.in: Remove PWD_P entry.
16007
16008         * configure.in: Remove last remnants of RANLIB.
16009         No need to check for signed size_t anymore.
16010         Don't set libc_commonpagesize and libc_relro_required here for Alpha
16011         and IA-64.
16012         Remove __builtin_expect test because we require at least gcc 3.4.
16013         * aclocal.m4: Likewise.
16014
16015         * wcsmbs/mbrtoc16.c: Implement using towc function.
16016         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
16017         * wcsmbs/wcsmbsload.c: Likewise.
16018         * iconv/gconv_simple.c: Likewise.
16019         * iconv/gconv_int.h: Likewise.
16020         * iconv/gconv_builtin.h: Likewise.
16021         * iconv/iconv_prog.c: Remove CHAR16 handling.
16022
16023         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
16024
16025         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
16026
16027         * configure.in: Remove --with-elf and --enable-bounded options.
16028         Dont set base_machine for ia64.  More non-ELF conditions removed.
16029         Remove testing and setting of leading underscore information.
16030         * config.make.in (build-bounded): Set to no.
16031         * config.h.in: Remove NO_UNDERSCORES entry.
16032         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
16033         them.
16034         * csu/start.c: Remove !NO_UNDERSCORE code.
16035         * locale/localeinfo.h: Likewise.
16036         * sysdeps/generic/machine-gmon.h: Likewise.
16037         * sysdeps/generic/sysdep.h: Likewise.
16038         * sysdeps/i386/sysdep.h: Likewise.
16039         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
16040         * sysdeps/mach/sysdep.h: Likewise.
16041         * sysdeps/s390/s390-32/sysdep.h: Likewise.
16042         * sysdeps/s390/s390-64/sysdep.h: Likewise.
16043         * sysdeps/sh/sysdep.h: Likewise.
16044         * sysdeps/sparc/sparc32/alloca.S: Likewise.
16045         * sysdeps/unix/i386/sysdep.S: Likewise.
16046         * sysdeps/unix/sparc/start.c: Likewise.
16047         * sysdeps/unix/sparc/sysdep.S: Likewise.
16048         * sysdeps/unix/sparc/sysdep.h: Likewise.
16049         * sysdeps/unix/start.c: Likewise.
16050         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16051         * sysdeps/x86_64/sysdep.h: Likewise.
16052
16053 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
16054
16055         [BZ #13553]
16056         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
16057         for non-gcc.
16058         * argp/argp-fmtstream.h: Use const instead __const.
16059         * argp/argp.h: Likewise.
16060         * assert/assert.h: Likewise.
16061         * bits/fenv.h: Likewise.
16062         * bits/sched.h: Likewise.
16063         * bits/sigset.h: Likewise.
16064         * bits/sigthread.h: Likewise.
16065         * catgets/nl_types.h: Likewise.
16066         * conform/data/pthread.h-data: Likewise.
16067         * crypt/crypt-private.h: Likewise.
16068         * crypt/crypt.h: Likewise.
16069         * crypt/crypt_util.c: Likewise.
16070         * ctype/ctype.h: Likewise.
16071         * debug/execinfo.h: Likewise.
16072         * debug/mbsnrtowcs_chk.c: Likewise.
16073         * debug/mbsrtowcs_chk.c: Likewise.
16074         * debug/wcsnrtombs_chk.c: Likewise.
16075         * debug/wcsrtombs_chk.c: Likewise.
16076         * debug/wcstombs_chk.c: Likewise.
16077         * dirent/dirent.h: Likewise.
16078         * dlfcn/dlfcn.h: Likewise.
16079         * elf/neededtest4.c: Likewise.
16080         * grp/grp.h: Likewise.
16081         * gshadow/gshadow.h: Likewise.
16082         * iconv/gconv.h: Likewise.
16083         * iconv/gconv_int.h: Likewise.
16084         * iconv/gconv_simple.c: Likewise.
16085         * iconv/iconv.h: Likewise.
16086         * iconv/loop.c: Likewise.
16087         * iconv/skeleton.c: Likewise.
16088         * include/aio.h: Likewise.
16089         * include/aliases.h: Likewise.
16090         * include/argz.h: Likewise.
16091         * include/arpa/inet.h: Likewise.
16092         * include/assert.h: Likewise.
16093         * include/dirent.h: Likewise.
16094         * include/dlfcn.h: Likewise.
16095         * include/execinfo.h: Likewise.
16096         * include/fcntl.h: Likewise.
16097         * include/fenv.h: Likewise.
16098         * include/glob.h: Likewise.
16099         * include/grp.h: Likewise.
16100         * include/libintl.h: Likewise.
16101         * include/mntent.h: Likewise.
16102         * include/netdb.h: Likewise.
16103         * include/pwd.h: Likewise.
16104         * include/rpc/netdb.h: Likewise.
16105         * include/sched.h: Likewise.
16106         * include/search.h: Likewise.
16107         * include/shadow.h: Likewise.
16108         * include/signal.h: Likewise.
16109         * include/stdio.h: Likewise.
16110         * include/stdlib.h: Likewise.
16111         * include/string.h: Likewise.
16112         * include/sys/socket.h: Likewise.
16113         * include/sys/stat.h: Likewise.
16114         * include/sys/statfs.h: Likewise.
16115         * include/sys/statvfs.h: Likewise.
16116         * include/sys/syslog.h: Likewise.
16117         * include/sys/time.h: Likewise.
16118         * include/sys/uio.h: Likewise.
16119         * include/time.h: Likewise.
16120         * include/unistd.h: Likewise.
16121         * include/utmp.h: Likewise.
16122         * include/wchar.h: Likewise.
16123         * include/wctype.h: Likewise.
16124         * inet/aliases.h: Likewise.
16125         * inet/arpa/inet.h: Likewise.
16126         * inet/netinet/ether.h: Likewise.
16127         * inet/netinet/in.h: Likewise.
16128         * intl/libintl.h: Likewise.
16129         * io/bits/fcntl2.h: Likewise.
16130         * io/fcntl.h: Likewise.
16131         * io/ftw.h: Likewise.
16132         * io/sys/poll.h: Likewise.
16133         * io/sys/stat.h: Likewise.
16134         * io/sys/statfs.h: Likewise.
16135         * io/sys/statvfs.h: Likewise.
16136         * io/utime.h: Likewise.
16137         * libio/bits/stdio.h: Likewise.
16138         * libio/bits/stdio2.h: Likewise.
16139         * libio/libio.h: Likewise.
16140         * libio/libioP.h: Likewise.
16141         * libio/stdio.h: Likewise.
16142         * locale/lc-ctype.c: Likewise.
16143         * locale/locale.h: Likewise.
16144         * login/utmp.h: Likewise.
16145         * malloc/arena.c: Likewise.
16146         * malloc/malloc.c: Likewise.
16147         * malloc/malloc.h: Likewise.
16148         * malloc/mcheck.c: Likewise.
16149         * malloc/mtrace.c: Likewise.
16150         * math/bits/mathcalls.h: Likewise.
16151         * math/fenv.h: Likewise.
16152         * math/math_private.h: Likewise.
16153         * misc/bits/error.h: Likewise.
16154         * misc/bits/syslog.h: Likewise.
16155         * misc/err.h: Likewise.
16156         * misc/error.h: Likewise.
16157         * misc/fstab.h: Likewise.
16158         * misc/mntent.h: Likewise.
16159         * misc/regexp.h: Likewise.
16160         * misc/search.h: Likewise.
16161         * misc/sgtty.h: Likewise.
16162         * misc/sys/mman.h: Likewise.
16163         * misc/sys/syslog.h: Likewise.
16164         * misc/sys/uio.h: Likewise.
16165         * misc/sys/xattr.h: Likewise.
16166         * misc/ttyent.h: Likewise.
16167         * nis/rpcsvc/ypclnt.h: Likewise.
16168         * nss/nss.h: Likewise.
16169         * posix/bits/unistd.h: Likewise.
16170         * posix/fnmatch.h: Likewise.
16171         * posix/glob.h: Likewise.
16172         * posix/sched.h: Likewise.
16173         * posix/spawn.h: Likewise.
16174         * posix/sys/wait.h: Likewise.
16175         * posix/unistd.h: Likewise.
16176         * posix/wordexp.h: Likewise.
16177         * pwd/pwd.h: Likewise.
16178         * resolv/netdb.h: Likewise.
16179         * resource/sys/resource.h: Likewise.
16180         * rt/aio.h: Likewise.
16181         * rt/bits/mqueue2.h: Likewise.
16182         * rt/mqueue.h: Likewise.
16183         * shadow/shadow.h: Likewise.
16184         * signal/signal.h: Likewise.
16185         * socket/send.c: Likewise.
16186         * socket/sendto.c: Likewise.
16187         * socket/sys/socket.h: Likewise.
16188         * stdio-common/printf.h: Likewise.
16189         * stdlib/bits/stdlib.h: Likewise.
16190         * stdlib/fmtmsg.h: Likewise.
16191         * stdlib/monetary.h: Likewise.
16192         * stdlib/stdlib.h: Likewise.
16193         * stdlib/ucontext.h: Likewise.
16194         * streams/stropts.h: Likewise.
16195         * string/argz.h: Likewise.
16196         * string/bits/string2.h: Likewise.
16197         * string/string.h: Likewise.
16198         * string/strings.h: Likewise.
16199         * sunrpc/rpc/auth.h: Likewise.
16200         * sunrpc/rpc/auth_des.h: Likewise.
16201         * sunrpc/rpc/clnt.h: Likewise.
16202         * sunrpc/rpc/netdb.h: Likewise.
16203         * sunrpc/rpc/pmap_clnt.h: Likewise.
16204         * sunrpc/rpc/xdr.h: Likewise.
16205         * sysdeps/generic/inttypes.h: Likewise.
16206         * sysdeps/generic/net/if.h: Likewise.
16207         * sysdeps/generic/sys/swap.h: Likewise.
16208         * sysdeps/gnu/net/if.h: Likewise.
16209         * sysdeps/gnu/utmpx.h: Likewise.
16210         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
16211         * sysdeps/i386/i486/bits/string.h: Likewise.
16212         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
16213         * sysdeps/s390/bits/string.h: Likewise.
16214         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
16215         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
16216         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
16217         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
16218         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
16219         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
16220         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
16221         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
16222         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
16223         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
16224         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
16225         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
16226         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
16227         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
16228         * sysdeps/unix/sysv/linux/readv.c: Likewise.
16229         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
16230         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
16231         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16232         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
16233         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
16234         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
16235         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
16236         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
16237         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
16238         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
16239         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
16240         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
16241         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
16242         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
16243         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
16244         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
16245         * sysvipc/sys/ipc.h: Likewise.
16246         * sysvipc/sys/msg.h: Likewise.
16247         * sysvipc/sys/sem.h: Likewise.
16248         * sysvipc/sys/shm.h: Likewise.
16249         * termios/termios.h: Likewise.
16250         * time/sys/time.h: Likewise.
16251         * time/time.h: Likewise.
16252         * wcsmbs/bits/wchar2.h: Likewise.
16253         * wcsmbs/uchar.h: Likewise.
16254         * wcsmbs/wchar.h: Likewise.
16255         * wctype/wctype.h: Likewise.
16256
16257         [BZ #13551]
16258         * Makeconfig: Remove all but ELF support including AIX support.
16259         * Makerules: Likewise.
16260         * config.h.in: Likewise.
16261         * config.make.in: Likewise.
16262         * configure: Likewise.
16263         * configure.in: Likewise.
16264         * csu/Makefile: Likewise.
16265         * csu/version.c: Likewise.
16266         * debug/Makefile: Likewise.
16267         * dlfcn/Makefile: Likewise.
16268         * elf/Makefile: Likewise.
16269         * extra-lib.mk: Likewise.
16270         * iconv/Makefile: Likewise.
16271         * include/libc-symbols.h: Likewise.
16272         * include/shlib-compat.h: Likewise.
16273         * resolv/Makefile: Likewise.
16274         * resolv/res_libc.c: Likewise.
16275         * rt/Makefile: Likewise.
16276         * sysdeps/i386/asm-syntax.h: Likewise.
16277         * sysdeps/i386/sysdep.h: Likewise.
16278         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
16279         * sysdeps/mach/sysdep.h: Likewise.
16280         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
16281         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
16282         * sysdeps/s390/asm-syntax.h: Likewise.
16283         * sysdeps/s390/s390-32/sysdep.h: Likewise.
16284         * sysdeps/s390/s390-64/sysdep.h: Likewise.
16285         * sysdeps/sh/sysdep.h: Likewise.
16286         * sysdeps/unix/sparc/sysdep.h: Likewise.
16287         * sysdeps/wordsize-32/divdi3.c: Likewise.
16288         * sysdeps/x86_64/sysdep.h: Likewise.
16289
16290         * argp/Versions: Remove _argp_unlock_xxx.
16291
16292         [BZ #13559]
16293         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
16294         * abilist/libBrokenLocale.abilist: Likewise.
16295         * abilist/libanl.abilist: Likewise.
16296         * abilist/libc.abilist: Likewise.
16297         * abilist/libcrypt.abilist: Likewise.
16298         * abilist/libdl.abilist: Likewise.
16299         * abilist/libm.abilist: Likewise.
16300         * abilist/libnsl.abilist: Likewise.
16301         * abilist/libpthread.abilist: Likewise.
16302         * abilist/libresolv.abilist: Likewise.
16303         * abilist/librt.abilist: Likewise.
16304         * abilist/libthread_db.abilist: Likewise.
16305         * abilist/libutil.abilist: Likewise.
16306         * abilist/libnss_db.abilist: New file.
16307
16308         * scripts/abilist.awk: Add support for indirect functions.
16309
16310         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
16311
16312         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
16313
16314         * shlib-versions: Remove entries for ports architectures.
16315
16316         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
16317         files in ports.
16318         * elf/stackguard-macros.h: Remove support for IA-64.
16319         * elf/tst-auditmod1.c: Likewise.
16320         * sysdeps/generic/ldsodefs.h: Likewise.
16321
16322         * sysdeps/unix/sysv/linux/configure.in: Ports should define
16323         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
16324         configure files.
16325
16326         [BZ #13552]
16327         * configure.in: Remove --enable-omitfp support.
16328         * FAQ.in: Adjust.
16329         * config.make.in: Likewise.
16330         * Makeconfig: Likewise.
16331         * manual/install.texi: Likewise.
16332
16333         In case anyone cares, the IA-64 architecture could move to ports.
16334         * sysdeps/ia64/*: Removed.
16335         * sysdeps/unix/sysv/linux/ia64/*: Removed.
16336         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
16337
16338         [BZ #13555]
16339         * configure.in: Remove entries for unsupported architectures.
16340
16341         [BZ #13533]
16342         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
16343         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
16344         routines.
16345         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
16346         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
16347         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
16348         fall back to using wcrtomb.
16349         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
16350         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
16351         renaming.
16352         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
16353         * wcsmbs/tst-c16c32-1.c: New file.
16354
16355         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
16356         local variable.
16357
16358         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
16359
16360         * elf/tst-unique3.cc: Add explicit declaration of gets.
16361         * elf/tst-unique3lib.cc: Likewise.
16362         * elf/tst-unique3lib2.cc: Likewise.
16363         * elf/tst-unique4.cc: Likewise.
16364
16365         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
16366
16367 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
16368
16369         [BZ #13566]
16370         * assert/assert.h (static_assert): Don't define for C++.
16371         * libio/stdio.h (gets): Do declare for C++ <= C++11.
16372         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
16373
16374 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
16375
16376         * iconv/loop.c (single loop): Fix assertion in storing of
16377         remaining bytes.
16378
16379         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
16380
16381 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
16382
16383         * posix/getconf.c: Update copyright year.
16384         * nss/getent.c: Likewise.
16385         * nss/makedb.c: Likewise.
16386         * iconv/iconvconfig.c: Likewise.
16387         * iconv/iconv_prog.c: Likewise.
16388         * elf/ldconfig.c: Likewise.
16389         * elf/pldd.c: Likewise.
16390         * elf/sotruss.ksh: Likewise.
16391         * catgets/gencat.c: Likewise.
16392         * csu/version.c: Likewise.
16393         * elf/ldd.bash.in: Likewise.
16394         * elf/sprof.c (print_version): Likewise.
16395         * locale/programs/locale.c: Likewise.
16396         * locale/programs/localedef.c: Likewise.
16397         * login/programs/pt_chown.c: Likewise.
16398         * nscd/nscd.c (print_version): Likewise.
16399         * debug/xtrace.sh: Likewise.
16400         * malloc/memusage.sh: Likewise.
16401         * malloc/mtrace.pl: Likewise.
16402         * debug/catchsegv.sh: Likewise.
16403
16404 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
16405
16406         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
16407         pure attribute.
16408
16409 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
16410
16411         [BZ #13533]
16412         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
16413         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
16414         transformations.
16415         * iconv/gconv_int.h: Likewise.
16416         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
16417         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
16418         from libc for GLIBC_2.16.
16419         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
16420         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
16421         * wcsmbs/uchar.h: Really define mbstate_t.
16422         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
16423         * wcsmbs/c16rtomb.c: New file.
16424         * wcsmbs/mbrtoc16.c: New file.
16425         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
16426         for C/POSIX locale.
16427         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
16428         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
16429
16430         * wcsmbs/wchar.h: Add missing __restrict.
16431
16432 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
16433
16434         [BZ #13532]
16435         * time/Makefile (routines): Add timespec_get.
16436         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
16437         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
16438         timespec for ISO C11.
16439         * time/timespec_get.c: New file.
16440         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
16441         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
16442
16443         [BZ #13531]
16444         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
16445         * stdlib/stdlib.h: Declare aligned_alloc.
16446         * Versions.def: Add GLIBC_2.16 for libc.
16447         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
16448
16449         [BZ 13527]
16450         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
16451         ISO C11.
16452
16453         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
16454         code.
16455
16456         [BZ #13528]
16457         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
16458
16459         [BZ #13529]
16460         * assert/assert.h (static_assert): Define.
16461
16462         * version.h: Update for 2.16 development version.
16463
16464         [BZ #13526]
16465         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
16466         _ISOC11_SOURCE.
16467
16468         * version.h (RELEASE): Bump for 2.15 release.
16469         * include/features.h (__GLIBC_MINOR__): Bump to 15.
16470
16471         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
16472         Patch by Marek Polacek <mpolacek@redhat.com>.
16473
16474         * bits/byteswap.h: Protect long long constants with __extension__.
16475         * sysdeps/i386/bits/byteswap.h: Likewise.
16476         * sysdeps/ia64/bits/byteswap.h: Likewise.
16477         * sysdeps/s390/bits/byteswap.h: Likewise.
16478         * sysdeps/x86_64/bits/byteswap.h: Likewise.
16479
16480 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16481
16482         [BZ #13540]
16483         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
16484         destination buffer.
16485         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
16486
16487 2011-12-23  Marek Polacek  <polacek@redhat.com>
16488
16489         * elf/dl-addr.c (determine_info): Add inline keyword.
16490         * elf/tst-auditmod4b.c (check_avx): Likewise.
16491         * elf/tst-auditmod6b.c (check_avx): Likewise.
16492         * elf/tst-auditmod6c.c (check_avx): Likewise.
16493         * elf/tst-auditmod7b.c (check_avx): Likewise.
16494
16495 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
16496
16497         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
16498         !__SSE_MATH__.
16499
16500 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16501
16502         [BZ #13540]
16503         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
16504         processing for last bytes.
16505
16506 2011-08-06  Bruno Haible  <bruno@clisp.org>
16507
16508         [BZ #13061]
16509         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
16510         U+0385, not to U+1FEE.
16511
16512         [BZ #13062]
16513         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
16514         entry for U+00A5 U+0301.
16515
16516 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
16517
16518         [BZ #13166]
16519         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
16520         buffer for the output is too small.
16521
16522         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
16523         optimization.
16524
16525         [BZ #13185]
16526         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
16527         SSE flags if possible.
16528
16529 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16530
16531         [BZ #13540]
16532         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
16533         processing for last bytes.
16534
16535 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
16536
16537         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
16538         (syscall-list-default-options, syscall-list-default-condition)
16539         (syscall-list-includes): Define.
16540         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
16541         list of ABIs and options and #if conditions for each ABI.  Do not
16542         handle common syscalls between ABIs specially.
16543         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
16544         Remove.
16545         (syscall-list-variants, syscall-list-32bit-options)
16546         (syscall-list-32bit-condition, syscall-list-64bit-options)
16547         (syscall-list-64bit-condition): Define.
16548         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
16549         (syscall-list-variants, syscall-list-32bit-options)
16550         (syscall-list-32bit-condition, syscall-list-64bit-options)
16551         (syscall-list-64bit-condition): Define.
16552         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
16553         Remove.
16554         (syscall-list-variants, syscall-list-32bit-options)
16555         (syscall-list-32bit-condition, syscall-list-64bit-options)
16556         (syscall-list-64bit-condition): Define.
16557         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
16558         Remove.
16559         (syscall-list-variants, syscall-list-32bit-options)
16560         (syscall-list-32bit-condition, syscall-list-64bit-options)
16561         (syscall-list-64bit-condition): Define.
16562
16563 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
16564
16565         * locale/iso-639.def: Add brx entry.
16566
16567         [BZ #13328]
16568         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
16569         Proposed by Mariusz_Cukr <marcukr@op.pl>.
16570
16571         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
16572         __feraiseexcept_renamed.
16573
16574 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
16575
16576         [BZ #13538]
16577         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
16578         EPOLLET with unsigned values.
16579         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
16580         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
16581
16582         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
16583         to large cancellation.
16584         * math/s_cacoshf.c: Likewise.
16585         * math/s_cacoshl.c: Likewise.
16586
16587 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
16588
16589         [BZ #13305]
16590         [BZ #12786]
16591         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
16592         * math/s_cacoshf.c: Likewise.
16593         * math/s_cacoshl.c: Likewise.
16594
16595 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
16596
16597         [BZ #13439]
16598         * iconv/gconv.h: Define __GCONV_SWAP.
16599         * iconvdata/unicode.c: The swap bit must be stored in __flags.
16600         * iconvdata/utf-16.c: Likewise.
16601         * iconvdata/utf-32.c: Likewise.
16602
16603 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
16604
16605         [BZ #13524]
16606         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
16607         numerator after shifting it by one limb.
16608
16609 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
16610
16611         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
16612         under [__USE_EXTERN_INLINES].
16613
16614 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
16615
16616         [BZ #13446]
16617         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
16618
16619 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16620
16621         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
16622         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
16623         optimized code.
16624         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
16625         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
16626         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
16627         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
16628         for strncasecmp/strncasecmp_l compilation.
16629         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
16630         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
16631
16632 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
16633
16634         [BZ #13484]
16635         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
16636         of __asm__.
16637
16638 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
16639
16640         [BZ #13506]
16641         * time/tzfile.c (__tzfile_read): Check values from file header.
16642
16643 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
16644
16645         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
16646         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
16647         * powerpc/powerpc32/dl-start.S: Likewise.
16648         * powerpc/powerpc32/elf/start.S: Likewise.
16649         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
16650         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
16651         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
16652         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
16653         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
16654         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
16655         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
16656         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
16657         * powerpc/powerpc32/fpu/s_round.S: Likewise.
16658         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
16659         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
16660         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
16661         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
16662         * powerpc/powerpc32/memset.S: Likewise.
16663         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
16664         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
16665         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
16666         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
16667         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
16668         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
16669         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
16670         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
16671         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
16672         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
16673         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
16674         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
16675         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
16676
16677 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16678
16679         * math/libm-test.inc: Added more nearbyint tests.
16680         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
16681         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
16682         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
16683         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
16684
16685 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
16686
16687         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
16688         FD_CLOEXEC.
16689
16690 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16691
16692         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
16693         Add wcscpy-ssse3 wcscpy-c.
16694         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
16695         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
16696         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
16697         * sysdeps/x86_64/wcschr.S: New file.
16698         * sysdeps/x86_64/wcsrchr.S: New file.
16699         * string/test-strcmp.c: Remove checking of wcscmp function for
16700         wrong alignments.
16701         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
16702         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
16703         wcsrchr-sse2 wcsrchr-c.
16704         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
16705         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
16706         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
16707         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
16708         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
16709         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
16710         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
16711         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
16712         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
16713         * wcsmbc/wcschr.c (WCSCHR): New macro.
16714
16715 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16716
16717         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
16718         * wcsmbs/test-wcsrchr.c: New file.
16719         * string/test-strrchr.c: Add wcsrchr support.
16720         (WIDE): New macro.
16721         * wcsmbs/test-wcscpy.c: New file.
16722         * string/test-strcpy.c: Add wcscpy support.
16723         (WIDE): New macro.
16724
16725 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
16726
16727         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
16728         the inner loop.
16729
16730 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
16731
16732         [BZ #13472]
16733         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
16734
16735 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
16736
16737         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
16738         Minor optimizations.
16739
16740         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
16741         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
16742         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
16743
16744 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
16745
16746         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
16747         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
16748         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
16749         for gcc to avoid warnings.
16750         * inet/Makefile (tests): Add tst-checks.
16751         * inet/tst-checks.c: New file.
16752
16753         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
16754         warning.
16755
16756         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
16757         __wmemcmp_sse2.
16758
16759         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
16760         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
16761
16762         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
16763
16764 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
16765
16766         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
16767         problem.
16768
16769         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
16770
16771 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
16772
16773         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
16774         conditional on GCC version.
16775         (__arch_compare_and_exchange_val_8_acq)
16776         (__arch_compare_and_exchange_val_16_acq)
16777         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
16778         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
16779         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
16780
16781 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
16782
16783         * sysdeps/sh/backtrace.c: New file.
16784
16785 2011-12-02  Andreas Schwab  <schwab@redhat.com>
16786
16787         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
16788         parenthesis.
16789
16790 2011-12-01  Andreas Schwab  <schwab@redhat.com>
16791
16792         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
16793         falling back to utime.
16794
16795 2011-11-30  Andreas Schwab  <schwab@redhat.com>
16796
16797         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
16798         expectations for float.
16799
16800 2011-11-29  Andreas Schwab  <schwab@redhat.com>
16801
16802         * locale/weight.h (findidx): Add parameter len.
16803         * locale/weightwc.h (findidx): Likewise.
16804         * posix/fnmatch_loop.c (FCT): Adjust caller.
16805         * posix/regcomp.c (build_equiv_class): Likewise.
16806         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
16807         * posix/regexec.c (check_node_accept_bytes): Likewise.
16808         * string/strcoll_l.c (STRCOLL): Likewise.
16809         * string/strxfrm_l.c (STRXFRM): Likewise.
16810
16811 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
16812
16813         * Makefile.in: Remove CVSOPT handling.
16814         * configure.in: Remove use of AC_REVISION.
16815         * iconvdata/Makefile (distribute): No need to filter out CVS.
16816         * scripts/list-sources.sh: Remove CVS, subversion and monotone
16817         handling.
16818
16819 2011-11-16  Andreas Schwab  <schwab@redhat.com>
16820
16821         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
16822         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
16823         [USE_AS_STRNCASECMP_L]: Likewise.
16824         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
16825         NO_TLS_DIRECT_SEG_REFS.
16826         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
16827         Fix argument offsets for non-PIC.
16828         [USE_AS_STRNCASECMP_L]: Likewise.
16829         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
16830         NO_TLS_DIRECT_SEG_REFS.
16831
16832 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16833
16834         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
16835         O_CLOEXEC.
16836         * locale/loadlocale.c (_nl_load_locale): Likewise.
16837
16838 2011-11-15  Andreas Schwab  <schwab@redhat.com>
16839
16840         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
16841         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
16842         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
16843         (SYSCALL_GETTIME): Set errno on error.
16844
16845         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
16846         count references to noai6ai_cached.
16847
16848 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16849
16850         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
16851
16852         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
16853         FD_CLOEXEC for /proc/self/maps.
16854
16855         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
16856         FD_CLOEXEC for /proc/meminfo.
16857
16858         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
16859         gai.conf.
16860
16861         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
16862         FD_CLOEXEC for given file.
16863
16864         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
16865
16866         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
16867         FD_CLOEXEC for /etc/hosts.
16868         (_gethtent): Likewise.
16869
16870         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
16871
16872         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
16873         cancellation and set FD_CLOEXEC for /etc/netgroup.
16874
16875         * nss/nss_files/files-key.c (search): Don't allow cancellation when
16876         reading /etc/publickey.
16877
16878         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
16879         allow cancellation when reading /etc/group.
16880
16881         * nss/nss_files/files-alias.c (internal_setent): Don't allow
16882         cancellation.
16883         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
16884
16885         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
16886         when using data file.
16887
16888         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
16889
16890         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
16891         (write_nis_obj): Use "c" and "e" in fopen.
16892
16893         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
16894
16895         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
16896
16897         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
16898
16899         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
16900
16901         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
16902         locale.alias.
16903
16904         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
16905
16906         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
16907
16908         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
16909
16910         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
16911         file parsing and set FD_CLOEXEC.
16912
16913 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16914
16915         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
16916
16917 2011-11-14  Andreas Schwab  <schwab@redhat.com>
16918
16919         * malloc/arena.c (arena_get2): Don't call reused_arena when
16920         _int_new_arena failed.
16921
16922 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16923
16924         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
16925         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
16926         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
16927         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
16928         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
16929         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
16930         to compile strcasecmp and strncasecmp.
16931         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
16932         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
16933
16934         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
16935
16936 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
16937
16938         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
16939         locale-defines.sym to gen-as-const-headers.
16940         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
16941         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
16942         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
16943         to compile strcasecmp and strncasecmp.
16944         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
16945         strcasecmp_l and strncasecmp_l.
16946         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
16947         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
16948         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
16949         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
16950         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
16951         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
16952         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
16953         * sysdeps/i386/i686/multiarch/strncase.S: New file.
16954         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
16955         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
16956         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
16957
16958 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
16959
16960         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
16961         result of SYSDEP_GETTIME_CPU to retval.
16962         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
16963         parameter list to macro.  Remove trailing semicolon.  Adjust users.
16964
16965         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
16966         variable.
16967
16968         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
16969         mantissa words.
16970         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16971
16972         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
16973         from unused variable.
16974
16975         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
16976         DWARF definitions.
16977         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
16978         for assembling.
16979
16980         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
16981         over namespaces.
16982
16983         * sunrpc/rpc_prot.c (rejected): Fix case value.
16984
16985         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
16986         unsigned long long int to avoid warnings in shift.
16987
16988         * posix/regex_internal.c (re_string_reconstruct): Actually use result
16989         of use of trans.
16990         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
16991         variable tmp.
16992
16993         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
16994         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
16995         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
16996
16997         * nis/nis_table.c (nis_list): Use variable of correct type for
16998         result of __follow_path call.
16999
17000 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17001
17002         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
17003         of math functions ceil, trunc, floor, round, and sqrt, when
17004         avaliable on the platform.
17005         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
17006         name clash.
17007         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17008         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
17009         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
17010
17011 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
17012
17013         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
17014         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
17015
17016 2011-11-11  Roland McGrath  <roland@hack.frob.com>
17017
17018         * include/unistd.h: Fix __readlink return type.
17019         Reported by Chris Metcalf <cmetcalf@tilera.com>.
17020
17021 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
17022
17023         * stdlib/ucontext.h: Undo last change for makecontext.
17024
17025 2011-11-11  Andreas Schwab  <schwab@redhat.com>
17026
17027         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
17028
17029         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
17030         * setjmp/setjmp.h: Mark functions as non-leaf.
17031         * setjmp/bits/setjmp2.h: Likewise.
17032         * stdlib/ucontext.h: Likewise.
17033
17034 2011-11-10  Andreas Schwab  <schwab@redhat.com>
17035
17036         * malloc/arena.c (_int_new_arena): Don't increment narenas.
17037         (reused_arena): Don't check arena limit.
17038         (arena_get2): Atomically check arena limit.
17039
17040 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
17041
17042         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
17043         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
17044
17045         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
17046         instructions.
17047
17048 2011-11-07  Andreas Schwab  <schwab@redhat.com>
17049
17050         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
17051         handler when locking.
17052
17053         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17054         Fix size of allocated buffer.
17055
17056 2011-11-04  Andreas Schwab  <schwab@redhat.com>
17057
17058         [BZ #10103]
17059         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
17060         declarations for long double functions.
17061         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
17062
17063         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
17064
17065 2011-11-03  Andreas Schwab  <schwab@redhat.com>
17066
17067         * nscd/nscd.c (main): Don't start AVC thread until credentials are
17068         installed.
17069
17070         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
17071         is disabled.
17072
17073 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17074
17075         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
17076
17077 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
17078
17079         * include/alloca.h (stackinfo_alloca_round): Define.
17080         (extend_alloca): Use it.
17081         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
17082         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
17083         here.
17084
17085         * scripts/check-local-headers.sh: Ignore libaudit.h.
17086
17087         * nscd/Makefile (extra-objs): Make recursively expanded.
17088
17089 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
17090
17091         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
17092         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
17093
17094         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
17095         * posix/tst-rfc3484-2.c: Likewise.
17096         * posix/tst-rfc3484-3.c: Likewise.
17097
17098         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
17099         process_vm_writev.
17100         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
17101         process_vm_writev.
17102         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
17103         process_vm_writev from libc using GLIBC_2.15 version.
17104
17105         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
17106
17107 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
17108
17109         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
17110         stack usage.
17111
17112 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
17113
17114         [BZ #13367]
17115         * nss/getent.c (initgroups_keys): Show error message in case no group
17116         names are given.
17117
17118         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
17119         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
17120         __bump_nl_timestamp.
17121         * nscd/connections (nscd_init): When host database is served open
17122         netlink socket and request notification about configuration changes.
17123         (main_loop_poll): Track netlink file descriptor and bump timestamp
17124         in case data becomes available.
17125         (main_loop_epoll): Likewise.
17126         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
17127         (database_pers_head): Add extra_data fileds.
17128         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
17129         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
17130         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
17131         Adjust caller.
17132         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
17133         in6ai data, call __free_in6ai.
17134         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
17135         Add -DHAVE_NETLINK.
17136         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
17137         interface information.  Reuse previous data if netlink timestamp
17138         is not changed.
17139         (__bump_nl_timestamp): New function.
17140         (__free_in6ai): New function.
17141
17142 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
17143
17144         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
17145         close_not_cancel_no_status here.
17146         (__check_pf): Reorganize code a bit to not call close twice if OOM.
17147
17148 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
17149
17150         [BZ #13276]
17151         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
17152         return value.
17153
17154         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
17155         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
17156         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
17157
17158 2011-07-03  Andreas Jaeger  <aj@suse.de>
17159
17160         [BZ #10709]
17161         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
17162         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
17163         * math/libm-test.inc (sin_test): Add test case.
17164
17165 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
17166
17167         [BZ #13337]
17168         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
17169         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
17170
17171         * elf/chroot_canon.c (chroot_canon): Cleanups.
17172
17173         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
17174
17175         [BZ #13335]
17176         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
17177         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
17178
17179         * string/test-strchr.c: Make usable for strchrnul testing.
17180         * string/test-strchrnul.c: New file.
17181         * string/Makefile (strop-tests): Add strchrnul.
17182
17183         * po/it.po: Update from translation team.
17184         * po/es.po: Likewise.
17185
17186 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
17187
17188         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
17189         the three constants needed as parameters.  Drop the others.
17190         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
17191         __m128i_strloadu_tolower.
17192         Create and initialize variable zero and use it in all the places
17193         where _mm_setzero_si128 was used.
17194
17195         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
17196         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
17197         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
17198         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
17199         anymore.
17200         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
17201         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
17202         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
17203         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
17204         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
17205         __mpranred, __mptan.
17206         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
17207         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
17208         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
17209         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
17210         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
17211         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
17212         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
17213         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
17214         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
17215
17216 2011-10-28  Andreas Schwab  <schwab@redhat.com>
17217
17218         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
17219         redefine if SHARED.
17220         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
17221
17222         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
17223         wide char related routines to wcsmbs subdir.
17224
17225 2011-10-27  Andreas Schwab  <schwab@redhat.com>
17226
17227         [BZ #13344]
17228         * misc/sys/cdefs.h (__THROWNL): Define.
17229         * posix/unistd.h: Use __THREADNL instead of __THREAD
17230         for memory synchronization functions.
17231
17232 2011-10-26  Roland McGrath  <roland@hack.frob.com>
17233
17234         [BZ #13349]
17235         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
17236         doesn't exist.
17237         * manual/stdio.texi (Obstack Streams): Node removed.
17238
17239 2011-10-26  Andreas Schwab  <schwab@redhat.com>
17240
17241         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
17242         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
17243         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
17244
17245         * math/math_private.h (math_force_eval): Allow non-addressable
17246         arguments.
17247         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
17248
17249 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
17250
17251         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
17252         file is not needed.
17253
17254         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
17255         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
17256         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
17257         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
17258         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
17259         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
17260         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
17261         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
17262         Add AVX variants.
17263         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
17264         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
17265         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
17266         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
17267         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
17268         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
17269         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
17270         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
17271         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
17272         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
17273         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
17274         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
17275         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
17276         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
17277         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
17278         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
17279         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
17280         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
17281         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
17282
17283         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
17284         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
17285
17286         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
17287         place.  Use VEX encoding when compiling for AVX.
17288
17289 2011-10-25  Andreas Schwab  <schwab@redhat.com>
17290
17291         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
17292         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
17293
17294         * string/test-strchr.c (do_test): Don't generate NUL bytes.
17295
17296 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
17297
17298         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
17299         useless if() expression.
17300         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17301         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
17302         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17303         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
17304         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17305         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
17306         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
17307         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
17308         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
17309         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17310         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17311         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
17312         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17313         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
17314         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17315         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
17316         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17317         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17318         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
17319
17320         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
17321
17322 2011-10-25  Andreas Schwab  <schwab@redhat.com>
17323
17324         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
17325         condition.
17326         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17327
17328 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
17329
17330         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
17331         .text section.  Avoid duplicate constants.
17332         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
17333         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
17334         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17335         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17336         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17337         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17338         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17339         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17340         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
17341         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
17342         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
17343         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
17344         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
17345         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
17346         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
17347         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
17348         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
17349         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
17350         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
17351         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17352         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
17353         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
17354         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
17355         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
17356         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
17357         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
17358         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
17359         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
17360         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
17361         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
17362         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
17363         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
17364         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
17365         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
17366         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
17367         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
17368         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
17369         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
17370         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
17371         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
17372         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
17373         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
17374         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
17375         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17376         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
17377
17378 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
17379
17380         * sysdeps/x86_64/dla.h: Move to ...
17381         * sysdeps/x86_64/fpu/dla.h: ...here.
17382         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
17383         situations.  Use __builtin_fma only for gcc 4.6 and up.
17384
17385         * config.make.in: Add have-mfma4 entry.
17386         * configure.in: Substitute libc_cv_cc_fma4.
17387         * math/Makefile (dbl-only-routines): Add sincostab.
17388         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
17389         Use __sincostab not sincos.
17390         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
17391         name is a macro.
17392         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17393         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17394         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17395         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
17396         using __copysign.
17397         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
17398         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
17399         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
17400         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
17401         and __inv.
17402         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
17403         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
17404         __copysign.
17405         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
17406         define aliases when function name is a macro.
17407         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
17408         sysdeps/ieee754/dbl-64/sincos.tbl.
17409         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
17410         fma4-enabled routines.
17411         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
17412         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
17413         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
17414         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
17415         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
17416         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
17417         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
17418         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
17419         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
17420         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
17421         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
17422         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
17423         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
17424         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
17425         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
17426         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
17427         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
17428         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
17429         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
17430         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
17431         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
17432         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
17433         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
17434         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
17435         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
17436         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
17437         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
17438         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
17439         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
17440         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
17441
17442         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
17443         rename.
17444         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
17445         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
17446         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17447         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17448         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17449         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17450         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17451         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17452
17453 2011-10-24  Andreas Schwab  <schwab@redhat.com>
17454
17455         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
17456
17457 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
17458
17459         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
17460
17461         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
17462         prediction.
17463         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
17464
17465         * string/strnlen.c: Don't define STRNLEN, reverse logic.
17466         Remove unused variable magic_bits.
17467         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
17468
17469         * string/strnlen.c: Define and use STRNLEN macro.
17470         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
17471         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
17472         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
17473         * wcsmbs/wcslen.c: Define and use WCSLEN.
17474         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
17475         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
17476         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
17477         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
17478         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
17479         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
17480         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
17481
17482 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17483
17484         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17485         strnlen-sse2-no-bsf.
17486         Rename strlen-no-bsf to strlen-sse2-no-bsf.
17487         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
17488         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
17489         Add strnlen support.
17490         (USE_AS_STRNLEN): New macro.
17491         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
17492         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
17493         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
17494         * sysdeps/x86_64/wcslen.S: New file.
17495
17496 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
17497
17498         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
17499         XMM-moves are used for copying on small sizes.
17500
17501 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17502
17503         * wcsmbs/Makefile (strop-tests): Add wcschr.
17504         * wcsmbs/test-wcschr.c: New file.
17505         * string/test-strchr.c: Update.
17506         Add wcschr support.
17507         (WIDE): New macro.
17508
17509 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17510
17511         * wcsmbs/Makefile (strop-tests): Add wcslen.
17512         * wcsmbs/test-wcslen.c: New file.
17513         * string/test-strlen.c: Update.
17514         Add wcslen support.
17515         (WIDE): New macro.
17516
17517 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
17518
17519         * po/it.po: Update from translation team.
17520
17521 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17522
17523         * sysdeps/x86_64/wcscmp.S: Update.
17524         Fix wrong comparison semantics.
17525         wcscmp shall use signed comparison not unsigned.
17526         Don't use substraction to avoid overflow bug.
17527         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
17528         * wcsmbc/wcscmp.c: Likewise.
17529         * string/test-strcmp.c: Likewise.
17530         Add new tests to check cases with negative values.
17531
17532 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
17533
17534         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
17535         * sysdeps/x86_64/dla.h: ...here.  New file.
17536         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
17537         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
17538         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17539         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17540         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17541         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17542         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17543         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17544         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17545
17546 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
17547
17548         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
17549         __ynl_finite aliases.
17550
17551 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
17552
17553         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17554
17555         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
17556         define DLA_FMA.
17557         [DLA_FMA] (EMULV): Use DLA_FMA.
17558         [DLA_FMA] (MUL12): Use EMULV.
17559         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
17560         that are not needed.
17561         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
17562         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17563         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17564         * sysdeps/ieee754/dbl-64/e_pow.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-22  Andreas Schwab  <schwab@linux-m68k.org>
17570
17571         * math/s_nan.c: Undef __nan.
17572         * math/s_nanf.c: Undef __nanf.
17573         * math/s_nanl.c: Undef __nanl.
17574         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
17575         "math_private.h".
17576
17577 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
17578
17579         * math/s_catan.c: Add branch predictions.
17580         * math/s_catanf.c: Likewise.
17581         * math/s_catanh.c: Likewise.
17582         * math/s_catanhf.c: Likewise.
17583         * math/s_catanhl.c: Likewise.
17584         * math/s_catanl.c: Likewise.
17585         * math/s_cexp.c: Likewise.
17586         * math/s_cexpf.c: Likewise.
17587         * math/s_cexpl.c: Likewise.
17588         * math/s_clog.c: Likewise.
17589         * math/s_clog10.c: Likewise.
17590         * math/s_clog10f.c: Likewise.
17591         * math/s_clog10l.c: Likewise.
17592         * math/s_clogf.c: Likewise.
17593         * math/s_clogl.c: Likewise.
17594         * math/s_csqrt.c: Likewise.
17595         * math/s_csqrtf.c: Likewise.
17596         * math/s_csqrtl.c: Likewise.
17597         * math/s_ctanf.c: Likewise.
17598         * math/s_ctanh.c: Likewise.
17599         * math/s_ctanhf.c: Likewise.
17600         * math/s_ctanhl.c: Likewise.
17601         * math/s_ctanl.c: Likewise.
17602
17603         * math/math_private.h: Define __nan, __nanf, __nanl.
17604         * math/s_cacosh.c: Include <math_private.h>.
17605         * math/s_cacoshl.c: Likewise.
17606         * math/s_casinh.c: Likewise.
17607         * math/s_casinhf.c: Likewise.
17608         * math/s_casinhl.c: Likewise.
17609         * math/s_ccos.c: Rely entire on ccosh.
17610         * math/s_ccosf.c: Rely entire on ccoshf.
17611         * math/s_ccosl.c: Rely entirely on ccoshl.
17612         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
17613         Remove tests for FE_INVALID.
17614         * math/s_ccoshf.c: Likewise.
17615         * math/s_ccoshl.c: Likewise.
17616         * math/s_csin.c: Likewise.
17617         * math/s_csinf.c: Likewise.
17618         * math/s_csinh.c Likewise.
17619         * math/s_csinhf.c: Likewise.
17620         * math/s_csinhl.c: Likewise.
17621         * math/s_csinl.c: Likewise.
17622         * math/s_ctan.c: Likewise.
17623         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
17624         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
17625         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
17626
17627 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
17628
17629         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
17630         compilation problems.
17631
17632         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
17633         __builtin_expect.
17634
17635 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
17636
17637         * sysdeps/i386/configure.in: Test for -mfma4 option.
17638         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
17639         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
17640         COMMON_CPUID_INDEX_80000001.
17641         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
17642         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
17643         use it if FMA3 is not supported.
17644         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
17645
17646         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
17647         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
17648
17649 2011-10-20  Andreas Schwab  <schwab@redhat.com>
17650
17651         [BZ #12892]
17652         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
17653         it would create a cycle with a link time dependency.
17654
17655 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
17656
17657         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
17658         instruction.
17659         * string/Makefile (strop-tests): Add rawmemchr.
17660         * string/test-rawmemchr.c: New file.
17661
17662         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
17663         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
17664         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
17665         when compiling str{,n}casecmp and when AVX is available.  Hook up
17666         new optimized code in initializers.
17667
17668 2011-10-19  Andreas Schwab  <schwab@redhat.com>
17669
17670         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
17671         __feraiseexcept instead of feraiseexcept.
17672
17673 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
17674
17675         * math/math_private.h: Define defaults for libc_fetestexcept and
17676         libc_feupdateenv.
17677         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
17678         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
17679         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17680         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17681         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
17682         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
17683         libc_fetestexcept and libc_feupdateenv.
17684
17685         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
17686         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
17687         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
17688         * sysdeps/x86_64/fpu/math_private.h: Define special version of
17689         libc_feholdexcept_setround.
17690
17691         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
17692         Add s_nearbyint-c and s_nearbyintf-c.
17693         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
17694         nearbyintf inlines.
17695         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
17696         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
17697         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
17698         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
17699
17700         * math/math_private.h: Define defaults for libc_fegetround,
17701         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
17702         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
17703         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
17704         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
17705         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
17706         standard functions.
17707         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17708         Remove comments and hacks for old compiler versions.
17709         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
17710         libc_fegetround, libc_fesetround, libc_feholdexcept, and
17711         libc_feholdexceptl.
17712
17713 2011-10-18  Andreas Schwab  <schwab@redhat.com>
17714
17715         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
17716         (__feraiseexcept_renamed): Add __NTH.
17717         (feraiseexcept): Add __NTH.  Rename local variables to fix
17718         namespace violations.
17719
17720 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
17721
17722         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
17723
17724         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
17725
17726         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
17727         recently added interfaces.
17728         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
17729
17730         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
17731         about macro parameter expansion.
17732
17733         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
17734         __NO_MATH_INLINES is defined.  Cleanups.
17735
17736         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
17737         and __floorf is target has SSE4.1.
17738         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
17739         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
17740         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
17741         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
17742
17743         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
17744         name.
17745         (floorf): Likewise.
17746
17747         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
17748
17749 2011-10-17  Andreas Schwab  <schwab@redhat.com>
17750
17751         * misc/sys/cdefs.h: Fix last change.
17752
17753         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
17754         database lookup.
17755
17756 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
17757
17758         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
17759
17760         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
17761         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
17762         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
17763         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
17764         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
17765         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
17766         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
17767         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
17768         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
17769         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
17770         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
17771         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
17772         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
17773         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
17774         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
17775         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
17776         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
17777         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
17778         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
17779         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
17780         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
17781         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
17782
17783         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
17784         ceil, ceilf, floor, floorf.
17785
17786         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
17787         Perform IRELATIVE relocations last.
17788
17789         * elf/do-rel.h: Add another parameter nrelative, replacing the
17790         local variable with the same name.  Change name of the function
17791         to end in Rel or Rela (uppercase).
17792         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
17793         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
17794         elf_dynamic_do_##reloc function.
17795
17796 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
17797
17798         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
17799         is sufficient, at least on modern CPUs.
17800
17801         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
17802
17803         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
17804         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
17805
17806         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
17807         __expl_finite.
17808         * math/bits/math-finite.h: Add entries for exp.
17809         * math/e_expl.c: Add __*_finite alias.
17810         * sysdeps/i386/fpu/e_exp.S: Likewise.
17811         * sysdeps/i386/fpu/e_expf.S: Likewise.
17812         * sysdeps/i386/fpu/e_expl.c: Likewise.
17813         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17814         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17815         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17816         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17817         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
17818         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17819         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17820
17821         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
17822         is sufficient, at least on modern CPUs.
17823
17824         * ctype/ctype-info.c (__ctype_init): Define.
17825         * include/ctype.h (__ctype_init): Declare.
17826         (__ctype_b_loc): The variable is always initialized.
17827         (__ctype_toupper_loc): Likewise.
17828         (__ctype_tolower_loc): Likewise.
17829         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
17830         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
17831
17832 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
17833
17834         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
17835
17836         * configure.in: Also look in $cxxmachine/include for C++ system
17837         headers.
17838
17839 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17840
17841         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
17842         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
17843         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
17844         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
17845         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
17846         (USE_AS_WMEMCMP): New macro.
17847         Fixing indents.
17848         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
17849         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
17850         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
17851         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
17852         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17853         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
17854         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
17855         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
17856         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
17857         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
17858         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
17859         (USE_AS_WMEMCMP): New macro.
17860         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
17861         * sysdeps/string/test-memcmp.c: Update.
17862         Fix simple_wmemcmp.
17863         Add new tests.
17864         * wcsmbs/wmemcmp.c: Update.
17865         (WMEMCMP): New macro.
17866         Fix overflow bug.
17867
17868 2011-10-12  Andreas Jaeger  <aj@suse.de>
17869
17870         [BZ #13268]
17871         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
17872
17873 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
17874
17875         * libio/iofwide.c (do_length): Avoid warning.
17876
17877         * ctype/ctype.h (__isctype_f): Add missing __THROW.
17878
17879 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
17880
17881         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
17882
17883         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
17884         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
17885         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
17886         * sysdeps/i386/i686/fpu/e_log.S: New file.
17887         * sysdeps/i386/i686/fpu/e_logf.S: New file.
17888         * sysdeps/i386/i686/fpu/e_logl.S: New file.
17889
17890         * ctype/ctype.h: Add support for inlined isXXX functions when
17891         compiling C++ code.
17892
17893 2011-10-14  Andreas Schwab  <schwab@redhat.com>
17894
17895         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17896
17897         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
17898
17899 2011-10-13  Roland McGrath  <roland@hack.frob.com>
17900
17901         [BZ #13291]
17902         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
17903
17904 2011-10-13  Andreas Schwab  <schwab@redhat.com>
17905
17906         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
17907         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
17908         feraiseexcept.
17909
17910         * sysdeps/x86_64/memrchr.S: Check for zero size.
17911
17912         * string/stratcliff.c: Add memrchr tests.
17913
17914 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17915
17916         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17917         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
17918         rawmemchr-sse2 rawmemchr-sse2-bsf.
17919         * sysdeps/i386/i686/multiarch/memchr.S: New file.
17920         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
17921         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
17922         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
17923         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
17924         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
17925         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
17926         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
17927         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
17928         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
17929         * string/memrchr.c (MEMRCHR): New macro.
17930
17931 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
17932
17933         Add integration with gcc's -ffinite-math-only and optimize wrapper
17934         functions in libm.
17935         * Versions.def: Define GLIBC_2.15 version for libm.
17936         * math/Makefile (headers): Add bits/math-finite.h.
17937         * math/bits/math-finite.h: New file.
17938         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
17939         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
17940         * math/e_acoshl.c: Add __*_finite alias.
17941         * math/e_acosl.c: Likewise.
17942         * math/e_asinl.c: Likewise.
17943         * math/e_atan2l.c: Likewise.
17944         * math/e_atanhl.c: Likewise.
17945         * math/e_coshl.c: Likewise.
17946         * math/e_exp10.c: Likewise.
17947         * math/e_exp10f.c: Likewise.
17948         * math/e_exp10l.c: Likewise.
17949         * math/e_exp2l.c: Likewise.
17950         * math/e_fmodl.c: Likewise.
17951         * math/e_gammal_r.c: Likewise.
17952         * math/e_hypotl.c: Likewise.
17953         * math/e_j0l.c: Likewise.
17954         * math/e_j1l.c: Likewise.
17955         * math/e_jnl.c: Likewise.
17956         * math/e_lgammal_r.c: Likewise.
17957         * math/e_log10l.c: Likewise.
17958         * math/e_log2l.c: Likewise.
17959         * math/e_logl.c: Likewise.
17960         * math/e_powl.c: Likewise.
17961         * math/e_sinhl.c: Likewise.
17962         * math/e_sqrtl.c: Likewise.
17963         * math/e_scalb.c: Completely rewritten and optimized.
17964         * math/e_scalbf.c: Likewise.
17965         * math/e_scalbl.c: Likewise.
17966         * math/w_acos.c: Likewise.
17967         * math/w_acosf.c: Likewise.
17968         * math/w_acosl.c: Likewise.
17969         * math/w_acosh.c: Likewise.
17970         * math/w_acoshf.c: Likewise.
17971         * math/w_acoshl.c: Likewise.
17972         * math/w_asin.c: Likewise.
17973         * math/w_asinf.c: Likewise.
17974         * math/w_asinl.c: Likewise.
17975         * math/w_atan2.c: Likewise.
17976         * math/w_atan2f.c: Likewise.
17977         * math/w_atan2l.c: Likewise.
17978         * math/w_atanh.c: Likewise.
17979         * math/w_atanhf.c: Likewise.
17980         * math/w_atanhl.c: Likewise.
17981         * math/w_exp10.c: Likewise.
17982         * math/w_exp10f.c: Likewise.
17983         * math/w_exp10l.c: Likewise.
17984         * math/w_fmod.c: Likewise.
17985         * math/w_fmodf.c: Likewise.
17986         * math/w_fmodl.c: Likewise.
17987         * math/w_j0.c: Likewise.
17988         * math/w_j0f.c: Likewise.
17989         * math/w_j0l.c: Likewise.
17990         * math/w_j1.c: Likewise.
17991         * math/w_j1f.c: Likewise.
17992         * math/w_j1l.c: Likewise.
17993         * math/w_jn.c: Likewise.
17994         * math/w_jnf.c: Likewise.
17995         * math/w_log.c: Likewise.
17996         * math/w_logf.c: Likewise.
17997         * math/w_logl.c: Likewise.
17998         * math/w_log10.c: Likewise.
17999         * math/w_log10f.c: Likewise.
18000         * math/w_log10l.c: Likewise.
18001         * math/w_log2.c: Likewise.
18002         * math/w_log2f.c: Likewise.
18003         * math/w_log2l.c: Likewise.
18004         * math/w_pow.c: Likewise.
18005         * math/w_powf.c: Likewise.
18006         * math/w_powl.c: Likewise.
18007         * math/w_remainder.c: Likewise.
18008         * math/w_remainderf.c: Likewise.
18009         * math/w_remainderl.c: Likewise.
18010         * math/w_scalb.c: Likewise.
18011         * math/w_scalbf.c: Likewise.
18012         * math/w_scalbl.c: Likewise.
18013         * math/w_sqrt.c: Likewise.
18014         * math/w_sqrtf.c: Likewise.
18015         * math/w_sqrtl.c: Likewise.
18016         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
18017         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
18018         used.
18019         * math/math_private.h: Declare __kernel_standard_f.
18020         * math/w_cosh.c: Remove cruft and optimize a bit.
18021         * math/w_coshf.c: Likewise.
18022         * math/w_coshl.c: Likewise.
18023         * math/w_exp2.c: Likewise.
18024         * math/w_exp2f.c: Likewise.
18025         * math/w_exp2l.c: Likewise.
18026         * math/w_hypot.c: Likewise.
18027         * math/w_hypotf.c: Likewise.
18028         * math/w_hypotl.c: Likewise.
18029         * math/w_lgamma.c: Likewise.
18030         * math/w_lgamma_r.c: Likewise.
18031         * math/w_lgammaf.c: Likewise.
18032         * math/w_lgammaf_r.c: Likewise.
18033         * math/w_lgammal.c: Likewise.
18034         * math/w_lgammal_r.c: Likewise.
18035         * math/w_sinh.c: Likewise.
18036         * math/w_sinhf.c: Likewise.
18037         * math/w_sinhl.c: Likewise.
18038         * math/w_tgamma.c: Likewise.
18039         * math/w_tgammaf.c: Likewise.
18040         * math/w_tgammal.c: Likewise.
18041         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
18042         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
18043         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
18044         Minor optimizations.  Pretty printing.  Remove cruft.
18045         * sysdeps/i386/fpu/e_acosf.S: Likewise.
18046         * sysdeps/i386/fpu/e_acosh.S: Likewise.
18047         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
18048         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
18049         * sysdeps/i386/fpu/e_acosl.c: Likewise.
18050         * sysdeps/i386/fpu/e_asin.S: Likewise.
18051         * sysdeps/i386/fpu/e_asinf.S: Likewise.
18052         * sysdeps/i386/fpu/e_atan2.S: Likewise.
18053         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
18054         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
18055         * sysdeps/i386/fpu/e_atanh.S: Likewise.
18056         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
18057         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
18058         * sysdeps/i386/fpu/e_exp10.S: Likewise.
18059         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
18060         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
18061         * sysdeps/i386/fpu/e_exp2.S: Likewise.
18062         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
18063         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
18064         * sysdeps/i386/fpu/e_fmod.S: Likewise.
18065         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
18066         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
18067         * sysdeps/i386/fpu/e_hypot.S: Likewise.
18068         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
18069         * sysdeps/i386/fpu/e_log.S: Likewise.
18070         * sysdeps/i386/fpu/e_log10.S: Likewise.
18071         * sysdeps/i386/fpu/e_log10f.S: Likewise.
18072         * sysdeps/i386/fpu/e_log10l.S: Likewise.
18073         * sysdeps/i386/fpu/e_log2.S: Likewise.
18074         * sysdeps/i386/fpu/e_log2f.S: Likewise.
18075         * sysdeps/i386/fpu/e_log2l.S: Likewise.
18076         * sysdeps/i386/fpu/e_logf.S: Likewise.
18077         * sysdeps/i386/fpu/e_logl.S: Likewise.
18078         * sysdeps/i386/fpu/e_pow.S: Likewise.
18079         * sysdeps/i386/fpu/e_powf.S: Likewise.
18080         * sysdeps/i386/fpu/e_powl.S: Likewise.
18081         * sysdeps/i386/fpu/e_remainder.S: Likewise.
18082         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
18083         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
18084         * sysdeps/i386/fpu/e_scalb.S: Likewise.
18085         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
18086         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
18087         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
18088         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
18089         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
18090         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
18091         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
18092         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
18093         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
18094         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
18095         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
18096         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
18097         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
18098         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
18099         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
18100         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
18101         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
18102         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
18103         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
18104         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
18105         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
18106         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
18107         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
18108         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
18109         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
18110         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
18111         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
18112         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
18113         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
18114         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
18115         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
18116         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
18117         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
18118         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
18119         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
18120         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
18121         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
18122         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18123         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
18124         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
18125         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
18126         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
18127         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
18128         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
18129         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
18130         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
18131         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
18132         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
18133         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
18134         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
18135         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
18136         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
18137         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
18138         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
18139         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
18140         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
18141         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
18142         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
18143         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18144         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
18145         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
18146         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
18147         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
18148         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
18149         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
18150         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
18151         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
18152         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
18153         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
18154         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
18155         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
18156         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
18157         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
18158         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
18159         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
18160         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
18161         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
18162         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
18163         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
18164         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
18165         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
18166         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
18167         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
18168         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
18169         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
18170         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
18171         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
18172         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
18173         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
18174         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
18175         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
18176         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18177         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
18178         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
18179         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
18180         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
18181         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
18182         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
18183         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
18184         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
18185         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
18186         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
18187         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
18188         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
18189         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
18190         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
18191         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
18192         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
18193         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
18194         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
18195         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
18196         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
18197         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
18198         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
18199         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
18200         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
18201         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
18202         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
18203         (__isnanf): Likewise.
18204         (__isinf_ns): Likewise.
18205         (__isinf_nsf): Likewise.
18206         (__finite): Likewise.
18207         (__finitef): Likewise.
18208         (__ieee754_sqrt): Define as macro.
18209         (__ieee754_sqrtf): Define as macro.
18210         (__ieee754_sqrtl): Define as macro.
18211         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
18212         inlined copy.
18213         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
18214         __FINITE_MATH_ONLY__ consistent.
18215         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
18216
18217 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
18218
18219         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
18220         of rawmemchr.
18221
18222         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
18223
18224 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
18225
18226         * po/ja.po: Update from translation team.
18227
18228 2011-10-08  Roland McGrath  <roland@hack.frob.com>
18229
18230         * locale/programs/locarchive.c (prepare_address_space): New function.
18231         (create_archive, enlarge_archive, open_archive): Use it.
18232
18233         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
18234         inside [SHARED], where it is used.
18235
18236         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
18237
18238         * nss/getent.c (netgroup_keys): Remove unused variable.
18239         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
18240
18241 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
18242
18243         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
18244         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
18245         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
18246         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
18247         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
18248         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
18249         * math/Makefile (libm-calls): Add s_isinf_ns.
18250         * math/divtc3.c: Use __isinf_nsl instead of isinf.
18251         * math/multc3.c: Likewise.
18252         * math/s_casin.c: Likewise.
18253         * math/s_casinf.c: Likewise.
18254         * math/s_casinl.c: Likewise.
18255         * math/s_ccos.c: Likewise.
18256         * math/s_ccosf.c: Likewise.
18257         * math/s_ccosl.c: Likewise.
18258         * math/s_ctan.c: Likewise.
18259         * math/s_ctanf.c: Likewise.
18260         * math/s_ctanh.c: Likewise.
18261         * math/s_ctanhf.c: Likewise.
18262         * math/s_ctanhl.c: Likewise.
18263         * math/s_ctanl.c: Likewise.
18264         * math/w_fmod.c: Likewise.
18265         * math/w_fmodf.c: Likewise.
18266         * math/w_fmodl.c: Likewise.
18267         * math/w_remainder.c: Likewise.
18268         * math/w_remainderf.c: Likewise.
18269         * math/w_remainderl.c: Likewise.
18270         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
18271         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
18272         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
18273         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
18274         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
18275         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
18276         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
18277         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
18278
18279         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
18280         of the number.
18281         * stdio-common/printf_fphex.c: Likewise.
18282         * stdio-common/printf_size.c: Likewise.
18283
18284         * math/e_exp10.c: Include math_private.h using <...> not "...".
18285         * math/e_exp10f.c: Likewise.
18286         * math/e_exp10l.c: Likewise.
18287         * math/e_exp2l.c: Likewise.
18288         * math/e_j0l.c: Likewise.
18289         * math/e_j1l.c: Likewise.
18290         * math/e_jnl.c: Likewise.
18291         * math/e_lgammal_r.c: Likewise.
18292         * math/e_rem_pio2l.c: Likewise.
18293         * math/e_scalb.c: Likewise.
18294         * math/e_scalbf.c: Likewise.
18295         * math/e_scalbl.c: Likewise.
18296         * math/k_cosl.c: Likewise.
18297         * math/k_sinl.c: Likewise.
18298         * math/k_tanl.c: Likewise.
18299         * math/s_cacoshf.c: Likewise.
18300         * math/s_catan.c: Likewise.
18301         * math/s_catanf.c: Likewise.
18302         * math/s_catanh.c: Likewise.
18303         * math/s_catanhf.c: Likewise.
18304         * math/s_catanhl.c: Likewise.
18305         * math/s_catanl.c: Likewise.
18306         * math/s_ccosh.c: Likewise.
18307         * math/s_ccoshf.c: Likewise.
18308         * math/s_ccoshl.c: Likewise.
18309         * math/s_cexp.c: Likewise.
18310         * math/s_cexpf.c: Likewise.
18311         * math/s_cexpl.c: Likewise.
18312         * math/s_clog.c: Likewise.
18313         * math/s_clog10.c: Likewise.
18314         * math/s_clog10f.c: Likewise.
18315         * math/s_clog10l.c: Likewise.
18316         * math/s_clogf.c: Likewise.
18317         * math/s_clogl.c: Likewise.
18318         * math/s_csin.c: Likewise.
18319         * math/s_csinf.c: Likewise.
18320         * math/s_csinh.c: Likewise.
18321         * math/s_csinhf.c: Likewise.
18322         * math/s_csinhl.c: Likewise.
18323         * math/s_csinl.c: Likewise.
18324         * math/s_csqrt.c: Likewise.
18325         * math/s_csqrtf.c: Likewise.
18326         * math/s_csqrtl.c: Likewise.
18327         * math/s_ctan.c: Likewise.
18328         * math/s_ctanf.c: Likewise.
18329         * math/s_ctanh.c: Likewise.
18330         * math/s_ctanhf.c: Likewise.
18331         * math/s_ctanhl.c: Likewise.
18332         * math/s_ctanl.c: Likewise.
18333         * math/s_ldexp.c: Likewise.
18334         * math/s_ldexpf.c: Likewise.
18335         * math/s_ldexpl.c: Likewise.
18336         * math/s_significand.c: Likewise.
18337         * math/s_significandf.c: Likewise.
18338         * math/s_significandl.c: Likewise.
18339         * math/w_acos.c: Likewise.
18340         * math/w_acosf.c: Likewise.
18341         * math/w_acosh.c: Likewise.
18342         * math/w_acoshf.c: Likewise.
18343         * math/w_acoshl.c: Likewise.
18344         * math/w_acosl.c: Likewise.
18345         * math/w_asin.c: Likewise.
18346         * math/w_asinf.c: Likewise.
18347         * math/w_asinl.c: Likewise.
18348         * math/w_atan2.c: Likewise.
18349         * math/w_atan2f.c: Likewise.
18350         * math/w_atan2l.c: Likewise.
18351         * math/w_atanh.c: Likewise.
18352         * math/w_atanhf.c: Likewise.
18353         * math/w_atanhl.c: Likewise.
18354         * math/w_cosh.c: Likewise.
18355         * math/w_coshf.c: Likewise.
18356         * math/w_coshl.c: Likewise.
18357         * math/w_dremf.c: Likewise.
18358         * math/w_exp10.c: Likewise.
18359         * math/w_exp10f.c: Likewise.
18360         * math/w_exp10l.c: Likewise.
18361         * math/w_exp2.c: Likewise.
18362         * math/w_exp2f.c: Likewise.
18363         * math/w_fmod.c: Likewise.
18364         * math/w_fmodf.c: Likewise.
18365         * math/w_fmodl.c: Likewise.
18366         * math/w_hypot.c: Likewise.
18367         * math/w_hypotf.c: Likewise.
18368         * math/w_hypotl.c: Likewise.
18369         * math/w_j0.c: Likewise.
18370         * math/w_j0f.c: Likewise.
18371         * math/w_j0l.c: Likewise.
18372         * math/w_j1.c: Likewise.
18373         * math/w_j1f.c: Likewise.
18374         * math/w_j1l.c: Likewise.
18375         * math/w_jn.c: Likewise.
18376         * math/w_jnf.c: Likewise.
18377         * math/w_jnl.c: Likewise.
18378         * math/w_lgamma.c: Likewise.
18379         * math/w_lgamma_r.c: Likewise.
18380         * math/w_lgammaf.c: Likewise.
18381         * math/w_lgammaf_r.c: Likewise.
18382         * math/w_lgammal.c: Likewise.
18383         * math/w_lgammal_r.c: Likewise.
18384         * math/w_log.c: Likewise.
18385         * math/w_log10.c: Likewise.
18386         * math/w_log10f.c: Likewise.
18387         * math/w_log10l.c: Likewise.
18388         * math/w_log2.c: Likewise.
18389         * math/w_log2f.c: Likewise.
18390         * math/w_log2l.c: Likewise.
18391         * math/w_logf.c: Likewise.
18392         * math/w_logl.c: Likewise.
18393         * math/w_pow.c: Likewise.
18394         * math/w_powf.c: Likewise.
18395         * math/w_powl.c: Likewise.
18396         * math/w_remainder.c: Likewise.
18397         * math/w_remainderf.c: Likewise.
18398         * math/w_remainderl.c: Likewise.
18399         * math/w_scalb.c: Likewise.
18400         * math/w_scalbf.c: Likewise.
18401         * math/w_scalbl.c: Likewise.
18402         * math/w_sinh.c: Likewise.
18403         * math/w_sinhf.c: Likewise.
18404         * math/w_sinhl.c: Likewise.
18405         * math/w_sqrt.c: Likewise.
18406         * math/w_sqrtf.c: Likewise.
18407         * math/w_sqrtl.c: Likewise.
18408         * math/w_tgamma.c: Likewise.
18409         * math/w_tgammaf.c: Likewise.
18410         * math/w_tgammal.c: Likewise.
18411
18412         * po/ja.po: Update from translation team.
18413
18414 2011-09-29  Andreas Jaeger  <aj@suse.de>
18415
18416         [BZ #13179]
18417         * sunrpc/netname.c (netname2host): Fix logic.
18418
18419         [BZ #6779]
18420         [BZ #6783]
18421         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
18422         correctly.
18423         * math/w_remainder.c (__remainder): Likewise.
18424         * math/w_remainderf.c (__remainderf): Likewise.
18425         * math/libm-test.inc (remainder_test): Add test cases.
18426
18427 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18428
18429         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
18430         sdiv_qrnnd.
18431
18432 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
18433
18434         * string/test-memcmp.c: Avoid unncessary #defines.
18435         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
18436
18437 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18438
18439         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
18440         Use new sse2 version for core i3 - i7 as it's faster
18441         than sse42 version.
18442         (bit_Prefer_PMINUB_for_stringop): New.
18443         * sysdeps/x86_64/rawmemchr.S: Update.
18444         Replace with faster SSE2 version.
18445         * sysdeps/x86_64/memrchr.S: New file.
18446         * sysdeps/x86_64/memchr.S: Update.
18447         Replace with faster SSE2 version.
18448
18449 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
18450
18451         * elf/dl-load.c (lose): Add cast to avoid warning.
18452
18453 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
18454
18455         * po/ca.po: Update from translation team.
18456
18457         * inet/getnetgrent_r.c: Hook up nscd.
18458         * nscd/Makefile (routines): Add nscd_netgroup.
18459         (nscd-modules): Add netgroupcache.
18460         (CFLAGS-netgroupcache.c): Define.
18461         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
18462         (cache_search): Add const to second parameter.
18463         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
18464         INNETGR.
18465         (dbs): Add netgrdb entry.
18466         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
18467         (verify_persistent_db): Handle netgrdb.
18468         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
18469         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
18470         GETFDNETGR.
18471         (netgroup_response_header): Define.
18472         (innetgroup_response_header): Define.
18473         (datahead): Add netgroup_response_header and innetgroup_response_header
18474         elements.
18475         * nscd/nscd.conf: Add entries for netgroup cache.
18476         * nscd/nscd.h (dbtype): Add netgrdb.
18477         (_PATH_NSCD_NETGROUP_DB): Define.
18478         (netgroup_iov_disabled): Declare.
18479         (xmalloc, xcalloc, xrealloc): Move declarations here.
18480         (cache_search): Adjust prototype.
18481         Add netgroup-related prototypes.
18482         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
18483         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
18484         (__nscd_innetgr): Declare.
18485         * nscd/selinux.c (perms): Use access_vector_t as element type and
18486         add netgroup-related initializers.
18487         * nscd/netgroupcache.c: New file.
18488         * nscd/nscd_netgroup.c: New file.
18489         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
18490         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
18491         For four parameters use innetgr.
18492         * nss/nss_files/files-init.c: Add definition and callback for netgr.
18493         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
18494         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
18495         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
18496
18497         * nscd/connections.c (register_traced_file): Don't register file
18498         for disabled databases.
18499
18500 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
18501
18502         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
18503
18504         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
18505         from tree and freeing node.
18506
18507 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
18508
18509         * nss/nsswitch.c (__nss_database_lookup): Handle
18510         nss_parse_service_list out of memory case.
18511
18512 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
18513
18514         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
18515         out of memory case.
18516
18517 2011-10-04  Andreas Schwab  <schwab@redhat.com>
18518
18519         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
18520         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
18521         pass it down.
18522         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
18523         elf_machine_rela, elf_machine_lazy_rel.
18524         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
18525         (ELF_DYNAMIC_DO_REL): Likewise.
18526         (ELF_DYNAMIC_DO_RELA): Likewise.
18527         (ELF_DYNAMIC_RELOCATE): Likewise.
18528         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
18529         to ELF_DYNAMIC_DO_REL.
18530         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
18531         (dl_main): In trace mode always set __RTLD_NOIFUNC.
18532         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
18533         elf_machine_rela.
18534         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
18535         skip_ifunc, don't call ifunc function if non-zero.
18536         (elf_machine_rela): Likewise.
18537         (elf_machine_lazy_rel): Likewise.
18538         (elf_machine_lazy_rela): Likewise.
18539         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
18540         (elf_machine_lazy_rel): Likewise.
18541         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
18542         Likewise.
18543         (elf_machine_lazy_rel): Likewise.
18544         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18545         Likewise.
18546         (elf_machine_lazy_rel): Likewise.
18547         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
18548         (elf_machine_lazy_rel): Likewise.
18549         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
18550         (elf_machine_lazy_rel): Likewise.
18551         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
18552         (elf_machine_lazy_rel): Likewise.
18553         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
18554         (elf_machine_lazy_rel): Likewise.
18555         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
18556         (elf_machine_lazy_rel): Likewise.
18557         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
18558         (elf_machine_lazy_rel): Likewise.
18559
18560 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
18561
18562         * nss/nss_files/files-init.c (_nss_files_init): Use static
18563         initialization for all the *_traced_file variables.
18564
18565 2011-09-28  Andreas Schwab  <schwab@redhat.com>
18566
18567         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18568
18569 2011-09-27  Roland McGrath  <roland@hack.frob.com>
18570
18571         [BZ #13226]
18572         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
18573
18574 2011-09-27  Andreas Schwab  <schwab@redhat.com>
18575
18576         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
18577         Reread the line before reparsing it.
18578
18579 2011-09-26  Andreas Schwab  <schwab@redhat.com>
18580
18581         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
18582
18583 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
18584             Maxim Kuvyrkov  <maxim@codesourcery.com>
18585             Joseph Myers  <joseph@codesourcery.com>
18586
18587         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
18588         if needed for __stack_chk_guard.
18589
18590 2011-09-19  Roland McGrath  <roland@hack.frob.com>
18591
18592         * sysdeps/posix/spawni.c (script_execute): Always define it.
18593         It will be optimized away if unused.
18594         (maybe_script_execute): New function.
18595         (__spawni): Call it.
18596
18597         * Makerules: Don't include tls.make.
18598         (config-tls): Always set to thread.
18599         * tls.make.c: File removed.
18600
18601 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
18602
18603         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
18604         * config.make.in (CPPFLAGS-config): New substituted variable.
18605
18606 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
18607
18608         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
18609
18610         [BZ #13192]
18611         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
18612         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
18613
18614 2011-09-15  Roland McGrath  <roland@hack.frob.com>
18615
18616         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
18617         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
18618         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18619         (CALL_FAIL): Likewise.
18620         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
18621         (CALL_FAIL): Macro removed.
18622         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
18623
18624 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
18625
18626         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
18627         for __FINITE_MATH_ONLY__ == 1.
18628
18629 2011-09-15  Andreas Schwab  <schwab@redhat.com>
18630
18631         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
18632         __ieee754_sqrt instead of sqrt.
18633         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
18634         __ieee754_sqrtf instead of sqrtf.
18635         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
18636         __floorf instead of floorf.
18637         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
18638         __floorf, __truncf instead of floorf, truncf.
18639
18640 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
18641
18642         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
18643
18644         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
18645         __extern_always_inline.
18646         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
18647         32-bit.
18648
18649 2011-09-14  Andreas Schwab  <schwab@redhat.com>
18650
18651         * elf/rtld.c (dl_main): Also relocate in dependency order when
18652         doing symbol dependency testing.
18653
18654 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
18655
18656         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18657         Always define `refsym'.
18658
18659 2011-09-13  Andreas Schwab  <schwab@redhat.com>
18660
18661         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
18662         (__FD_ELT): Renamed from __FDELT.
18663         * misc/bits/select2.h (__FD_ELT): Likewise.
18664         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
18665         __FD_MASK instead of __FDELT, __FDMASK.
18666         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
18667         Likewise.
18668         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
18669         Likewise.
18670
18671         * elf/Makefile (gen-ldd): Fix pattern.
18672
18673         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
18674         (init_tls): Likewise.
18675
18676 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
18677
18678         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
18679
18680 2011-09-12  Andreas Schwab  <schwab@redhat.com>
18681
18682         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
18683         `struct cmsghdr *' instead of `void *'.
18684         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
18685         Likewise.
18686
18687 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
18688
18689         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
18690         if non-absolute.
18691         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
18692         ldd_rewrite_script.
18693
18694 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
18695
18696         * configure.in: Remove --with-tls option.
18697         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
18698         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
18699         out in case it is missing.
18700         * sysdeps/ia64/elf/configure.in: Likewise.
18701         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
18702         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
18703         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
18704         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
18705         * sysdeps/sh/elf/configure.in: Likewise.
18706         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
18707         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
18708         * sysdeps/x86_64/elf/configure.in: Likewise.
18709         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
18710         * sysdeps/mach/hurd/tls.h: Likewise.
18711
18712         [BZ #13067]
18713         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
18714
18715         [BZ #13090]
18716         * configure.in: Fix use of AC_INIT.
18717
18718         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
18719
18720 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
18721
18722         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
18723         __set_errno.
18724         * malloc/hooks.c: Likewise.
18725
18726         [BZ #11929]
18727         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
18728         variables statically.
18729         (narenas): Initialize.
18730         (list_lock): Initialize.
18731         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
18732         initializtion of main_arena and list_lock.  Small cleanups.
18733         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
18734         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
18735         Add initializers to main_arena and mp_.
18736         (malloc_state): Remove pagesize member.  Change all users to use
18737         GLRO(dl_pagesize).
18738
18739         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
18740         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
18741         is always initialized.
18742
18743         * malloc/malloc.c: Removed unused configurations and dead code.
18744         * malloc/arena.c: Likewise.
18745         * malloc/hooks.c: Likewise.
18746         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
18747
18748         * include/tls.h: Removed.  USE___THREAD must always be defined.
18749         * bits/libc-tsd.h: Don't handle !USE___THREAD.
18750         * elf/dl-libc.c: Likewise.
18751         * elf/dl-tsd.c: Likewise.
18752         * include/errno.h: Likewise.
18753         * include/netdb.h: Likewise.
18754         * include/resolv.h: Likewise.
18755         * inet/herrno-loc.c: Likewise.
18756         * inet/herrno.c: Likewise.
18757         * malloc/arena.c: Likewise.
18758         * malloc/hooks.c: Likewise.
18759         * malloc/malloc.c: Likewise.
18760         * resolv/res-state.c: Likewise.
18761         * resolv/res_libc.c: Likewise.
18762         * sysdeps/i386/dl-machine.h: Likewise.
18763         * sysdeps/ia64/dl-machine.h: Likewise.
18764         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
18765         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
18766         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
18767         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
18768         * sysdeps/sh/dl-machine.h: Likewise.
18769         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
18770         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
18771         * sysdeps/unix/i386/sysdep.S: Likewise.
18772         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
18773         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
18774         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
18775         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
18776         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
18777         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
18778         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
18779         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
18780         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
18781         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
18782         * sysdeps/unix/x86_64/sysdep.S: Likewise.
18783         * sysdeps/x86_64/dl-machine.h: Likewise.
18784         * tls.make.c: Likewise.
18785
18786         * configure.in: Remove --with-__thread option.  Make tests for
18787         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
18788         tls_model attribute fail if no support is available.  Remove
18789         USE_IN_LIBIO.
18790         * Makeconfig: Adjust for dropped configure option.  All features are
18791         now mandatory.
18792         * Makerules: Likewise.
18793         * Versions.def: Likewise.
18794         * argp/argp-fmtstream.c: Likewise.
18795         * argp/argp-fmtstream.h: Likewise.
18796         * argp/argp-help.c: Likewise.
18797         * assert/assert.c: Likewise.
18798         * config.h.in: Likewise.
18799         * config.make.in: Likewise.
18800         * configure: Likewise.
18801         * configure.in: Likewise.
18802         * csu/Versions: Likewise.
18803         * csu/init.c: Likewise.
18804         * elf/tst-audit2.c: Likewise.
18805         * elf/tst-tls10.c: Likewise.
18806         * elf/tst-tls10.h: Likewise.
18807         * elf/tst-tls11.c: Likewise.
18808         * elf/tst-tls12.c: Likewise.
18809         * elf/tst-tls14.c: Likewise.
18810         * elf/tst-tlsmod11.c: Likewise.
18811         * elf/tst-tlsmod12.c: Likewise.
18812         * elf/tst-tlsmod13.c: Likewise.
18813         * elf/tst-tlsmod13a.c: Likewise.
18814         * elf/tst-tlsmod14a.c: Likewise.
18815         * elf/tst-tlsmod15b.c: Likewise.
18816         * elf/tst-tlsmod16a.c: Likewise.
18817         * elf/tst-tlsmod16b.c: Likewise.
18818         * elf/tst-tlsmod7.c: Likewise.
18819         * elf/tst-tlsmod8.c: Likewise.
18820         * elf/tst-tlsmod9.c: Likewise.
18821         * gmon/gmon.c: Likewise.
18822         * grp/fgetgrent_r.c: Likewise.
18823         * grp/putgrent.c: Likewise.
18824         * hurd/fopenport.c: Likewise.
18825         * include/libc-symbols.h: Likewise.
18826         * include/tls.h: Likewise.
18827         * intl/gettextP.h: Likewise.
18828         * intl/loadinfo.h: Likewise.
18829         * locale/global-locale.c: Likewise.
18830         * locale/localeinfo.h: Likewise.
18831         * mach/devstream.c: Likewise.
18832         * malloc/arena.c: Likewise.
18833         * malloc/set-freeres.c: Likewise.
18834         * misc/err.c: Likewise.
18835         * misc/getttyent.c: Likewise.
18836         * misc/mntent_r.c: Likewise.
18837         * posix/getopt.c: Likewise.
18838         * posix/wordexp.c: Likewise.
18839         * pwd/fgetpwent_r.c: Likewise.
18840         * resolv/Versions: Likewise.
18841         * resolv/res_hconf.c: Likewise.
18842         * shadow/fgetspent_r.c: Likewise.
18843         * shadow/putspent.c: Likewise.
18844         * stdio-common/printf_fphex.c: Likewise.
18845         * stdio-common/tmpfile.c: Likewise.
18846         * stdlib/abort.c: Likewise.
18847         * stdlib/fmtmsg.c: Likewise.
18848         * sunrpc/auth_unix.c: Likewise.
18849         * sunrpc/clnt_perr.c: Likewise.
18850         * sunrpc/clnt_tcp.c: Likewise.
18851         * sunrpc/clnt_udp.c: Likewise.
18852         * sunrpc/clnt_unix.c: Likewise.
18853         * sunrpc/openchild.c: Likewise.
18854         * sunrpc/svc_simple.c: Likewise.
18855         * sunrpc/svc_tcp.c: Likewise.
18856         * sunrpc/svc_udp.c: Likewise.
18857         * sunrpc/svc_unix.c: Likewise.
18858         * sunrpc/xdr.c: Likewise.
18859         * sunrpc/xdr_array.c: Likewise.
18860         * sunrpc/xdr_rec.c: Likewise.
18861         * sunrpc/xdr_ref.c: Likewise.
18862         * sunrpc/xdr_stdio.c: Likewise.
18863
18864 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18865
18866         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18867
18868 2011-07-03  Andreas Jaeger  <aj@suse.de>
18869
18870         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
18871         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
18872         regenerate with gen-libm-tests.pl.
18873
18874 2010-05-12  Petr Baudis  <pasky@suse.cz>
18875
18876         [BZ #11589]
18877         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
18878         around j0() zero points by switching to j1().
18879         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18880         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18881         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18882         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18883
18884 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18885
18886         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
18887         instead of 0.
18888         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
18889         instead of 0.                              .
18890         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18891         Patch in part by Pavel Roskin <proski@gnu.org>.
18892
18893         [BZ #13138]
18894         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
18895         realloc.
18896         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
18897         Free memory block if necessary.
18898
18899         [BZ #12847]
18900         * libio/genops.c (INTDEF): For string streams the _lock pointer can
18901         be NULL.  Don't lock in this case.
18902
18903 2011-09-09  Roland McGrath  <roland@hack.frob.com>
18904
18905         * elf/elf.h (ELFOSABI_GNU): New macro.
18906         (ELFOSABI_LINUX): Define to that.
18907
18908 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
18909
18910         * string/strncat.c (strncat): Undef the symbol in case it has been
18911         defined in bits/string.h.
18912
18913 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18914
18915         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
18916
18917         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
18918         link map.
18919
18920 2011-08-17  Andreas Jaeger  <aj@suse.de>
18921
18922         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
18923
18924 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
18925             Ian Lance Taylor  <iant@google.com>
18926
18927         * math/libm-test.inc (lround_test): New testcase.
18928         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
18929
18930 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
18931
18932         * Makefile: Remove support for automatic cvs check-ins.
18933         * Makerules: Likewise.
18934         * config.make.in: Likewise.
18935         * configure.in: Likewise.
18936         * intl/Makefile: Likewise.
18937         * locale/Makefile: Likewise.
18938         * po/Makefile: Likewise.
18939         * posix/Makefile: Likewise.
18940         * sysdeps/gnu/Makefile: Likewise.
18941         * sysdeps/mach/hurd/Makefile: Likewise.
18942         * sysdeps/sparc/sparc32/Makefile: Likewise.
18943
18944         [BZ #13118]
18945         * posix/Makefile (bug-regex32-ENV): Define.
18946         Patch by John Stanley <jpsinthemix@verizon.net>.
18947
18948         * misc/Makefile (headers): Add bits/select2.h.
18949         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
18950         * misc/bits/select2.h: New file.
18951         * include/bits/select2.h: New file.
18952         * debug/Makefile (routines): Add fdelt_chk.
18953         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
18954         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
18955         FD_ISSET.
18956         * debug/fdelt_chk.c: New file.
18957
18958         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
18959         * wcsmbs/test-wmemcmp.c: Likewise.
18960         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
18961         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
18962
18963 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18964
18965         * string/Makefile (strop-tests): Add memcmp.
18966         * string/test-wmemcmp.c: New file.
18967         * string/test-memcmp.c: Add wmemcmp support.
18968
18969 2011-09-08  Roland McGrath  <roland@hack.frob.com>
18970
18971         [BZ #13153]
18972         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
18973         2011-07-19 change.
18974
18975         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
18976         garbage value in a __mach_port_mod_refs call in the cases of the
18977         task-self and thread-self ports.
18978
18979 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18980
18981         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
18982
18983 2011-09-08  Andreas Schwab  <schwab@redhat.com>
18984
18985         * elf/dl-load.c (lose): Check for non-null L.
18986
18987 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18988
18989         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
18990
18991         * elf/dl-libc.c (dlerror_run): Pass back error code from
18992         dl_catch_error.
18993
18994         [BZ #13123]
18995         * elf/dl-load.c (lose): Free l_origin if it is valid.
18996
18997         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
18998         names.
18999         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
19000         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
19001         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
19002         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
19003         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
19004         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
19005
19006 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19007
19008         * sysdeps/powerpc/fpu/e_hypot.c: New file.
19009         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
19010         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
19011         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
19012         * sysdeps/powerpc/fpu/k_cosf.c: New file.
19013         * sysdeps/powerpc/fpu/k_sinf.c: New file.
19014         * sysdeps/powerpc/fpu/s_cosf.c: New file.
19015         * sysdeps/powerpc/fpu/s_sinf.c: New file.
19016         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
19017         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
19018
19019 2011-08-15  Alan Modra  <amodra@gmail.com>
19020
19021         [BZ #13092]
19022         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
19023         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
19024         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
19025         ppc_mcount to static-only-routines.
19026         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
19027         __mcount_internal.
19028         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
19029         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
19030
19031 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
19032
19033         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
19034         for finite and infinity parameters.
19035
19036 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
19037
19038         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
19039         and add nop instructions for throughput optimization.
19040         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
19041
19042 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
19043
19044         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
19045         aligned copy for power7 with vector-scalar instructions.
19046         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
19047
19048 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
19049
19050         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
19051         AVX check.
19052
19053 2011-09-07  Andreas Schwab  <schwab@redhat.com>
19054
19055         [BZ #13144]
19056         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
19057         last change.
19058
19059 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
19060
19061         * sysdeps/unix/sysv/linux/x86_64/init-first.c
19062         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
19063         syscall wrapper around clock_gettime in __vdso_clock_gettime.
19064         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
19065         clock_gettime.
19066
19067 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
19068
19069         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
19070         Forgot to demangle the pointer.
19071
19072         * sysdeps/i386/sysdep.h: Define atom_text_section.
19073         * sysdeps/x86_64/sysdep.h: Likewise.
19074         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
19075         section with atom_text_section.
19076         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
19077         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
19078         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
19079         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
19080         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
19081
19082         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
19083         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
19084         already be defined.  Change to take two parameters and don't assign
19085         result to variable.  Adjust all users.
19086         Define INTERNAL_GETTIME if not already defined.
19087         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
19088         call.
19089         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
19090         HAVE_CLOCK_GETTIME_VSYSCALL.
19091         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
19092
19093         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
19094         gettimeofday vsyscall, just use time.
19095
19096 2011-09-06  Andreas Schwab  <schwab@redhat.com>
19097
19098         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
19099         <errno.h>.
19100
19101 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
19102
19103         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
19104         syscall on x86-64.
19105         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
19106         syscall.
19107         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
19108         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
19109         syscall if possible.
19110
19111 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
19112
19113         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
19114         e_ident.  Don't pass to find_mapsXX.
19115         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
19116
19117 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
19118
19119         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19120         strchr-sse2-no-bsf strrchr-sse2-no-bsf
19121         * sysdeps/x86_64/multiarch/strchr.S: Update.
19122         Check bit_slow_BSF bit.
19123         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
19124         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
19125         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
19126
19127 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
19128
19129         [BZ #13134]
19130         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
19131         before glibc 2.15.
19132         (tryshell): Define.
19133         (__spawni): Change last parameter to be flag.  Test
19134         SPAWN_XFLAGS_USE_PATH flag to use path or not.
19135         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
19136         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
19137         * posix/spawni.c: Likewise.
19138         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
19139         * posix/spawnp.c: Likewise.  Change normal version to use
19140         SPAWN_XFLAGS_USE_PATH.
19141         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
19142         SPAWN_XFLAGS_TRY_SHELL.
19143
19144         [BZ #13150]
19145         * posix/glob.h: Remove gcc 1.x support.
19146
19147         [BZ #13068]
19148         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
19149
19150 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
19151
19152         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19153         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
19154         strrchr-sse2-bsf
19155         * sysdeps/i386/i686/multiarch/strchr.S: New file.
19156         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
19157         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
19158         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
19159         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
19160         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
19161
19162 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19163
19164         * sysdeps/x86_64/wcscmp.S: New file.
19165
19166         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
19167         wcscmp-c wcscmp-sse2
19168         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
19169         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
19170         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
19171         * wcsmbs/wcscmp.c: Allow renaming.
19172
19173 2011-09-05  David S. Miller  <davem@davemloft.net>
19174
19175         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
19176         stack slot, rather than the struct return pointer slot.
19177         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
19178         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
19179         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
19180         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
19181
19182 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
19183
19184         * po/ja.po: Update from translation team.
19185
19186         [BZ #13144]
19187         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
19188         kernel in 64-bit binaries.
19189
19190 2011-09-01  David S. Miller  <davem@davemloft.net>
19191
19192         * elf/elf.h (HWCAP_SPARC_*): Move to..
19193         * sysdeps/sparc/sysdep.h: this new file and add new values.
19194         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
19195         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
19196         _DL_HWCAP_COUNT to 24.
19197         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
19198         entries.
19199         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
19200         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
19201         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
19202         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
19203         instead of magic constants.
19204         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
19205
19206 2011-08-31  David S. Miller  <davem@davemloft.net>
19207
19208         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
19209         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
19210         Reimplement to do errno handling inline.
19211         (SYSCALL_ERROR_HANDLER): New macro.
19212         (__SYSCALL_STRING): Do not do errno handling in asm.
19213         (__CLONE_SYSCALL_STRING): Delete.
19214         (__INTERNAL_SYSCALL_STRING): Delete.
19215         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
19216         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
19217         (PSEUDO): Reimplement to do errno handling inline.
19218         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
19219         (SYSCALL_ERROR_HANDLER): New macro.
19220         (__SYSCALL_STRING): Do not do errno handling in asm.
19221         (__CLONE_SYSCALL_STRING): Delete.
19222         (__INTERNAL_SYSCALL_STRING): Delete.
19223         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
19224         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
19225         i386.
19226         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
19227         (inline_syscall*): Add 'err' argument.
19228         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
19229         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
19230         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
19231         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
19232
19233         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
19234         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
19235
19236 2011-08-30  Andreas Schwab  <schwab@redhat.com>
19237
19238         * elf/rtld.c (dl_main): Relocate objects in dependency order.
19239
19240 2011-08-29  Jiri Olsa <jolsa@redhat.com>
19241
19242         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
19243         directive.
19244
19245 2011-08-24  David S. Miller  <davem@davemloft.net>
19246
19247         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
19248
19249 2011-08-24  Andreas Schwab  <schwab@redhat.com>
19250
19251         * elf/Makefile: Add rules to build and run unload8 test.
19252         * elf/unload8.c: New file.
19253         * elf/unload8mod1.c: New file.
19254         * elf/unload8mod1x.c: New file.
19255         * elf/unload8mod2.c: New file.
19256         * elf/unload8mod3.c: New file.
19257
19258         * elf/dl-close.c (_dl_close_worker): Reset private search list if
19259         it wasn't used.
19260
19261 2011-08-23  David S. Miller  <davem@davemloft.net>
19262
19263         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
19264         subtract stack bias.
19265         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
19266         %sp not %fp in calculations.
19267         (_JMPBUF_UNWINDS_ADJ): Likewise.
19268
19269         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
19270         (aio_suspend): Call it to force an exception region around the
19271         AIO_MISC_WAIT() invocation.
19272
19273 2011-08-23  Andreas Schwab  <schwab@redhat.com>
19274
19275         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
19276         backslash.
19277
19278 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
19279
19280         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
19281         protection macro.
19282         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
19283         and <dl-machine.h>.
19284         (Elf64_FuncDesc): Remove.
19285
19286 2011-08-22  David S. Miller  <davem@davemloft.net>
19287
19288         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
19289         sigaltstack check, add missing cfi directives.
19290         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
19291         missing cfi directives, and sigaltstack handling.
19292
19293 2011-08-16  Andreas Schwab  <schwab@redhat.com>
19294
19295         [BZ #11724]
19296         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
19297         object is seen twice.
19298         * elf/dl-fini.c (_dl_sort_fini): Likewise.
19299
19300         * elf/Makefile (distribute): Add tst-initorder2.c.
19301         (tests): Add tst-initorder2.
19302         (modules-names): Add tst-initorder2a tst-initorder2b
19303         tst-initorder2c tst-initorder2d.  Add rules to build them.
19304         ($(objpfx)tst-initorder2.out): New rule.
19305         * elf/tst-initorder2.c: New file.
19306         * elf/tst-initorder2.exp: New file.
19307
19308 2011-08-22  Andreas Schwab  <schwab@redhat.com>
19309
19310         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
19311
19312         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
19313         dependencies back to end of function.
19314
19315         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19316         $(elfobjdir)/ld.so.
19317
19318 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
19319
19320         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
19321         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
19322         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
19323         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
19324         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
19325         of __vdso_gettimeofday.
19326         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
19327         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
19328         attribute_hidden.
19329         (_libc_vdso_platform_setup): Remove initialization of
19330         __vdso_gettimeofday and __vdso_time.
19331
19332 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
19333
19334         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
19335         and fgetc_unlocked.
19336         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
19337         getc_unlocked.
19338
19339         * elf/dl-open.c (add_to_global): Report additions to the global scope
19340         for LD_DEBUG=scopes.
19341         (dl_open_worker): Also print scope of newly loaded dependencies.
19342         (_dl_show_scope): Indicate if there is no scope.
19343
19344         [BZ #13114]
19345         * stdio-common/Makefile (tests): Add bug24.
19346         * stdio-common/bug24.c: New file.
19347
19348 2011-08-19  Andreas Jaeger  <aj@suse.de>
19349
19350         [BZ #13114]
19351         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
19352         non-existant file when using close-on-exec mode.
19353
19354 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
19355
19356         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
19357         the very first instruction.
19358
19359         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
19360         the CFI state in the end.
19361         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
19362         inclusion of dl-trampoline.h.
19363         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
19364
19365 2011-08-19  Andreas Schwab  <schwab@redhat.com>
19366
19367         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
19368         expectations for long double.
19369
19370         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
19371         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
19372
19373 2011-08-14  David S. Miller  <davem@davemloft.net>
19374
19375         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
19376         artificual limit depends upon the system page size.
19377
19378 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
19379
19380         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
19381         * resolv/Makefile: Define CFLAGS-libresolv.
19382
19383 2011-08-17  Andreas Schwab  <schwab@redhat.com>
19384
19385         * nss/makedb.c (compute_tables): Make variables used in nested
19386         function static.
19387
19388 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
19389
19390         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
19391         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
19392         if buffer was too small.
19393
19394         * elf/pldd.c (main): Attach to all threads in the process.
19395         Rewrite /proc handling to use *at functions.
19396
19397 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
19398
19399         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
19400         specifies first scope to show.
19401         (dl_open_worker): Update callers.  Move printing scope of new
19402         object to before the relocation.
19403         * elf/rtld.c (dl_main): Update _dl_show_scope call.
19404         * sysdeps/generic/ldsodefs.h: Update declaration.
19405
19406         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
19407         string for the scope number.
19408
19409 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
19410
19411         * nscd/servicescache.c (cache_addserv): Make sure written is always
19412         initialized.
19413
19414 2011-08-14  Roland McGrath  <roland@hack.frob.com>
19415
19416         * sysdeps/i386/i486/bits/atomic.h
19417         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
19418         statement expression, so as to suppress "set but not used" warning.
19419         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
19420
19421         * string/strncat.c (STRNCAT): Use prototype definition.
19422
19423         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
19424         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
19425         -Iprograms here.
19426         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
19427         (localedef-modules): Add localedef.
19428         (locale-modules): Add locale.
19429
19430         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
19431         * elf/rtld.c (dl_main): Invert order of assignment in last change,
19432         to avoid a warning.
19433
19434 2011-08-14  David S. Miller  <davem@davemloft.net>
19435
19436         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
19437         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
19438
19439 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
19440
19441         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
19442         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
19443         * elf/rtld.c (dl_main): Set l_name of vDSO.
19444         Call _dl_show_scope when DL_DEBUG_SCOPES.
19445         (process_dl_debug): Recognize scopes flag and also set it for all.
19446         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
19447         Declare _dl_show_scope.
19448
19449         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
19450         (do_dlopen): Pass caller_dlopen to dl_open.
19451         (__libc_dlopen_mode): Initialize caller_dlopen.
19452
19453         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
19454         of libc.  Make tolower call locale-independent.  Optimize a bit by
19455         using isdigit instead of isalnum.
19456         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
19457
19458 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
19459
19460         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
19461         was a dependency or dynamically loaded.
19462
19463 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
19464
19465         * intl/l10nflist.c: Allow architecture-specific pop function.
19466         * sysdeps/x86_64/l10nflist.c: New file.
19467
19468         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
19469         classification.
19470
19471 2011-08-10  Andreas Schwab  <schwab@redhat.com>
19472
19473         * include/dirent.h: Add libc_hidden_proto for scandirat and
19474         scandirat64.  Don't declare __scandirat64.
19475         * dirent/scandirat.c: Add libc_hidden_def.
19476         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
19477         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
19478
19479 2011-08-10  David S. Miller  <davem@davemloft.net>
19480
19481         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
19482         enum.
19483         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19484         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19485         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19486
19487 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
19488
19489         * Versions.def [libc]: Add GLIBC_2.15.
19490         * dirent/Makefile (routines): Add scandirat and scandirat64.
19491         * dirent/Versions [libc]: Export scandirat and scandirat64 for
19492         GLIBC_2.15.
19493         * dirent/dirent.h: Declare scandirat and scandirat64.
19494         * dirent/scandirat.c: New file.
19495         * dirent/scandirat64.c: New file.
19496         * sysdeps/wordsize-64/scandirat.c: New file.
19497         * sysdeps/wordsize-64/scandirat64.c: New file.
19498         * dirent/opendir.c: Define opendirat.
19499         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
19500         using scandirat.
19501         * dirent/scandir64.c: Adjust for scandir.c change.
19502         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
19503         __scandirat64, and __scandir_cancel_handler.
19504         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
19505         additional parameter and use openat instead of open (outside of ld.so).
19506         Add new __opendir as wrapper around __opendirat.
19507         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
19508         here without requiring old scandirat implementation.
19509
19510 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
19511
19512         * dirent/scandir.c (cancel_handler): Renamed to
19513         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
19514         defined.  Adjust users.
19515         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
19516         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
19517
19518 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
19519
19520         * string/test-string.h (IMPL): Use __STRING to expand name and then
19521         stringify it.
19522
19523         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
19524         of cleanups.
19525
19526 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19527
19528         * string/Makefile: Update.
19529         (strop-tests): Append strncat.
19530         * string/test-wcscmp.c: New file.
19531         New comprehensive test for wcscmp.
19532         * string/test-strcmp.c: Update.
19533         (WIDE): New define.
19534
19535 2011-07-22  Andreas Schwab  <schwab@redhat.com>
19536
19537         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
19538         line.
19539
19540 2011-07-26  Andreas Schwab  <schwab@redhat.com>
19541
19542         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
19543         encoding to ACE if AI_IDN.
19544
19545 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
19546
19547         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
19548         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
19549
19550 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
19551
19552         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
19553         Fix overflow bug in strncat.
19554         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
19555
19556         * string/test-strncat.c: Update.
19557         Add new tests for checking overflow bugs.
19558
19559 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
19560
19561         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19562         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
19563         * sysdeps/i386/i686/multiarch/strcat.S: New file.
19564         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
19565         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
19566         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
19567         * sysdeps/i386/i686/multiarch/strncat.S: New file.
19568         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
19569         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
19570
19571         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
19572         (USE_AS_STRCAT): Define.
19573         Add strcat and strncat support.
19574         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
19575
19576 2011-07-25  Andreas Schwab  <schwab@redhat.com>
19577
19578         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
19579         __n bigger than INT_MAX+1.
19580         (__strncmp_g): Likewise.
19581
19582 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
19583
19584         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
19585         * libio/stido.h: Likewise.
19586
19587         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
19588         (AF_NFC): Define.
19589         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
19590         (AF_NFC): Define.
19591
19592         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
19593         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19594         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19595         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19596         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19597
19598         [BZ #13021]
19599         * scripts/test-installation.pl: Don't expect libnss_test1 to be
19600         installed.
19601
19602         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
19603         typo.
19604         (_dl_x86_64_save_sse): Likewise.
19605
19606 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
19607
19608         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
19609         OSXSAVE.
19610         (_dl_x86_64_save_sse): Likewise.
19611
19612         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
19613
19614         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
19615
19616 2011-07-21  Andreas Schwab  <schwab@redhat.com>
19617
19618         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
19619         change.
19620         (_dl_x86_64_save_sse): Use correct AVX check.
19621
19622 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19623
19624         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
19625         bug in strncpy/strncat.
19626         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
19627
19628 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
19629
19630         * string/tester.c (test_strcat): Add tests for different alignments
19631         of source and destination.
19632         (test_strncat): Likewise.
19633
19634 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
19635
19636         [BZ #12852]
19637         * posix/glob.c (glob): Check passed in values before using them in
19638         expressions to avoid some overflows.
19639         (glob_in_dir): Likewise.
19640
19641         [BZ #13007]
19642         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
19643         check for AVX enablement so that we don't crash with old kernels and
19644         new hardware.
19645         * elf/tst-audit4.c: Add same checks here.
19646         * elf/tst-audit6.c: Likewise.
19647
19648         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
19649
19650 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
19651
19652         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
19653
19654 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
19655
19656         * po/cs.po: Update from translation team.
19657         * po/bg.po: Likewise.
19658
19659 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
19660
19661         * misc/sys/cdefs.h: Add support for const attribute.
19662         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
19663         to gnu_dev_{major,minor,makedev} functions.
19664
19665 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
19666
19667         * intl/dcigettext.c (get_output_charset): Add missing bracket.
19668
19669 2011-07-20  Andreas Schwab  <schwab@redhat.com>
19670
19671         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
19672         strlen results.
19673
19674 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19675
19676         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
19677         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
19678         register in order to avoid conflicts with the soft frame pointer
19679         being held in r11 when necessary.
19680         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19681         (INTERNAL_VSYSCALL_NCS): Likewise.
19682
19683 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
19684
19685         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
19686         * elf/dl-fini.c (_dl_fini): Adjust caller.
19687         * elf/dl-close.c (_dl_close_worker): Likewise.
19688         * sysdeps/generic/ldsodefs.h: Adjust declaration.
19689
19690 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
19691
19692         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
19693         "aux_cache->nlibs < 0".
19694
19695         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
19696         in the reload-count case.
19697
19698 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
19699
19700         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19701         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
19702         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
19703         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
19704         * sysdeps/x86_64/multiarch/strcat.S: New file.
19705         * sysdeps/x86_64/multiarch/strncat.S: New file.
19706         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
19707         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
19708         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
19709         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
19710         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
19711         (USE_AS_STRCAT): Define.
19712         Add strcat and strncat support.
19713         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
19714         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
19715         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
19716         * string/strncat.c: Update.
19717         (USE_AS_STRNCAT): Define.
19718         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19719         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
19720         and i7.
19721         * sysdeps/x86_64/multiarch/init-arch.h
19722         (bit_Prefer_PMINUB_for_stringop): New.
19723         (index_Prefer_PMINUB_for_stringop): Likewise.
19724         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
19725         bit_Prefer_PMINUB_for_stringop.
19726
19727 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
19728
19729         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
19730         buffer64.
19731         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
19732         of casting of buffer.
19733         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
19734         buffer32 and buffer64.
19735         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
19736         writes instead of casting of buffer.
19737         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
19738         buffer32.
19739         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
19740         casting of buffer.
19741
19742 2011-07-19  Andreas Schwab  <schwab@redhat.com>
19743
19744         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
19745
19746 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
19747
19748         * nscd/nscd.c (termination_handler): Don't do anything for a database
19749         if it has not yet been initialized.
19750
19751 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
19752
19753         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
19754
19755 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
19756
19757         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
19758
19759 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
19760
19761         * po/nl.po: Update from translation team.
19762         * po/sv.po: Likewise.
19763
19764 2011-07-16  Roland McGrath  <roland@hack.frob.com>
19765
19766         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
19767         now disallowed by GCC.
19768
19769         * configure.in (use-default-link): Default to yes if a test -shared
19770         link meets our qualifications.
19771         * configure: Regenerated.
19772
19773         * config.make.in (output-format): New variable.
19774         * configure.in: Check for ld --print-output-format support.
19775         * configure: Regenerated.
19776         * Makerules ($(common-objpfx)format.lds)
19777         [$(output-format) != unknown]: Just use $(output-format),
19778         instead of the linker-script munging.
19779
19780 2011-07-14  Roland McGrath  <roland@hack.frob.com>
19781
19782         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
19783         of $(common-objpfx)shlib.lds.
19784         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
19785
19786         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
19787         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
19788
19789         * configure.in (-z relro check): Adjust test code to add a large
19790         writable data section after it.
19791         * configure: Regenerated.
19792
19793 2011-07-11  Roland McGrath  <roland@hack.frob.com>
19794
19795         * configure.in (-z relro check): Fix test code to make the variable
19796         truly const.
19797         * configure: Regenerated.
19798
19799 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
19800
19801         * nscd/nscd.h (struct traced_file): Define.
19802         (struct database_dyn): Remove inotify_descr, reset_res, and filename
19803         elements.  Add traced_files.
19804         (inotify_fd): Declare.
19805         (register_traced_file): Declare.
19806         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
19807         (inotify_fd): Export.
19808         (resolv_conf_descr): Remove.
19809         (nscd_init): Move inotify descriptor creation to main.
19810         Don't register files for notification here.
19811         (register_traced_file): New function.
19812         (invalidate_cache): Don't use reset_res to determine whether to call
19813         res_init, go through the list of registered files.
19814         (main_loop_poll): The inotify descriptors are now stored in the
19815         structures for the traced files.
19816         (main_loop_epoll): Likewise
19817         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
19818         to __nss_disable_nscd.
19819         * nscd/cache.c (prune_cache): There is no single inotify descriptor
19820         for a database anymore.  Check the records for all the registered
19821         files instead.
19822         * nss/Makefile (libnss_files-routines): Add files-init.
19823         (libnss_db-routines): Add db-init.
19824         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
19825         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
19826         * nss/nss_db/db-init.c: New file.
19827         * nss/nss_files/files-init.c: New file.
19828         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
19829         __nss_lookup_function.
19830         (__nss_lookup_function): Call nss_load_library.
19831         (nss_load_all_libraries): New function.
19832         (__nss_disable_nscd): Take parameter with callback function for files
19833         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
19834         used for the cached services.
19835         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
19836         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
19837         options for features to all the files in nscd.
19838
19839         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
19840
19841 2011-07-10  Roland McGrath  <roland@hack.frob.com>
19842
19843         * csu/elf-init.c (__libc_csu_init): Comment typo.
19844
19845 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
19846
19847         * po/pl.po: Update from translation team.
19848         * po/ja.po: Likewise.
19849         * po/ru.po: Likewise.
19850         * po/ko.po: Likewise.
19851         * po/fr.po: Likewise.
19852
19853 2011-07-09  Roland McGrath  <roland@hack.frob.com>
19854
19855         * configure.in (.ctors/.dtors header and trailer check):
19856         Use an empirical test on a built program.
19857         * configure: Regenerated.
19858
19859         * configure.in (-z relro check): Use an empirical test on a built DSO.
19860         Detect, but do not require, on ia64.
19861         * configure: Regenerated.
19862
19863         * configure.in (READELF): Find it with AC_CHECK_TOOL.
19864         Update tests that use readelf to use $READELF instead.
19865         * configure: Regenerated.
19866
19867 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
19868
19869         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
19870         if the result is not used.
19871
19872 2011-07-05  Andreas Jaeger  <aj@suse.de>
19873
19874         [BZ#9696]
19875         * stdlib/tst-strtod.c: Add testcase.
19876
19877 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
19878
19879         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
19880         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
19881         The latter has a higher limit.  Take additional parameter to pass to
19882         the new function.
19883         (__pathconf): Pass file to __statfs_link_max.
19884         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
19885         __statfs_link_max.
19886         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
19887         __statfs_link_max.
19888
19889         [BZ #12868]
19890         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
19891         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19892         Handle Lustre.
19893         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
19894         (__statfs_filesize_max): Likewise.
19895         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
19896
19897 2011-07-05  Andreas Jaeger  <aj@suse.de>
19898
19899         * resolv/res_comp.c (dn_skipname): Remove unused variable.
19900
19901 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
19902
19903         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
19904         `status' variable.
19905         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
19906         Likewise.
19907
19908 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
19909
19910         * Makefile (strop-tests): Add strncat.
19911         * string/test-strncat.c: New file.
19912
19913 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
19914
19915         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
19916
19917 2011-06-21  Andreas Jaeger  <aj@suse.de>
19918
19919         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
19920         Copy rule from iconvdata/Makefile.
19921
19922 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19923
19924         [BZ #12922]
19925         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
19926         but no long options are defined, just return 'W'.
19927
19928 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
19929
19930         [BZ #9696]
19931         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
19932
19933 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19934
19935         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
19936         netgroups to read.
19937         (innetgr): Likewise.
19938
19939 2011-07-05  Roland McGrath  <roland@hack.frob.com>
19940
19941         * config.make.in (install_root): Default to $(DESTDIR).
19942
19943 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
19944
19945         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
19946
19947 2011-07-02  Roland McGrath  <roland@hack.frob.com>
19948
19949         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
19950
19951         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
19952         containing directory rather than embedding absolute directory names.
19953
19954         * scripts/check-local-headers.sh: Rewritten using awk.
19955         Match by word, not by line.  Print error messages for matches.
19956         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
19957
19958         * Makerules [shlib-lds-flags empty]:
19959         ($(common-objpfx)libc_pic.opts): New target.
19960         ($(common-objpfx)libc_pic.os.clean): New target.
19961         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
19962
19963         * config.make.in (OBJCOPY): New variable.
19964         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
19965         * configure: Regenerated.
19966
19967         * config.make.in (use-default-link): New variable.
19968         * configure.in (use_default_link): Grok --with-default-link to set it.
19969         * configure: Regenerated.
19970         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
19971         (shlib-lds, shlib-lds-flags): Define to empty.
19972
19973         * Makerules (shlib-lds): New variable.
19974         (shlib-lds-flags): New variable.
19975         (build-shlib, build-moduile, build-module-asneeded): Use it.
19976         ($(common-objpfx)libc.so): Use $(shlib-lds).
19977         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
19978         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
19979
19980         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
19981         DT_FLAGS/DT_FLAGS_1 with zero flags.
19982
19983         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
19984         linker script munging.
19985
19986 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
19987
19988         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
19989         as 128-bit value.
19990         * crypt/sha512.c (sha512_process_block): Perform total addition using
19991         128-bit if possible.
19992         (__sha512_finish_ctx): Likewise.
19993         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
19994         as 64-bit value.
19995         * crypt/sha256.c (SWAP64): Define.
19996         (sha256_process_block): Perform total addition using 64-bit if
19997         possible.
19998         (__sha256_finish_ctx): Likewise.
19999
20000 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
20001
20002         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
20003         * nscd/initgrcache.c (addinitgroupsX): Likewise.
20004         * nscd/hstcache.c (cache_addhst): Likewise.
20005         * nscd/grpcache.c (cache_addgr): Likewise.
20006         * nscd/aicache.c (addhstaiX): Likewise
20007         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
20008
20009 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
20010
20011         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
20012         * nscd/initgrcache.c (addinitgroupsX): Likewise.
20013         * nscd/hstcache.c (cache_addhst): Likewise.
20014         * nscd/grpcache.c (cache_addgr): Likewise.
20015         * nscd/aicache.c (addhstaiX): Likewise
20016
20017 2011-07-01  Andreas Schwab  <schwab@redhat.com>
20018
20019         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
20020         domain only when needed.
20021
20022 2011-06-30  Andreas Schwab  <schwab@redhat.com>
20023
20024         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
20025         is always restored.
20026
20027 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
20028
20029         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
20030         are re-adding the entry.
20031         * nscd/servicescache.c (cache_addserv): Likewise.
20032
20033 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
20034
20035         * sysdeps/generic/dl-irel.h: fix protection against multiple
20036         inclusions.
20037         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
20038
20039 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
20040
20041         [BZ #12935]
20042         * malloc/memusage.sh: Fix quoting in message.
20043         * debug/xtrace.sh: Likewise.
20044
20045         * configure.in: Remove support for --experimental-malloc option, make
20046         it the default.
20047         * config.make.in: Likewise.
20048         * malloc/Makefile: Likewise.
20049
20050 2011-06-27  Andreas Schwab  <schwab@redhat.com>
20051
20052         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
20053         two-byte characters.
20054
20055 2011-06-27  Roland McGrath  <roland@hack.frob.com>
20056
20057         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
20058         AC_CACHE_CHECK invocation.
20059         * configure: Regenerated.
20060
20061         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
20062
20063 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
20064
20065         [BZ #12350]
20066         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
20067         bit from old_res_options.
20068
20069         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
20070
20071         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
20072         value type for setfct.
20073
20074 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
20075
20076         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
20077         __gettimeofday instead of gettimeofday.
20078
20079 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
20080
20081         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
20082
20083 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
20084
20085         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
20086
20087         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
20088         info.
20089
20090 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
20091
20092         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20093         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
20094         strcpy-sse2-unaligned strncpy-sse2-unaligned
20095         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
20096         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
20097         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
20098         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
20099         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
20100         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
20101         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
20102         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
20103         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
20104         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
20105         (STRCPY): Support SSE2 and SSSE3 versions.
20106
20107 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
20108
20109         [BZ #12874]
20110         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
20111         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
20112         kernels which artificially limit size of requests.
20113
20114 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
20115
20116         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20117         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
20118         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
20119         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
20120         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
20121         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
20122         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
20123         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
20124         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
20125         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
20126         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
20127         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
20128         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
20129         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
20130         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
20131         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20132         Enable unaligned load optimization for Intel Core i3, i5 and i7
20133         processors.
20134         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
20135         Define.
20136         (index_Fast_Unaligned_Load): Define.
20137         (HAS_FAST_UNALIGNED_LOAD): Define.
20138
20139 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
20140
20141         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
20142
20143 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
20144
20145         [BZ #12907]
20146         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
20147         until it is clear that the information is realy needed.
20148         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
20149
20150 2011-06-22  Andreas Schwab  <schwab@redhat.com>
20151
20152         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
20153
20154 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
20155
20156         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
20157         /sys/devices/system/cpu/online if it is usable.
20158
20159         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
20160         reading the information from the /proc filesystem to once a second.
20161
20162 2011-06-21  Andreas Jaeger  <aj@suse.de>
20163
20164         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
20165         NULL after inclusion of kernel headers.
20166
20167 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
20168
20169         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
20170         calls to internal_setent.
20171
20172         [BZ #12885]
20173         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
20174         addresses using gethostbyname4_r ignore IPv4 addresses.
20175
20176         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
20177         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
20178
20179         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
20180
20181 2011-06-20  David S. Miller  <davem@davemloft.net>
20182
20183         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
20184         inclusions.
20185         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
20186
20187         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
20188         (elf_irel): Use it.
20189         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
20190         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
20191         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
20192         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
20193         * sysdeps/x86_64/dl-irel.h: Likewise.
20194
20195         * elf/dl-runtime.c: Use elf_ifunc_invoke.
20196         * elf/dl-sym.c: Likewise.
20197
20198 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
20199
20200         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
20201         need to dereference resplen2.
20202
20203 2011-06-14  Andreas Schwab  <schwab@redhat.com>
20204
20205         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
20206
20207 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
20208
20209         * Makeconfig: Define vardbdir and inst_vardbdir.
20210         * nss/Makefile: Add rules to install db-Makefile.
20211
20212         * nss/nss_db/db-XXX.c: Cleanup.
20213
20214         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
20215         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
20216         GLIBC_PRIVATE.
20217         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
20218         * nss/makedb.c: Implement -g option to specify that value strings
20219         are generated and should not be added to table iterated over for
20220         get*ent calls.
20221         * nss/nss_db/db-initgroups.c: New file.
20222
20223         * nss/getent.c: Add support for initgroups lookups through getgrouplist
20224         interface.
20225
20226         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
20227         (internal_getgrouplist): Adjust to name change.
20228         Update use_initgroups_entry if this is not the first call.
20229         * nss/databases.def: Add initgroups entry.
20230
20231         * nss/makedb.c (compute_tables): Check result of multiple hash table
20232         sizes to minimize maximum chain length.
20233
20234 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
20235
20236         * Versions.def: Add entry for libnss_db.
20237         * shlib-versions: Likewise.
20238         * nss/Makefile: Add rules to build libnss_db.
20239         * nss/Versions: Add libnss_db information.  Organize libnss_files
20240         entries better.
20241         * nss/db-Makefile: Add gshadow support.  Change rules for the new
20242         makedb progra.  Some minor improvements to generate smaller files.
20243         * nss/nss_db/nss_db.h: Move NSS database header data structures to
20244         here from...
20245         * nss/makedb.c: ...here.
20246         Improve database format to be smaller and require less memory at
20247         runtime.
20248         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
20249         db anymore.
20250         * nss/nss_db/db-netgrp.c: Likewise.
20251         * nss/nss_db/db-open.c: Likewise.
20252         * nss/nss_files/flies-XXX.x: Adjust comments.
20253         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
20254         * nss/nss_files/files-grp.c: Likewise.
20255         * nss/nss_files/files-hosts.c: Likewise.
20256         * nss/nss_files/files-network.c: Likewise.
20257         * nss/nss_files/files-proto.c: Likewise.
20258         * nss/nss_files/files-pwd.c: Likewise.
20259         * nss/nss_files/files-rpc.c: Likewise.
20260         * nss/nss_files/files-service.c: Likewise.
20261         * nss/nss_files/files-sgrp.c: Likewise.
20262         * nss/nss_files/files-spwd.c: Likewise.
20263         * nss/nss_db/db-alias.c: Removed.
20264         * nss/nss_db/dummy-db.h: Removed.
20265
20266 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
20267
20268         * nss/makedb.c: Rewritten to not use database library.
20269         * nss/Makefile: Update to build new makedb program.
20270
20271 2011-06-14  Andreas Jaeger  <aj@suse.de>
20272
20273         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
20274         memset declaration.
20275
20276 2011-06-10  Andreas Schwab  <schwab@redhat.com>
20277
20278         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
20279         tmpbuf.
20280
20281 2011-06-10  Roland McGrath  <roland@hack.frob.com>
20282
20283         * Makerules (shlib.lds): Fail if the linker script comes out empty.
20284         * elf/Makefile ($(objpfx)ld.so): Likewise.
20285
20286         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
20287         Don't list ld.so twice in dependencies.
20288
20289         * posix/bug-regex31.c: Include <stdlib.h>.
20290
20291         * nscd/hstcache.c (cache_addhst): Remove unused variable.
20292
20293         * nis/nss_compat/compat-spwd.c
20294         (getspent_next_nss_netgr): Remove unused variable.
20295         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
20296
20297         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
20298         nonmembers" output to use the right array.
20299
20300         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
20301
20302         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
20303
20304         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
20305         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
20306         * catgets/gencat.c (read_input_file): Likewise.
20307         * locale/programs/locarchive.c (enlarge_archive): Likewise.
20308
20309         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
20310         variable definition inside #if's controlling its use.
20311
20312         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
20313
20314         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
20315
20316         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
20317
20318         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
20319         unreachable code.
20320
20321         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
20322
20323         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
20324         * configure: Regenerated.
20325
20326         * Makerules: Revert last change.
20327         * elf/Makefile: Likewise.
20328
20329 2011-06-09  Roland McGrath  <roland@hack.frob.com>
20330
20331         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
20332         * elf/Makefile ($(objpfx)librtld.os): Likewise.
20333         (reloc-link): Likewise.
20334
20335 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
20336
20337         * elf/Makefile: Add rules to build pldd.
20338         * elf/pldd.c: New file.
20339         * elf/pldd-xx.c: New file.
20340
20341 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
20342
20343         * version.h: Update for 2.15 development version.
20344
20345 2011-06-07  David S. Miller  <davem@davemloft.net>
20346
20347         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
20348         ifuncs.
20349         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
20350         elf_machine_lazy_rel): Likewise.
20351         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
20352         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
20353         elf_machine_lazy_rel): Likewise.
20354         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
20355         dl_hwcap via passed in argument.
20356         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
20357         Likewise.
20358
20359 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20360
20361         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
20362
20363 2011-06-06  Roland McGrath  <roland@hack.frob.com>
20364
20365         [BZ #12849]
20366         * manual/fdl-1.1.texi: New file, verbatim from:
20367         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
20368         * manual/lgpl-2.1.texi: New file, verbatim from:
20369         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
20370         * manual/Makefile (licenses): New variable, list those new file names.
20371         (texis): Use it.
20372         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
20373
20374         * manual/fdl.texi: File removed.
20375         * manual/lesser.texi: File removed.
20376         * manual/libc.texinfo (Copying, Documentation License):
20377         Use new @include file names, put @appendix directive before @include.
20378
20379 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
20380
20381         [BZ #12841]
20382         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
20383         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
20384         (mq_open): Add __NTH.
20385
20386 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
20387
20388         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20389         Assume Intel Core i3/i5/i7 processor if AVX is available.
20390
20391 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
20392
20393         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
20394         typo.
20395
20396 2011-05-31  Andreas Schwab  <schwab@redhat.com>
20397
20398         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
20399         memory.  Use alloca_account.  Fix memory leak when retrying.
20400
20401 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
20402
20403         * version.h (RELEASE): Bump for 2.14 release.
20404         * include/features.h (__GLIBC_MINOR__): Bump to 14.
20405
20406         * config.make.in (RANLIB): Remove entry.
20407
20408 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
20409
20410         * po/Makefile (po-sed-cmd): Add ksh to extensions.
20411         (libc.pot): Work around missing support for .ksh extension in xgettext.
20412
20413         [BZ #12684]
20414         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
20415         if both request failed.
20416         (send_dg): In case of server errors clear resplen or *resplen2.
20417
20418         [BZ #12454]
20419         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
20420         when there are multiple maps.
20421         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
20422         (_dl_fini): Remove test here.
20423
20424         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
20425
20426 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
20427
20428         [BZ #12350]
20429         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
20430         bit from old_res_options.
20431         (gaih_inet): Likewise.
20432
20433         [BZ #11099]
20434         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
20435         as signed.
20436
20437         * resolv/res_init.c (res_setoptions): Make the code more compact.
20438
20439         [BZ #11558]
20440         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
20441         set RES_USEVC.
20442
20443         [BZ #11634]
20444         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
20445
20446         * malloc/malloc.h: Mark malloc hook variables as deprecated.
20447
20448         [BZ #11781]
20449         * malloc/malloc.h: Declare malloc hook variables as volatile.
20450
20451         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
20452         in last patch.
20453
20454         [BZ #11799]
20455         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
20456         raise in the comment.
20457         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
20458         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
20459         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
20460
20461 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
20462
20463         [BZ #12811]
20464         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
20465         grow the buffers more if it already has to be sufficient.
20466         (build_wcs_upper_buffer): Likewise.
20467         * posix/regexec.c (check_matching): Likewise.
20468         (clean_state_log_if_needed): Likewise.
20469         (extend_buffers): Don't enlarge buffers beyond size of the input
20470         buffer.
20471         Patches mostly by Emil Wojak <emil@wojak.eu>.
20472         * posix/bug-regex32.c: New file.
20473         * posix/Makefile (tests): Add bug-regex32.
20474
20475         * locale/findlocale.c (_nl_find_locale): Return right away if
20476         _nl_explode_name failed.
20477         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
20478
20479         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
20480
20481         * debug/xtrace.sh: Unify messages.
20482         * malloc/memusage.sh: Likewise.
20483
20484         [BZ #12813]
20485         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
20486         time symbol from vDSO.  Substitute with vsyscall if not available.
20487         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
20488         __vdso_time.
20489
20490         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
20491         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
20492         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
20493         Add sendmmsg and internal_sendmmsg.
20494         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
20495         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
20496         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
20497
20498         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
20499         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
20500         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
20501
20502 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
20503
20504         [BZ #12813]
20505         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
20506         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
20507         available.
20508         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
20509         __vdso_getcpu.
20510
20511         [BZ #12814]
20512         * iconvdata/Makefile (tests): Add bug-iconv9.
20513         * iconvdata/bug-iconv9.c: New file.
20514
20515 2011-05-27  Andreas Schwab  <schwab@redhat.com>
20516
20517         [BZ #12814]
20518         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
20519
20520 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
20521
20522         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
20523         (struct user_regs_struct): Change intcs field back to cs.
20524
20525 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
20526
20527         * po/ja.po: Update from translation team.
20528
20529 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
20530
20531         [BZ #12795]
20532         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
20533         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
20534
20535 2011-05-20  Andreas Schwab  <schwab@redhat.com>
20536
20537         * stdlib/longlong.h: Update from GCC.
20538
20539 2011-05-23  Andreas Schwab  <schwab@redhat.com>
20540
20541         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
20542         parameter name.
20543         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
20544         Add parameter name.
20545         (__sysconf): Pass it down.
20546
20547 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
20548
20549         [BZ #12671]
20550         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
20551         some situations.
20552         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
20553         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
20554         add in in __libc_use_alloca calls.  Adjust callers.
20555         (glob): Use malloc in some situations.
20556
20557         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
20558         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
20559         pltexit.
20560
20561 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
20562
20563         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
20564         and CLOCK_BOOTTIME_ALARM.
20565
20566         [BZ #12782]
20567         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
20568         is returned.
20569
20570         * string/_strerror.c (__strerror_r): Print negative errors as signed
20571         numbers.
20572
20573         [BZ #12777]
20574         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
20575         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
20576         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
20577
20578         * configure.in: Fix typo in redirection and correct removal of test
20579         files in two cases.
20580
20581         [BZ #12788]
20582         * locale/setlocale.c (new_composite_name): Fix test to check for
20583         identical name of all categories.
20584
20585         [BZ #12792]
20586         * libio/filedoalloc.c (local_isatty): New function.
20587         (_IO_file_doallocate): Use local_isatty.
20588         * stdio-common/perror.c (perror): In case a new stream is used
20589         forward the stream error.
20590         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
20591         error flag.
20592
20593 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
20594
20595         [BZ #11869]
20596         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
20597         alloca.
20598         * include/alloca.h (extend_alloca_account): Define.
20599
20600         [BZ #11857]
20601         * posix/regex.h: Fix comments with documentation of user-accessible
20602         fields after compilation and describe correct free'ing of pattern
20603         after re_compile_pattern.
20604         Patch by Reuben Thomas <rrt@sc3d.org>.
20605
20606 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
20607
20608         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
20609         and -mno-altivec to prevent the compiler from using Altivec and/or
20610         VSX instructions when the corresponding registers are not available.
20611
20612 2011-05-19  Andreas Schwab  <schwab@redhat.com>
20613
20614         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
20615
20616 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
20617
20618         * libio/freopen.c (freopen): Use __dup2, not dup2.
20619         * libio/freopen64.c (freopen64): Likewise.
20620
20621 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
20622
20623         [BZ #12775]
20624         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
20625         * math/Makefile (tests): Add test-powl.
20626         (CFLAGS-test-powl.c): Define.
20627         * math/test-powl.c: New file.
20628
20629 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20630
20631         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
20632
20633 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
20634
20635         [BZ #11837]
20636         * iconvdata/gb18030.c: Update to GB18020-2005.
20637
20638 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
20639
20640         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
20641         RE_SYNTAX_POSIX_AWK): Update to match recent development.
20642         Patch by Aharon Robbins <arnold@skeeve.com>.
20643
20644         [BZ #11892]
20645         * stdlib/putenv.c (putenv): Don't always create copy of the variable
20646         on the stack.
20647
20648         [BZ #11895]
20649         * misc/pselect.c (__pselect): Handle timeout value errors hidden
20650         through underflows.
20651
20652         [BZ #12766]
20653         * misc/error.c (error_at_line): Ensure file_name and old_file_name
20654         point to strings before performing equality test for error_one_per_line
20655         mode.
20656
20657         [BZ #11697]
20658         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
20659
20660         [BZ #11820]
20661         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
20662         (struct user_fpregs_struct): Avoid __uint*_t types.
20663
20664         [BZ #6420]
20665         * malloc/mtrace.c (tr_where): Add additional parameter to point to
20666         symbol info.  Use it instead of calling _dl_addr locally.
20667         (lock_and_info): New function.
20668         (tr_freehook): Call lock_and_info and pass symbol info as additional
20669         parameter to tr_where.
20670         (tr_mallochook): Likewise.
20671         (tr_reallochook): Likewise.
20672         (tr_memalignhook): Likewise.
20673
20674         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
20675         used and couldn't be at all thread-safe.
20676
20677 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
20678
20679         * libio/freopen.c (freopen): Don't close old file descriptor
20680         before the new one is opened.  Instead dup the new file descriptor
20681         to the old one after the new stream is created.
20682         * libio/freopen64.c (freopen64): Likewise.
20683         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
20684         * libio/fileops.c (_IO_new_file_close_it): Handle new
20685         _IO_FLAGS2_NOCLOSE flag.
20686         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
20687         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
20688         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
20689         _IO_FLAGS2_NOCLOSE flag.
20690         * include/unistd.h: Add hidden_proto for dup3.
20691         Define __have_dup3.
20692         * io/dup3.c: Define hidden symbol.
20693         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
20694
20695         [BZ #7101]
20696         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
20697         when an incomplete long option is used.
20698         * posix/tst-getopt_long1.c: New file.
20699         * posix/Makefile (tests): Add tst-getopt_long1.
20700
20701         [BZ #10138]
20702         * scripts/config.guess: Update from autoconf-2.68.
20703         * scripts/config.sub: Likewise.
20704
20705         [BZ #10157]
20706         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
20707         tests into ...
20708         (has_cpuclock): ...this.  New function.
20709         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
20710         macro here based on has_cpuclock code.
20711
20712         [BZ #10149]
20713         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
20714         First byte (not low byte) is now always NUL.
20715         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
20716
20717         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
20718         Use non-cancelable interfaces.
20719
20720         [BZ #9809]
20721         * locale/iso-639.def: Add entry for Sorani.
20722
20723         [BZ #11901]
20724         * include/stdlib.h: Move include protection to the right place.
20725         Define abort_msg_s.  Declare __abort_msg with it.
20726         * stdlib/abort.c (__abort_msg): Adjust type.
20727         * assert/assert.c (__assert_fail_base): New function.  Majority
20728         of code from __assert_fail.  Allocate memory for __abort_msg with
20729         mmap.
20730         (__assert_fail): Now call __assert_fail_base.
20731         * assert/assert-perr.c: Remove bulk of implementation.  Use
20732         __assert_fail_base.
20733         * include/assert.hL Declare __assert_fail_base.
20734         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
20735         mmap.
20736         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
20737
20738 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
20739
20740         [BZ #11952]
20741         [BZ #12453]
20742         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
20743         until all modules are registered in the DTV.
20744         * elf/Makefile: Add rules to build and run tst-tls19.
20745         * elf/tst-tls19.c: New file.
20746         * elf/tst-tls19mod1.c: New file.
20747         * elf/tst-tls19mod2.c: New file.
20748         * elf/tst-tls19mod3.c: New file.
20749         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
20750
20751         [BZ #12083]
20752         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
20753         correctly.
20754
20755         [BZ #12601]
20756         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
20757         two-byte sequence errors.
20758         * iconvdata/Makefile (tests): Add bug-iconv8.
20759         * iconvdata/bug-iconv8.c: New file.
20760
20761         [BZ #12626]
20762         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
20763         buf2 definition.
20764
20765         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
20766
20767         [BZ #12432]
20768         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
20769         (dummy_getcfa): New function.
20770         (init): Get _Unwind_GetCFA address, use dummy if not found.
20771         (backtrace_helper): In recursion check, also check whether CFA changes.
20772         (__backtrace): Completely initialize arg.
20773
20774         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
20775         storing incomplete byte sequence in state object.  Avoid testing for
20776         guaranteed too small input if we know there is enough data available.
20777
20778 2011-05-11  Andreas Schwab  <schwab@redhat.com>
20779
20780         * Makeconfig (+link-pie): Indent.
20781         * Rules (binaries-pie): Define if $(have-fpie) and
20782         $(build-shared).
20783         (binaries-shared): Also filter out $(binaries-pie).
20784         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
20785         * nscd/Makefile (others-pie): Add nscd.
20786         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
20787         ($(objpfx)nscd): Remove command override.
20788         * login/Makefile (others-pie): Add pt_chown.
20789         ($(objpfx)pt_chown): Remove command override.
20790         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
20791         remove command overrides.
20792
20793 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
20794
20795         * libio/tst_putwc.c: Fix error messages.
20796
20797         [BZ #12724]
20798         * libio/fileops.c (_IO_new_file_close_it): Always flush when
20799         currently writing and seek to current position when not.
20800         * libio/Makefile (tests): Add bug-fclose1.
20801         * libio/bug-fclose1.c: New file.
20802
20803 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
20804
20805         [BZ #12511]
20806         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
20807         don't set DF_1_NODELETE here.
20808         (do_lookup_x): When entering new entry test for copy relocation
20809         and if necessary set DF_1_NODELETE flag.
20810         * elf/tst-unique4.cc: New file.
20811         * elf/tst-unique4.h: New file.
20812         * elf/tst-unique4lib.cc: New file.
20813         * elf/Makefile: Add rules to build and run tst-unique4.
20814         Patch by Piotr Bury <pbury@goahead.com>.
20815
20816 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20817
20818         [BZ #12052]
20819         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
20820
20821         [BZ #12625]
20822         * misc/mntent_r.c (addmntent): Flush the stream after the output
20823
20824         [BZ #12393]
20825         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
20826         (is_trusted_path_normalize): Skip initial colon.  Append slash
20827         to empty buffer.  Duplicate is_trusted_path code but allow
20828         constructed patch to be prefix.
20829         (is_dst): Allow $ORIGIN followed by /.
20830         (_dl_dst_substitute): Correct clearing of check_for_trusted.
20831         Correct testing of result of is_trusted_path_normalize
20832         (decompose_rpath): Fix warning.
20833
20834 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
20835
20836         [BZ #11257]
20837         * grp/initgroups.c (internal_getgrouplist): When we found the service
20838         list through the initgroups entry in nsswitch.conf do not always
20839         continue on a successful lookup.  Don't always use the
20840         __nss_group_database value if it is set.
20841         * nss/nsswitch.conf (initgroups): Change action for successful db
20842         lookup to continue for compatibility.
20843
20844 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
20845
20846         [BZ #11532]
20847         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
20848         and CP774 modules.
20849         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
20850         and CP774 modules.
20851         * iconvdata/tst-tables.sh: Likewise.
20852         * iconvdata/cp770.c: New file.
20853         * iconvdata/cp771.c: New file.
20854         * iconvdata/cp772.c: New file.
20855         * iconvdata/cp773.c: New file.
20856         * iconvdata/cp774.c: New file.
20857         * iconvdata/testdata/CP770: New file.
20858         * iconvdata/testdata/CP770..UTF8: New file.
20859         * iconvdata/testdata/CP771: New file.
20860         * iconvdata/testdata/CP771..UTF8: New file.
20861         * iconvdata/testdata/CP772: New file.
20862         * iconvdata/testdata/CP772..UTF8: New file.
20863         * iconvdata/testdata/CP773: New file.
20864         * iconvdata/testdata/CP773..UTF8: New file.
20865         * iconvdata/testdata/CP774: New file.
20866         * iconvdata/testdata/CP774..UTF8: New file.
20867
20868         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
20869         END CHARMAP line.
20870         * iconvdata/gen-8bit-gap.sh: Likewise.
20871         * iconvdata/gen-8bit.sh: Likewise.
20872
20873         * locale/iso-639.def: Add ary entry.
20874
20875         [BZ #11258]
20876         * locale/C-translit.h.in: Add U20A1 transliteration.
20877
20878         [BZ #12178]
20879         * locale/iso-639.def: Add wae entry.
20880         Patch by Kevin Bortis <bortis@translate-wae.ch>.
20881
20882         [BZ #12545]
20883         * locale/programs/localedef.c (construct_output_path): Use ssize_t
20884         for n.
20885
20886         [BZ #12711]
20887         * locale/C-translit.h.in: Add entry for U20B9.
20888         Patch by pravin.d.s@gmail.com.
20889
20890 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
20891
20892         [BZ #12713]
20893         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
20894         ENAMETOOLONG use generic getcwd.
20895         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
20896         in rtld.  Use *stat64.
20897         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
20898         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
20899         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
20900         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
20901         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
20902         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
20903         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
20904         __fstatat64 macros.
20905         * include/dirent.h: Add libc_hidden_proto for rewinddir.
20906         * dirent/rewinddir.c: Add libc_hidden_def.
20907         * sysdeps/mach/hurd/rewinddir.c: Likewise.
20908         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
20909
20910         * include/dirent.h (__alloc_dir): Add flags parameter.
20911         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
20912         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
20913         __alloc_dir.
20914         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
20915         from fdopendir if O_CLOEXEC is already set.
20916
20917 2011-03-15  Alan Modra  <amodra@gmail.com>
20918
20919         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
20920         l_tls_firstbyte_offset non-zero.  Save padding offset in
20921         l_tls_firstbyte_offset for later use.
20922         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
20923         freeing static tls block.
20924
20925 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
20926
20927         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
20928         where #ifdef was intended.  The intent is to prevent ARG_MAX from
20929         being defined by the kernel headers.
20930
20931 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
20932
20933         [BZ #12734]
20934         * resolv/resolv.h: Define RES_NOTLDQUERY.
20935         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
20936         no-tld-query and set RES_NOTLDQUERY.
20937         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
20938         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
20939         modern BIND to search name as TLD unless forbidden.
20940
20941 2011-05-07  Petr Baudis  <pasky@suse.cz>
20942             Ulrich Drepper  <drepper@gmail.com>
20943
20944         [BZ #12393]
20945         * elf/dl-load.c (fillin_rpath): Move trusted path check...
20946         (is_trusted_path): ...to here.
20947         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
20948         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
20949         using is_trusted_path_normalize() in setuid scripts.
20950
20951 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20952
20953         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
20954         __BEGIN/__END_DECLS.
20955
20956 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
20957
20958         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
20959         NSS_STATUS_NOTFOUND if no record was found.
20960
20961 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20962
20963         * sunrpc/Makefile (headers): Add rpc/netdb.h.
20964         (headers-not-in-tirpc): Remove rpc/netdb.h
20965         * resolv/netdb.h: Revert last change.
20966
20967 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20968
20969         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
20970         circular dependency between libgcc.a and libc.a.
20971
20972 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20973
20974         * resolv/netdb.h: Don't include <rpc/netdb.h>.
20975         * nis/Makefile: Don't install rpcsvc/*.
20976         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
20977         instead of <rpc/types.h>.
20978         (MAXHOSTNAMELEN): Define.
20979
20980 2011-05-03  Andreas Schwab  <schwab@redhat.com>
20981
20982         * elf/ldconfig.c (add_dir): Don't crash on empty path.
20983
20984 2011-04-28  Maciej Babinski  <mbabinski@google.com>
20985
20986         [BZ #12714]
20987         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
20988         gethostbyname4_r when IPv6 results are possible.
20989
20990 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
20991
20992         [BZ #12723]
20993         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
20994         _PC_PIPE_BUF handling.
20995
20996 2011-04-30  Bruno Haible  <bruno@clisp.org>
20997
20998         [BZ #12717]
20999         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
21000         * resolv/netdb.h (getnameinfo): Change type of flags parameter
21001         to 'int'.
21002         * inet/getnameinfo.c (getnameinfo): Likewise.
21003
21004 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
21005
21006         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
21007         to groups setting in database lookup.
21008         * nss/nsswitch.conf: Add initgroups entry.
21009
21010 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
21011
21012         [BZ #12685]
21013         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
21014         mode string.
21015         Patch by Eric Blake <eblake@redhat.com>.
21016
21017 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
21018
21019         * sunrpc/Makefile (need-export-routines): Add svc_run.
21020         (routines): Remove svc_run.
21021         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
21022         * sunrpc/clnt_perr.c (clnt_perrno): Export.
21023         * sunrpc/svc_run.c (svc_run): Likewise.
21024         * sunrpc/svc_udp.c (svcudp_create): Likewise.
21025
21026 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
21027
21028         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
21029         problem in reallocation in last patch.
21030
21031 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
21032
21033         * sunrpc/Makefile: Move inclusion of Rules.
21034
21035 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
21036
21037         * nss/nss_files/files-initgroups.c: New file.
21038         * nss/Makefile (libnss_files-routines): Add files-initgroups.
21039         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
21040         _nss_files_initgroups_dyn.
21041
21042 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
21043
21044         * elf/elf.h (R_ARM_IRELATIVE): Define.
21045
21046 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
21047
21048         * po/ru.po: Update from translation team.
21049
21050 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
21051
21052         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
21053         dependencies.
21054
21055 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
21056
21057         [BZ #12653]
21058         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
21059         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
21060         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
21061         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
21062         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
21063
21064 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
21065
21066         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
21067         differing bytes.
21068         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
21069         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
21070         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
21071
21072 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
21073
21074         [BZ #12420]
21075         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
21076         storing it.
21077         * stdlib/bug-getcontext.c: New file.
21078         * stdlib/Makefile: Add rules to build and run bug-getcontext.
21079
21080 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21081
21082         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
21083         instructions into .machine "z9-109".
21084         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
21085         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
21086
21087 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21088
21089         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
21090         between environment variables and auxiliary vector.
21091
21092 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
21093
21094         * Makefile: Add rules to build linkobj/libc.so.
21095         * include/libc-symbols.h: Define libc_hidden_nolink.
21096         * include/rpc/auth.h: Mark functions which are to be hidden.
21097         * include/rpc/auth_des.h: Likewise.
21098         * include/rpc/auth_unix.h: Likewise.
21099         * include/rpc/clnt.h: Likewise.
21100         * include/rpc/des_crypt.h: Likewise.
21101         * include/rpc/key_prot.h: Likewise.
21102         * include/rpc/pmap_clnt.h: Likewise.
21103         * include/rpc/pmap_prot.h: Likewise.
21104         * include/rpc/pmap_rmt.h: Likewise.
21105         * include/rpc/rpc_msg.h: Likewise.
21106         * include/rpc/svc.h: Likewise.
21107         * include/rpc/svc_auth.h: Likewise.
21108         * include/rpc/xdr.h: Likewise.
21109         * nis/Makefile: Link all DSOs against linkobj/libc.so.
21110         * nss/Makefile: Likewise.
21111         * sunrpc/Makefile: Don't install headers.  Build library with normal
21112         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
21113         * sunrpc/auth_des.c: Hide exported symbols by default, export some
21114         for the compat linking library.  Remove use of INTDEF/INTUSE.
21115         * sunrpc/auth_none.c: Likewise.
21116         * sunrpc/auth_unix.c: Likewise.
21117         * sunrpc/authdes_prot.c: Likewise.
21118         * sunrpc/authuxprot.c: Likewise.
21119         * sunrpc/clnt_gen.c: Likewise.
21120         * sunrpc/clnt_perr.c: Likewise.
21121         * sunrpc/clnt_raw.c: Likewise.
21122         * sunrpc/clnt_simp.c: Likewise.
21123         * sunrpc/clnt_tcp.c: Likewise.
21124         * sunrpc/clnt_udp.c: Likewise.
21125         * sunrpc/clnt_unix.c: Likewise.
21126         * sunrpc/des_crypt.c: Likewise.
21127         * sunrpc/des_soft.c: Likewise.
21128         * sunrpc/get_myaddr.c: Likewise.
21129         * sunrpc/key_call.c: Likewise.
21130         * sunrpc/key_prot.c: Likewise.
21131         * sunrpc/netname.c: Likewise.
21132         * sunrpc/pm_getmaps.c: Likewise.
21133         * sunrpc/pm_getport.c: Likewise.
21134         * sunrpc/pmap_clnt.c: Likewise.
21135         * sunrpc/pmap_prot.c: Likewise.
21136         * sunrpc/pmap_prot2.c: Likewise.
21137         * sunrpc/pmap_rmt.c: Likewise.
21138         * sunrpc/publickey.c: Likewise.
21139         * sunrpc/rpc_cmsg.c: Likewise.
21140         * sunrpc/rpc_common.c: Likewise.
21141         * sunrpc/rpc_dtable.c: Likewise.
21142         * sunrpc/rpc_prot.c: Likewise.
21143         * sunrpc/rpc_thread.c: Likewise.
21144         * sunrpc/rtime.c: Likewise.
21145         * sunrpc/svc.c: Likewise.
21146         * sunrpc/svc_auth.c: Likewise.
21147         * sunrpc/svc_authux.c: Likewise.
21148         * sunrpc/svc_raw.c: Likewise.
21149         * sunrpc/svc_run.c: Likewise.
21150         * sunrpc/svc_simple.c: Likewise.
21151         * sunrpc/svc_tcp.c: Likewise.
21152         * sunrpc/svc_udp.c: Likewise.
21153         * sunrpc/svc_unix.c: Likewise.
21154         * sunrpc/svcauth_des.c: Likewise.
21155         * sunrpc/xcrypt.c: Likewise.
21156         * sunrpc/xdr.c: Likewise.
21157         * sunrpc/xdr_array.c: Likewise.
21158         * sunrpc/xdr_float.c: Likewise.
21159         * sunrpc/xdr_intXX_t.c: Likewise.
21160         * sunrpc/xdr_mem.c: Likewise.
21161         * sunrpc/xdr_rec.c: Likewise.
21162         * sunrpc/xdr_ref.c: Likewise.
21163         * sunrpc/xdr_sizeof.c: Likewise.
21164         * sunrpc/xdr_stdio.c: Likewise.
21165
21166 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
21167
21168         [BZ #12650]
21169         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
21170         * sysdeps/ia64/dl-tls.h: Likewise.
21171         * sysdeps/powerpc/dl-tls.h: Likewise.
21172         * sysdeps/s390/dl-tls.h: Likewise.
21173         * sysdeps/sh/dl-tls.h: Likewise.
21174         * sysdeps/sparc/dl-tls.h: Likewise.
21175         * sysdeps/x86_64/dl-tls.h: Likewise.
21176         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
21177
21178 2011-03-14  Andreas Schwab  <schwab@redhat.com>
21179
21180         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
21181         rpath element also skip the following colon.
21182         (expand_dynamic_string_token): Add is_path parameter and pass
21183         down to DL_DST_REQUIRED and _dl_dst_substitute.
21184         (decompose_rpath): Call expand_dynamic_string_token with
21185         non-zero is_path.  Ignore empty rpaths.
21186         (_dl_map_object_from_fd): Call expand_dynamic_string_token
21187         with zero is_path.
21188
21189 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
21190
21191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
21192         Make cancelable.
21193
21194 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
21195
21196         [BZ #12655]
21197         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
21198         Patch by Filipe David Manana <fdmanana@apache.org>.
21199
21200 2011-04-07  Andreas Schwab  <schwab@redhat.com>
21201
21202         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
21203         Maintain aligned stack.
21204         (CHECK_RSP): Remove unused macro.
21205
21206 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
21207
21208         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
21209         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
21210
21211 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
21212
21213         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
21214
21215         * include/features.h: Mention __USE_XOPEN2K8 in comment.
21216
21217 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
21218
21219         [BZ #12518]
21220         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
21221         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
21222         * sysdeps/x86_64/memmove.c: New file.
21223         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
21224         (memcpy): Renamed to ...
21225         (__new_memcpy): This.
21226         (memcpy): Provide GLIBC_2_14 memcpy.
21227         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
21228         (memcpy): Provide GLIBC_2_2_5 memcpy.
21229
21230 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
21231
21232         [BZ #12631]
21233         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
21234
21235 2011-03-30  Andreas Schwab  <schwab@redhat.com>
21236
21237         * misc/syncfs.c: New file.
21238         * misc/Makefile (routines): Add syncfs.
21239         * posix/unistd.h: Declare syncfs.
21240         * sysdeps/unix/syscalls.list: Add syncfs.
21241
21242 2011-04-01  Andreas Schwab  <schwab@redhat.com>
21243
21244         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
21245         open_by_handle_at.
21246         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
21247         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
21248         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
21249         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
21250         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
21251         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
21252         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
21253
21254 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
21255
21256         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
21257         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
21258         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
21259         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
21260         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
21261         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
21262         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
21263
21264         * io/Makefile: Compile fallocate.c, fallocate64.c, and
21265         sync_file_range.c with -fexceptions.
21266         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
21267         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
21268         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
21269         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
21270         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
21271         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
21272         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
21273         sync_file_range as cancellation point
21274         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
21275         now a wrapper around __call_sync_file_range with cancellation handling.
21276         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
21277         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
21278         function name to __call_sync_file_range.
21279         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
21280         Add call_sync_file_range.
21281
21282 2011-04-01  Andreas Schwab  <schwab@redhat.com>
21283
21284         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21285         bits/timex.h.
21286
21287 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
21288
21289         * iconv/iconv.h: Fix typo in comment.
21290         * io/fcntl.h: Likewise.
21291         * libio/stdio.h: Likewise.
21292         * posix/spawn.h: Likewise.
21293         * posix/unistd.h: Likewise.
21294         * stdlib/stdlib.h: Likewise.
21295         * time/time.h: Likewise.
21296         * wcsmbs/wchar.h: Likewise.
21297
21298         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
21299         open_by_handle): Add.
21300         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
21301         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
21302         Augment a few comments.
21303         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
21304         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
21305         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
21306         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
21307         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
21308         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
21309         open_by_handle.
21310
21311         * io/fcntl.h (AT_EMPTY_PATH): Define.
21312
21313 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
21314
21315         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
21316         * sysdeps/unix/sysv/linux/bits/time.h: New file.
21317         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
21318         to...
21319         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
21320         * Versions.def: Add GLIBC_2.14.
21321         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
21322         Export.
21323
21324 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
21325
21326         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
21327         round counter.
21328         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
21329
21330 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
21331
21332         [BZ #12597]
21333         * string/test-strncmp.c (do_page_test): New function.
21334         (check2): Likewise.
21335         (test_main): Call check2.
21336         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
21337
21338 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
21339
21340         [BZ #12587]
21341         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
21342         Handle cache information in CPU leaf 4.
21343         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
21344
21345 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
21346
21347         [BZ #12583]
21348         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
21349         character representation.
21350         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
21351
21352 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
21353
21354         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
21355         END(__isnan) to END(__isnanf) to match function entry point/label
21356         EALIGN(__isnanf,...).
21357
21358 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
21359
21360         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
21361
21362 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
21363
21364         [BZ #12510]
21365         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
21366         copy from the symbol referenced in the relocation to initialize the
21367         used variable.
21368         Patch by Piotr Bury <pbury@goahead.com>.
21369         * elf/Makefile: Add rules to build and tst-unique3.
21370         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
21371         * elf/tst-unique3.cc: New file.
21372         * elf/tst-unique3.h: New file.
21373         * elf/tst-unique3lib.cc: New file.
21374         * elf/tst-unique3lib2.cc: New file.
21375
21376         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
21377
21378 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
21379
21380         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
21381         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
21382         to _start.
21383
21384 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
21385
21386         * elf/dl-load.c (_dl_map_object): If we are looking for the first
21387         to-be-loaded object along a path to loader is ld.so.
21388
21389 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
21390             Ulrich Drepper  <drepper@gmail.com>
21391
21392         * sysdeps/x86_64/memset.S: After aligning destination, code
21393         branches to different locations depending on the value of
21394         misalignment, when multiarch is enabled. Fix this.
21395
21396 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
21397
21398         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
21399         Set _x86_64_preferred_memory_instruction for AMD processsors.
21400         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21401         Set bit_Prefer_SSE_for_memop for AMD processors.
21402
21403 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
21404
21405         * libio/fmemopen.c (fmemopen): Optimize a bit.
21406
21407 2011-03-03  Andreas Schwab  <schwab@redhat.com>
21408
21409         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
21410
21411 2011-03-03  Roland McGrath  <roland@redhat.com>
21412
21413         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
21414
21415 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
21416
21417         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
21418         __bzero_ultra1 instead of __memset_ultra1.
21419
21420 2011-02-23  Andreas Schwab  <schwab@redhat.com>
21421             Ulrich Drepper  <drepper@gmail.com>
21422
21423         [BZ #12509]
21424         * include/link.h (struct link_map): Add l_orig_initfini.
21425         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
21426         returning unsuccessfully.
21427         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
21428         close of a file loaded at startup, restore the original l_initfini
21429         list.
21430         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
21431         list, store the pointer.
21432         * elf/Makefile ($(objpfx)noload-mem): New rule.
21433         (noload-ENV): Define.
21434         (tests): Add $(objpfx)noload-mem.
21435         * elf/noload.c: Include <memcheck.h>.
21436         (main): Call mtrace.  Close all opened handles.
21437
21438 2011-02-17  Andreas Schwab  <schwab@redhat.com>
21439
21440         [BZ #12454]
21441         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
21442         dependencies are missing.
21443
21444 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21445
21446         Fix __if_freereq crash: Unlike the generic version which uses free,
21447         Hurd needs munmap.
21448         * sysdeps/mach/hurd/ifreq.h: New file.
21449
21450 2011-01-27  Petr Baudis  <pasky@suse.cz>
21451             Ulrich Drepper  <drepper@gmail.com>
21452
21453         [BZ 12445]#
21454         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
21455         to extend_alloca().
21456         * stdio-common/bug23.c: New file.
21457         * stdio-common/Makefile (tests): Add bug23.
21458
21459 2010-09-28  Andreas Schwab  <schwab@redhat.com>
21460             Ulrich Drepper  <drepper@gmail.com>
21461
21462         [BZ #12489]
21463         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
21464         before performing relro protection.  At old place add assertion
21465         to make sure nothing changed.
21466
21467 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
21468             Glauber de Oliveira Costa  <glommer@gmail.com>
21469
21470         * elf/elf.h: Add new ARM TLS relocs.
21471
21472 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
21473
21474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
21475         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
21476         cast from r3.
21477         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
21478         'tests' variable.
21479         * sysdeps/wordsize-64/tst-writev.c: New file.
21480
21481 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
21482
21483         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
21484         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
21485         insns in _dl_start to prevent a TOC reference before relocs are
21486         resolved.
21487
21488 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
21489
21490         [BZ #12469]
21491         * Makeconfig: Remove RANLIB definition.
21492         * Makerules: Don't use RANLIB.
21493         * aclocal.m4: Remove ranlib test.
21494         * configure.in: No need to check for ranlib.
21495         * elf/rtld-Rules: Don't use RANLIB.
21496
21497 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21498
21499         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
21500         protection macro.
21501         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
21502         inclusion protection macro.
21503
21504         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
21505         SIGRTMIN and SIGRTMAX and print information in that case only when
21506         SIGRTMIN is defined.
21507
21508 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
21509
21510         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
21511         arginfo fn returning -1.
21512
21513         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
21514         and thousands string is zero terminated.
21515
21516 2011-02-03  Andreas Schwab  <schwab@redhat.com>
21517
21518         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
21519         sysdeps/unix/sysv/linux/bits/socket.h.
21520
21521 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21522
21523         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
21524         (__CPU_COUNT): Remove old macros.
21525         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
21526         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
21527         (__CPU_ALLOC, __CPU_FREE): Add macros.
21528         (__sched_cpualloc, __sched_cpufree): Add declarations.
21529
21530 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
21531
21532         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
21533         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
21534         * nscd/aicache.c (addhstaiX): Return timeout of added value.
21535         (readdhstai): Return value of addhstaiX call.
21536         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
21537         (addgrbyX): Return value returned by cache_addgr.
21538         (readdgrbyname): Return value returned by addgrbyX.
21539         (readdgrbygid): Likewise.
21540         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
21541         (addpwbyX): Return value returned by cache_addpw.
21542         (readdpwbyname): Return value returned by addhstbyX.
21543         (readdpwbyuid): Likewise.
21544         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
21545         (addservbyX): Return value returned by cache_addserv.
21546         (readdservbyname): Return value returned by addservbyX:
21547         (readdservbyport): Likewise.
21548         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
21549         (addhstbyX): Return value returned by cache_addhst.
21550         (readdhstbyname): Return value returned by addhstbyX.
21551         (readdhstbyaddr): Likewise.
21552         (readdhstbynamev6): Likewise.
21553         (readdhstbyaddrv6): Likewise.
21554         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
21555         (readdinitgroups): Return value returned by addinitgroupsX.
21556         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
21557         (prune_cache): Keep track of timeout value of re-added entries.
21558         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
21559         * nscd/nscd.h: Adjust prototypes of readd* functions.
21560
21561 2011-02-04  Roland McGrath  <roland@redhat.com>
21562
21563         * nis/nis_server.c (nis_servstate): Use the right name for 0.
21564         (nis_stats): Likewise.
21565         * nis/nis_modify.c (nis_modify): Likewise.
21566         * nis/nis_remove.c (nis_remove): Likewise.
21567         * nis/nis_add.c (nis_add): Likewise.
21568
21569         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
21570
21571         * posix/fnmatch_loop.c: Add some consts.
21572
21573         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
21574
21575 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
21576
21577         [BZ #12460]
21578         * config.make.in (config-cflags-novzeroupper): Define.
21579         * configure.in: Substitute libc_cv_cc_novzeroupper.
21580         * elf/Makefile (AVX-CFLAGS): Define.
21581         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
21582         (CFLAGS-tst-auditmod4a.c): Likewise.
21583         (CFLAGS-tst-auditmod4b.c): Likewise.
21584         (CFLAGS-tst-auditmod6b.c): Likewise.
21585         (CFLAGS-tst-auditmod6c.c): Likewise.
21586         (CFLAGS-tst-auditmod7b.c): Likewise.
21587         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
21588
21589 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
21590
21591         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
21592         function to the callback.
21593         Patch partly by Jiri Olsa <jolsa@redhat.com>.
21594
21595 2011-02-02  Andreas Schwab  <schwab@redhat.com>
21596
21597         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
21598         of errno.
21599
21600 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
21601
21602         [BZ #11724]
21603         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
21604         of constructors.
21605         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
21606         of destructors.
21607         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
21608
21609         [BZ #11724]
21610         * elf/Makefile: Add rules to build and run new test.
21611         * elf/tst-initorder.c: New file.
21612         * elf/tst-initorder.exp: New file.
21613         * elf/tst-initordera1.c: New file.
21614         * elf/tst-initordera2.c: New file.
21615         * elf/tst-initordera3.c: New file.
21616         * elf/tst-initordera4.c: New file.
21617         * elf/tst-initorderb1.c: New file.
21618         * elf/tst-initorderb2.c: New file.
21619         * elf/tst-order-a1.c: New file.
21620         * elf/tst-order-a2.c: New file.
21621         * elf/tst-order-a3.c: New file.
21622         * elf/tst-order-a4.c: New file.
21623         * elf/tst-order-b1.c: New file.
21624         * elf/tst-order-b2.c: New file.
21625         * elf/tst-order-main.c: New file.
21626         New test case by George Gensure <werkt0@gmail.com>.
21627
21628 2010-10-01  Andreas Schwab  <schwab@redhat.com>
21629
21630         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
21631         decoding ACE if AI_CANONIDN.
21632
21633 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
21634
21635         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
21636
21637 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
21638
21639         * version.h (RELEASE): Bump for 2.13 release.
21640         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
21641
21642         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
21643
21644         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
21645         MADV_NOHUGEPAGE.
21646         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
21647         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
21648         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
21649         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
21650         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
21651         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
21652
21653         * posix/getconf.c: Update copyright year.
21654         * catgets/gencat.c: Likewise.
21655         * csu/version.c: Likewise.
21656         * debug/catchsegv.sh: Likewise.
21657         * debug/xtrace.sh: Likewise.
21658         * elf/ldconfig.c: Likewise.
21659         * elf/ldd.bash.in: Likewise.
21660         * elf/sprof.c (print_version): Likewise.
21661         * iconv/iconv_prog.c: Likewise.
21662         * iconv/iconvconfig.c: Likewise.
21663         * locale/programs/locale.c: Likewise.
21664         * locale/programs/localedef.c: Likewise.
21665         * malloc/memusage.sh: Likewise.
21666         * malloc/mtrace.pl: Likewise.
21667         * nscd/nscd.c (print_version): Likewise.
21668         * nss/getent.c: Likewise.
21669
21670         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
21671         PF_CAIF, and PF_ALG.
21672         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
21673
21674 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
21675
21676         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
21677         (modules-names): Use them.
21678         (ifunc-test-modules, ifunc-pie-tests): Define.
21679         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
21680         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
21681         (test-extras): Likewise.
21682         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
21683         $(compile-command.c).
21684         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
21685         (all-built-dso): Define.
21686         (check-textrel.out, check-execstack.out): Depend on it.
21687
21688         * configure.in: Don't override --enable-multi-arch.
21689
21690 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
21691
21692         [BZ #6812]
21693         * nscd/hstcache.c (tryagain): Define.
21694         (cache_addhst): Return tryagain not notfound for temporary errors.
21695         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
21696         failed.
21697
21698 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
21699
21700         [BZ #10563]
21701         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
21702         to make the syscall.
21703         * sysdeps/unix/sysv/linux/setgroups.c: New file.
21704
21705         [BZ #12378]
21706         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
21707         and fall back to matching as normal character if the string ends before
21708         the matching ']' is found.  This is what POSIX requires.
21709         * posix/testfnm.c: Adjust test result.
21710         * posix/globtest.sh: Adjust test result.  Add new test.
21711         * posix/tst-fnmatch.input: Likewise.
21712         * posix/tst-fnmatch2.c: Add new test.
21713
21714 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
21715
21716         * elf/Makefile (check-execstack): Revert last change.  Depend on
21717         check-execstack.h.
21718         (check-execstack.h): New target.
21719         (generated): Add check-execstack.h.
21720         * elf/check-execstack.c: Include "check-execstack.h".
21721         (main): Revert last change.
21722         (handle_file): Return zero if GNU_STACK is absent and
21723         DEFAULT_STACK_PERMS doesn't include PF_X.
21724
21725 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
21726
21727         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
21728         in child fails because the descriptor is already closed.
21729         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
21730         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
21731         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
21732
21733         [BZ #12397]
21734         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
21735         syscall.
21736
21737         [BZ #10484]
21738         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
21739         temporary buffer used to handle multi lookups locally.
21740         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
21741
21742 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
21743
21744         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
21745         loader is ld.so.
21746
21747 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
21748
21749         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
21750         alignment for SSE2.
21751
21752 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
21753
21754         [BZ #12394]
21755         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
21756         characters.  When rounding increased number of integer digits recompute
21757         number of groups.
21758         * stdio-common/tst-grouping.c: New file.
21759         * stdio-common/Makefile: Add rules to build and run tst-grouping.
21760
21761 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
21762
21763         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
21764         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
21765
21766         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
21767         void.
21768         * bits/select.h: Likewise.
21769
21770 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
21771
21772         * po/ja.po: Update from translation team.
21773
21774 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
21775
21776         [BZ #11155]
21777         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
21778         implementation just like for lxstat, fxstatat, et al.
21779
21780 2010-12-27  Jim Meyering  <meyering@redhat.com>
21781
21782         [BZ #12348]
21783         * posix/regexec.c (build_trtable): Return failure indication upon
21784         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21785
21786 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
21787
21788         [BZ #12201]
21789         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
21790         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
21791         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
21792         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
21793
21794         [BZ #12207]
21795         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
21796
21797         [BZ #12204]
21798         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
21799         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
21800
21801 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
21802
21803         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
21804         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
21805         script has SORT_BY_INIT_PRIORITY.
21806         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
21807         NO_CTORS_DTORS_SECTIONS is defined.
21808         * elf/soinit.c: Likewise.
21809         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
21810         NO_CTORS_DTORS_SECTIONS is defined.
21811         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
21812         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
21813         * sysdeps/sh/init-first.c: Likewise.
21814         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
21815
21816 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
21817
21818         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
21819         always use the slow path.
21820
21821 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
21822
21823         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
21824         similar rule which adds the sysdep directories to the header search in
21825         order to pick up the correct platform stackinfo.h.
21826         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
21827         perform test if it is, otherwise return successfully without testing.
21828         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
21829         DEFAULT_STACK_PERMS define in stackinfo.h.
21830         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
21831         defined in stackinfo.h.
21832         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
21833         DEFAULT_STACK_PERMS defined in stackinfo.h.
21834         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
21835         * sysdeps/ia64/stackinfo.h: Likewise.
21836         * sysdeps/s390/stackinfo.h: Likewise.
21837         * sysdeps/sh/stackinfo.h: Likewise.
21838         * sysdeps/sparc/stackinfo.h: Likewise.
21839         * sysdeps/x86_64/stackinfo.h: Likewise.
21840         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
21841         PF_X for powerpc64.  Retain PF_X for powerpc32.
21842
21843 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
21844
21845         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
21846         accurately.
21847         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
21848         GETDENTS_64BIT_ALIGNED.
21849
21850 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
21851
21852         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
21853
21854 2010-12-10  Andreas Schwab  <schwab@redhat.com>
21855
21856         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
21857         _GNU_SOURCE.
21858
21859         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
21860         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
21861         Remove __restrict.
21862         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
21863         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
21864
21865 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
21866
21867         [BZ #11655]
21868         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
21869         are initialized.
21870
21871 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
21872
21873         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
21874
21875 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
21876
21877         * po/it.po: Update from translation team.
21878
21879 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
21880
21881         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
21882         unused codes.
21883
21884 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
21885
21886         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
21887
21888 2010-11-24  Andreas Schwab  <schwab@redhat.com>
21889
21890         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
21891         specially.
21892         (gaih_getanswer_slice): Likewise.
21893
21894 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
21895
21896         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
21897
21898 2010-05-31  Petr Baudis  <pasky@suse.cz>
21899
21900         [BZ #11149]
21901         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
21902         silently even in the chroot mode.
21903
21904 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
21905
21906         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
21907         last patch a bit.  Pretty printing
21908
21909 2010-05-31  Petr Baudis <pasky@suse.cz>
21910
21911         [BZ #10085]
21912         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
21913         initialization of skip_initgroups_dyn.
21914
21915 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
21916
21917         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
21918         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
21919
21920 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
21921
21922         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
21923
21924 2010-11-11  Andreas Schwab  <schwab@redhat.com>
21925
21926         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
21927         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
21928         (tst-fnmatch-ENV): Set MALLOC_TRACE.
21929         ($(objpfx)tst-fnmatch-mem): New rule.
21930         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
21931         * posix/tst-fnmatch.c (main): Call mtrace.
21932
21933 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
21934
21935         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21936         Support Intel processor model 6 and model 0x2c.
21937
21938 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
21939
21940         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
21941           signed comparison.
21942
21943 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
21944
21945         [BZ #12205]
21946         * string/test-strncasecmp.c (check_result): New function.
21947         (do_one_test): Use it.
21948         (check1): New function.
21949         (test_main): Use it.
21950         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
21951         Support strcasecmp and strncasecmp.
21952
21953 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
21954
21955         [BZ #12194]
21956         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
21957         * sysdeps/x86_64/bits/byteswap.h: Likewise.
21958
21959 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
21960
21961         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
21962         IFUNC support.
21963         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21964         memset-x86-64.
21965         * sysdeps/x86_64/multiarch/bzero.S: New file.
21966         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
21967         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
21968         * sysdeps/x86_64/multiarch/memset.S: New file.
21969         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
21970         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21971         Set bit_Prefer_SSE_for_memop for Intel processors.
21972         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
21973         Define.
21974         (index_Prefer_SSE_for_memop): Define.
21975         (HAS_PREFER_SSE_FOR_MEMOP): Define.
21976
21977 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
21978
21979         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
21980         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
21981
21982 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
21983
21984         [BZ #12191]
21985         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21986         (__x86_64_raw_data_cache_size_half): Likewise.
21987         (__x86_64_raw_shared_cache_size): Likewise.
21988         (__x86_64_raw_shared_cache_size_half): Likewise.
21989
21990         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21991         (__x86_64_raw_data_cache_size_half): Likewise.
21992         (__x86_64_raw_shared_cache_size): Likewise.
21993         (__x86_64_raw_shared_cache_size_half): Likewise.
21994         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
21995         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
21996         and __x86_64_raw_shared_cache_size_half.  Round
21997         __x86_64_data_cache_size_half, __x86_64_data_cache_size
21998         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
21999         to multiple of 256 bytes.
22000
22001 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
22002
22003         [BZ #12167]
22004         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
22005         of inacessible symlinks.  Verify result of symlink before returning it.
22006         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22007         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
22008
22009 2010-10-28  Erich Ritz  <erichritz@gmail.com>
22010
22011         * math/math.h (isinf): Fix typo in comment.
22012
22013 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
22014
22015         * po/da.po: Update from translation team.
22016
22017 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
22018
22019         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
22020         is added to the list.
22021
22022 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22023             Ulrich Drepper  <drepper@gmail.com>
22024
22025         * elf/dl-object.c (_dl_new_object): Don't append the new object to
22026         the global list here.  Move code to...
22027         (_dl_add_to_namespace_list): ...here.  New function.
22028         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
22029         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
22030         * elf/dl-load.c (lose): Don't remove the element from the list.
22031         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
22032         (_dl_map_object): Likewise.
22033
22034 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
22035
22036         [BZ #12159]
22037         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
22038         into all bytes of SSE register.
22039         Patch by Richard Li <richardpku@gmail.com>.
22040
22041 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
22042
22043         [BZ #12140]
22044         * malloc/malloc.c (_int_free): Fill correct number of bytes when
22045         perturbing.
22046
22047 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
22048
22049         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
22050         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
22051         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
22052         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
22053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
22054         submachine.
22055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
22056
22057 2010-10-22  Andreas Schwab  <schwab@redhat.com>
22058
22059         * include/dlfcn.h (__RTLD_SECURE): Define.
22060         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
22061         mode & __RTLD_SECURE instead.
22062         (open_path): Rename preloaded parameter to secure.
22063         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
22064         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
22065         * elf/dl-deps.c (openaux): Likewise.
22066         * elf/rtld.c (struct map_args): Remove is_preloaded.
22067         (map_doit): Don't use it.
22068         (dl_main): Likewise.
22069         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
22070         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
22071
22072 2010-09-09  Andreas Schwab  <schwab@redhat.com>
22073
22074         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
22075         (sysd-rules-targets): Remove duplicates.
22076         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
22077         rtld-%.$o dependency.
22078
22079 2010-10-18  Andreas Schwab  <schwab@redhat.com>
22080
22081         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
22082         _dl_map_object do it.
22083
22084 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
22085
22086         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
22087         fast fma builtins, define the macros in the C99 standard.
22088         (FP_FAST_FMAF): Likewise.
22089         (FP_FAST_FMAL): Likewise.
22090         * sysdeps/x86_64/bits/mathdef.h: Likewise.
22091
22092         * bits/mathdef.h: Update copyright year.
22093         * sysdeps/powerpc/bits/mathdef.h: Likewise.
22094
22095 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
22096
22097         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
22098         builtins, define the macros in the C99 standard.
22099         (FP_FAST_FMAF): Likewise.
22100         (FP_FAST_FMAL): Likewise.
22101         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
22102         multiply/add.
22103         (FP_FAST_FMAF): Likewise.
22104
22105 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
22106
22107         [BZ #3268]
22108         * math/libm-test.inc (fma_test): Some new testcases.
22109         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
22110         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
22111         y and infinite z.  Do multiplication by C already in long double.
22112         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
22113         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
22114         y and infinite z.  Do bitwise or of inexact bit into u.d.
22115         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
22116         * sysdeps/i386/fpu/s_fmaf.S: Removed.
22117         * sysdeps/i386/fpu/s_fma.S: Removed.
22118         * sysdeps/i386/fpu/s_fmal.S: Removed.
22119
22120 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
22121
22122         [BZ #3268]
22123         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
22124         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
22125         computation is not scheduled after fetestexcept.  Fix value
22126         of minimum denormal long double.
22127
22128 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
22129
22130         [BZ #3268]
22131         * math/libm-test.inc (fma_test): Add some more tests.
22132         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
22133         correctly.
22134
22135 2010-10-15  Andreas Schwab  <schwab@redhat.com>
22136
22137         * scripts/data/localplt-s390-linux-gnu.data: New file.
22138         * scripts/data/localplt-s390x-linux-gnu.data: New file.
22139
22140 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
22141
22142         [BZ #3268]
22143         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
22144         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
22145         instead of dbl-64.
22146         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
22147         inlines.
22148         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
22149         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
22150         if one of x and y is very large and the other is subnormal.
22151         * sysdeps/s390/fpu/s_fmaf.c: New file.
22152         * sysdeps/s390/fpu/s_fma.c: New file.
22153         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
22154         * sysdeps/powerpc/fpu/s_fma.S: New file.
22155         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
22156         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
22157         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
22158
22159 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
22160
22161         [BZ #3268]
22162         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
22163         fma tests.
22164         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
22165         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
22166         * sysdeps/i386/i686/multiarch/s_fma.c: Include
22167         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
22168         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
22169         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
22170         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
22171
22172 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
22173
22174         [BZ #12078]
22175         * posix/regcomp.c (parse_branch): One more memory leak plugged.
22176         * posix/bug-regex31.input: Add test case.
22177
22178 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
22179
22180         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
22181         * posix/bug-regex31.input: New file.
22182
22183         [BZ #12078]
22184         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
22185         (parse_sub_exp): Fix last change, use postorder.
22186
22187         * posix/bug-regex31.c: New file.
22188         * posix/Makefile: Add rules to build and run bug-regex31.
22189
22190         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
22191
22192         [BZ #12078]
22193         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
22194
22195         [BZ #12108]
22196         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
22197         to have entries in sys_siglist.
22198
22199         [BZ #12093]
22200         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
22201         be NULL.
22202
22203 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
22204
22205         [BZ #3268]
22206         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
22207         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
22208         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
22209         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
22210         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
22211         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
22212         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
22213         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
22214         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
22215         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
22216         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
22217         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
22218         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22219         * math/ftestexcept.c (fetestexcept): Likewise.
22220         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
22221         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
22222         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
22223         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
22224         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
22225         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
22226         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
22227
22228 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
22229
22230         [BZ #12107]
22231         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
22232         newline.
22233
22234 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
22235
22236         * string/bug-strstr1.c: New file.
22237         * string/Makefile: Add rules to build and run bug-strstr1.
22238
22239 2010-10-05  Eric Blake  <eblake@redhat.com>
22240
22241         [BZ #12092]
22242         * string/str-two-way.h (two_way_long_needle): Always clear memory
22243         when skipping input due to the shift table.
22244
22245 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
22246
22247         [BZ #12005]
22248         * malloc/mcheck.c: Handle large requests.
22249
22250         [BZ #12077]
22251         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
22252         for strncmp and strncasecmp.
22253         * string/stratcliff.c: Add tests for strcmp and strncmp.
22254         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
22255
22256 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22257
22258         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
22259         __set_fpscr.
22260
22261 2010-09-30  Andreas Jaeger  <aj@suse.de>
22262
22263         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
22264         (CGROUP_SUPER_MAGIC): Define.
22265         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
22266         Handle btrfs and cgroup file systems.
22267         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
22268         Likewise.
22269
22270 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
22271
22272         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
22273         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
22274
22275 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22276
22277         [BZ #12067]
22278         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
22279         trying to locate the ELF header.
22280
22281 2010-09-27  Andreas Schwab  <schwab@redhat.com>
22282
22283         [BZ #11611]
22284         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
22285         Mask out sign-bit copies when constructing f_fsid.
22286
22287 2010-09-24  Petr Baudis <pasky@suse.cz>
22288
22289         * debug/stack_chk_fail_local.c: Add missing licence exception.
22290         * debug/warning-nop.c: Likewise.
22291
22292 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
22293
22294         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
22295         implementing getdents64 using getdents syscall, set d_type if
22296         __ASSUME_GETDENTS32_D_TYPE.
22297
22298 2010-09-16  Andreas Schwab  <schwab@redhat.com>
22299
22300         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
22301         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
22302
22303 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
22304
22305         [BZ #12037]
22306         * posix/unistd.h: Undo change of feature selection for ftruncate from
22307         2010-01-11.
22308
22309 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
22310
22311         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
22312         detection.
22313
22314 2010-09-20  Andreas Schwab  <schwab@redhat.com>
22315
22316         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
22317         fanotify_mark.
22318         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
22319
22320 2010-09-14  Andreas Schwab  <schwab@redhat.com>
22321
22322         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
22323         variables after CHECK_SP call.
22324         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
22325
22326 2010-09-13  Andreas Schwab  <schwab@redhat.com>
22327             Ulrich Drepper  <drepper@redhat.com>
22328
22329         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
22330         re-relocationg ld.so.
22331         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
22332         _dl_init_paths call.
22333         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
22334         here anymore.
22335
22336 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
22337
22338         * resolv/res_init.c (__res_vinit): Count the default server we added.
22339
22340 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
22341             Ulrich Drepper  <drepper@redhat.com>
22342
22343         [BZ #11968]
22344         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
22345         (____longjmp_chk): Use %ebx for saving value across system call.
22346         Add unwind info.
22347
22348 2010-09-06  Andreas Schwab  <schwab@redhat.com>
22349
22350         * manual/Makefile: Don't mix pattern rules with normal rules.
22351
22352 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
22353
22354         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
22355         operation.
22356         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
22357         * libio/iofopncook.c (_IO_cookie_init): Likewise.
22358         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
22359         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
22360         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
22361         Likewise.
22362
22363 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
22364
22365         [BZ #11979]
22366         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
22367         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
22368
22369 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
22370
22371         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
22372         * sysdeps/x86_64/addmul_1.S: Likewise.
22373         * sysdeps/x86_64/lshift.S: Likewise.
22374         * sysdeps/x86_64/mul_1.S: Likewise.
22375         * sysdeps/x86_64/rshift.S: Likewise.
22376         * sysdeps/x86_64/sub_n.S: Likewise.
22377         * sysdeps/x86_64/submul_1.S: Likewise.
22378
22379 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22380
22381         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
22382         Define __sched_param instead of SCHED_* and sched_param when
22383         <bits/sched.h> is included with __need_schedparam defined.
22384         * bits/sched.h [__need_schedparam]
22385         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
22386         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
22387         (__defined_schedparam): Define to 1.
22388         (__sched_param): New structure, identical to sched_param.
22389         (__need_schedparam): Undefine.
22390
22391 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
22392
22393         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
22394         (epoll_create1): Declare.
22395
22396         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
22397
22398 2010-08-31  Andreas Schwab  <schwab@redhat.com>
22399
22400         [BZ #7066]
22401         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
22402         shifting retval into place.
22403
22404 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
22405
22406         * nis/rpcsvc/nis.h: Update copyright notice.
22407         * nis/rpcsvc/nis.x: Likewise.
22408         * nis/rpcsvc/nis_callback.h: Likewise.
22409         * nis/rpcsvc/nis_callback.x: Likewise.
22410         * nis/rpcsvc/nis_object.x: Likewise.
22411         * nis/rpcsvc/nis_tags.h: Likewise.
22412         * nis/rpcsvc/yp.h: Likewise.
22413         * nis/rpcsvc/yp.x: Likewise.
22414         * nis/rpcsvc/ypupd.h: Likewise.
22415         * nis/yp_xdr.c: Likewise.
22416         * nis/ypupdate_xdr.c: Likewise.
22417
22418         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
22419         mainly the body of pmap_getport.  Add parameters to specify timeouts.
22420         (pmap_getport): Use __libc_rpc_getport.
22421         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
22422         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
22423         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
22424
22425 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
22426
22427         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
22428         fanotify_mark.
22429
22430 2010-08-27  Roland McGrath  <roland@redhat.com>
22431
22432         * sysdeps/i386/i686/multiarch/Makefile
22433         (CFLAGS-varshift.c): New variable.
22434
22435 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
22436
22437         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
22438         * sysdeps/i386/i686/multiarch/varshift.c: New file.
22439
22440         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
22441
22442         * sysdeps/x86_64/strlen.S: Minimal code improvement.
22443
22444 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
22445
22446         * sysdeps/x86_64/strlen.S: Unroll the loop.
22447         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22448         strlen-sse2 strlen-sse2-bsf.
22449         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
22450         __strlen_no_bsf if bit_Slow_BSF is set.
22451         (__strlen_sse42): Removed.
22452         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
22453         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
22454
22455 2010-08-25  Roland McGrath  <roland@redhat.com>
22456
22457         * sysdeps/x86_64/multiarch/varshift.S: File removed.
22458         * sysdeps/x86_64/multiarch/varshift.c: New file.
22459         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
22460         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
22461         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
22462         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
22463
22464 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
22465
22466         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22467         strlen-sse2 strlen-sse2-bsf.
22468         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
22469         __strlen_sse2_bsf if bit_Slow_BSF is unset.
22470         (__strlen_sse2): Removed.
22471         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
22472         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
22473         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
22474         bit_Slow_BSF for Atom.
22475         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
22476         (index_Slow_BSF): Define.
22477         (HAS_SLOW_BSF): Define.
22478
22479 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
22480
22481         [BZ #10851]
22482         * resolv/res_init.c (__res_vinit): When no server address at all
22483         is given default to loopback.
22484
22485 2010-08-24  Roland McGrath  <roland@redhat.com>
22486
22487         * configure.in: Remove config-name.h generation.
22488         * configure: Regenerated.
22489         * config-name.in: File removed.
22490         * scripts/config-uname.sh: New file.
22491         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
22492         ($(objdir)config-name.h): New target.
22493
22494         * sunrpc/rpc_parse.h: Avoid nested comment.
22495
22496 2010-08-24  Richard Henderson  <rth@redhat.com>
22497             Ulrich Drepper  <drepper@redhat.com>
22498             H.J. Lu  <hongjiu.lu@intel.com>
22499
22500         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
22501         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
22502         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
22503         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
22504         _mm_alignr_epi8 with _mm_loadu_si128.
22505         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
22506         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
22507         (__m128i_shift_right): Removed.
22508         * sysdeps/i386/i686/multiarch/varshift.h: New file.
22509         * sysdeps/i386/i686/multiarch/varshift.S: New file.
22510         * sysdeps/x86_64/multiarch/varshift.h: New file.
22511         * sysdeps/x86_64/multiarch/varshift.S: New file.
22512
22513 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
22514
22515         * configure.in: Move assembler checks to before sysdep dir checking.
22516
22517 2010-08-20  Petr Baudis  <pasky@suse.cz>
22518
22519         * LICENSES: Sync the sunrpc license.
22520
22521 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
22522
22523         * sunrpc/auth_des.c: Update copyright notice once again.
22524         * sunrpc/auth_none.c: Likewise.
22525         * sunrpc/auth_unix.c: Likewise.
22526         * sunrpc/authdes_prot.c: Likewise.
22527         * sunrpc/authuxprot.c: Likewise.
22528         * sunrpc/bindrsvprt.c: Likewise.
22529         * sunrpc/clnt_gen.c: Likewise.
22530         * sunrpc/clnt_perr.c: Likewise.
22531         * sunrpc/clnt_raw.c: Likewise.
22532         * sunrpc/clnt_simp.c: Likewise.
22533         * sunrpc/clnt_tcp.c: Likewise.
22534         * sunrpc/clnt_udp.c: Likewise.
22535         * sunrpc/clnt_unix.c: Likewise.
22536         * sunrpc/des_crypt.c: Likewise.
22537         * sunrpc/des_soft.c: Likewise.
22538         * sunrpc/get_myaddr.c: Likewise.
22539         * sunrpc/getrpcport.c: Likewise.
22540         * sunrpc/key_call.c: Likewise.
22541         * sunrpc/key_prot.c: Likewise.
22542         * sunrpc/openchild.c: Likewise.
22543         * sunrpc/pm_getmaps.c: Likewise.
22544         * sunrpc/pm_getport.c: Likewise.
22545         * sunrpc/pmap_clnt.c: Likewise.
22546         * sunrpc/pmap_prot.c: Likewise.
22547         * sunrpc/pmap_prot2.c: Likewise.
22548         * sunrpc/pmap_rmt.c: Likewise.
22549         * sunrpc/rpc/auth.h: Likewise.
22550         * sunrpc/rpc/auth_unix.h: Likewise.
22551         * sunrpc/rpc/clnt.h: Likewise.
22552         * sunrpc/rpc/des_crypt.h: Likewise.
22553         * sunrpc/rpc/key_prot.h: Likewise.
22554         * sunrpc/rpc/netdb.h: Likewise.
22555         * sunrpc/rpc/pmap_clnt.h: Likewise.
22556         * sunrpc/rpc/pmap_prot.h: Likewise.
22557         * sunrpc/rpc/pmap_rmt.h: Likewise.
22558         * sunrpc/rpc/rpc.h: Likewise.
22559         * sunrpc/rpc/rpc_des.h: Likewise.
22560         * sunrpc/rpc/rpc_msg.h: Likewise.
22561         * sunrpc/rpc/svc.h: Likewise.
22562         * sunrpc/rpc/svc_auth.h: Likewise.
22563         * sunrpc/rpc/types.h: Likewise.
22564         * sunrpc/rpc/xdr.h: Likewise.
22565         * sunrpc/rpc_clntout.c: Likewise.
22566         * sunrpc/rpc_cmsg.c: Likewise.
22567         * sunrpc/rpc_common.c: Likewise.
22568         * sunrpc/rpc_cout.c: Likewise.
22569         * sunrpc/rpc_dtable.c: Likewise.
22570         * sunrpc/rpc_hout.c: Likewise.
22571         * sunrpc/rpc_main.c: Likewise.
22572         * sunrpc/rpc_parse.c: Likewise.
22573         * sunrpc/rpc_parse.h: Likewise.
22574         * sunrpc/rpc_prot.c: Likewise.
22575         * sunrpc/rpc_sample.c: Likewise.
22576         * sunrpc/rpc_scan.c: Likewise.
22577         * sunrpc/rpc_scan.h: Likewise.
22578         * sunrpc/rpc_svcout.c: Likewise.
22579         * sunrpc/rpc_tblout.c: Likewise.
22580         * sunrpc/rpc_util.c: Likewise.
22581         * sunrpc/rpc_util.h: Likewise.
22582         * sunrpc/rpcinfo.c: Likewise.
22583         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
22584         * sunrpc/rpcsvc/key_prot.x: Likewise.
22585         * sunrpc/rpcsvc/klm_prot.x: Likewise.
22586         * sunrpc/rpcsvc/mount.x: Likewise.
22587         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
22588         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
22589         * sunrpc/rpcsvc/rex.x: Likewise.
22590         * sunrpc/rpcsvc/rstat.x: Likewise.
22591         * sunrpc/rpcsvc/rusers.x: Likewise.
22592         * sunrpc/rpcsvc/sm_inter.x: Likewise.
22593         * sunrpc/rpcsvc/spray.x: Likewise.
22594         * sunrpc/rpcsvc/yppasswd.x: Likewise.
22595         * sunrpc/rtime.c: Likewise.
22596         * sunrpc/svc.c: Likewise.
22597         * sunrpc/svc_auth.c: Likewise.
22598         * sunrpc/svc_authux.c: Likewise.
22599         * sunrpc/svc_raw.c: Likewise.
22600         * sunrpc/svc_run.c: Likewise.
22601         * sunrpc/svc_simple.c: Likewise.
22602         * sunrpc/svc_tcp.c: Likewise.
22603         * sunrpc/svc_udp.c: Likewise.
22604         * sunrpc/svc_unix.c: Likewise.
22605         * sunrpc/svcauth_des.c: Likewise.
22606         * sunrpc/xcrypt.c: Likewise.
22607         * sunrpc/xdr.c: Likewise.
22608         * sunrpc/xdr_array.c: Likewise.
22609         * sunrpc/xdr_float.c: Likewise.
22610         * sunrpc/xdr_mem.c: Likewise.
22611         * sunrpc/xdr_rec.c: Likewise.
22612         * sunrpc/xdr_ref.c: Likewise.
22613         * sunrpc/xdr_sizeof.c: Likewise.
22614         * sunrpc/xdr_stdio.c: Likewise.
22615
22616         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
22617         handling.
22618
22619 2010-08-19  Andreas Schwab  <schwab@redhat.com>
22620
22621         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
22622
22623 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
22624
22625         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
22626         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
22627         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
22628         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
22629         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
22630         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
22631         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
22632         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
22633         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
22634         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
22635         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
22636         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
22637         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
22638         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
22639
22640 2010-07-26  Anton Blanchard  <anton@samba.org>
22641
22642         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
22643         * malloc/arena.c (heap_trim): Likewise.
22644
22645 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
22646
22647         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
22648         here.  Not...
22649         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
22650         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
22651
22652 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
22653
22654         * sysdeps/i386/elf/Makefile: New file.
22655
22656 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
22657
22658         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
22659         from fanotify_init.
22660         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
22661         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
22662
22663 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
22664
22665         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
22666         of strncasecmp_l.
22667         * sysdeps/multiarch/strcmp.S: Likewise.
22668
22669 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
22670
22671         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
22672         strncase_l-nonascii.
22673         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
22674         Add strncase_l-ssse3.
22675         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
22676         * sysdeps/x86_64/strcmp.S: Likewise.
22677         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
22678         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
22679         * sysdeps/x86_64/strncase.S: New file.
22680         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
22681         * sysdeps/x86_64/strncase_l.S: New file.
22682         * string/Makefile (strop-tests): Add strncasecmp.
22683         * string/test-strncasecmp.c: New file.
22684
22685         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
22686         warning.
22687
22688         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
22689         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
22690
22691 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
22692
22693         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
22694
22695 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
22696
22697         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
22698         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
22699         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
22700
22701 2010-05-01  Alan Modra  <amodra@gmail.com>
22702
22703         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
22704         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
22705         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
22706         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
22707         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
22708         tidying.  Don't tail-call __sigjmp_save for static lib.
22709         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
22710         save location.
22711         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
22712         (CALL_MCOUNT): Add eh info, and nop after bl.
22713         (TAIL_CALL_SYSCALL_ERROR): New macro.
22714         (PSEUDO_RET): Use it.
22715         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
22716         Correct save location of integer regs and cr.
22717         (_dl_profile_resolve): Correct cr save location.  Delete nops
22718         after bl when SHARED.  Reduce cfi size a little by better
22719         placement of cfi directives.
22720         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
22721         make a stack frame.  Instead use parm save area as a temp.
22722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
22723         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
22724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
22725         Don't make a stack frame for parent, use parm save area.
22726         Increase child stack frame to 112 bytes.  Don't save unused reg,
22727         and adjust reg usage.  Set up cfi on error recovery and
22728         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
22729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
22730         (__makecontext): Add dummy nop after jump to exit.
22731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
22732         Use correct parm save area and cr save, reduce stack frame.
22733         Correct cfi for possible PSEUDO_RET frame setup.
22734         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
22735         Branch to local label emitted by PSEUDO_RET rather than
22736         __syscall_error.
22737
22738 2010-08-12  Andreas Schwab  <schwab@redhat.com>
22739
22740         [BZ #11904]
22741         * locale/programs/locale.c (print_assignment): New function.
22742         (show_locale_vars): Use it.
22743
22744 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
22745
22746         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
22747         field.
22748         (struct statfs64): Likewise.
22749         (_STATFS_F_FLAGS): Define.
22750         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
22751         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
22752         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
22753         (ST_VALID): Define locally.
22754         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
22755         __statvfs_getflags, use the provided value.
22756         * sysdeps/unix/sysv/linux/kernel-features.h: Define
22757         __ASSUME_STATFS_F_FLAGS.
22758
22759         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
22760
22761         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
22762         Add sys/fanotify.h.
22763         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
22764         fanotify_mask for GLIBC_2.13.
22765         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
22766         fanotify_init and fanotify_mark.
22767         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
22768         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
22769
22770         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
22771         Add prlimit.
22772         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
22773         prlimit64 for GLIBC_2.13.
22774         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
22775         prlimit64.
22776         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
22777         syscall.
22778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
22779         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
22780         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
22781         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
22782         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
22783         add prlimit alias.
22784         * sysdeps/unix/sysv/linux/prlimit.c: New file.
22785
22786         [BZ #11903]
22787         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
22788         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
22789
22790         * nss/Makefile: Add rules to build and run tst-nss-test1.
22791         * shlib-versions: Add entry for libnss_test1.
22792         * nss/nss_test1.c: New file.
22793         * nss/tst-nss-test1.c: New file.
22794
22795         * nss/nsswitch.c (__nss_database_custom): Define new variable.
22796         (__nss_configure_lookup): Set appropriate entry in
22797         __nss_configure_lookup to true.
22798         * nss/nsswitch.h: Define enum with indeces of databases in
22799         databases and __nss_database_custom arrays.  Declare
22800         __nss_database_custom.
22801         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
22802         to avoid using nscd when custom rules are installed.
22803         * nss/getXXbyYY_r.c: Likewise.
22804         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
22805
22806         * nss/nss_files/files-parse.c: Whitespace fixes.
22807
22808 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
22809
22810         [BZ #11883]
22811         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
22812         * posix/fnmatch_loop.c: Likewise.
22813
22814 2010-07-17  Andi Kleen  <ak@linux.intel.com>
22815
22816         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
22817         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
22818         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
22819         * Versions.def [GLIBC_2.13]: Add.
22820
22821 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
22822
22823         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22824         Also fail if tpwd after pwuid call is NULL.
22825
22826 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22827
22828         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
22829         when converting to ms.
22830
22831 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22832
22833         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
22834         EOPNOTSUPP errors with ENOTTY.
22835         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
22836         EOPNOTSUPP errors with ENOTTY.
22837
22838 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
22839
22840         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
22841         Add strcasecmp_l-ssse3.
22842         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
22843         strcasecmp.
22844         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
22845         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
22846         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
22847
22848 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
22849
22850         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
22851
22852         * string/Makefile (strop-tests): Add strcasecmp.
22853         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
22854         strcasecmp_l-nonascii.
22855         (gen-as-const-headers): Add locale-defines.sym.
22856         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
22857         * sysdeps/x86_64/strcasecmp.S: New file.
22858         * sysdeps/x86_64/strcasecmp_l.S: New file.
22859         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
22860         * sysdeps/x86_64/locale-defines.sym: New file.
22861         * string/test-strcasecmp.c: New file.
22862
22863         * string/test-strcasestr.c: Test both ends of the range of characters.
22864         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
22865
22866 2010-07-29  Roland McGrath  <roland@redhat.com>
22867
22868         [BZ #11856]
22869         * manual/locale.texi (Yes-or-No Questions): Fix example code.
22870
22871 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
22872
22873         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
22874         for ld.so.
22875
22876 2010-07-27  Andreas Schwab  <schwab@redhat.com>
22877
22878         * manual/memory.texi (Malloc Tunable Parameters): Document
22879         M_PERTURB.
22880
22881 2010-07-26  Roland McGrath  <roland@redhat.com>
22882
22883         [BZ #11840]
22884         * configure.in (-fgnu89-inline check): Set and substitute
22885         gnu89_inline, not libc_cv_gnu89_inline.
22886         * configure: Regenerated.
22887         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
22888
22889 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
22890
22891         * string/test-strnlen.c: New file.
22892         * string/Makefile (strop-tests): Add strnlen.
22893         * string/tester.c (test_strnlen): Add a few more test cases.
22894         * string/tst-strlen.c: Better error reporting.
22895
22896         * sysdeps/x86_64/strnlen.S: New file.
22897
22898 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
22899
22900         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
22901         lower-latency instructions.
22902
22903 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
22904
22905         * string/test-strcasestr.c: New file.
22906         * string/test-strstr.c: New file.
22907         * string/Makefile (strop-tests): Add strstr and strcasestr.
22908         * string/str-two-way.h: Don't undefine MAX.
22909         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
22910
22911 2010-07-21  Andreas Schwab  <schwab@redhat.com>
22912
22913         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22914         strcasestr-nonascii.
22915         (CFLAGS-strcasestr-nonascii.c): Define.
22916         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
22917         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
22918         Remove unused attribute.
22919
22920 2010-07-20  Roland McGrath  <roland@redhat.com>
22921
22922         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
22923         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
22924         ld.so.cache was broken.  With it, there is no way to disable dsocaps
22925         like LD_HWCAP_MASK can disable hwcaps.
22926
22927 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22928
22929         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
22930
22931 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
22932
22933         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
22934         call in strcasestr.
22935         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
22936         __strcasestr_sse42_nonascii.
22937         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
22938         strcasestr-nonascii.c.
22939         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
22940
22941 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
22942
22943         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
22944         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
22945         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
22946         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
22947
22948 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
22949
22950         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
22951         fcntl.
22952
22953 2010-07-06  Andreas Schwab  <schwab@redhat.com>
22954
22955         [BZ #11577]
22956         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
22957         dl_signal_cerror.
22958
22959 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
22960
22961         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
22962         _PC_PIPE_BUF using F_GETPIPE_SZ.
22963
22964 2010-07-05  Roland McGrath  <roland@redhat.com>
22965
22966         * manual/arith.texi (Rounding Functions): Fix rint description
22967         implicit in round description.
22968
22969 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
22970
22971         * elf/Makefile: Fix linking for a few tests to make recent linker
22972         happy.
22973
22974 2010-06-30  Andreas Schwab  <schwab@redhat.com>
22975
22976         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
22977         $(common-objpfx)libc_nonshared.a.
22978
22979 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
22980
22981         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
22982         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
22983         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22984         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22985         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
22986         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
22987         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22988         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
22990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
22991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
22992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
22994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22995         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
22996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
22997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
22998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
22999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
23000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
23001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
23002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
23003         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
23004         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
23005         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
23006         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
23007         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
23008         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
23009         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
23010         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
23011         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
23012         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
23013         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
23014         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
23015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
23016         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
23017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
23018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
23019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
23020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
23021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
23022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
23023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
23024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
23025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
23026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
23027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
23028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
23029
23030 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
23031
23032         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
23033         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
23034         * string/memmove.c (memmove): Renamed to ...
23035         (MEMMOVE): ...this.  Default to memmove.
23036         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
23037         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
23038         (END_CHK): Define.
23039         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
23040         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
23041         mempcpy-ssse3-back memmove-ssse3-back.
23042         * sysdeps/x86_64/multiarch/bcopy.S: New file .
23043         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
23044         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
23045         * sysdeps/x86_64/multiarch/memcpy.S: New file.
23046         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
23047         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
23048         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
23049         * sysdeps/x86_64/multiarch/memmove.c: New file.
23050         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
23051         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
23052         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
23053         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
23054         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
23055         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
23056         Define.
23057         (index_Fast_Copy_Backward): Define.
23058         (HAS_ARCH_FEATURE): Define.
23059         (HAS_FAST_REP_STRING): Define.
23060         (HAS_FAST_COPY_BACKWARD): Define.
23061
23062 2010-06-21  Andreas Schwab  <schwab@redhat.com>
23063
23064         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
23065         Restore proper fallback handling.
23066
23067 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
23068
23069         [BZ #11701]
23070         * posix/group_member.c (__group_member): Correct checking loop.
23071
23072         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
23073         OOM in getpwuid_r correctly.  Return error number when the caller
23074         should return, otherwise -1.
23075         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
23076         call returning > 0 value.
23077         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
23078
23079 2010-06-07  Andreas Schwab  <schwab@redhat.com>
23080
23081         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
23082         libc_nonshared.a from targets in modules-names.
23083
23084 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
23085
23086         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
23087         requires it.
23088
23089 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
23090
23091         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
23092         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
23093         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
23094         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
23095
23096 2010-06-02  Andreas Schwab  <schwab@redhat.com>
23097
23098         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
23099
23100 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
23101
23102         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
23103         and F_GETPIPE_SZ.
23104         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
23105         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
23106         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
23107         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
23108         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
23109         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
23110
23111 2010-06-14  Roland McGrath  <roland@redhat.com>
23112
23113         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
23114
23115 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
23116
23117         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
23118         __REDIRECT followed by __THROW.
23119         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
23120         * posix/getopt.h (getopt): Likewise.
23121
23122 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
23123
23124         * hurd/lookup-at.c (__file_name_lookup_at): Accept
23125         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
23126         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
23127         in AT_FLAGS.
23128         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
23129         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
23130
23131 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
23132
23133         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
23134
23135 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
23136
23137         [BZ #11640]
23138         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23139         Properly check family and model.
23140
23141 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
23142
23143         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
23144
23145 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
23146
23147         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
23148
23149 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
23150
23151         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
23152         symbol reference.
23153
23154 2010-05-19  Andreas Schwab  <schwab@redhat.com>
23155
23156         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
23157         symbol reference.
23158
23159 2010-05-21  Andreas Schwab  <schwab@redhat.com>
23160
23161         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
23162         and internal_recvmmsg.
23163         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
23164         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
23165         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
23166         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
23167
23168         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
23169         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
23170         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
23171
23172 2010-05-20  Andreas Schwab  <schwab@redhat.com>
23173
23174         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
23175
23176 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
23177
23178         POWER7 optimizations.
23179         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
23180         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
23181
23182 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
23183
23184         * version.h: Update for 2.13 development version.
23185
23186 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
23187
23188         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
23189         exceptions.  Return 0.
23190
23191 2010-05-07  Roland McGrath  <roland@redhat.com>
23192
23193         * elf/ldconfig.c (main): Add a const.
23194
23195 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
23196
23197         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
23198         (args_options): Add no-idn option.
23199         (ahosts_keys_int): Add idn_flags to ai_flags.
23200         (parse_option): Handle 'i' option to clear idn_flags.
23201
23202         * malloc/malloc.c (_int_free): Possible race in the most recently
23203         added check.  Only act on the data if no current modification
23204         happened.
23205
23206 See ChangeLog.17 for earlier changes.