c368d11f511c3236516af9bb8be6e4b29fb3796f
[platform/upstream/glibc.git] / ChangeLog
1 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2
3         [BZ #13717]
4         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5         Change to 2.4.1 where previously 2.4.0.
6         * sysdeps/unix/sysv/linux/configure: Regenerated.
7         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
8         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
9         version.
10         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
11         (__ASSUME_AT_CLKTCK): Remove.
12         (__ASSUME_AT_PAGESIZE): Likewise.
13         (__ASSUME_AT_XID): Likewise.
14         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
15         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
16         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
17         unconditionally.
18         (HAVE_AUX_PAGESIZE): Likewise.
19         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
20         [__ASSUME_AT_CLKTCK]: Make code unconditional.
21         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
22
23 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
24
25         [BZ #14307]
26         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
27         the temporary buffer used to invoke __gethostbyname2_r,
28         __gethostbyaddr_r and gethostbyname4_r to make room for struct
29         host_data / struct gaih_addrtuple.
30         * resolv/nss_dns/dns-host.c (global scope): Move definition of
31         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
32         header file nss/nsswitch.h.
33         * nss/nsswitch.h (global scope): Add definition of implementation
34         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
35         resolv/nss_dns/dns-host.c).
36
37 2012-07-11  Andreas Jaeger  <aj@suse.de>
38
39         * po/fr.po: Update from translation team.
40
41         * po/sv.po: Update from translation team
42         * po/fr.po: Another update from translation team.
43
44 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45
46         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
47         for subnormals or multiply small sinh result by itself.
48         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
49         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50
51 2012-07-11  David S. Miller  <davem@davemloft.net>
52
53         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54
55 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
56
57         [BZ #14347]
58         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
59         (INTERNAL_MARK): Shift it here.
60
61 2012-07-10  Marek Polacek  <polacek@redhat.com>
62
63         [BZ #14151]
64         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
65         libc_cv_asm_global_directive with .globl.
66         * configure: Regenerated.
67         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
68         with .globl.
69         * sysdeps/i386/configure: Regenerated.
70         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
71         with .globl.
72         * sysdeps/x86_64/configure: Regenerated.
73         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
74         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
75         * elf/tst-unique2mod2.c: Likewise.
76         * elf/tst-unique2mod1.c: Likewise.
77         * elf/tst-unique1mod2.c: Likewise.
78         * elf/tst-unique1mod1.c: Likewise.
79         * sysdeps/s390/s390-32/sysdep.h: Likewise.
80         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
81         * sysdeps/s390/s390-64/sysdep.h: Likewise.
82         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
83         * sysdeps/mach/sysdep.h: Likewise.
84         * sysdeps/i386/sysdep.h: Likewise.
85         * sysdeps/i386/i386-mcount.S: Likewise.
86         * sysdeps/x86_64/_mcount.S: Likewise.
87         * sysdeps/x86_64/sysdep.h: Likewise.
88         * sysdeps/sh/_mcount.S: Likewise.
89         * sysdeps/sh/sysdep.h: Likewise.
90         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
91         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
92         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
93         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
94         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
95         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
96         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
97         * locale/localeinfo.h: Likewise.
98         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
99         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
100
101 2012-07-09  Roland McGrath  <roland@hack.frob.com>
102
103         [BZ #14336]
104         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
105         system".
106         * manual/message.texi (The Uniforum approach): Likewise.
107         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
108         (glibc iconv Implementation): Likewise.
109
110 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
111
112         [BZ #14337]
113         * math/s_clog.c (__clog): Avoid scaling a value down where that
114         could result in underflow.
115         * math/s_clog10.c (__clog10): Likewise.
116         * math/s_clog10f.c (__clog10f): Likewise.
117         * math/s_clog10l.c (__clog10l): Likewise.
118         * math/s_clogf.c (__clogf): Likewise.
119         * math/s_clogl.c (__clogl): Likewise.
120         * math/libm-test.inc (clog_test): Add more tests.
121         (clog10_test): Likewise.
122         * sysdeps/i386/fpu/libm-test-ulps: Update.
123         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
124
125 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
126
127         [BZ #14283]
128         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
129         by 7 not 8 to examine high bit of fractional part.
130
131         [BZ #14042]
132         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
133         for call to __mcount_internal.
134         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
135         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
136         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
137
138 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
139
140         [BZ #14154]
141         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
142         approximation for values within 0x1p-13f of an odd multiple of
143         pi/4.
144         * math/libm-test.inc (tan_test): Do not allow spurious underflow
145         exception.  Add more tests.
146         * sysdeps/i386/fpu/libm-test-ulps: Update.
147
148         [BZ #6778]
149         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
150         inputs and return -1 for them.  Do not check for +Inf in case not
151         reachable for +Inf.
152         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
153         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
154         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
155         and return -1 for them.  Do not check for +Inf in case not
156         reachable for +Inf.
157         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
158         define.
159         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
160         and return -1 for them.  Do not check for +Inf in case not
161         reachable for +Inf.
162         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
163         spurious underflow.
164         * sysdeps/i386/fpu/libm-test-ulps: Update.
165         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
166
167 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
168
169         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
170
171 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
172
173         [BZ #14157]
174         [BZ #14331]
175         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
176         could result in spurious underflow.  Scale down values above
177         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
178         * math/s_csqrtf.c (__csqrtf): Likewise.
179         * math/s_csqrtl.c (__csqrtl): Likewise.
180         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
181         spurious underflow.
182         * sysdeps/i386/fpu/libm-test-ulps: Update.
183         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
184
185 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
186
187         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
188         xopen-msg.sed.
189         * catgets/xopen-msg.awk: New file.
190         * catgets/xopen-msg.sed: Removed.
191
192         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
193         po2text.sed.
194         * intl/po2test.awk: New file.
195         * intl/po2test.sed: Removed.
196
197 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
198
199         [BZ #14328]
200         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
201         or multiply small sinh result by itself.
202         * math/s_ctanf.c (__ctanf): Likewise.
203         * math/s_ctanh.c (__ctanh): Likewise.
204         * math/s_ctanhf.c (__ctanhf): Likewise.
205         * math/s_ctanhl.c (__ctanhl): Likewise.
206         * math/s_ctanl.c (__ctanl): Likewise.
207         * math/libm-test.inc (ctan_test_tonearest): New function.
208         (ctan_test_towardzero): Likewise.
209         (ctan_test_downward): Likewise.
210         (ctan_test_upward): Likewise.
211         (ctanh_test_tonearest): Likewise.
212         (ctanh_test_towardzero): Likewise.
213         (ctanh_test_downward): Likewise.
214         (ctanh_test_upward): Likewise.
215         (main): Call these new functions.
216         * sysdeps/i386/fpu/libm-test-ulps: Update.
217         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
218
219 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
220
221         * .gitignore: Delete /ports entry.
222
223 2012-07-03  Andreas Jaeger  <aj@suse.de>
224
225         * po/bg.po: Update from translation team.
226         * po/cs.po: Likewise.
227         * po/de.po: Likewise.
228         * po/hr.po: Likewise.
229         * po/nl.pl: Likewise.
230         * po/pl.po: Likewise.
231         * po/vi.po: Likewise.
232
233 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
234
235         * Makeconfig [!+link] (+link-before-libc): New variable.
236         [!+link] (+link-after-libc): Likewise.
237         [!+link] (+link-tests): Likewise.
238         [!+link] (+link): Define in terms of $(+link-before-libc) and
239         $(+link-after-libc).
240         [!+link-static] (+link-static-before-libc): New variable.
241         [!+link-static] (+link-static-after-libc): Likewise.
242         [!+link-static] (+link-static-tests): Likewise.
243         [!+link-static] (+link-static): Define in terms of
244         $(+link-static-before-libc) and $(+link-static-after-libc).
245         [build-shared] (link-libc-before-gnulib): New variable.
246         [build-shared] (link-libc-tests): Likewise.
247         [build-shared] (link-libc): Define in terms of
248         $(link-libc-before-gnulib).
249         [!build-shared] (link-libc-tests): New variable.
250         (link-libc-static-tests): New variable.
251         [!gnulib] (gnulib-arch): New variable.
252         [!gnulib] (gnulib-tests): Likewise.
253         [!gnulib] (static-gnulib-arch): Likewise.
254         [!gnulib] (static-gnulib-tests): Likewise.
255         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
256         Define with "=" instead of ":=".
257         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
258         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
259         * Rules (binaries-all-notests): New variable.
260         (binaries-all-tests): Likewise.
261         (binaries-static-notests): Likewise.
262         (binaries-static-tests): Likewise.
263         (binaries-all): Define using $(binaries-all-notests) and
264         $(binaries-all-tests).
265         (binaries-static): Define using $(binaries-static-notests) and
266         $(binaries-static-tests).
267         (binaries-shared-tests): New variable.
268         (binaries-shared-notests): Likewise.
269         (binaries-shared): Remove variable.
270         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
271         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
272         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
273         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
274         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
275         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
276         * elf/Makefile (sln-modules): New variable.
277         (extra-objs): Add $(sln-modules:=.o).
278         (ldconfig-modules): Add static-stubs.
279         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
280         * elf/static-stubs.c: New file.
281
282         [BZ #14283]
283         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
284         by 7 not 8 to examine high bit of fractional part.  Use volatile
285         variables when splitting into final array of floats if
286         __FLT_EVAL_METHOD__ != 0.
287         * math/libm-test.inc (cos_test): Add another test.
288         (sin_test): Likewise.
289         * sysdeps/i386/fpu/libm-test-ulps: Update.
290
291         [BZ #14273]
292         * math/libm-test.inc (cosh_test): Add more tests.
293
294         * version.h (RELEASE): Set to "development".
295         (VERSION): Set to "2.16.90".
296
297 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
298
299         * NEWS: Update copyright. Remove last-updated date.
300         Mention math library bug fixes and timezone data changes.
301         * README: Mention GNU/Hurd, x32, and HPPA support status.
302
303 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
304
305         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
306
307 2012-06-27  Andreas Jaeger  <aj@suse.de>
308
309         * manual/contrib.texi (Contributors): Add Samuel Thibault.
310
311 2012-06-25  Andreas Jaeger  <aj@suse.de>
312
313         * sysdeps/s390/fpu/libm-test-ulps: Update.
314
315 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
316             Thomas Schwinge  <thomas@codesourcery.com>
317
318         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
319         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
320         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
321         fanotify_mark.
322
323 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
324
325         * sysdeps/mach/start.c: Remove file.
326         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
327         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
328         * sysdeps/sh/init-first.c: Likewise.
329
330         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
331         registers for frame unwinding purposes, add CFI directives.
332         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
333         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
334         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
335         Likewise.
336
337         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
338         __fortify_fail returning.
339         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
340
341         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
342         sysdeps/sh/____longjmp_chk.S.
343         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
344         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
345         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
346         (gen-as-const-headers): Append sigaltstack-offsets.sym.
347
348         * sysdeps/sh/abort-instr.h: New file.
349         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
350         process in case exit returns.
351
352         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
353         initialize the GOT register before use.
354
355         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
356         calculation of ARGC > 4.
357
358         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
359         meaningful names to some local labels.
360
361 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
362             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
363
364         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
365         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
366         (__arch_compare_and_exchange_val_16_acq): Likewise.
367         (__arch_compare_and_exchange_val_32_acq): Likewise.
368         (atomic_exchange_and_add): Fix gUSA sequence.
369         (atomic_add): Likewise.
370         (atomic_add_negative): Likewise.
371         (atomic_add_zero): Likewise.
372         (atomic_bit_test_set): Likewise.
373
374 2012-06-22  Andreas Schwab  <schwab@redhat.com>
375
376         [BZ #13579]
377         * include/link.h (struct link_map): Add l_free_initfini.
378         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
379         l_initfini.
380         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
381         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
382         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
383         set.
384
385 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
386
387         * configure.in: Use AC_LANG_SOURCE.
388         * configure: Regenerate.
389
390 2012-06-22  Roland McGrath  <roland@hack.frob.com>
391
392         * configure.in (libc_cv_localstatedir): New substituted variable.
393         * configure: Regenerated.
394         * config.make.in (localstatedir): New variable, substituted from
395         libc_cv_localstatedir.
396         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
397         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
398         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
399         * sysdeps/gnu/configure: Regenerated.
400
401 2012-06-21  Jeff Law  <law@redhat.com>
402
403         [BZ #14277]
404         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
405         free.  Simplify list management for _LIBC case.
406
407 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
408
409         [BZ #14273]
410         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
411         Clear sign bit of 64-bit integer value before comparing against
412         overflow value.
413
414         * sysdeps/mach/configure: Regenerated.
415
416 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
417
418         [BZ #14278]
419         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
420
421 2012-06-21  Jeff Law  <law@redhat.com>
422
423         [BZ #13882]
424         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
425         uint16_t for elements in the "seen" array to avoid char overflows.
426         * elf/dl-fini.c (_dl_sort_fini): Likewise.
427         * elf/dl-open.c (dl_open_worker): Likewise.
428
429 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
430
431         * scripts/list-sources.sh: Scan PORTS for translations.
432         * po/libc.pot: Regenerated.
433
434 2012-06-21  Andreas Jaeger  <aj@suse.de>
435
436         [BZ #12194]
437         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
438         warning.
439         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
440         * bits/byteswap-16.h (__bswap_16): Likewise.
441         * bits/byteswap.h (__bswap_constant_16): Likewise.
442
443 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
444
445         [BZ #14117]
446         * sysdeps/i386/fpu_control.h: Removed.
447         * sysdeps/x86_64/fpu_control.h: Moved to ...
448         * sysdeps/x86/fpu_control.h: Here.
449
450         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
451         (_FPU_SETCW): Likewise.
452
453 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
454
455         [BZ #14117]
456         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
457         * sysdeps/x86/fpu/bits/mathinline.h: This.
458         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
459
460         [BZ #14050]
461         [BZ #14117]
462         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
463         functions if __x86_64__ is defined.
464
465 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
466
467         * string/endian.h: Add !__ASSEMBLER__ condition for including
468         conversion interfaces.
469
470 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
471
472         [BZ #14241]
473         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
474         of ABS(x) in calculating zero to negative powers other than odd
475         integers.
476         * math/libm-test.inc (pow_test): Add more tests.
477
478 2012-06-15  Andreas Jaeger  <aj@suse.de>
479
480         * manual/contrib.texi (Contributors): Update entry of Liubov
481         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
482         Machado Filho.
483
484 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
485
486         * string/string.h: Add __wur to GNU version of strerror_r.
487
488 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
489
490         [BZ #14229]
491         * string/Makefile (tests): Add tst-strtok_r.
492         * string/tst-strtok_r.c: New file.
493         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
494         RAX_LP/RDX_LP on SAVE_PTR.
495
496 2012-06-14  Roland McGrath  <roland@hack.frob.com>
497
498         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
499
500 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
501
502         * libm_test.inc (csqrt_test): Allow more spurious underflow
503         exceptions.
504         (j0_test): Likewise.
505         (j1_test): Likewise.
506         (y0_test): Likewise.
507         (y1_test): Likewise.
508
509 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
510
511         * po/Makefile (libc.pot): Use UTF-8 charset.
512
513 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
514
515         [BZ #14210]
516         Suppress sign-conversion warning from FD_SET.
517         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
518         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
519         not unsigned long int.
520         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
521
522 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
523
524         [BZ #14050]
525         [BZ #14117]
526         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
527         __extern_always_inline instead of __extern_inline.
528         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
529         (__signbit): Likewise.
530         (__signbitl): Support C++ namespace.
531         (lrintf): New inline function.
532         (lrint): Likewise.
533         (llrintf): Likewise.
534         (llrint): Likewise.
535         (fmaxf): Likewise.
536         (fmax): Likewise.
537         (fminf): Likewise.
538         (fmin): Likewise.
539         (rint): Likewise.
540         (rintf): Likewise.
541         (ceil): Likewise.
542         (ceilf): Likewise.
543         (floor): Likewise.
544         (floorf): Likewise.
545         (nearbyint): Likewise.
546         (nearbyintf): Likewise.
547
548 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
549
550         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
551         non-default versions.
552
553 2012-06-11  Roland McGrath  <roland@hack.frob.com>
554
555         [BZ #14218]
556         * manual/argp.texi (Argp): Reword argp_parse description slightly.
557
558 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
559
560         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
561         (FE_UPWARD, FE_DOWNWARD): Don't define.
562         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
563         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
564
565         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
566         reading it.
567         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
568         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
569
570 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
571
572         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
573         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
574         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
575         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
576
577 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
578
579         [BZ #14117]
580         * sysdeps/i386/fpu/bits/fenv.h: Removed.
581         * sysdeps/i386/fpu/Implies: New file.
582         * sysdeps/x86_64/fpu/Implies: Likewise.
583         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
584         * sysdeps/x86/fpu/bits/fenv.h: This.
585
586         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
587         __SSE_MATH__.
588
589 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
590
591         [BZ #14134]
592         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
593         character 0xffff that matches the last element of the
594         conversion table.
595
596 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
597
598         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
599         fmodl commit.
600
601 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
602
603         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
604         values higher than 25.6283.
605
606 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
607
608         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
609         subnormal exponent extraction and add some __builtin_expect.
610         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
611         Fix for subnormal mantissa calculation.
612
613 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
614
615         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
616         cpu2 is -1 and errno is not ENOSYS.
617
618 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
619
620         [BZ #14117]
621         * sysdeps/i386/i486/bits/string.h: Renamed to ...
622         * sysdeps/x86/bits/string.h: This.
623         * sysdeps/x86_64/bits/string.h: Removed.
624
625         * sysdeps/i386/i486/bits/string.h: Define inline functions only
626         if not compiling for x86-64, but compiling for >= i486.
627
628         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
629         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
630
631         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
632         New macro from Linux kernel 3.4.0.
633         (FP_XSTATE_MAGIC2): Likewise.
634         (FP_XSTATE_MAGIC2_SIZE): Likewise.
635         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
636         (struct _fpx_sw_bytes): New struct.
637         (struct _xsave_hdr): Likewise.
638         (struct _ymmh_state): Likewise.
639         (struct _xstate): Likewise.
640
641         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
642         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
643         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
644         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
645         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
646         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
647
648         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
649         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
650         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
651         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
652         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
653         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
654
655 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
656
657         [BZ #13743]
658         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
659         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
660         (sysdep_headers): Include sys/platform/ppc.h.
661         * sysdeps/powerpc/test-gettimebase.c: Test for
662         __ppc_get_timebase() to catch future ISA opcode/insn changes.
663         * manual/Makefile (appendices): Include platform.texi.
664         * manual/contrib.texi (Contributors): Update @node pointers.
665         * manual/maint.texi (Maintenance): Likewise.
666         (Platform): New node.
667         * manual/platform.texi: New file.  Document the new features.
668
669 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
670             Jakub Jelinek  <jakub@redhat.com>
671
672         [BZ #14188]
673         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
674         where __builtin_expect is unavailable.
675
676 2012-06-03  David S. Miller  <davem@davemloft.net>
677
678         * stdlib/longlong.h: Updated from GCC.
679
680 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
681
682         [BZ #14042]
683         * sysdeps/powerpc/powerpc32/mcount.c: New file.
684         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
685         __mcount_internal.
686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
687         (GLIBC_2.16): Likewise.
688
689 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
690
691         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
692
693 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
694
695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
696         (default-abi): New variable.
697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
698         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
699         variable.
700         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
701         Likewise.
702         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
703         Likewise.
704         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
705         Likewise.
706
707         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
708         definition.  Document in comment.
709
710 2012-06-01  David S. Miller  <davem@davemloft.net>
711
712         * stdlib/longlong.h: Updated from GCC.
713
714 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
715
716         [BZ #14117]
717         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
718         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
719         sys/debugreg.h sys/io.h here.
720         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
721         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
722         sys/io.h.
723         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
724         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
725         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
726         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
727         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
728         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
729
730         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
731         Define only if __x86_64__ is defined.
732
733 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
734
735         [BZ #14048]
736         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
737         Use int64_t for variable i.
738         * math/libm-test.inc (fmod_test): Add more tests.
739
740         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
741         z computation is not scheduled after fetestexcept.
742         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
743         Use math_force_eval instead of asm to ensure calculation scheduled
744         before exception test.
745         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
746         Ensure a1 + u.d computation is not scheduled after fetestexcept.
747
748 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
749
750         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
751         computation is not scheduled after fetestexcept.
752
753 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
754
755         [BZ #14117]
756         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
757         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
758
759 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
760
761         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
762         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
763
764 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
765
766         [BZ #14117]
767         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
768         <bits/wordsize.h>.
769         (__WCHAR_MIN): Support __WORDSIZE == 64.
770         (__WCHAR_MAX): Likewise.
771
772         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
773         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
774
775         [BZ #14183]
776         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
777         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
778
779         [BZ #14117]
780         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
781         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
782
783         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
784         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
785
786         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
787         Defined to 1 if __x86_64__ isn't defined.
788         (_STAT_VER_LINUX_OLD): New.
789         (st_atime): Remove duplicate.
790         (st_mtime): Likewise.
791         (st_ctime): Likewise.
792
793 2012-05-31  David S. Miller  <davem@davemloft.net>
794
795         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
796         entries.
797
798 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
799
800         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
801         gen-libm-test.pl.
802
803         [BZ #14132]
804         * elf/dl-reloc.c: Include <_itoa.h>.
805         (_dl_reloc_bad_type): Remove use of INTUSE.
806         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
807         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
808         * stdio-common/psiginfo.c (psiginfo): Likewise.
809         * stdio-common/psignal.c (psignal): Likewise.
810         * string/strsignal.c (strsignal): Likewise.
811         * include/signal.h (_sys_siglist): Declare hidden proto.
812         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
813         INTVARDEF with libc_hidden_data_def.
814         * stdio-common/itoa-udigits.c: Likewise.
815         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
816         (_itoa_lower_digits_internal): Remove declaration.
817         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
818         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
819         (_sys_sigabbrev_internal): Remove aliases.
820         (_sys_siglist): Define hidden alias.
821
822 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
823
824         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
825         bits/sysctl.h.
826
827 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
828
829         [BZ #14117]
830         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
831         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
832
833         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
834         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
835         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
836         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
837         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
838         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
839
840         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
841         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
842         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
843
844         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
845         with __addr.
846         (insw): Likewise.
847         (insl): Likewise.
848         (outsb): Likewise.
849         (outsw): Likewise.
850         (outsl): Likewise.
851
852         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
853         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
854         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
855
856         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
857         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
858         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
859         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
860         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
861         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
862
863         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
864         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
865
866         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
867         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
868
869         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
870         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
871         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
872
873         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
874         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
875         to ...
876         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
877
878         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
879         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
880         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
881
882         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
883         for x86-64.
884         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
885
886 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
887
888         * math/math.h (M_El): Use two more decimal places.
889         (M_LOG2El): Likewise.
890         (M_LOG10El): Likewise.
891         (M_LN2l): Likewise.
892         (M_LN10l): Likewise.
893         (M_PIl): Likewise.
894         (M_PI_2l): Likewise.
895         (M_PI_4l): Likewise.
896         (M_1_PIl): Likewise.
897         (M_2_PIl): Likewise.
898         (M_2_SQRTPIl): Likewise.
899         (M_SQRT2l): Likewise.
900         (M_SQRT1_2l): Likewise.
901
902 2012-05-31  David S. Miller  <davem@davemloft.net>
903
904         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
905         values between float registers.
906         * sysdeps/sparc/sparc64/memset.S: Likewise.
907         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
908
909 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
910
911         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
912         -D_FORTIFY_SOURCE=1.
913         (CPPFLAGS-tst-longjmp_chk.c): Define.
914         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
915         (CPPFLAGS-tst-longjmp_chk2.c): Define.
916         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
917         CFLAGS-tst-wchar-h.c.
918
919 2012-05-31  Marek Polacek  <polacek@redhat.com>
920
921         [BZ #14132]
922         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
923         __endmntent_internal): Remove declaration.
924         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
925         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
926         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
927
928 2012-05-30  David S. Miller  <davem@davemloft.net>
929
930         * sysdeps/sparc/sparc32/soft-fp/q_util.c
931         (___Q_simulate_exceptions): Use real FP ops rather than writing
932         into the %fsr.
933         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
934         Likewise.
935
936 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
937
938         [BZ #14117]
939         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
940         * sysdeps/x86/bits/xtitypes.h: This.
941
942         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
943         * sysdeps/x86/bits/wordsize.h: This.
944
945         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
946         * sysdeps/x86/bits/huge_vall.h: This.
947
948         * sysdeps/i386/bits/select.h: Removed.
949         * sysdeps/x86_64/bits/select.h: Renamed to ...
950         * sysdeps/x86/bits/select.h: This.
951
952         * sysdeps/i386/bits/setjmp.h: Removed.
953         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
954         * sysdeps/x86/bits/setjmp.h: This.
955
956         * sysdeps/i386/bits/mathdef.h: Removed.
957         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
958         * sysdeps/x86/bits/mathdef.h: This.
959
960 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
961
962         [BZ #14132]
963         * include/sys/socket.h (__connect_internal)
964         (__libc_sa_len_internal): Remove declaration.
965         (__connect, __libc_sa_len): Declare hidden_proto.
966         (SA_LEN): Remove use of INTUSE.
967         * socket/connect.c: Add libc_hidden_def.
968         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
969         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
970         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
971         alias.
972         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
973         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
974         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
975         of adding _internal alias.
976
977 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
978
979         [BZ #14117]
980         * sysdeps/i386/bits/link.h: Removed.
981         * sysdeps/i386/bits/linkmap.h: Likewise.
982         * sysdeps/x86_64/bits/link.h: Renamed to ...
983         * sysdeps/x86/bits/link.h: This.
984         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
985         * sysdeps/x86/bits/linkmap.h: This.
986
987         * sysdeps/i386/bits/endian.h: Removed.
988         * sysdeps/x86_64/bits/endian.h: Renamed to ...
989         * sysdeps/x86/bits/endian.h: This.
990
991         * sysdeps/i386/bits/byteswap.h: Removed.
992         * sysdeps/i386/bits/byteswap-16.h: Likewise.
993         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
994         * sysdeps/x86/bits/byteswap.h: This.
995         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
996         * sysdeps/x86/bits/byteswap-16.h: This.
997         * sysdeps/i386/Implies: Add x86.
998         * sysdeps/x86_64/Implies: Likewise.
999
1000 2012-05-30  David S. Miller  <davem@davemloft.net>
1001
1002         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
1003         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
1004         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
1005         (FP_TRAPPING_EXCEPTIONS): Define.
1006         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
1007         (FP_TRAPPING_EXCEPTIONS): Define.
1008         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
1009         subnormals only when inexact has been signalled or underflow
1010         exceptions are enabled.
1011         (_FP_PACK_CANONICAL): Likewise.
1012
1013 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
1014
1015         [BZ #14183]
1016         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
1017         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
1018
1019 2012-05-30  Richard Henderson  <rth@twiddle.net>
1020
1021         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
1022         with #ifndef NOT_IN_libc.
1023
1024         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
1025         marked to avoid plt entry.
1026
1027 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
1028
1029         [BZ #14112]
1030         * Makeconfig (default-abi): New macro.
1031         (abi-includes): Likewise.
1032         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
1033         $(abi-$(default-abi)-lib-soname) for soname if defined.
1034         ($(common-objpfx)gnu/lib-names.stmp): Generate from
1035         abi-variants.
1036         * Makefile (installed-stubs): Likewise.
1037         * include/stubs-biarch.h: Removed.
1038         * scripts/lib-names.awk: Only handle one library at a time.
1039         * scripts/soversions.awk: Remove WORDSIZE support.
1040         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
1041         entries.
1042         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
1043         Removed.
1044         (syscall-list-default-condition): Likewise.
1045         (syscall-list-default-condition): Likewise.
1046         (syscall-list-includes): Likewise.
1047         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
1048         syscall-list-* with abi-*.  Handle undefined abi-variants.
1049         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
1050         * sysdeps/unix/sysv/linux/i386/Implies: New file.
1051         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
1052         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
1053         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
1054         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
1055         Removed.
1056         (syscall-list-32-options): Likewise.
1057         (syscall-list-32-condition): Likewise.
1058         (syscall-list-64-options): Likewise.
1059         (syscall-list-64-condition): Likewise.
1060         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
1061         macro.
1062         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
1063         Renamed to ...
1064         (abi-*): This.
1065         (abi-64-ld-soname): New macro.
1066         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
1067         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
1068         Renamed to ...
1069         (abi-*): This.
1070         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
1071         * sysdeps/x86_64/x32/shlib-versions: Likewise.
1072
1073 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
1074
1075         * sysdeps/unix/sysv/linux/kernel-features.h
1076         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
1077         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
1078         include <kernel-features.h>.
1079         [!__NR_ftruncate64]: Remove conditional code.
1080         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1081         [__NR_ftruncate64]: Make code unconditional.
1082         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1083         * sysdeps/unix/sysv/linux/truncate64.c: Do not
1084         include <kernel-features.h>.
1085         [!__NR_ftruncate64]: Remove conditional code.
1086         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1087         [__NR_ftruncate64]: Make code unconditional.
1088         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
1090         include <kernel-features.h>.
1091         [!__NR_ftruncate64]: Remove conditional code.
1092         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1093         [__NR_ftruncate64]: Make code unconditional.
1094         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1095         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
1096         include <kernel-features.h>.
1097         [!__NR_ftruncate64]: Remove conditional code.
1098         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1099         [__NR_ftruncate64]: Make code unconditional.
1100         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1101
1102         * configure.in (libc_cv_fpie): Weaken to a compile test using
1103         LIBC_TRY_CC_OPTION.
1104         * configure: Regenerated.
1105
1106 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1107
1108         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
1109         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
1110         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
1111         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
1112         Refreshed.
1113         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
1114         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
1115         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
1116         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
1117         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
1118         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
1119         Refreshed.
1120
1121 2012-05-27  David S. Miller  <davem@davemloft.net>
1122
1123         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
1124         (___Q_zero): New.
1125         (__Q_simulate_exceptions): Return void.  Change to simulate
1126         exceptions by writing into the %fsr.
1127         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
1128         (__Qp_handle_exceptions): Likewise.
1129         (numbers): Delete.
1130         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
1131         __Qp_handle_exceptions.
1132         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
1133         __Qp_handle_exceptions.
1134         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
1135         as unused and give dummy FP_RND_NEAREST initializer.
1136         (FP_INHIBIT_RESULTS): Define.
1137         (___Q_simulate_exceptions): Update declaration.
1138         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
1139         formatting.
1140         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
1141         as unused and give dummy FP_RND_NEAREST initializer.
1142         (__Qp_handle_exceptions): Update declaration.
1143         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
1144         formatting.
1145
1146 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
1147
1148         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
1149         the temporary FPU control word.
1150         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1151         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
1152         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
1153         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
1154         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
1155         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
1156         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
1157         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
1158         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
1159         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
1160         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
1161
1162 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1163
1164         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
1165         fields.
1166
1167 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
1168
1169         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
1170         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
1171         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
1172         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
1173         Likewise.
1174         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
1175         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
1176         Likewise.
1177
1178 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
1179
1180         * po/h.po: Update from translation team.
1181
1182 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
1183
1184         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
1185
1186         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
1187         handling of denormals.
1188         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
1189         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
1190         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
1191         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
1192         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
1193         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
1194         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
1195         Likewise.
1196
1197 2012-05-26  Marek Polacek  <polacek@redhat.com>
1198
1199         [BZ #14152]
1200         * math/libm-test.inc (fma_test): Don't always expect underflow
1201         exception.
1202
1203 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1204
1205         [BZ #12416]
1206         * elf/tst-execstack.c: Include stackinfo.h.
1207         (do_test): Adjust test case to ensure that pthread_getattr_np
1208         behaviour remains the same after marking stack executable.
1209
1210 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
1211
1212         * sysdeps/unix/sysv/linux/kernel-features.h
1213         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
1214         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
1215         kernel-features.h.
1216         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
1217         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
1218         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
1219         kernel-features.h.
1220         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
1221         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
1222
1223 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1224
1225         * configure.in: Define the default includes to being none.
1226         * configure: Regenerated.
1227
1228 2012-05-25  Roland McGrath  <roland@hack.frob.com>
1229
1230         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
1231         * sysdeps/x86_64/setjmp.S: Likewise.
1232         * sysdeps/i386/bsd-setjmp.S: Likewise.
1233         * sysdeps/i386/bsd-_setjmp.S: Likewise.
1234         * sysdeps/i386/setjmp.S: Likewise.
1235         * sysdeps/i386/__longjmp.S: Likewise.
1236         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
1237         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1238
1239         * include/stap-probe.h: New file.
1240         * configure.in: Handle --enable-systemtap.
1241         * configure: Regenerated.
1242         * config.h.in (USE_STAP_PROBE): New #undef.
1243         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
1244         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
1245         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
1246
1247 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
1248
1249         [BZ #13717]
1250         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
1251         to 2.4.0 where earlier.
1252         * sysdeps/unix/sysv/linux/configure: Regenerated.
1253         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
1254         <kernel-features.h>.
1255         [__ASSUME_32BITUIDS]: Make code unconditional.
1256         [!__ASSUME_32BITUIDS]: Remove conditional code.
1257         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
1258         <kernel-features.h>.
1259         [__ASSUME_32BITUIDS]: Make code unconditional.
1260         [!__ASSUME_32BITUIDS]: Remove conditional code.
1261         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
1262         [__ASSUME_32BITUIDS]: Make code unconditional.
1263         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
1264         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
1265         <kernel-features.h>.
1266         [__ASSUME_32BITUIDS]: Make code unconditional.
1267         [!__ASSUME_32BITUIDS]: Remove conditional code.
1268         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
1269         <kernel-features.h>.
1270         [__ASSUME_32BITUIDS]: Make code unconditional.
1271         [!__ASSUME_32BITUIDS]: Remove conditional code.
1272         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
1273         <kernel-features.h>.
1274         [__ASSUME_32BITUIDS]: Make code unconditional.
1275         [!__ASSUME_32BITUIDS]: Remove conditional code.
1276         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
1277         <kernel-features.h>.
1278         [__ASSUME_32BITUIDS]: Make code unconditional.
1279         [!__ASSUME_32BITUIDS]: Remove conditional code.
1280         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
1281         <kernel-features.h>.
1282         [__ASSUME_32BITUIDS]: Make code unconditional.
1283         [!__ASSUME_32BITUIDS]: Remove conditional code.
1284         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
1285         <kernel-features.h>.
1286         [__ASSUME_32BITUIDS]: Make code unconditional.
1287         [!__ASSUME_32BITUIDS]: Remove conditional code.
1288         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
1289         <kernel-features.h>.
1290         [__ASSUME_32BITUIDS]: Make code unconditional.
1291         [!__ASSUME_32BITUIDS]: Remove conditional code.
1292         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
1293         <kernel-features.h>.
1294         [__ASSUME_32BITUIDS]: Make code unconditional.
1295         [!__ASSUME_32BITUIDS]: Remove conditional code.
1296         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
1297         <kernel-features.h>.
1298         [__ASSUME_32BITUIDS]: Make code unconditional.
1299         [!__ASSUME_32BITUIDS]: Remove conditional code.
1300         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
1301         <kernel-features.h>.
1302         [__ASSUME_32BITUIDS]: Make code unconditional.
1303         [!__ASSUME_32BITUIDS]: Remove conditional code.
1304         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
1305         <kernel-features.h>.
1306         [__NR_setresgid] (__setresgid): Do not declare.
1307         [__ASSUME_32BITUIDS]: Make code unconditional.
1308         [!__ASSUME_32BITUIDS]: Remove conditional code.
1309         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
1310         <kernel-features.h>.
1311         [__NR_setresuid] (__setresuid): Do not declare.
1312         [__ASSUME_32BITUIDS]: Make code unconditional.
1313         [!__ASSUME_32BITUIDS]: Remove conditional code.
1314         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
1315         <kernel-features.h>.
1316         [__ASSUME_32BITUIDS]: Make code unconditional.
1317         [!__ASSUME_32BITUIDS]: Remove conditional code.
1318         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
1319         <kernel-features.h>.
1320         [__ASSUME_32BITUIDS]: Make code unconditional.
1321         [!__ASSUME_32BITUIDS]: Remove conditional code.
1322         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
1323         <kernel-features.h>.
1324         [__ASSUME_32BITUIDS]: Make code unconditional.
1325         [!__ASSUME_32BITUIDS]: Remove conditional code.
1326         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
1327         <kernel-features.h>.
1328         [__ASSUME_32BITUIDS]: Make code unconditional.
1329         [!__ASSUME_32BITUIDS]: Remove conditional code.
1330         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
1331         <kernel-features.h>.
1332         [__ASSUME_32BITUIDS]: Make code unconditional.
1333         [!__ASSUME_32BITUIDS]: Remove conditional code.
1334         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
1335         <kernel-features.h>.
1336         [__ASSUME_32BITUIDS]: Make code unconditional.
1337         [!__ASSUME_32BITUIDS]: Remove conditional code.
1338         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
1339         <kernel-features.h>.
1340         [__ASSUME_32BITUIDS]: Make code unconditional.
1341         [!__ASSUME_32BITUIDS]: Remove conditional code.
1342         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
1343         <kernel-features.h>.
1344         [__ASSUME_32BITUIDS]: Make code unconditional.
1345         [!__ASSUME_32BITUIDS]: Remove conditional code.
1346         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
1347         <kernel-features.h>.
1348         [__ASSUME_32BITUIDS]: Make code unconditional.
1349         [!__ASSUME_32BITUIDS]: Remove conditional code.
1350         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
1351         <kernel-features.h>.
1352         [__ASSUME_32BITUIDS]: Make code unconditional.
1353         [!__ASSUME_32BITUIDS]: Remove conditional code.
1354         * sysdeps/unix/sysv/linux/kernel-features.h
1355         (__ASSUME_SETRESUID_SYSCALL): Remove.
1356         (__ASSUME_SETRESGID_SYSCALL): Likewise.
1357         (__ASSUME_32BITUIDS): Likewise.
1358         (__ASSUME_LDT_WORKS): Likewise.
1359         (__ASSUME_O_DIRECTORY): Likewise.
1360         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
1361         architecture but not kernel version.
1362         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
1363         (__ASSUME_MMAP2_SYSCALL): Likewise.
1364         (__ASSUME_STAT64_SYSCALL): Likewise.
1365         (__ASSUME_IPC64): Likewise.
1366         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
1367         <kernel-features.h>.
1368         [__ASSUME_32BITUIDS]: Make code unconditional.
1369         [!__ASSUME_32BITUIDS]: Remove conditional code.
1370         * sysdeps/unix/sysv/linux/opendir.c: Do not include
1371         <kernel-features.h>.
1372         [__ASSUME_O_DIRECTORY]: Make code unconditional.
1373         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
1374         132096]: Remove conditional code.
1375         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
1376         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
1377         <kernel-features.h>.
1378         [__ASSUME_32BITUIDS]: Make code unconditional.
1379         [!__ASSUME_32BITUIDS]: Remove conditional code.
1380         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
1381         <kernel-features.h>.
1382         [__ASSUME_32BITUIDS]: Make code unconditional.
1383         [!__ASSUME_32BITUIDS]: Remove conditional code.
1384         * sysdeps/unix/sysv/linux/setegid.c: Do not include
1385         <kernel-features.h>.
1386         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
1387         unconditional.
1388         (__setresgid): Do not declare.
1389         [__ASSUME_32BITUIDS]: Make code unconditional.
1390         [!__ASSUME_32BITUIDS]: Remove conditional code.
1391         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
1392         <kernel-features.h>.
1393         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
1394         unconditional.
1395         (__setresuid): Do not declare.
1396         [__ASSUME_32BITUIDS]: Make code unconditional.
1397         [!__ASSUME_32BITUIDS]: Remove conditional code.
1398         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
1399         <kernel-features.h>.
1400         [__ASSUME_32BITUIDS]: Make code unconditional.
1401         [!__ASSUME_32BITUIDS]: Remove conditional code.
1402         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
1403         <kernel-features.h>.
1404         [__ASSUME_32BITUIDS]: Make code unconditional.
1405         [!__ASSUME_32BITUIDS]: Remove conditional code.
1406
1407 2012-05-25  Richard Henderson  <rth@twiddle.net>
1408
1409         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
1410         dl_hwcap to ifunc resolver.
1411         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
1412         elf_ifunc_invoke.
1413         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
1414         dl_hwcap to ifunc resolver.
1415         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
1416
1417 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
1418
1419         [BZ #14153]
1420         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
1421         for |x| <= 2**-26, not 2**-57.
1422         * math/libm-test.inc (acos_test): Do not allow spurious underflow
1423         exception.
1424
1425 2012-05-24  Jeff Law  <law@redhat.com>
1426
1427         * stdio-common/Makefile (tests): Add bug25.
1428         * stdio-common/bug25.c: New test.
1429
1430 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1431
1432         [BZ #13576]
1433         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
1434         multiple of MALLOC_ALIGNMENT in size.
1435         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
1436
1437 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
1438
1439         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
1440         Require >= 256.
1441         (FILENAME_MAX): Use macro-int-constant.
1442         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
1443         (_IOFBF): Use macro-int-constant.
1444         (_IOLBF): Likewise.
1445         (_IONBF): Likewise.
1446         (SEEK_CUR): Likewise.
1447         (SEEK_END): Likewise.
1448         (SEEK_SET): Likewise.
1449         (TMP_MAX): Likewise.
1450         (EOF): Use macro-int-constant.  Require < 0.
1451         (NULL): Use macro-constant.  Require == 0.
1452         (stdin): Require type to be FILE *.
1453         (stdout): Likewise.
1454         (stderr): Likewise.
1455         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
1456         macro-int-constant.
1457         (EXIT_SUCCESS): Likewise.
1458         (NULL): Use macro-constant.  Require == 0.
1459         (RAND_MAX): Use macro-int-constant.
1460         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
1461         [C99-based standards] (strtof): Require function.
1462         [C99-based standards] (strtold): Likewise.
1463         [C99-based standards] (strtoll): Likewise.
1464         [C99-based standards] (strtoull): Likewise.
1465         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
1466         [ISO || ISO99 || ISO11] (limits.h): Likewise.
1467         [ISO || ISO99 || ISO11] (math.h): Likewise.
1468         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
1469         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
1470         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1471
1472 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
1473
1474         [BZ #14132]
1475         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
1476         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
1477         * intl/dgettext.c (DCGETTEXT): Likewise.
1478         * intl/gettext.c (DCGETTEXT): Likewise.
1479         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
1480         * posix/regex_internal.h (gettext): Likewise.
1481         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
1482         Remove declaration.
1483         * include/argz.h (__argz_count_internal)
1484         (__argz_stringify_internal): Remove declaration.
1485         (__argz_count, __argz_stringify): Declare hidden proto.
1486         * intl/dcgettext.c: Remove use of INTDEF.
1487         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
1488         * string/argz-stringify.c: Likewise.
1489         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
1490         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
1491         Declare hidden proto.
1492         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
1493         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
1494         Declare hidden proto.
1495         * include/stdio.h (__asprintf_internal): Don't declare.
1496         (__asprintf): Don't define as macro.  Declare hidden proto.
1497         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
1498         (__fsetlocking): Declare hidden proto.
1499         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
1500         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
1501         hidden proto.
1502         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
1503         (_IO_setlinebuf): Remove use of INTUSE.
1504         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
1505         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
1506         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
1507         Remove declaration.
1508         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
1509         (_IO_do_flush): Remove use of INTUSE.
1510         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
1511         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
1512         (_IO_adjust_column, _IO_least_wmarker)
1513         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
1514         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
1515         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
1516         (_IO_default_doallocate, _IO_wdefault_doallocate)
1517         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
1518         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
1519         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
1520         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
1521         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
1522         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
1523         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
1524         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
1525         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
1526         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
1527         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
1528         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
1529         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
1530         proto.
1531         (_IO_flush_all_internal, _IO_adjust_column_internal)
1532         (_IO_default_uflow_internal, _IO_default_finish_internal)
1533         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
1534         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
1535         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
1536         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
1537         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
1538         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
1539         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
1540         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
1541         (_IO_file_close_internal, _IO_file_close_it_internal)
1542         (_IO_file_underflow_internal, _IO_file_overflow_internal)
1543         (_IO_file_init_internal, _IO_file_attach_internal)
1544         (_IO_file_fopen_internal, _IO_file_read_internal)
1545         (_IO_file_sync_internal, _IO_file_seek_internal)
1546         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
1547         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
1548         (_IO_str_underflow_internal, _IO_str_overflow_internal)
1549         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
1550         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
1551         (_IO_list_all_internal, _IO_link_in_internal)
1552         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
1553         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
1554         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
1555         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
1556         (_IO_do_write_internal, _IO_padn_internal)
1557         (_IO_getline_info_internal, _IO_getline_internal)
1558         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
1559         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
1560         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
1561         (_IO_vfscanf_internal, _IO_vfprintf_internal)
1562         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
1563         (_IO_init_internal, _IO_un_link_internal): Don't declare.
1564         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
1565         with libc_hidden_ver, remove use of INTUSE.
1566         * libio/genops.c: Likewise.
1567         * libio/freopen.c: Likewise.
1568         * libio/freopen64.c: Likewise.
1569         * libio/iofclose.c: Likewise.
1570         * libio/iofdopen.c: Likewise.
1571         * libio/iofflush.c: Likewise.
1572         * libio/iofflush_u.c: Likewise.
1573         * libio/iofgets.c: Likewise.
1574         * libio/iofgets_u.c: Likewise.
1575         * libio/iofopen.c: Likewise.
1576         * libio/iofopncook.c: Likewise.
1577         * libio/iofread.c: Likewise.
1578         * libio/iofread_u.c: Likewise.
1579         * libio/ioftell.c: Likewise.
1580         * libio/iofwrite.c: Likewise.
1581         * libio/iogetline.c: Likewise.
1582         * libio/iogets.c: Likewise.
1583         * libio/iogetwline.c: Likewise.
1584         * libio/iopadn.c: Likewise.
1585         * libio/iopopen.c: Likewise.
1586         * libio/ioseekoff.c: Likewise.
1587         * libio/ioseekpos.c: Likewise.
1588         * libio/iosetbuffer.c: Likewise.
1589         * libio/iosetvbuf.c: Likewise.
1590         * libio/ioungetc.c: Likewise.
1591         * libio/ioungetwc.c: Likewise.
1592         * libio/iovdprintf.c: Likewise.
1593         * libio/iovsprintf.c: Likewise.
1594         * libio/iovsscanf.c: Likewise.
1595         * libio/memstream.c: Likewise.
1596         * libio/obprintf.c: Likewise.
1597         * libio/oldfileops.c: Likewise.
1598         * libio/oldiofclose.c: Likewise.
1599         * libio/oldiofdopen.c: Likewise.
1600         * libio/oldiofopen.c: Likewise.
1601         * libio/oldiopopen.c: Likewise.
1602         * libio/oldstdfiles.c: Likewise.
1603         * libio/putc.c: Likewise.
1604         * libio/setbuf.c: Likewise.
1605         * libio/setlinebuf.c: Likewise.
1606         * libio/stdfiles.c: Likewise.
1607         * libio/strops.c: Likewise.
1608         * libio/vasprintf.c: Likewise.
1609         * libio/vscanf.c: Likewise.
1610         * libio/vsnprintf.c: Likewise.
1611         * libio/vswprintf.c: Likewise.
1612         * libio/wfiledoalloc.c: Likewise.
1613         * libio/wfileops.c: Likewise.
1614         * libio/wgenops.c: Likewise.
1615         * libio/wmemstream.c: Likewise.
1616         * libio/wstrops.c: Likewise.
1617         * libio/__fpurge.c: Likewise.
1618         * libio/__fsetlocking.c: Likewise.
1619         * assert/assert.c: Likewise.
1620         * debug/fgets_chk.c: Likewise.
1621         * debug/fgets_u_chk.c: Likewise.
1622         * debug/fread_chk.c: Likewise.
1623         * debug/fread_u_chk.c: Likewise.
1624         * debug/gets_chk.c: Likewise.
1625         * debug/obprintf_chk.c: Likewise.
1626         * debug/vasprintf_chk.c: Likewise.
1627         * debug/vdprintf_chk.c: Likewise.
1628         * debug/vsnprintf_chk.c: Likewise.
1629         * debug/vsprintf_chk.c: Likewise.
1630         * malloc/mtrace.c: Likewise.
1631         * misc/error.c: Likewise.
1632         * misc/syslog.c: Likewise.
1633         * stdio-common/asprintf.c: Likewise.
1634         * stdio-common/fxprintf.c: Likewise.
1635         * stdio-common/getw.c: Likewise.
1636         * stdio-common/isoc99_fscanf.c: Likewise.
1637         * stdio-common/isoc99_scanf.c: Likewise.
1638         * stdio-common/isoc99_vfscanf.c: Likewise.
1639         * stdio-common/isoc99_vscanf.c: Likewise.
1640         * stdio-common/isoc99_vsscanf.c: Likewise.
1641         * stdio-common/printf-prs.c: Likewise.
1642         * stdio-common/printf_fp.c: Likewise.
1643         * stdio-common/printf_fphex.c: Likewise.
1644         * stdio-common/printf_size.c: Likewise.
1645         * stdio-common/putw.c: Likewise.
1646         * stdio-common/scanf.c: Likewise.
1647         * stdio-common/sprintf.c: Likewise.
1648         * stdio-common/tmpfile.c: Likewise.
1649         * stdio-common/vfprintf.c: Likewise.
1650         * stdio-common/vfscanf.c: Likewise.
1651         * stdlib/strfmon_l.c: Likewise.
1652         * sunrpc/openchild.c: Likewise.
1653         * sunrpc/xdr_stdio.c: Likewise.
1654         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
1655         * sysdeps/mach/hurd/tmpfile.c: Likewise.
1656
1657 2012-05-24  Roland McGrath  <roland@hack.frob.com>
1658
1659         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
1660
1661         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
1662         in the third column, to generate for the shared library an IFUNC
1663         that uses _dl_vdso_vsym.
1664         * Makerules (COMPILE.c, compile-stdin.c): New variables.
1665         * Makeconfig (object-suffixes-noshared): New variable.
1666
1667         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
1668         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
1669         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
1670         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
1671
1672         [BZ #14132]
1673         * include/sys/time.h (__gettimeofday): Remove macro.
1674         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
1675         * time/gettimeofday.c (__gettimeofday): Remove #undef.
1676         Remove INTDEF.
1677         (__gettimeofday): Add libc_hidden_def.
1678         (gettimeofday): Add libc_hidden_weak.
1679         * sysdeps/mach/gettimeofday.c: Likewise.
1680         * sysdeps/posix/gettimeofday.c: Likewise.
1681         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
1682         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
1683         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
1684         (__gettimeofday_internal): Remove strong_alias.
1685         (__gettimeofday): Add libc_hidden_def.
1686         (gettimeofday): Add libc_hidden_weak.
1687         * sysdeps/unix/syscalls.list (gettimeofday):
1688         Remove __gettimeofday_internal alias.
1689
1690 2012-05-24  Daniel Jacobowitz  <drow@false.org>
1691             H.J. Lu  <hongjiu.lu@intel.com>
1692
1693         [BZ #12495]
1694         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
1695         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
1696         (largebin_index_32_big): New.
1697         (largebin_index): Use it for 16-byte alignment.
1698         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
1699         correction with front_misalign.
1700
1701 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1702
1703         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
1704         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
1705         Likewise.
1706         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
1707         Likewise.
1708         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
1709         Likewise.
1710         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
1711         Likewise.
1712         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
1713         Likewise.
1714         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
1715         Likewise.
1716         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
1717         Likewise.
1718         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
1719         Likewise.
1720         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
1721         Likewise.
1722         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
1723         Likewise.
1724         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
1725         Likewise.
1726         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
1727         Likewise.
1728
1729         * scripts/data/c++-types-x32-linux-gnu.data: New file.
1730         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
1731
1732 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
1733
1734         [BZ #10846]
1735         [BZ #14036]
1736         * math/libm-test.inc (exp_test): Add test from bug 14036.
1737         (pow_test): Add test from bug 10846.
1738
1739         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
1740         and other flags.
1741         (special_function): Do not include flags in test name.
1742         (parse_args): Likewise.
1743         * sysdeps/i386/fpu/libm-test-ulps: Update.
1744         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
1745         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
1746         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
1747         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1748
1749         * math/gen-libm-test.pl (%beautify): Add entries for underflow
1750         exceptions.
1751         * math/libm-test.inc ("Philosophy"): Update comment about
1752         exception testing.
1753         (UNDERFLOW_EXCEPTION): New macro.
1754         (UNDERFLOW_EXCEPTION_OK): Likewise.
1755         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
1756         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
1757         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
1758         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
1759         (INVALID_EXCEPTION_OK): Update value.
1760         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
1761         (OVERFLOW_EXCEPTION_OK): Likewise.
1762         (IGNORE_ZERO_INF_SIGN): Likewise.
1763         (test_exceptions): Handle underflow exceptions.
1764         (acos_test): Update for underflow exception expectations.
1765         (cexp_test): Likewise.
1766         (clog_test): Likewise.
1767         (clog10_test): Likewise.
1768         (csqrt_test): Likewise.
1769         (ctan_test): Likewise.
1770         (ctanh_test): Likewise.
1771         (exp_test): Likewise.
1772         (exp10_test): Likewise.
1773         (exp2_test): Likewise.
1774         (expm1_test): Likewise.
1775         (fma_test): Likewise.
1776         (j0_test): Likewise.
1777         (jn_test): Likewise.
1778         (nexttoward_test): Likewise.
1779         (pow_test): Likewise.
1780         (scalbn_test): Likewise.
1781         (scalbln_test): Likewise.
1782         (tan_test): Likewise.
1783         (y1_test): Likewise.
1784         * sysdeps/i386/fpu/libm-test-ulps: Update.
1785         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1786
1787 2012-05-23  David S. Miller  <davem@davemloft.net>
1788
1789         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
1790         (__libc_sigaction): Remove unused local variables.
1791
1792 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1793
1794         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
1795
1796 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1797
1798         mktime: avoid signed integer overflow
1799         * time/mktime.c (__mktime_internal): Do not mishandle the case
1800         where diff == INT_MIN.
1801
1802         mktime: simplify computation of average
1803         * time/mktime.c (ranged_convert): Use new time_t_avg function
1804         instead of rolling our own (probably-slower) code.
1805
1806         mktime: do not assume signed right shift propagates sign bit
1807         * time/mktime.c (isdst_differ): New static function.
1808         (__mktime_internal): No need to normalize tm_isdst now.
1809         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
1810         tm_isdst values.
1811
1812         mktime: merge another wrapv change from gnulib
1813         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
1814         from some compilers.
1815
1816         mktime: remove incorrect attempt at unusual arithmetics
1817         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
1818         The code didn't really work on such machines anyway.
1819         (TYPE_MINIMUM): Assume two's complement.
1820         (twos_complement_arithmetic): Verify that long_int and time_t
1821         are two's complement (or unsigned, in the latter case).
1822
1823         mktime: check signed shifts on long_int and time_t, too
1824         * time/mktime.c (SHR): Check that shifts work as desired
1825         on the types long_int and time_t too, as SHR is used on
1826         such types.
1827
1828         mktime: do not assume 'long' is wide enough
1829         * time/mktime.c (verify): Move decl up.
1830         (long_int): New type.
1831         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
1832         to remove assumption in the code that 'long' is wide enough to
1833         store year values.  This assumption is not true on x32 and on
1834         some non-glibc platforms.
1835
1836         mktime: merge wrapv change from gnulib
1837         * time/mktime.c (WRAPV): New macro.
1838         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
1839         (guess_time_tm, __mktime_internal): Do not assume that signed
1840         integer overflow wraps around; modern compilers generate code
1841         where this assumption is no longer valid.
1842
1843 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1844
1845         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1846         Replace "jmp L(pseudo_end)" with "ret".
1847         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1848         Likewise.
1849
1850 2012-05-23  Andreas Jaeger  <aj@suse.de>
1851
1852         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
1853         * sysdeps/unix/sysv/linux/poll.c: Remove file.
1854
1855 2012-05-23  Andreas Jaeger  <aj@suse.de>
1856             Maximilian Attems  <max@stro.at>
1857
1858         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
1859         New macros.
1860
1861 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1862
1863         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
1864         code so that pseudo_end is just ret and the stack pointer is
1865         correct also for static library in error case.
1866
1867 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
1868
1869         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
1870         move to syscalls.list.
1871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
1872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
1873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
1874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
1875
1876         * manual/install.texi (Running make install): Do not mention Linux
1877         kernel version for which pt_chown is not needed.
1878         (Linux): Do not mention problems with nscd with 2.0 kernels.
1879         * INSTALL: Regenerated.
1880
1881 2012-05-23  Andreas Jaeger  <aj@suse.de>
1882
1883         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
1884         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
1885         macro.
1886         * sysdeps/unix/sysv/linux/s390/bits/mman.h
1887         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1888         * sysdeps/unix/sysv/linux/sh/bits/mman.h
1889         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1890         * sysdeps/unix/sysv/linux/i386/bits/mman.h
1891         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1892         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
1893         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1894         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
1895         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1896         * sysdeps/unix/sysv/linux/bits/in.h
1897         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
1898
1899 2012-05-22  Roland McGrath  <roland@hack.frob.com>
1900
1901         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
1902         (PREPARE_VERSION): Just use assert instead, it will be elided
1903         under [NDEBUG] anyway.
1904
1905 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1906
1907         * sysdeps/unix/sysv/linux/Makefile: Include
1908         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
1909         (sysdep_routines): Remove sysctl.
1910         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
1911         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
1912         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
1913         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
1914         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
1915
1916 2012-05-22  Andreas Jaeger  <aj@suse.de>
1917
1918         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
1919         that pseudo_end is just ret and the stack pointer is correct also
1920         for static library in error case.
1921
1922 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
1923
1924         [BZ #14122]
1925         * nss/nsswitch.c (defconfig_entries): New variable.
1926         (__nss_database_lookup): Don't leak defconfig entries.
1927         (nss_parse_service_list): Don't leak on error paths.
1928         (free_database_entries): New function.
1929         (free_defconfig): New function.
1930         (free_mem): Move common code to free_database_entries.
1931
1932 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1933
1934         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
1935         Add arch_prctl.
1936         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
1937
1938         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
1939         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
1940         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
1941         New macro.
1942         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
1943         (INTERNAL_SYSCALL_TYPES): Likewise.
1944         (LOAD_ARGS_TYPES_[1-6]): Likewise.
1945         (LOAD_REGS_TYPES_[1-6]): Likewise.
1946         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
1947         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
1948
1949 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1950
1951         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
1952         copysignl for GLIBC_2_0.
1953         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
1954         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
1955         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
1956         logbl for GLIBC_2_0.
1957         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
1958         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
1959
1960 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1961
1962         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
1963         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
1964
1965         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1966         Use "neg %eax".
1967
1968         * time/mktime.c: Update copyright years.
1969
1970 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1971
1972         mktime: merge comment-quoting-style change from gnulib
1973         * time/mktime.c: Quote 'like this' in comments.
1974         The GNU coding standards suggest that we no longer quote `like this',
1975         as "`" and "'" are typically rendered asymmetrically nowadays.
1976         The typical gnulib style is to quote 'like this' when quoting
1977         code, and "like this" when quoting English.
1978
1979         * time/mktime.c (compile-command): Add "-I.".
1980
1981         mktime: merge mktime-internal.h change from gnulib
1982         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
1983
1984         mktime: merge time_r change from gnulib
1985         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
1986
1987         mktime: merge DEBUG change from gnulib
1988         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
1989         case system <time.h> has a #define.
1990
1991         mktime: merge <sys/types.h> change from gnulib
1992         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
1993         since <time.t> is now guaranteed to define time_t.
1994
1995         mktime: merge HAVE_CONFIG_H change from gnulib
1996         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
1997
1998 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1999
2000         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
2001         Use "neg %eax".
2002
2003         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
2004         __rlim_t cast.
2005         (struct rusage): Use anonymous union to pad each field to
2006         __syscall_slong_t.
2007
2008 2012-05-21  David S. Miller  <davem@davemloft.net>
2009
2010         * Makefules (o-iterator): Remove .s cases.
2011         (compile-command.s): Delete.
2012         (COMPILE.s): Delete.
2013         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
2014
2015 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
2016
2017         * configure.in (libc_cv_predef_stack_protector): Only consider
2018         "foobar" and "__stack_chk_fail" lines in libc_undefs.
2019         * configure: Regenerated.
2020
2021 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2022
2023         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
2024         New macro.  Use R*LP on int and pointer.
2025         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
2026         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
2027         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
2028         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
2029
2030         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
2031         [__WORDSIZE_TIME64_COMPAT32] instead of
2032         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
2033         (struct utmp): Likewise.
2034         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
2035         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
2036         Renamed to ...
2037         (__WORDSIZE_TIME64_COMPAT32): This.
2038         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
2039         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
2040         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
2041         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
2042         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
2043         (__WORDSIZE_TIME64_COMPAT32): New macro.
2044
2045 2012-05-21  Andreas Jaeger  <aj@suse.de>
2046
2047         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
2048         only if [SHARED]. Add prototype for __wcschr_ia32.
2049
2050 2012-05-21  Roland McGrath  <roland@hack.frob.com>
2051
2052         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
2053         of %rbp unmolested in the jmp_buf while mangling the low bits.
2054         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
2055         unmolested high bits of %rbp while demangling the low bits.
2056         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
2057
2058 2012-05-21  Andreas Jaeger  <aj@suse.de>
2059
2060         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
2061         * sunrpc/svc_simple.c: Use it for registerrpc.
2062         * sunrpc/xcrypt.c: Use it for passwd2des.
2063
2064         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
2065
2066 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2067
2068         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
2069         Don't define if [__SYSCALL_WORDSIZE != 32].
2070         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
2071         New macro.
2072
2073 2012-05-21  Bruno Haible  <bruno@clisp.org>
2074             Andreas Jaeger  <aj@suse.de>
2075
2076         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
2077         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
2078         inptr and inend for must_buffer_ch.
2079         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
2080         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
2081         * stdio-common/Makefile (tests): Remove bug15.
2082         (bug15-ENV): Remove macro.
2083         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
2084         anymore.
2085
2086 2012-05-19  Andreas Jaeger  <aj@suse.de>
2087             Roland McGrath  <roland@hack.frob.com>
2088
2089         * manual/contrib.texi: Completely rewritten. It contains now an
2090         alphabetical list of contributors and their contributions.
2091
2092 2012-05-21  Richard Henderson  <rth@twiddle.net>
2093
2094         * misc/getauxval.c (__getauxval): Use unsigned long int.
2095         * misc/sys/auxv.h: Include <sys/cdefs.h>.
2096         (getauxval): Use unsigned long int.
2097
2098 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2099
2100         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
2101
2102 2012-05-21  Roland McGrath  <roland@hack.frob.com>
2103
2104         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
2105         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
2106         __alignof__ (long double).
2107
2108 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2109
2110         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2111
2112 2012-05-20  Richard Henderson  <rth@twiddle.net>
2113
2114         * misc/getauxval.c: New file.
2115         * misc/sys/auxv.h: New file.
2116         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
2117         (routines): Add getauxval.
2118         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
2119         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
2120         * elf/dl-sysdep.c (_dl_auxv): Remove.
2121         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
2122         * elf/dl-support.c (_dl_auxv): New variable.
2123         (_dl_aux_init): Initialize it.
2124         * manual/startup.texi (Auxiliary Vector): New node.
2125         * sysdeps/generic/bits/hwcap.h: New file.
2126         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
2127         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
2128         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
2129         * sysdeps/sparc/sysdep.h: ... here.  Include it.
2130         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
2131         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
2132         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2133         Update.
2134         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
2135         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
2136         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
2137         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
2138         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
2139         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
2140         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
2141         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
2142
2143 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2144
2145         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2146
2147 2012-05-19  David S. Miller  <davem@davemloft.net>
2148
2149         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2150
2151 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
2152
2153         [BZ #14123]
2154         * math/s_ccosh.c: Include <float.h>
2155         (__ccosh): Avoid internal overflow calculating sinh and cosh
2156         values before multiplying by sin and cos values.
2157         * math/s_ccoshf.c: Likewise.
2158         * math/s_ccoshl.c: Likewise.
2159         * math/s_csin.c: Likewise.
2160         * math/s_csinf.c: Likewise.
2161         * math/s_csinl.c: Likewise.
2162         * math/s_csinh.c: Likewise.
2163         * math/s_csinhf.c: Likewise.
2164         * math/s_csinhl.c: Likewise.
2165         * math/libm-test.inc (ccos_test): Add more tests.
2166         (ccosh_test): Likewise.
2167         (csin_test): Likewise.
2168         (csinh_test): Likewise.
2169         * sysdeps/i386/fpu/libm-test-ulps: Update.
2170         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2171
2172 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2173
2174         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
2175         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
2176
2177         * sysdeps/x86_64/x32/_itoa.h: Add comment.
2178
2179 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
2180
2181         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
2182         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
2183         * sysdeps/powerpc/soft-fp/Versions: Likewise.
2184         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
2185         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
2186         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
2187         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
2188         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
2189         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
2190         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
2191         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
2192         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
2193         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
2194         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
2195         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
2196         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
2197         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
2198         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
2199         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
2200         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
2201         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
2202         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
2203         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
2204         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
2205         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
2206         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
2207         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
2208         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
2209         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
2210         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
2211         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
2212
2213 2012-05-18  Andreas Jaeger  <aj@suse.de>
2214
2215         * csu/.gitignore: Delete.
2216
2217 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2218
2219         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
2220         (timex): Use __syscall_slong_t.
2221
2222 2012-05-18  Andreas Jaeger  <aj@suse.de>
2223             Carlos O'Donell  <carlos_odonell@mentor.com>
2224
2225         * manual/install.texi (Configuring and compiling): Update
2226         description about files modified in the source directory.
2227         * INSTALL: Regenerated.
2228
2229 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2230
2231         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
2232         value.  Use "or" to set return value to -1.
2233         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
2234         negate return value.
2235
2236 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2237
2238         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
2239         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
2240         failure if the compiler has Graphite support disabled.
2241         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
2242         Likewise.
2243         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
2244         CFLAGS-memmove.c): Likewise.
2245         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
2246         Likewise.
2247
2248 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2249
2250         * sysdeps/x86_64/x32/_itoa.h: New file.
2251
2252         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
2253         getdents system call only if kernel and user dirents have the
2254         same d_ino and d_off.
2255
2256         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
2257         LLONG_MAX != LONG_MAX.
2258         (_itoa_word): Use _ITOA_WORD_TYPE on value.
2259         (_fitoa_word): Likewise.
2260
2261         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
2262         years.
2263         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
2264         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
2265         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
2266
2267         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
2268         include <bits/wordsize.h>.  Check __x86_64__ instead of
2269         __WORDSIZE.
2270         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
2271         if __x86_64__ is defined.  Use anonymous union on fpstate.
2272
2273         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
2274         anonymous union.
2275
2276 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
2277
2278         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
2279         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
2280         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
2281         Refer to _rtld_local_ro instead of _rtld_global_ro.
2282         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
2283         Likewise.
2284         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
2285         Likewise.
2286         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
2287         Likewise.
2288         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
2289         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
2290         of _rtld_global, and rtld_progname instead of _dl_argv[0].
2291
2292         * sysdeps/powerpc/powerpc32/dl-machine.c
2293         (__elf_machine_runtime_setup) [PROF]: Don't reference
2294         _dl_prof_resolve.
2295
2296 2012-05-18  Andreas Jaeger  <aj@suse.de>
2297
2298         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
2299         function only available for GCCs before 3.4 since GCC 3.4
2300         introduced a builtin.
2301         (lrint): Likewise.
2302         (llrintf): Likewise.
2303         (llrint): Likewise.
2304         (fmaxf): Likewise.
2305         (fmax): Likewise.
2306         (fminf): Likewise.
2307         (fmin): Likewise.
2308         (rint): Likewise.
2309         (rintf): Likewise.
2310         (nearbyint): Likewise.
2311         (nearbyintf): Likewise.
2312         (ceil): Likewise.
2313         (ceilf): Likewise.
2314         (floor): Likewise.
2315         (floorf): Likewise.
2316
2317 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
2318
2319         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
2320         on both fields and cast pointer to __syscall_ulong_t.
2321
2322         * bits/types.h (__fsword_t): New type.
2323         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
2324         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
2325         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2326         (__FSWORD_T_TYPE): Likewise.
2327         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2328         (__FSWORD_T_TYPE): Likewise.
2329         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2330         (__FSWORD_T_TYPE): Likewise.
2331         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
2332         (__FSWORD_T_TYPE): Likewise.
2333         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
2334         __SWORD_TYPE with __fsword_t.
2335         (statfs64): Likewise.
2336
2337 2012-05-17  David S. Miller  <davem@davemloft.net>
2338
2339         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
2340
2341 2012-05-17  Andreas Jaeger  <aj@suse.de>
2342
2343         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
2344         warning.
2345
2346 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
2347
2348         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
2349
2350 2012-05-17  Andreas Jaeger  <aj@suse.de>
2351
2352         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
2353         when it is used.
2354
2355 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
2356
2357         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
2358
2359 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
2360
2361         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
2362         * sysdeps/x86_64/tst-mallocalign1.c: New file.
2363
2364 2012-05-17  Andreas Jaeger  <aj@suse.de>
2365             Carlos O'Donell  <carlos_odonell@mentor.com>
2366
2367         [BZ #14059]
2368         * sysdeps/x86_64/multiarch/init-arch.h
2369         (bit_YMM_Usable): Rename to...
2370         (bit_AVX_Usable): ... this.
2371         (bit_FMA4_Usable): New macro.
2372         (bit_XMM_state): New macro.
2373         (bit_YMM_state): New macro.
2374         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
2375         [__ASSEMBLER__] (index_AVX_Usable): ... this.
2376         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
2377         (CPUID_OSXSAVE): New macro.
2378         (CPUID_AVX): New macro.
2379         (CPUID_FMA4): New macro.
2380         (index_YMM_Usable): Rename to...
2381         (index_AVX_Usable): ... this.
2382         (HAS_AVX): Use HAS_ARCH_FEATURE.
2383         (HAS_FMA4): Likewise.
2384         (HAS_YMM_USABLE): Remove.
2385         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2386         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
2387         are present.
2388         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
2389         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
2390         * sysdeps/x86_64/multiarch/Makefile: Likewise.
2391         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
2392         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
2393
2394 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
2395
2396         * math/libm-test.c: Support platforms without multiple rounding modes.
2397         * math/bug-nextafter.c: Support platforms without FP exceptions.
2398         * math/bug-nexttoward.c: Likewise.
2399         * math/test-fenv.c: Likewise.
2400         * math/test-misc.c: Likewise.
2401         * stdlib/bug-getcontext.c: Likewise.
2402
2403 2012-05-17  Andreas Jaeger  <aj@suse.de>
2404
2405         * manual/examples/search.c (critter_cmp): Change signature to
2406         avoid warnings.
2407         * manual/string.texi (Collation Functions): Likewise.
2408
2409 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2410
2411         * bits/types.h: Fold copyright years.
2412         * bits/typesizes.h: Likewise.
2413         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
2414         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
2415         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
2416         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
2417         * time/time.h: Likewise.
2418
2419 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
2420
2421         [BZ #208]
2422         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
2423         in instead of returning them.  Return void.
2424         (__libc_mallinfo): Accumulate over all arenas.
2425         (__malloc_stats): Adjust for change in int_mallinfo interface.
2426
2427 2012-05-16  Roland McGrath  <roland@hack.frob.com>
2428
2429         [BZ #10375]
2430         * configure.in (NM): Add AC_CHECK_TOOL for it.
2431         (libc_extra_cflags): New substituted variable.
2432         Check for -fstack-protector being used implicitly.
2433         * configure: Regenerated.
2434         * config.make.in (config-extra-cflags): New variable,
2435         gets @libc_extra_cflags@.
2436         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
2437
2438         [BZ #10375]
2439         * configure.in: Check for _FORTIFY_SOURCE being predefined.
2440         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
2441         * configure: Regenerated.
2442         * config.make.in (CPPUNDEFS): New substituted variable.
2443         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
2444         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
2445         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
2446
2447 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2448
2449         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
2450         (mq_attr): Use __syscall_slong_t.
2451
2452 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2453
2454         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
2455         Check __x86_64__ instead of __WORDSIZE.
2456         (_STAT_VER_LINUX): Likewise.
2457         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
2458         __syscall_ulong_t and __syscall_slong_t.
2459         (stat64): Likewise.
2460
2461 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2462
2463         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
2464
2465 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2466
2467         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
2468
2469 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2470
2471         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
2472         __syscall_ulong_t.
2473
2474         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
2475         include <bits/wordsize.h>.  Check __x86_64__ instead of
2476         __WORDSIZE.
2477         (greg_t): Use "__extension__ long long int" if __x86_64__ is
2478         defined.
2479         (mcontext_t): Replace "unsigned long" with "unsigned long long".
2480
2481         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
2482         include <bits/wordsize.h>.  Check __x86_64__ instead of
2483         __WORDSIZE.
2484         (user_regs_struct): Use "__extension__ unsigned long long"
2485         instead of "unsigned long" if __x86_64__ is defined.
2486         (user): Likewise.  Pad after pointer field if __ILP32__ is
2487         defined.
2488
2489 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
2490
2491         * configure.in (makeinfo): Require version 4.5 or later.  Allow
2492         versions 5 to 9.
2493         * configure: Regenerated.
2494         * manual/install.texi (texinfo): Increase version requirement to
2495         4.5 or later.
2496         * INSTALL: Regenerated.
2497
2498         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
2499
2500 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2501
2502         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
2503
2504         * sysdeps/x86_64/x32/ffs.c: New file.
2505
2506         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
2507         __syscall_ulong_t.
2508         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
2509         defined.  Use __syscall_ulong_t.
2510         (shminfo): Use __syscall_ulong_t.
2511         (shm_info): Likewise.
2512
2513         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
2514         __syscall_ulong_t.
2515
2516         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
2517         <bits/wordsize.h>.
2518         (msgqnum_t): Use __syscall_ulong_t.
2519         (msglen_t): Likewise.
2520         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
2521         __syscall_ulong_t.
2522
2523         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
2524         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
2525
2526         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
2527
2528         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
2529         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
2530
2531         * sysvipc/sys/msg.h (msgbuf): Replace long int with
2532         __syscall_slong_t.
2533
2534         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
2535         include <bits/wordsize.h>.  Check __x86_64__ instead of
2536         __WORDSIZE.
2537
2538         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
2539         "unsigned long long int" if __x86_64__ is defined.
2540         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
2541
2542         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
2543         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
2544         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
2545
2546         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
2547         <stdint.h>.
2548         (GET_PC): Cast to uintptr_t first.
2549         (GET_FRAME): Likewise.
2550         (GET_STACK): Likewise.
2551
2552         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
2553         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
2554         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
2555         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
2556         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
2557         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
2558         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
2559         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
2560         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
2561         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
2562         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
2563         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
2564         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
2565         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
2566         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
2567         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
2568         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
2569         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
2570         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
2571         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
2572         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
2573         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
2574         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
2575         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
2576         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
2577         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
2578         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
2579         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
2580         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
2581
2582 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
2583
2584         * Makerules (+depfiles): Also collect depfiles from .oS in
2585         $(extra-objs).
2586         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
2587         .oS, $(libnldbl-routines)).
2588
2589         * Makerules (native-compile-mkdep-flags): Define.
2590         * sunrpc/Makefile (extra-objs): Add $(addprefix
2591         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
2592         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
2593         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
2594         calling $(make-target-directory).
2595
2596 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2597
2598         * bits/types.h (__snseconds_t): Removed.
2599         * time/time.h (struct timespec): Replace __snseconds_t with
2600         __syscall_slong_t.
2601         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
2602         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
2603         Likewise.
2604         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2605         (__SNSECONDS_T_TYPE): Likewise.
2606         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2607         (__SNSECONDS_T_TYPE): Likewise.
2608         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2609         (__SNSECONDS_T_TYPE): Likewise.
2610
2611 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2612
2613         * sysdeps/mach/hurd/bits/typesizes.h
2614         (__SYSCALL_SLONG_TYPE): New macro.
2615         (__SYSCALL_ULONG_TYPE): Likewise.
2616
2617 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2618
2619         * bits/types.h (__syscall_slong_t): New type.
2620         (__syscall_ulong_t): Likewise.
2621
2622         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
2623         (__SYSCALL_ULONG_TYPE): Likewise.
2624         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2625         (__SYSCALL_SLONG_TYPE): Likewise.
2626         (__SYSCALL_ULONG_TYPE): Likewise.
2627         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2628         (__SYSCALL_SLONG_TYPE): Likewise.
2629         (__SYSCALL_ULONG_TYPE): Likewise.
2630         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2631         (__SYSCALL_SLONG_TYPE): Likewise.
2632         (__SYSCALL_ULONG_TYPE): Likewise.
2633
2634 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2635
2636         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
2637         Add sigaltstack-offsets.sym.
2638         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
2639         <sigaltstack-offsets.h>.
2640         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
2641         longjmp_msg pointer.
2642         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
2643         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
2644         signal stack.
2645         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
2646
2647 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
2648
2649         * elf/stackguard-macros.h: Remove file.
2650         * sysdeps/generic/stackguard-macros.h: New file.
2651         * sysdeps/i386/stackguard-macros.h: Likewise.
2652         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
2653         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
2654         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
2655         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
2656         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
2657         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
2658         * sysdeps/x86_64/stackguard-macros.h: Likewise.
2659         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
2660         <elf/stackguard-macros.h>.
2661
2662         [BZ #14109]
2663         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
2664         __aligned__ in attribute.
2665         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
2666         (gregset_t): Likewise.
2667
2668 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2669
2670         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
2671         * sysdeps/x86_64/64/Implies-after: Here.  New file.
2672         * sysdeps/x86_64/x32/Implies-after: New file.
2673
2674 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2675
2676         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
2677         and access return value for _dl_profile_fixup.  Use R10_LP to
2678         load frame size.
2679
2680 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2681
2682         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
2683
2684 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2685
2686         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
2687         * sysdeps/x86_64/x32/sysdep.h: New file.
2688
2689 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2690
2691         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
2692         * sysdeps/x86_64/setjmp.S: Likewise.
2693
2694 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2695
2696         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
2697         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
2698         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
2699         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
2700         remove unused global constant.
2701
2702 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
2703
2704         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
2705         include of <not-cancel.h>.
2706
2707 2012-05-15  Roland McGrath  <roland@hack.frob.com>
2708
2709         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
2710
2711 2012-05-15  Jeff Law  <law@redhat.com>
2712             Andreas Jaeger  <aj@suse.de>
2713
2714         [BZ #13594]
2715         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
2716         out from...
2717         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
2718         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
2719         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
2720         code changing __hst_map_handle.map.
2721
2722 2012-05-15  Roland McGrath  <roland@hack.frob.com>
2723
2724         * configure.in (sysnames): Look for Implies-before and Implies-after
2725         files.
2726         * configure: Regenerated.
2727
2728 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2729
2730         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
2731         8-byte data alignment with LP_SIZE alignment.
2732
2733 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2734
2735         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
2736         into R10_LP.
2737
2738 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2739
2740         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
2741
2742 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2743
2744         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
2745         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
2746         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
2747         Likewise.
2748         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2749
2750 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2751
2752         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
2753         (stackinfo_sub_sp): Likewise.
2754
2755 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2756
2757         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
2758         RAX_LP.
2759
2760 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2761
2762         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
2763         into R*_LP.
2764
2765 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2766
2767         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
2768         sizes into R*_LP.
2769
2770 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2771
2772         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
2773
2774 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2775
2776         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
2777         into R11_LP and load __x86_64_shared_cache_size_half into
2778         R8_LP.
2779
2780 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2781
2782         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
2783         R8_LP.
2784
2785 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2786
2787         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
2788         logb for POWER7.
2789         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
2790         logbf for POWER7.
2791         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
2792         logbl for POWER7.
2793         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
2794         powerpc32/power7/fpu/s_logb.c via #include.
2795         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
2796         powerpc32/power7/fpu/s_logbf.c via #include.
2797         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
2798         powerpc32/power7/fpu/s_logbl.c via #include.
2799
2800 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
2801
2802         * README.libm: Remove file.
2803
2804 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2805
2806         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
2807         count for x32.  Use R*_LP and omit operand-size suffix.
2808
2809 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2810
2811         * shlib-versions: Move x86_64-.*-linux.* entries to ...
2812         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
2813         * sysdeps/x86_64/x32/shlib-versions: New file.
2814
2815 2012-05-14  Roland McGrath  <roland@hack.frob.com>
2816
2817         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
2818         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
2819         Use _dl_fatal_printf instead.
2820
2821 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
2822
2823         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
2824         set if not set by the user.  Do not allow for being unset.
2825         * sysdeps/unix/sysv/linux/configure: Regenerated.
2826
2827 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2828
2829         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
2830         the `q' suffix from lea and replace .quad with ASM_ADDR.
2831
2832 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2833
2834         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
2835         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
2836         instead of $17.
2837         (PTR_DEMANGLE): Likewise.
2838
2839 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2840
2841         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
2842         (LP_OP): Likewise.
2843         (ASM_ADDR): Likewise.
2844         (RAX_LP): Likewise.
2845         (RBP_LP): Likewise.
2846         (RBX_LP): Likewise.
2847         (RCX_LP): Likewise.
2848         (RDI_LP): Likewise.
2849         (RSI_LP): Likewise.
2850         (RSP_LP): Likewise.
2851         (R8_LP): Likewise.
2852         (R9_LP): Likewise.
2853         (R10_LP): Likewise.
2854         (R10_LP): Likewise.
2855         (R11_LP): Likewise.
2856         (R12_LP): Likewise.
2857         (R13_LP): Likewise.
2858         (R14_LP): Likewise.
2859         (R15_LP): Likewise.
2860
2861 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2862
2863         * sysdeps/x86_64/x32/dl-machine.h: New file.
2864
2865 2012-05-14  Andreas Jaeger  <aj@suse.de>
2866
2867         * manual/Makefile (subdir): Remove export of subdir.
2868         (all): Remove target.
2869         (.PHONY): Remove all from list.
2870         (mkinstalldirs): Remove.
2871         (.PHONY): Remove installdirs from list.
2872         ($(inst_infodir)/libc.info): Use make-target-directory.
2873         (installdirs): Remove.
2874         (subdir_%): Remove.
2875         (glibc-targets): Remove.
2876         (lib): Remove.
2877         (stubs): Remove.
2878         ($(objpfx)stubs ../po/manual.pot): Remove.
2879         ($(objpfx)stamp%): Remove.
2880         (make-target-directory): Remove.
2881         (subdir_install): Remove.
2882         (routines): Remove.
2883         (aux): Remove.
2884         (sources): Remove.
2885         (objects): Remove.
2886         (headers): Remove.
2887
2888         [BZ #13750]
2889         * manual/.gitignore: Remove, it's not needed anymore.
2890         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
2891         all files in it.
2892         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
2893         directory.
2894         (texis): Renamed to $(objpfx)texis.
2895         (texis-path): New, contains path to generated files.
2896         (chapters.%): Use texis-path for complete path, add extra argument
2897         libc-texinfo.sh.
2898         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
2899         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
2900         (summary,texi, stamp-summary): Use complete path of
2901         files. Generate files in build dir.
2902         (dir-add.texi): Build in build dir.
2903         (libm-err.texi,stamp-libm-err): Likewise.
2904         (version.texi, stamp-version): Likewise.
2905         (.%c.texi): Likewise.
2906         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
2907         (mostlyclean): Remove target.
2908         (realclean): Remove target.
2909         (generated): Add new variable with contents from mostlyclean and
2910         realclean, remove entries duplicated in common-mostlyclean, add
2911         stamp-libm-err and stamp-version.
2912         (generated-dirs): Add libc directory.
2913         ($(inst_infodir)/libc.info): Install files from build dir.
2914
2915         * manual/install.texi (Configuring and compiling): Adjust since
2916         the info files are not part of the tar ball anymore.
2917
2918 2012-05-14  Andreas Jaeger  <aj@suse.de>
2919
2920         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
2921         variable.
2922
2923 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
2924
2925         [BZ #13717]
2926         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
2927         to 2.2.0 where earlier.
2928         * sysdeps/unix/sysv/linux/configure: Regenerated.
2929         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
2930         Remove conditional code.
2931         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
2932         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
2933         Remove conditional code.
2934         [!__NR_lchown]: Likewise.
2935         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
2936         [__NR_lchown]: Likewise.
2937         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
2938         comment referencing __ASSUME_LCHOWN_SYSCALL.
2939         * sysdeps/unix/sysv/linux/i386/sigaction.c
2940         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2941         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2942         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
2943         Remove conditional code.
2944         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
2945         (__protocol_available): Remove #if 0 code.
2946         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
2947         conditional code.
2948         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
2949         * sysdeps/unix/sysv/linux/kernel-features.h
2950         (__ASSUME_GETCWD_SYSCALL): Don't define.
2951         (__ASSUME_REALTIME_SIGNALS): Likewise.
2952         (__ASSUME_PREAD_SYSCALL): Likewise.
2953         (__ASSUME_PWRITE_SYSCALL): Likewise.
2954         (__ASSUME_POLL_SYSCALL): Likewise.
2955         (__ASSUME_LCHOWN_SYSCALL): Likewise.
2956         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
2957         non-SPARC.
2958         (__ASSUME_SIOCGIFNAME): Don't define.
2959         (__ASSUME_MSG_NOSIGNAL): Likewise.
2960         (__ASSUME_SENDFILE): Define unconditionally.
2961         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
2962         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
2963         conditional code.
2964         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
2965         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
2966         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
2967         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
2968         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
2969         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
2970         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
2971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
2972         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2973         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2974         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
2975         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2976         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2977         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
2978         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2979         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
2981         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2982         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2983         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
2984         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2985         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
2987         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2988         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2989         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
2990         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2991         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
2993         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2994         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2995         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
2996         Remove conditional code.
2997         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2998         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
2999         Remove conditional code.
3000         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3001         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
3002         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
3003         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
3004         Remove conditional code.
3005         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3006         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
3007         Remove conditional code.
3008         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3009         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
3010         Remove conditional code.
3011         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3012         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
3013         Remove conditional code.
3014         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3015         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
3016         Remove conditional code.
3017         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3018         * sysdeps/unix/sysv/linux/sh/pwrite64.c
3019         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
3020         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3021         * sysdeps/unix/sysv/linux/sigaction.c
3022         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3023         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3024         * sysdeps/unix/sysv/linux/sigpending.c
3025         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3026         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3027         * sysdeps/unix/sysv/linux/sigprocmask.c
3028         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3029         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3030         * sysdeps/unix/sysv/linux/sigsuspend.c
3031         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3032         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3033         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
3034         (__libc_missing_rt_sigs): Remove.
3035         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
3036         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
3037         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
3038         Remove conditional code.
3039         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
3040         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
3041         return 1.
3042         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
3043         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
3044         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
3045         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
3046
3047 2012-05-14  Andreas Jaeger  <aj@suse.de>
3048
3049         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
3050         it's not used in glibc.
3051         (__coshm1): Likewise.
3052         (__acosh1p): Likewise.
3053         (__sgn): Likewise.
3054
3055         * manual/string.texi (Copying and Concatenation): Add missing
3056         variable in concat example.
3057         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
3058
3059 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3060
3061         [BZ #14103]
3062         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
3063         __builtin_clzl with __builtin_clzll.
3064
3065 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3066
3067         [BZ #14104]
3068         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
3069         libc_freeres_ptr.
3070
3071 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3072
3073         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
3074         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
3075         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
3076         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
3077
3078 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
3079
3080         * NEWS: Update ia64 info.
3081
3082 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
3083
3084         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
3085         used as bcopy.
3086
3087 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3088
3089         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
3090         * sysdeps/unix/syscalls.list (dup3): Likewise.
3091         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
3092         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
3093
3094 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
3095
3096         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
3097         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
3098
3099 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
3100
3101         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
3102         thread pointer.
3103         (TLS_IE): Use mov/add instead of movq/addq to load thread
3104         pointer.
3105         (TLS_GD_PREFIX): New.
3106         (TLS_GD): Use it.
3107
3108 2012-05-11  David S. Miller  <davem@davemloft.net>
3109
3110         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
3111         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
3112         (_FPU_SETCW): Likewise.
3113
3114 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3115
3116         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
3117         is 32-byte aligned.
3118
3119 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
3120
3121         [BZ #11837]
3122         * iconvdata/gb18030.c: Update tables.
3123         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
3124         characters specially.
3125         (BODY for TO_LOOP): Add encoding of missing ranges.
3126
3127 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3128
3129         [BZ #13673]
3130         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
3131         * sysdeps/mach/hurd/dup3.c: Likewise.
3132         * sysdeps/mach/hurd/readlinkat.c: Likewise.
3133         * sysdeps/powerpc/memmove.c:: Likewise.
3134
3135 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3136
3137         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
3138         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
3139
3140 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3141
3142         * elf/elf.h (R_X86_64_RELATIVE64): New.
3143         (R_X86_64_NUM): Updated.
3144         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
3145         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
3146         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
3147         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
3148         tst-quad1pie tst-quad2pie
3149         (modules-names): Add tst-quadmod1 tst-quadmod2.
3150         ($(objpfx)tst-quad1): New dependency.
3151         ($(objpfx)tst-quad2): Likewise.
3152         ($(objpfx)tst-quad1pie): Likewise.
3153         ($(objpfx)tst-quad2pie): Likewise.
3154         * sysdeps/x86_64/tst-quad1.c: New file.
3155         * sysdeps/x86_64/tst-quad1pie.c: New file.
3156         * sysdeps/x86_64/tst-quad2.c: Likewise.
3157         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
3158         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
3159         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
3160         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
3161         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
3162
3163 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3164
3165         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
3166         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
3167         * streams/stropts.h (t_scalar_t): Define type.
3168
3169         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
3170         (_PATH_PRESERVE): Set to "/var/lib".
3171         (_PATH_RWHODIR): Set to "/var/spool/rwho".
3172
3173         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
3174         instead of int.
3175
3176         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
3177         if __dir_mkfile succeeded.
3178
3179         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
3180         checking for _hurd_dtablesize.  Unlock it right after having
3181         finished _hurd_dtable allocation.
3182
3183 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3184
3185         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
3186         * sysdeps/mach/hurd/configure: Regenerated.
3187         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
3188         special-casing to...
3189         * sysdeps/gnu/configure.in: ... this new file.
3190         * sysdeps/unix/sysv/linux/configure: Regenerated.
3191         * sysdeps/gnu/configure: New generated file.
3192
3193         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
3194         for Linux: use nsec instead of usec, as well as:
3195         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
3196         members of type struct timespec.
3197         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
3198         New macros.
3199         (struct stat64): Likewise.
3200         (_STATBUF_ST_NSEC): New macro.
3201         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
3202
3203         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3204         __strtoul_internal rather than strtoul.
3205
3206 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
3207
3208         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
3209         and reject them.
3210
3211 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3212
3213         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
3214         which preserves existing values.
3215         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
3216
3217 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
3218
3219         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
3220         TIMEOUT values.  Return EINVAL for NFDS values either negative or
3221         greater than FD_SETSIZE.
3222
3223 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3224
3225         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
3226         allocated, call __vm_protect to finish enabling the existing space, and
3227         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
3228         allocate the remainder.
3229
3230 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
3231
3232         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
3233         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
3234
3235 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3236
3237         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
3238         sysdeps/mach/hurd/readlink.c.
3239
3240         * posix/tst-sysconf.c (posix_options): Only use
3241         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
3242         _POSIX_SYNCHRONIZED_IO when they are defined
3243         * sysdeps/mach/hurd/bits/posix_opt.h:
3244         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
3245         (_XOPEN_REALTIME): Undefine macro.
3246         (_XOPEN_REALTIME_THREADS): Undefine macro.
3247         (_XOPEN_SHM): Undefine macro.
3248         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
3249         macro to -1.
3250         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
3251         macro to -1.
3252         (_POSIX_ASYNC_IO): Undefine macro.
3253         (_POSIX_PRIORITIZED_IO): Undefine macro.
3254         (_POSIX_SPIN_LOCKS): Define macro to -1.
3255
3256         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
3257         SA_NODEFER, SA_RESETHAND.
3258         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
3259         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
3260         F_DUPFD_CLOEXEC.
3261
3262 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3263
3264         * elf/Makefile (pldd-modules): Define unconditionally.
3265
3266 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3267
3268         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
3269
3270 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3271
3272         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
3273         Return ENOENT when name is empty.
3274         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
3275
3276 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3277
3278         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
3279
3280         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
3281
3282 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3283
3284         Fix mlock in all cases except non-readable pages.
3285         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
3286         instead of VM_PROT_ALL as parameter to __vm_wire function.
3287
3288         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
3289         (__mkdir): When path is `/', just fail with EEXIST.
3290         * sysdeps/mach/hurd/mkdirat.c: Likewise.
3291
3292 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3293
3294         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
3295         <sys/uio.h> (for writev).
3296         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
3297         and <sys/param.h> (for MIN).
3298
3299 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
3300
3301         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
3302         REQUESTED_TIME.  Properly set the remaining time and return EINTR
3303         if interrupted.
3304
3305 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3306
3307         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
3308         Depend on against $(link-rpcuserlibs).
3309
3310 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3311
3312         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
3313         (__libc_stack_end): Do not use attribute_relro.
3314         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
3315         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
3316         to libthread-provided value.
3317         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
3318         attribute_relro.
3319
3320 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3321
3322         [BZ #3748]
3323         * bits/libc-lock.h (__libc_once_get): New macro.
3324         * sysdeps/mach/bits/libc-lock.h: Likewise.
3325         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
3326         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
3327         instead of using implementation details.
3328
3329         * libio/fileops.c: Unconditionally include <kernel-features.h>.
3330         * libio/freopen.c: Likewise.
3331         * libio/freopen64.c: Likewise.
3332         * misc/syslog.c: Likewise.
3333         * nscd/connections.c: Likewise.
3334         * nscd/netgroupcache.c: Likewise.
3335         * sysdeps/posix/getcwd.c: Likewise.
3336
3337 2012-05-10  Roland McGrath  <roland@hack.frob.com>
3338
3339         * math/w_ilogbf.c: Add #include <limits.h>.
3340
3341 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3342
3343         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
3344         path instead of returning without unlocking.
3345
3346         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
3347         immediate-write ioctls.
3348         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
3349
3350 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3351
3352         * sysdeps/mach/hurd/i386/init-first.c (init): Use
3353         __builtin_frame_address instead of making assumptions about the
3354         location of the return address relative to DATA.  Force early load of
3355         the return address.
3356         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
3357         __builtin_frame_address.
3358
3359         dup3 for GNU Hurd.
3360         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
3361         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
3362         implement dup3 and do some further code clean-ups.
3363         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
3364         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
3365
3366 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3367
3368         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
3369
3370         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
3371         HURD_CRITICAL_END around holding _hurd_dtable_lock.
3372         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
3373         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
3374         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
3375         d->port.lock.
3376
3377         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
3378         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
3379         when handler == SIG_ERR, not when handler != SIG_ERR.
3380
3381 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3382
3383         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
3384         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
3385         definitions.
3386
3387         accept4 for GNU Hurd.
3388         * include/sys/socket.h (__libc_accept4): New prototype.
3389         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
3390         to implement __libc_accept4.
3391         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
3392         __libc_accept4.
3393         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
3394
3395         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
3396         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
3397         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
3398         signal-defines.sym.
3399
3400 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3401
3402         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
3403
3404 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3405
3406         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
3407         assertion on O_CLOEXEC flag.
3408         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
3409         * hurd/intern-fd.c: Likewise.
3410         * hurd/port2fd.c: Likewise.
3411
3412 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3413
3414         [BZ #3906]
3415         * bits/in.h (IPV6_PKTINFO): Define new macro.
3416         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
3417
3418 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3419
3420         [BZ #13954]
3421         [BZ #13955]
3422         [BZ #13956]
3423         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
3424         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3425         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
3426         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3427         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3428         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3429         * math/libm-test.inc (logb_test) : Additional logb tests.
3430
3431 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
3432             Andreas Jaeger  <aj@suse.de>
3433
3434         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
3435         * configure: Regenerated.
3436         * config.h.in (LINK_OBSOLETE_RPC): New macro.
3437         * config.make.in (link-obsolete-rpc): New substituted variable.
3438         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
3439         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
3440         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
3441         (shared-only-routines): Don't set it under [link-obsolete-rpc],
3442         so that libc.a contains the symbols.
3443         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
3444         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
3445         * sunrpc/auth_none.c: Likewise.
3446         * sunrpc/auth_unix.c: Likewise.
3447         * sunrpc/authdes_prot.c: Likewise.
3448         * sunrpc/authuxprot.c: Likewise.
3449         * sunrpc/clnt_gen.c: Likewise.
3450         * sunrpc/clnt_perr.c: Likewise.
3451         * sunrpc/clnt_raw.c: Likewise.
3452         * sunrpc/clnt_simp.c: Likewise.
3453         * sunrpc/clnt_tcp.c: Likewise.
3454         * sunrpc/clnt_udp.c: Likewise.
3455         * sunrpc/clnt_unix.c: Likewise.
3456         * sunrpc/des_crypt.c: Likewise.
3457         * sunrpc/des_soft.c: Likewise.
3458         * sunrpc/get_myaddr.c: Likewise.
3459         * sunrpc/key_call.c: Likewise.
3460         * sunrpc/key_prot.c: Likewise.
3461         * sunrpc/netname.c: Likewise.
3462         * sunrpc/pm_getmaps.c: Likewise.
3463         * sunrpc/pm_getport.c: Likewise.
3464         * sunrpc/pmap_clnt.c: Likewise.
3465         * sunrpc/pmap_prot.c: Likewise.
3466         * sunrpc/pmap_prot2.c: Likewise.
3467         * sunrpc/pmap_rmt.c: Likewise.
3468         * sunrpc/publickey.c: Likewise.
3469         * sunrpc/rpc_cmsg.c: Likewise.
3470         * sunrpc/rpc_common.c: Likewise.
3471         * sunrpc/rpc_dtable.c: Likewise.
3472         * sunrpc/rpc_prot.c: Likewise.
3473         * sunrpc/rpc_thread.c: Likewise.
3474         * sunrpc/rtime.c: Likewise.
3475         * sunrpc/svc.c: Likewise.
3476         * sunrpc/svc_auth.c: Likewise.
3477         * sunrpc/svc_raw.c: Likewise.
3478         * sunrpc/svc_run.c: Likewise.
3479         * sunrpc/svc_tcp.c: Likewise.
3480         * sunrpc/svc_udp.c: Likewise.
3481         * sunrpc/svc_unix.c: Likewise.
3482         * sunrpc/svcauth_des.c: Likewise.
3483         * sunrpc/xcrypt.c: Likewise.
3484         * sunrpc/xdr.c: Likewise.
3485         * sunrpc/xdr_array.c: Likewise.
3486         * sunrpc/xdr_float.c: Likewise.
3487         * sunrpc/xdr_intXX_t.c: Likewise.
3488         * sunrpc/xdr_mem.c: Likewise.
3489         * sunrpc/xdr_rec.c: Likewise.
3490         * sunrpc/xdr_ref.c: Likewise.
3491         * sunrpc/xdr_sizeof.c: Likewise.
3492         * sunrpc/xdr_stdio.c: Likewise.
3493
3494 2012-05-10  Roland McGrath  <roland@hack.frob.com>
3495
3496         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
3497         change.  Update copyright years.
3498
3499 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
3500
3501         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
3502
3503 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
3504             Joseph Myers  <joseph@codesourcery.com>
3505             Paul Pluzhnikov  <ppluzhnikov@google.com>
3506
3507         [BZ #14012]
3508         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
3509         requiring rpcgen.
3510         [cross-compiling] (extra-libs): Likewise.
3511         [cross-compiling] (extra-libs-others): Likewise.
3512         [cross-compiling] (librpcsvc-routines): Likewise.
3513         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
3514         [cross-compiling] (omit-deps): Likewise.
3515         (sunrpc-CPPFLAGS): New variable.
3516         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
3517         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
3518         (cross-rpcgen-objs): New variable.
3519         (extra-objs): Append $(cross-rpcgen-objs).
3520         ($(cross-rpcgen-objs)): New rule.
3521         ($(objpfx)cross-rpcgen): Likewise.
3522         (rpcgen-cmd): Define to use $(built-program-file).  Expand
3523         comment.
3524         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
3525         ($(objpfx)x%.stmp): Likewise.
3526         * sunrpc/proto.h [IS_IN_build] (_): Define.
3527         [IS_IN_build] (_libc_intl_domainname): Likewise.
3528
3529 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3530
3531         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
3532         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
3533         and R_X86_64_TPOFF64.
3534
3535 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
3536
3537         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
3538         sysdeps/unix/sysv/syscalls.list.
3539         (stime): Likewise.
3540         (utime): Likewise.
3541         * sysdeps/unix/sysv/syscalls.list: Remove file.
3542
3543 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3544
3545         [BZ #3440]
3546         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
3547         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
3548         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
3549         (__LC_IDENTIFICATION): Make these macros useful in #if
3550         expressions, as required by C99.
3551
3552 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
3553
3554         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
3555         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
3556         after this.
3557
3558 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
3559
3560         * stdlib/longlong.h: Updated from GCC.
3561
3562 2012-05-09  Andreas Jaeger  <aj@suse.de>
3563
3564         * nscd/nscd.c (run_modes): Make named enum, reorder so that
3565         default is first entry.
3566         (run_mode): Set type.
3567         (main): Remove informal message about syslog.
3568         (options): Fix typo.
3569
3570         [BZ #14053]
3571         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
3572         to asm.
3573         (lrint): Likewise.
3574         (llrintf): Likewise.
3575         (llrint): Likewise.
3576         (rint): Likewise.
3577         (rintf): Likewise.
3578         (nearbyint): Likewise.
3579         (nearbyintf): Likewise.
3580
3581 2012-05-09  Andreas Jaeger  <aj@suse.de>
3582             Pedro Alves  <palves@redhat.com>
3583
3584         * nscd/nscd.c (run_mode): Use enum.
3585         (main): Cleanup coding style issue.
3586
3587 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
3588             Andreas Jaeger  <aj@suse.de>
3589
3590         * nscd/nscd.c (go_background): Replaced with...
3591         (run_mode): ... this.
3592         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
3593         (options): Add -F --foreground.
3594         (main): Implement it.
3595         (parse_opt): Parse it.
3596
3597 2012-05-09  Andreas Jaeger  <aj@suse.de>
3598
3599         [BZ #14083]
3600         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
3601         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
3602         -Wconversion warning.
3603         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
3604         Likewise.
3605
3606 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
3607
3608         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
3609         == 0.
3610         (LC_ALL): Use macro-int-constant.
3611         (LC_COLLATE): Likewise.
3612         (LC_CTYPE): Likewise.
3613         (LC_MESSAGES): Likewise.
3614         (LC_MONETARY): Likewise.
3615         (LC_NUMERIC): Likewise.
3616         (LC_TIME): Likewise.
3617         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
3618         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
3619         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3620         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
3621         Specify type.
3622         [C99-based standards] (float_t): Expect type.
3623         [C99-based standards] (double_t): Expect type.
3624         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
3625         type.
3626         [C99-based standards] (HUGE_VALL): Likewise.
3627         [C99-based standards] (INFINITY): Likewise.
3628         [C99-based standards] (NAN): Likewise.
3629         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
3630         [C99-based standards] (FP_NAN): Likewise.
3631         [C99-based standards] (FP_NORMAL): Likewise.
3632         [C99-based standards] (FP_SUBNORMAL): Likewise.
3633         [C99-based standards] (FP_ZERO): Likewise.
3634         [C99-based standards] (FP_FAST_FMA): Use
3635         optional-macro-int-constant.  Specify type.  Require == 1.
3636         [C99-based standards] (FP_FAST_FMAF): Likewise.
3637         [C99-based standards] (FP_FAST_FMAL): Likewise.
3638         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
3639         [C99-based standards] (FP_ILOGBNAN): Likewise.
3640         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
3641         Specify type.
3642         [C99-based standards] (MATH_ERREXCEPT): Likewise.
3643         [C99-based standards] (math_errhandling): Specify type.
3644         [ISO99 || ISO11] (signgam): Do not allow.
3645         [non-C99-based standards] (copysignf): Do not allow.
3646         [non-C99-based standards] (exp2f): Likewise.
3647         [non-C99-based standards] (log2f): Likewise.
3648         [non-C99-based standards] (modff): Allow.
3649         [non-C99-based standards] (erff): Do not allow.
3650         [non-C99-based standards] (erfcf): Likewise.
3651         [non-C99-based standards] (gammaf): Likewise.
3652         [non-C99-based standards] (hypotf): Likewise.
3653         [non-C99-based standards] (j0f): Likewise.
3654         [non-C99-based standards] (j1f): Likewise.
3655         [non-C99-based standards] (jnf): Likewise.
3656         [non-C99-based standards] (lgammaf): Likewise.
3657         [non-C99-based standards] (tgammaf): Likewise.
3658         [non-C99-based standards] (y0f): Likewise.
3659         [non-C99-based standards] (y1f): Likewise.
3660         [non-C99-based standards] (ynf): Likewise.
3661         [non-C99-based standards] (isnanf): Likewise.
3662         [non-C99-based standards] (acoshf): Likewise.
3663         [non-C99-based standards] (asinhf): Likewise.
3664         [non-C99-based standards] (atanhf): Likewise.
3665         [non-C99-based standards] (cbrtf): Likewise.
3666         [non-C99-based standards] (expm1f): Likewise.
3667         [non-C99-based standards] (ilogbf): Likewise.
3668         [non-C99-based standards] (log1pf): Likewise.
3669         [non-C99-based standards] (logbf): Likewise.
3670         [non-C99-based standards] (nextafterf): Likewise.
3671         [non-C99-based standards] (remainderf): Likewise.
3672         [non-C99-based standards] (rintf): Likewise.
3673         [non-C99-based standards] (scalbf): Likewise.
3674         [non-C99-based standards] (copysignl): Likewise.
3675         [non-C99-based standards] (exp2l): Likewise.
3676         [non-C99-based standards] (log2l): Likewise.
3677         [non-C99-based standards] (modfl): Allow.
3678         [non-C99-based standards] (erfl): Do not allow.
3679         [non-C99-based standards] (erfcl): Likewise.
3680         [non-C99-based standards] (gammal): Likewise.
3681         [non-C99-based standards] (hypotl): Likewise.
3682         [non-C99-based standards] (j0l): Likewise.
3683         [non-C99-based standards] (j1l): Likewise.
3684         [non-C99-based standards] (jnl): Likewise.
3685         [non-C99-based standards] (lgammal): Likewise.
3686         [non-C99-based standards] (tgammal): Likewise.
3687         [non-C99-based standards] (y0l): Likewise.
3688         [non-C99-based standards] (y1l): Likewise.
3689         [non-C99-based standards] (ynl): Likewise.
3690         [non-C99-based standards] (isnanl): Likewise.
3691         [non-C99-based standards] (acoshl): Likewise.
3692         [non-C99-based standards] (asinhl): Likewise.
3693         [non-C99-based standards] (atanhl): Likewise.
3694         [non-C99-based standards] (cbrtl): Likewise.
3695         [non-C99-based standards] (expm1l): Likewise.
3696         [non-C99-based standards] (ilogbl): Likewise.
3697         [non-C99-based standards] (log1pl): Likewise.
3698         [non-C99-based standards] (logbl): Likewise.
3699         [non-C99-based standards] (nextafterl): Likewise.
3700         [non-C99-based standards] (remainderl): Likewise.
3701         [non-C99-based standards] (rintl): Likewise.
3702         [non-C99-based standards] (scalbl): Likewise.
3703         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3704         [non-C99-based standards] (FP_*): Do not allow.
3705         [C99-based standards] (FP_*): Change to
3706         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
3707         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
3708         allow.
3709         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
3710         (SIG_ERR): Likewise.
3711         [X/Open-based standards] (SIG_HOLD): Likewise.
3712         (SIG_IGN): Likewise.
3713         (SIGABRT): Use macro-int-constant.  Specify type.  Require
3714         positive value.
3715         (SIGFPE): Likewise.
3716         (SIGILL): Likewise.
3717         (SIGINT): Likewise.
3718         (SIGSEGV): Likewise.
3719         (SIGTER): Likewise.
3720         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
3721         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
3722         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
3723         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
3724         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
3725         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
3726         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
3727         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
3728         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
3729         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
3730         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
3731         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
3732         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
3733         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
3734         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
3735         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
3736         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
3737         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
3738         [X/Open-based standards] (SIGTRAP): Likewise.
3739         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
3740         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
3741         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
3742         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
3743         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
3744         allow.
3745
3746 2012-05-08  Ian Wienand  <ianw@vmware.com>
3747
3748         [BZ #14080]
3749         * time/tzset.c (__tzset_parse_tz): Update default rules for
3750         daylight time changes in the Energy Policy Act of 2005.
3751
3752 2012-05-09  Andreas Jaeger  <aj@suse.de>
3753
3754         [BZ #13983]
3755         * elf/ldconfig.c (parse_conf): Change string to make clear that
3756         ldconfig only issued a warning if ld.so.conf does not exist.
3757
3758 2012-05-08  David S. Miller  <davem@davemloft.net>
3759
3760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
3761         movxtod instead of popping the value on the stack.
3762
3763         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3764
3765 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
3766
3767         * config.h.in: Add HAVE_ARM_PCS_VFP.
3768
3769 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
3770
3771         [BZ #13979]
3772         * include/features.h: Warn if user requests __FORTIFY_SOURCE
3773         checking but the checks are disabled for any reason.
3774
3775 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
3776
3777         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
3778         and ELF64_R_TYPE with ELFW(R_TYPE).
3779
3780 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
3781
3782         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
3783         (ulimit): Likewise.
3784
3785         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
3786         (settimeofday): Likewise.
3787
3788 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
3789
3790         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
3791         a struct th_u2 inside the union, and move tu_block/tu_code into
3792         a new th_u3 union of tu_block/tu_code inside of that.  Move
3793         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
3794         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
3795         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
3796         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
3797         (th_stuff): Change to th_u1.tu_stuff.
3798         (th_data): Define.
3799         (th_msg): Change to th_u1.th_u2.tu_data.
3800
3801 2012-05-07  David S. Miller  <davem@davemloft.net>
3802
3803         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3804
3805         [BZ #14074]
3806         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
3807         (SETUP_PIC_REG): Use it.
3808         (SETUP_PIC_REG_LEAF): Use it.
3809
3810 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
3811
3812         [BZ #13885]
3813         [BZ #13923]
3814         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3815         USE_AS_EXPM1L.
3816         (EXPL_FINITE): Likewise.
3817         (FLDLOG): Likewise.
3818         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
3819         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
3820         e_expl.S.
3821         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3822         USE_AS_EXPM1L.
3823         (EXPL_FINITE): Likewise.
3824         (FLDLOG): Likewise.
3825         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
3826         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
3827         e_expl.S.
3828         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
3829         test of -max_value argument for long double.
3830         * sysdeps/i386/fpu/libm-test-ulps: Update.
3831         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3832
3833 2012-05-06  David S. Miller  <davem@davemloft.net>
3834
3835         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
3836         quad soft-float symbols whose references which are compiler
3837         generated.
3838         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
3839
3840 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
3841
3842         [BZ #13884]
3843         [BZ #13914]
3844         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3845         USE_AS_EXP10L.
3846         (EXPL_FINITE): Likewise.
3847         (FLDLOG): Likewise.
3848         (c0): Likewise.
3849         (c1): Likewise.
3850         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
3851         Adjust comments for base varying.
3852         (__expl_finite): Change alias to EXPL_FINITE.
3853         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
3854         e_expl.S.
3855         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
3856         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
3857         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
3858         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
3859         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3860         USE_AS_EXP10L.
3861         (EXPL_FINITE): Likewise.
3862         (FLDLOG): Likewise.
3863         (c0): Likewise.
3864         (c1): Likewise.
3865         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
3866         Adjust comments for base varying.
3867         (__expl_finite): Change alias to EXPL_FINITE.
3868         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
3869         tests for bugs.
3870         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3871
3872         [BZ #14064]
3873         * math/libm-test.inc (check_float_internal): Correct ulp
3874         calculation for subnormal expected results.
3875
3876 2012-05-06  Andreas Jaeger  <aj@suse.de>
3877
3878         * Makeconfig (+math-flags): New, set to -frounding-math.
3879         (+cflags): Add +math-flags so that all of glibc gets compiled with
3880         it.
3881
3882         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
3883
3884 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
3885
3886         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
3887         Disable one test.
3888
3889         [BZ #13787]
3890         [BZ #13922]
3891         [BZ #14036]
3892         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
3893         (__ieee754_expl): Allow for and saturate large arguments.
3894         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
3895         (u_threshold): Likewise.
3896         (__exp): Call __ieee754_exp before checking for overflow and
3897         underflow.
3898         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
3899         (u_threshold): Likewise.
3900         (__expf): Call __ieee754_expf before checking for overflow and
3901         underflow.
3902         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
3903         (u_threshold): Likewise.
3904         (__expl): Call __ieee754_expl before checking for overflow and
3905         underflow.
3906         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
3907         (__ieee754_expl): Allow for and saturate large arguments.
3908         * math/libm-test.inc (exp_test): Add another test.  Do not allow
3909         missing overflow exception on overflow.
3910         (expm1_test): Do not allow missing overflow exception on overflow.
3911
3912         * sysdeps/i386/fpu/e_expl.c: Move to ...
3913         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
3914         rather than using inline asm.
3915         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
3916         * sysdeps/x86_64/fpu/e_expl.S: Copy from
3917         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
3918
3919         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
3920         (nice): Likewise.
3921         (poll): Likewise.
3922         (signal): Likewise.
3923         (time): Likewise.
3924         (times): Likewise.
3925
3926 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
3927
3928         * sysdeps/unix/syscalls.list (adjtime): Add entry from
3929         sysdeps/unix/common/syscalls.list.
3930         (fchmod): Likewise.
3931         (fchown): Likewise.
3932         (ftruncate): Likewise.
3933         (getrusage): Likewise.
3934         (gettimeofday): Likewise.
3935         (setpgid): Likewise.
3936         (setregid): Likewise.
3937         (setreuid): Likewise.
3938         (sigaction): Likewise.
3939         (truncate): Likewise.
3940         (vhangup): Likewise.
3941         * sysdeps/unix/common/syscalls.list: Remove file.
3942         * sysdeps/unix/bsd/Implies: Don't include unix/common.
3943         * sysdeps/unix/sysv/linux/Implies: Likewise.
3944
3945 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
3946
3947         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
3948         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
3949         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
3950         Moved to ...
3951         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
3952         Here.
3953         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
3954         to ...
3955         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
3956         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
3957         to ...
3958         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
3959         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
3960         to ...
3961         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
3962         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
3963         to ...
3964         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
3965         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
3966         to ...
3967         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
3968         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
3969         to ...
3970         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
3971         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
3972         to ...
3973         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
3974         Here.
3975         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
3976         to ...
3977         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
3978         Here.
3979         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
3980         to ...
3981         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
3982         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
3983         Moved to ...
3984         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
3985         Here.
3986         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
3987         to ...
3988         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
3989
3990 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
3991
3992         * sysdeps/unix/common/bits/dirent.h: Remove file.
3993         * sysdeps/unix/common/bits/fcntl.h: Likewise.
3994
3995         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
3996         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
3997         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
3998         * sysdeps/unix/bsd/isatty.c: Likewise.
3999         * sysdeps/unix/bsd/tcdrain.c: Likewise.
4000         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
4001         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
4002
4003 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4004
4005         [BZ #13563]
4006         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
4007         long double comparison inaccuracies.
4008         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
4009         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4010
4011 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
4012
4013         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
4014         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
4015
4016 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
4017
4018         [BZ #14049]
4019         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
4020         nonzero digits before rounding a hex value.
4021         * stdlib/tst-strtod.c (tests): Add another test.
4022
4023 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4024
4025         * sysdeps/s390/fpu/libm-test-ulps: Update.
4026
4027 2012-05-03  Andreas Jaeger  <aj@suse.de>
4028
4029         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
4030         does not get optimized out.
4031         (malloc_opt_barrier): New.
4032
4033 2012-05-03  Andreas Jaeger  <aj@suse.de>
4034             Roland McGrath  <roland@hack.frob.com>
4035
4036         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
4037         intermediate file deletion.
4038         (generated): Add .symlist files.
4039
4040 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
4041
4042         [BZ #13775]
4043         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
4044         Redirect under this condition.
4045         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
4046         [__USE_GNU] (__dprintf_chk): Not under this condition.
4047         [__USE_GNU] (__vdprintf_chk): Likewise.
4048         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
4049         under this condition.
4050         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
4051         [__USE_XOPEN2K8] (dprintf): Define under this condition.
4052         [__USE_XOPEN2K8] (vdprintf): Likewise.
4053         [__USE_GNU] (__dprintf_chk): Not under this condition.
4054         [__USE_GNU] (__vdprintf_chk): Likewise.
4055         [__USE_GNU] (dprintf): Likewise.
4056         [__USE_GNU] (vdprintf): Likewise.
4057
4058 2012-05-03  Roland McGrath  <roland@hack.frob.com>
4059
4060         * elf/Makefile (common-generated): Set this instead of generated for
4061         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
4062         $(all-built-dso)-derived lists.
4063
4064 2012-05-03  Andreas Jaeger  <aj@suse.de>
4065
4066         * sysdeps/i386/fpu/libm-test-ulps: Update.
4067
4068         * FAQ: Removed.
4069         * FAQ.in: Likewise.
4070         * scripts/gen-FAQ.pl: Likewise.
4071         * manual/install.texi (Installation): Point to online location of
4072         FAQ.
4073         * Makefile (files-for-dist): Remove FAQ.
4074         (FAQ): Remove.
4075
4076 2012-05-02  Allan McRae  <allan@archlinux.org>
4077
4078         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
4079         (LDFLAGS-reldepmod5.so): Likewise.
4080         (LDFLAGS-reldep6mod1.so): Likewise.
4081         (LDFLAGS-reldep6mod4.so): Likewise.
4082         (LDFLAGS-reldep8mod3.so): Likewise.
4083         (LDFLAGS-unload4mod1.so): Likewise.
4084         (LDFLAGS-unload4mod2.so): Likewise.
4085         (LDFLAGS-tst-initorder): Likewise.
4086         (LDFLAGS-tst-initordera2.so): Likewise.
4087         (LDFLAGS-tst-initordera3.so): Likewise.
4088         (LDFLAGS-tst-initordera4.so): Likewise.
4089         (LDFLAGS-tst-initorderb2.so): Likewise.
4090         (LDFLAGS-noload): Likewise.
4091         (LDFLAGS-next): Likewise.
4092         (LDFLAGS-order2mod1.so): Likewise.
4093         (LDFLAGS-order2mod2.so): Likewise.
4094         (LDFLAGS-tst-initorder2): Likewise.
4095         (LDFLAGS-tst-initorder2a.so): Likewise.
4096         (LDFLAGS-tst-initorder2b.so): Likewise.
4097         (LDFLAGS-tst-initorder2c.so): Likewise.
4098         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
4099
4100 2012-05-02  David S. Miller  <davem@davemloft.net>
4101
4102         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4103
4104 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
4105
4106         [BZ #14055]
4107         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
4108
4109 2012-05-02  Andreas Jaeger  <aj@suse.de>
4110
4111         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
4112         since we manipulate rounding mode.
4113         (CPPFLAGS-test-idouble.c): Likewise.
4114         (CPPFLAGS-test-ifloat.c): Likewise.
4115         (CFLAGS-test-ldouble.c): Likewise.
4116         (CFLAGS-test-double.c): Likewise.
4117         (CFLAGS-test-float.c): Likewise.
4118         (CFLAGS-test-misc.c): Likewise.
4119         (CFLAGS-test-test-fenv.c): Likewise.
4120
4121 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4122
4123         [BZ #2550]
4124         [BZ #2570]
4125         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
4126         comparisons to determine direction to adjust input.
4127
4128 2012-05-01  Roland McGrath  <roland@hack.frob.com>
4129
4130         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
4131         output to the target.
4132
4133         * scripts/localplt.awk: New file.
4134         * elf/Makefile ($(objpfx)check-localplt): Target removed.
4135         (check-localplt-CFLAGS): Variable removed.
4136         ($(all-built-dso:=.jmprel)): New static pattern rule.
4137         (generated): Add those targets.
4138         (localplt-built-dso): New variable.
4139         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
4140
4141         * elf/check-localplt.c: File removed.
4142
4143         * scripts/check-execstack.awk: New file.
4144         * elf/Makefile ($(objpfx)check-execstack): Target removed.
4145         (check-execstack-CFLAGS): Variable removed.
4146         ($(objpfx)check-execstack.h): Target removed.
4147         ($(objpfx)execstack-default): New target.
4148         (generated): Add that instead of check-execstack.h.
4149         ($(all-built-dso:=.phdr)): New static pattern rule.
4150         (generated): Add those targets.
4151         * elf/check-execstack.c: File removed.
4152
4153         * scripts/check-textrel.awk: New file.
4154         * elf/Makefile ($(objpfx)check-textrel): Target removed.
4155         (check-textrel-CFLAGS): Variable removed.
4156         (all-built-dso): Use := to define.o
4157         ($(all-built-dso:=.dyn)): New static pattern rule.
4158         (generated): Add those targets.
4159         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
4160         * config.make.in (READELF): New substituted variable.
4161         * elf/check-textrel.c: File removed.
4162
4163 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
4164
4165         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
4166         allow.
4167         * conform/data/ctype.h-data [C99-based standards] (isblank):
4168         Expect function.
4169         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
4170         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
4171         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4172         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
4173         Specify type.  Require positive value.
4174         (EILSEQ): Likewise.
4175         (ERANGE): Likewise.
4176         [ISO || POSIX] (EILSEQ): Do not expect.
4177         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
4178         Specify type.  Require positive value.
4179         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
4180         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
4181         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
4182         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
4183         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
4184         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
4185         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
4186         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
4187         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
4188         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
4189         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
4190         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
4191         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
4192         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
4193         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
4194         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
4195         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
4196         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
4197         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
4198         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
4199         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
4200         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
4201         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
4202         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
4203         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
4204         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
4205         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
4206         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
4207         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
4208         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
4209         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
4210         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
4211         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
4212         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
4213         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
4214         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
4215         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
4216         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
4217         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
4218         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
4219         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
4220         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
4221         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
4222         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
4223         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
4224         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
4225         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
4226         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
4227         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
4228         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
4229         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
4230         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
4231         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
4232         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
4233         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
4234         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
4235         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
4236         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
4237         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
4238         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
4239         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
4240         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
4241         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
4242         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
4243         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
4244         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
4245         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
4246         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
4247         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
4248         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
4249         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
4250         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
4251         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
4252         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
4253         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
4254         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
4255         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
4256         Require >= 2.
4257         (FLT_ROUNDS): Expect as macro, not constant.
4258         (FLT_MANT_DIG): Use macro-int-constant.
4259         (DBL_MANT_DIG): Likewise.
4260         (LDBL_MANT_DIG): Likewise.
4261         (FLT_DIG): Likewise.
4262         (DBL_DIG): Likewise.
4263         (LDBL_DIG): Likewise.
4264         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
4265         (DBL_MIN_EXP): Likewise.
4266         (LDBL_MIN_EXP): Likewise.
4267         (FLT_MAX_EXP): Use macro-int-constant.
4268         (DBL_MAX_EXP): Likewise.
4269         (LDBL_MAX_EXP): Likewise.
4270         (FLT_MAX_10_EXP): Likewise.
4271         (DBL_MAX_10_EXP): Likewise.
4272         (LDBL_MAX_10_EXP): Likewise.
4273         (FLT_MAX): Use macro-constant.
4274         (DBL_MAX): Likewise.
4275         (LDBL_MAX): Likewise.
4276         (FLT_EPSILON): Use macro-constant.  Give upper bound.
4277         (DBL_EPSILON): Likewise.
4278         (LDBL_EPSILON): Likewise.
4279         (FLT_MIN): Likewise.
4280         (DBL_MIN): Likewise.
4281         (LDBL_MIN): Likewise.
4282         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
4283         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
4284         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
4285         [ISO11] (FLT_HAS_SUBNORM): Likewise.
4286         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
4287         [ISO11] (DBL_DECIMAL_DIG): Likewise.
4288         [ISO11] (FLT_DECIMAL_DIG): Likewise.
4289         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
4290         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
4291         [ISO11] (FLT_TRUE_MIN): Likewise.
4292         [ISO11] (LDBL_TRUE_MIN): Likewise.
4293         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4294         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
4295         (SCHAR_MIN): Use macro-int-constant.  Specify type.
4296         (SCHAR_MAX): Likewise.
4297         (UCHAR_MAX): Likewise.
4298         (CHAR_MIN): Likewise.
4299         (CHAR_MAX): Likewise.
4300         (MB_LEN_MAX): Use macro-int-constant.
4301         (SHRT_MIN): Use macro-int-constant.  Specify type.
4302         (SHRT_MAX): Likewise.
4303         (USHRT_MAX): Likewise.
4304         (INT_MAX): Likewise.
4305         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
4306         bound negative.
4307         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
4308         bound with "U".
4309         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
4310         bound with "L".
4311         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
4312         bound negative.  Suffix upper bound with "L".
4313         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
4314         bound with "UL".
4315         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
4316         Specify type.
4317         [C99-based standards] (LLONG_MAX): Likewise.
4318         [C99-based standards] (ULLONG_MAX): Likewise.
4319         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
4320         == 0.
4321         [ISO11] (max_align_t): Require type.
4322         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4323
4324         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
4325         from $CFLAGS, without defining away __attribute__ calls.
4326         (checknamespace): Use $CFLAGS_namespace.
4327
4328         * conform/conformtest.pl (@keywords): Only include C99 keywords
4329         for standards based on C99 or C11.
4330
4331         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
4332         Disable tests.
4333         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
4334         UNIX98]: Likewise.
4335
4336         * conform/conformtest.pl: Handle "macro-int-constant" and test for
4337         usability of symbols in #if.
4338
4339         * conform/conformtest.pl: If macro or constant types start
4340         "promoted:", expect the symbol to be of the following type
4341         promoted by the integer promotions.
4342
4343         * conform/conformtest.pl: Parse all "constant" and "macro" lines
4344         in one place.  Also handle "macro-constant".
4345
4346         * conform/conformtest.pl: Only accept expected macro values with
4347         "==".  Parse all "macro" lines in one place.
4348         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
4349
4350         * conform/conformtest.pl: Handle braced types on "constant" lines
4351         instead of handling "typed-constant".
4352         * conform/data/signal.h-data: Use "constant" instead of
4353         "typed-constant".
4354
4355         * conform/conformtest.pl: Handle "optional-" at start of lines in
4356         one place rather than duplicating several cases.  Handle each
4357         format of "macro" line with initial "optional-".
4358
4359         * conform/conformtest.pl: Only accept expected constant or
4360         optional-constant values with "==".  Parse all "constant" lines in
4361         one place.  Parse all "optional-constant" lines in one place.
4362         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
4363         * conform/data/fmtmsg.h-data: Likewise.
4364         * conform/data/netinet/in.h-data: Likewise.
4365         * conform/data/tar.h-data: Likewise.
4366         * conform/data/limits.h-data: Use "==" form on "constant" and
4367         "optional-constant" lines.
4368
4369         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
4370         Use -std=c99 for XOPEN2K.
4371         (@knownproblems): Remove.
4372         (newtoken): Don't check %isknown.
4373
4374         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
4375         Do not expect macro.
4376         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
4377         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
4378         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
4379         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
4380         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
4381         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
4382         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
4383         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
4384         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
4385         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
4386         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
4387         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
4388         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
4389         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
4390         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
4391         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
4392         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
4393         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
4394         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
4395         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
4396         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
4397         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
4398         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
4399         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
4400         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
4401         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
4402         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
4403         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
4404         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
4405         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
4406         [XPG3] (acosh): Likewise.
4407         [XPG3] (asinh): Likewise.
4408         [XPG3] (atanh): Likewise.
4409         [XPG3] (cbrt): Likewise.
4410         [XPG3] (expm1): Likewise.
4411         [XPG3] (ilogb): Likewise.
4412         [XPG3] (log1p): Likewise.
4413         [XPG3] (logb): Likewise.
4414         [XPG3] (nextafter): Likewise.
4415         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
4416         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
4417         [XPG3] (remainder): Likewise.
4418         [XPG3] (rint): Likewise.
4419         [XPG3 || XPG4 || UNIX98] (round): Likewise.
4420         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
4421         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
4422         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
4423         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
4424         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
4425         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
4426         [UNIX98 || XOPEN2K] (scalb): Expect.
4427         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
4428         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
4429         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
4430         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
4431         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
4432         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
4433         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
4434         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
4435         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
4436         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
4437         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
4438         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
4439         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
4440         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
4441         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
4442         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
4443         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
4444         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
4445         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
4446         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
4447         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
4448         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
4449         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
4450         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
4451         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
4452         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
4453         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
4454         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
4455         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
4456         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
4457         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
4458         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
4459         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
4460         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
4461         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
4462         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
4463         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
4464         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
4465         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
4466         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
4467         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
4468         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
4469         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
4470         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
4471         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
4472         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
4473         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
4474         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
4475         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
4476         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
4477         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
4478         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
4479         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
4480         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
4481         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
4482         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
4483         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
4484         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
4485         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
4486         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
4487         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
4488         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
4489         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
4490         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
4491         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
4492         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
4493         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
4494         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
4495         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
4496         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
4497         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
4498         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
4499         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
4500         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
4501         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
4502         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
4503         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
4504         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
4505         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
4506         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
4507         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
4508         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
4509         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
4510         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
4511         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
4512         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
4513         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
4514         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
4515         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
4516         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
4517         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
4518         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
4519         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
4520         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
4521         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
4522         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
4523         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
4524         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
4525         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
4526         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
4527         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
4528         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
4529         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
4530         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
4531         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
4532         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
4533         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
4534         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
4535         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
4536         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
4537         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
4538         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
4539         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
4540         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
4541         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
4542         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
4543         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
4544         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
4545         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
4546         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
4547         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
4548         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
4549         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
4550         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
4551         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
4552         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
4553         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
4554         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
4555         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
4556         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
4557         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
4558         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
4559         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
4560         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
4561         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
4562         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
4563         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
4564
4565         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
4566         _XOPEN_SOURCE_EXTENDED for XPG4.
4567
4568         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
4569
4570         * Makeconfig (localtime): Remove variable.
4571         (inst_localtime-file): Likewise.
4572
4573 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
4574
4575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
4576         Update.
4577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4578         Update.
4579         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
4580         Update.
4581         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
4582         Update.
4583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
4584         Update.
4585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
4586         Update.
4587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4588         Update.
4589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
4590         Update.
4591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
4592         Update.
4593
4594 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
4595
4596         [BZ #2550]
4597         [BZ #2570]
4598         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
4599         comparisons to determine direction to adjust input.
4600         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
4601         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
4602         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
4603         Likewise.
4604         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
4605         Likewise.
4606         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
4607         Likewise.
4608         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
4609         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
4610         Likewise.
4611         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
4612         Likewise.
4613         * math/libm-test.inc (nexttoward_test): Add more tests.
4614
4615 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
4616
4617         [BZ #14040]
4618         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
4619         in version GLIBC_2.1, not GLIBC_2.0.
4620         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
4621         Likewise.
4622
4623 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
4624
4625         [BZ #13942]
4626         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
4627         (1 - x) * (1 + x).
4628         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
4629         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
4630         * math/libm-test.inc (acos_test): Add more tests.
4631         (asin_test): Likewise.
4632         * sysdeps/i386/fpu/libm-test-ulps: Update.
4633         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4634
4635         [BZ #14034]
4636         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
4637         of square root.
4638         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
4639         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
4640         * math/libm-test.inc (acos_test_tonearest): New function.
4641         (acos_test_towardzero): Likewise.
4642         (acos_test_downward): Likewise.
4643         (acos_test_upward): Likewise.
4644         (asin_test_tonearest): Likewise.
4645         (asin_test_towardzero): Likewise.
4646         (asin_test_downward): Likewise.
4647         (asin_test_upward): Likewise.
4648         (main): Call the new functions.
4649         * sysdeps/i386/fpu/libm-test-ulps: Update.
4650         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4651
4652         [BZ #13884]
4653         [BZ #13924]
4654         * math/e_exp10.c: Include <float.h>.
4655         (__ieee754_exp10): Handle underflow here rather than multiplying
4656         large negative argument by M_LN10.
4657         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
4658         of __ieee754_expf.
4659         * math/e_exp10l.c: Include <float.h>.
4660         (__ieee754_exp10l): Handle underflow here rather than multiplying
4661         large negative argument by M_LN10l.
4662         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
4663         spurious overflow exception on underflow.
4664
4665 2012-04-29  Marek Polacek  <polacek@redhat.com>
4666
4667         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
4668         (__fortify_function): New macro.
4669         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
4670         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
4671         __extern_always_inline.
4672         * libio/bits/stdio2.h: Likewise.
4673         * libio/bits/stdio.h: Likewise.
4674         * string/string.h: Likewise.
4675         * string/bits/string3.h: Likewise.
4676         * include/stdio.h: Likewise.
4677         * stdlib/bits/stdlib.h: Likewise.
4678         * stdlib/stdlib.h: Likewise.
4679         * rt/bits/mqueue2.h: Likewise.
4680         * rt/mqueue.h: Likewise.
4681         * posix/bits/unistd.h: Likewise.
4682         * posix/unistd.h: Likewise.
4683         * io/bits/poll2.h: Likewise.
4684         * io/bits/fcntl2.h: Likewise.
4685         * io/fcntl.h: Likewise.
4686         * io/sys/poll.h: Likewise.
4687         * misc/bits/syslog.h: Likewise.
4688         * misc/bits/syslog-ldbl.h: Likewise.
4689         * misc/sys/syslog.h: Likewise.
4690         * socket/bits/socket2.h: Likewise.
4691         * socket/sys/socket.h: Likewise.
4692         * debug/tst-chk1.c: Likewise.
4693         * wcsmbs/bits/wchar2.h: Likewise.
4694         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4695         * wcsmbs/wchar.h: Likewise.
4696
4697 2012-04-29  Andreas Jaeger  <aj@suse.de>
4698
4699         * Makerules (tests): Remove enable-check-abi protection.
4700         (check-abi-warn): Remove.
4701         (check-abi-%): Remove check-abi-warn usage.
4702
4703         * configure.in: Remove check-abi configure option.
4704         * configure: Regenerated.
4705         * config.make.in (enable-check-abi): Remove.
4706
4707 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
4708
4709         [BZ #14033]
4710         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
4711         double functions to double *_finite functions.
4712
4713         [BZ #13941]
4714         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
4715         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
4716         LDBL_MIN_EXP.
4717         * stdio-common/Makefile (tests): Add tst-sprintf3.
4718         * stdio-common/tst-sprintf3.c: New file.
4719
4720         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
4721         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
4722
4723 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
4724
4725         * conform/conformtest.pl: Remove duplicate typed-constant
4726         handling.
4727
4728 2012-04-28  David S. Miller  <davem@davemloft.net>
4729
4730         * Makerules (%.abilist): Add vpath on sysdep_dirs.
4731         (check-abi-%): Remove AWK script prerequisite and explicit
4732         abilist directory.
4733         (check-abi): Rewrite to just diff the symlist with the abilist.
4734         (config-tls, config-abi-config): Delete, no longer used.
4735         (update-abi-%): Remove AWK script and explicit abilist directory.
4736         (update-abi): Rewrite to simply compare and conditionally copy the
4737         symlist and the sysdep abilist file.  Remove update-abi-config
4738         checks.
4739         * abilist/ld.abilist: Remove.
4740         * abilist/libBrokenLocale.abilist: Remove.
4741         * abilist/libanl.abilist: Remove.
4742         * abilist/libcrypt.abilist: Remove.
4743         * abilist/libdl.abilist: Remove.
4744         * abilist/librt.abilist: Remove.
4745         * abilist/libthread_db.abilist: Remove.
4746         * abilist/libutil.abilist: Remove.
4747         * scripts/extract-abilist.awk: Remove.
4748         * scripts/merge-abilist.awk: Remove.
4749         * sysdeps/generic/libcidn.abilist: New file.
4750         * sysdeps/generic/libnss_compat.abilist: New file.
4751         * sysdeps/generic/libnss_db.abilist: New file.
4752         * sysdeps/generic/libnss_dns.abilist: New file.
4753         * sysdeps/generic/libnss_files.abilist: New file.
4754         * sysdeps/generic/libnss_hesiod.abilist: New file.
4755         * sysdeps/generic/libnss_nis.abilist: New file.
4756         * sysdeps/generic/libnss_nisplus.abilist: New file.
4757         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
4758         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
4759         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
4760         file.
4761         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
4762         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
4763         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
4764         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
4765         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
4766         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
4767         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
4768         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
4769         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
4770         file.
4771         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
4772         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
4773         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
4774         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
4775         file.
4776         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
4777         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
4778         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
4779         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
4780         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
4781         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
4782         file.
4783         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
4784         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
4785         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
4786         file.
4787         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
4788         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
4789         New file.
4790         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
4791         New file.
4792         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
4793         New file.
4794         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
4795         New file.
4796         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
4797         New file.
4798         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
4799         New file.
4800         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
4801         New file.
4802         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
4803         New file.
4804         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
4805         New file.
4806         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
4807         New file.
4808         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
4809         New file.
4810         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
4811         New file.
4812         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
4813         New file.
4814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
4815         file.
4816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
4817         New file.
4818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
4819         New file.
4820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
4821         file.
4822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
4823         New file.
4824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
4825         New file.
4826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
4827         file.
4828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
4829         New file.
4830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
4831         New file.
4832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
4833         New file.
4834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
4835         New file.
4836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
4837         New file.
4838         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
4839         New file.
4840         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
4841         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
4842         file.
4843         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
4844         New file.
4845         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
4846         file.
4847         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
4848         file.
4849         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
4850         file.
4851         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
4852         file.
4853         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
4854         file.
4855         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4856         New file.
4857         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
4858         file.
4859         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
4860         file.
4861         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
4862         New file.
4863         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
4864         file.
4865         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
4866         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
4867         file.
4868         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
4869         New file.
4870         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
4871         file.
4872         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
4873         file.
4874         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
4875         file.
4876         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
4877         file.
4878         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
4879         file.
4880         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4881         New file.
4882         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
4883         file.
4884         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
4885         file.
4886         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
4887         New file.
4888         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
4889         file.
4890         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4891         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
4892         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
4893         file.
4894         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
4895         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
4896         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
4897         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
4898         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
4899         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
4900         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
4901         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
4902         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
4903         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
4904         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
4905         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
4906         file.
4907         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
4908         New file.
4909         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
4910         file.
4911         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
4912         file.
4913         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
4914         file.
4915         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
4916         file.
4917         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
4918         file.
4919         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
4920         New file.
4921         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
4922         New file.
4923         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
4924         file.
4925         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
4926         New file.
4927         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
4928         file.
4929         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
4930         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
4931         file.
4932         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
4933         New file.
4934         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
4935         file.
4936         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
4937         file.
4938         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
4939         file.
4940         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
4941         file.
4942         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
4943         file.
4944         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
4945         New file.
4946         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
4947         New file.
4948         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
4949         file.
4950         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
4951         New file.
4952         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
4953         file.
4954
4955 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
4956
4957         * conform/conformtest.pl: Fix typo in handling typed-constant from
4958         allow-header.
4959
4960 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
4961
4962         * README: Cut down references to pre-2.6 Linux kernels and
4963         Linuxthreads.  Update lists of configurations in libc and ports
4964         and sort alphabetically.  Say "or newer" with Linux kernel version
4965         requirements.
4966
4967         * config.h.in [IS_IN_build]: Allow compiling without optimization.
4968
4969 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4970
4971         [BZ #887]
4972         * math/libm-test.inc (logb_test_downward): New test to expose
4973         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
4974         rounding mode.
4975
4976 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
4977
4978         [BZ #14027]
4979         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
4980         to be done.
4981         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
4982         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
4983
4984 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
4985
4986         * sysdeps/unix/i386/brk.S: Remove file.
4987         * sysdeps/unix/i386/dl-brk.S: Likewise.
4988         * sysdeps/unix/i386/pipe.S: Likewise.
4989         * sysdeps/unix/i386/sigreturn.S: Likewise.
4990         * sysdeps/unix/i386/syscall.S: Likewise.
4991         * sysdeps/unix/i386/vfork.S: Likewise.
4992         * sysdeps/unix/i386/wait.S: Likewise.
4993
4994         * sysdeps/unix/common/tcsendbrk.c: Move to ...
4995         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
4996
4997         * configure.in (arm*-none*): Do not allow without
4998         --enable-hacker-mode.
4999         (netbsd*): Remove case setting base_os.
5000         (386bsd*): Likewise.
5001         (freebsd*): Likewise.
5002         (bsdi*): Likewise.
5003         (osf*): Likewise.
5004         (sunos*): Likewise.
5005         (ultrix*): Likewise.
5006         (newsos*): Likewise.
5007         (dynix*): Likewise.
5008         (*bsd*): Likewise.
5009         (sysv*): Likewise.
5010         (isc*): Likewise.
5011         (esix*): Likewise.
5012         (sco*): Likewise.
5013         (minix*): Likewise.
5014         (irix4*): Likewise.
5015         (irix6*): Likewise.
5016         (solaris[2-9]*): Likewise.
5017         (none): Likewise.
5018         * configure: Regenerated.
5019
5020 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5021
5022         [BZ #11521]
5023         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
5024         overflow or cancellation in calculating denominator.
5025         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
5026         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
5027         down expression to avoid unexpected rounding in newer GCCs.
5028         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
5029
5030 2012-04-26  David S. Miller  <davem@davemloft.net>
5031
5032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
5033         long-double compat symbols.
5034         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
5035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
5036         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
5037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
5038         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
5039         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
5040         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
5041         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
5042         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
5043         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
5044         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
5045         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
5046         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
5047
5048 2012-04-25  David S. Miller  <davem@davemloft.net>
5049
5050         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
5051         HWCAP_* values only after the memory barriers have been defined.
5052         (atomic_full_barrier): Define.
5053         (atomic_read_barrier): Define.
5054         (atomic_write_barrier): Define.
5055
5056 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5057
5058         * shlib-versions: Add libgcc_s version information.
5059         * sysdeps/generic/libgcc_s.h: Remove.
5060         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
5061         libgcc_s.h.
5062         * sysdeps/gnu/unwind-resume.c: Likewise.
5063         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
5064
5065 2012-04-25  David S. Miller  <davem@davemloft.net>
5066
5067         * sysdeps/unix/sparc/brk.S: Delete.
5068         * sysdeps/unix/sparc/dl-brk.S: Delete.
5069         * sysdeps/unix/sparc/pipe.S: Delete.
5070         * sysdeps/unix/sparc/sysdep.S: Delete.
5071         * sysdeps/unix/sparc/sysdep.h: Delete.
5072         * sysdeps/unix/sparc/vfork.S: Delete.
5073         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
5074         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
5075         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
5076         ret_ERRVAL, r0, r1, MOVE): Define.
5077         (JUMPTARGET): Remove.
5078         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
5079         sysdeps/unix/sparc/sysdep.h
5080         (ENTRY, END): Remove.
5081         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
5082
5083 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
5084
5085         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
5086         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
5087         -DIS_IN_build.
5088
5089         * timezone/README: Update upstream location and email address for
5090         tzcode and tzdata.
5091         * timezone/zdump.c: Update from tzcode 2012b.
5092         * timezone/zic.c: Likewise.
5093
5094         * configure.in (libc_cv_as_needed): Remove test.
5095         * configure: Regenerated.
5096         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
5097         conditional definition.
5098         [$(have-as-needed) != yes] (no-as-needed): Likewise.
5099         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
5100         * config.make.in (have-as-needed): Remove variable.
5101
5102 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
5103             Paul Pluzhnikov  <ppluzhnikov@google.com>
5104
5105         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
5106         strings correctly.
5107
5108 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
5109
5110         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
5111         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
5112         * sysdeps/sh/strlen.S: Likewise.
5113
5114 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
5115
5116         * sysdeps/unix/fork.S: Remove file.
5117         * sysdeps/unix/i386/fork.S: Likewise.
5118         * sysdeps/unix/sparc/fork.S: Likewise.
5119
5120         * sysdeps/unix/system.c: Remove file.
5121         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
5122
5123         * sysdeps/unix/getegid.S: Remove file.
5124         * sysdeps/unix/geteuid.S: Likewise.
5125
5126 2012-04-24  Roland McGrath  <roland@hack.frob.com>
5127
5128         * scripts/check-localplt.awk: New file.
5129         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
5130         of diff.
5131         * scripts/data/localplt-generic.data: Add a comment.
5132
5133         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
5134         NODE when __dir_mkfile failed.
5135         * sysdeps/mach/hurd/symlinkat.c: Likewise.
5136         Reported by Ludovic Courtès <ludo@gnu.org>.
5137
5138 2012-04-24  Andreas Jaeger  <aj@suse.de>
5139
5140         * Makerules (common-clean): Also remove gen-as-const-headers
5141         files.
5142
5143 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
5144
5145         * Makerules (native-compile): Do not change working directory for
5146         build.  Use $(OUTPUT_OPTION) in command.
5147         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
5148
5149 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5150
5151         [BZ #13886]
5152         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
5153         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
5154         * math/libm-test.inc (floor_test): Add more tests.
5155         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
5156
5157 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
5158
5159         * sysdeps/unix/getdents.c: Remove file.
5160         * sysdeps/unix/sysv/getdents.c: Likewise.
5161         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
5162
5163         * sysdeps/unix/syscalls.list (madvise): Add syscall from
5164         sysdeps/unix/mman/syscalls.list.
5165         (mmap): Likewise.
5166         (mprotect): Likewise.
5167         (msync): Likewise.
5168         (munmap): Likewise.
5169         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
5170         * sysdeps/unix/mman/syscalls.list: Remove.
5171         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
5172
5173         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
5174         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
5175         * configure: Regenerated.
5176         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
5177         $(libgcc_s_suffix).
5178         * config.make.in (libgcc_s_suffix): Remove variable.
5179
5180 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
5181
5182         * sysdeps/unix/sysv/gethostname.c: Move to ...
5183         * sysdeps/posix/gethostname.c: ... here.
5184
5185         * sysdeps/unix/execve.S: Remove file.
5186
5187         * sysdeps/unix/_exit.S: Remove file.
5188
5189 2012-04-23  Andreas Jaeger  <aj@suse.de>
5190
5191         [BZ #13739]
5192         * manual/Makefile: Remove make dist support, there's no
5193         need for a stand-alone documentation tar ball.
5194         (TEXI2DVI): Define always, it's not in Makeconfig.
5195         (dist): Removed.
5196         (tar-it): Removed.
5197         (edition): Removed.
5198         (glibc-doc-$(edition).tar): Removed
5199         (%.Z): Removed.
5200         (%.gz): Removed.
5201         (%.uu): Removed.
5202         (ETAGS): Remove, it's in Makeconfig.
5203         (move-if-change): Remove, it's in Makeconfig.
5204
5205 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
5206
5207         [BZ #13970]
5208         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
5209         (strtod, strtof, strtold, strtol, strtoul, strtoq)
5210         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
5211         (strtod_l, strtof_l, strtold_l): Remove __wur.
5212         It is not necessarily an error to ignore strtol's return value.
5213         One can reliably look at the stored endptr to decide whether
5214         the number had valid syntax.
5215
5216 2012-04-21  Andreas Jaeger  <aj@suse.de>
5217
5218         [BZ #13739]
5219         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
5220
5221 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
5222
5223         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
5224         * sysdeps/unix/sysv/Versions: Remove file.
5225
5226 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
5227
5228         [BZ #13927]
5229         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5230
5231 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
5232
5233         [BZ #7064]
5234         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
5235         version from __vm86.
5236
5237 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
5238
5239         * sysdeps/unix/common/lxstat.c: Remove file.
5240         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
5241
5242         * sysdeps/unix/sysv/Makefile: Remove file.
5243
5244         * sysdeps/unix/sysv/direct.h: Remove file.
5245
5246         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
5247         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
5248         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
5249         * sysdeps/unix/sysv/bits/signum.h: Likewise.
5250         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5251         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
5252         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
5253
5254         * sysdeps/unix/sysv/setrlimit.c: Remove file.
5255
5256         * sysdeps/unix/xmknod.c: Remove file.
5257         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
5258
5259         * sysdeps/unix/sysv/settimeofday.c: Remove file.
5260
5261         * sysdeps/unix/sysv/i386/time.S: Remove file.
5262
5263         * sysdeps/unix/fxstat.c: Remove file.
5264         * sysdeps/unix/xstat.c: Likewise.
5265         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
5266
5267         * sysdeps/unix/sysv/sigaction.c: Remove file.
5268
5269         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
5270         (sysdep_headers): Remove variable.
5271         [termio.h not in sysdep_headers] (generated): Likewise.
5272         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
5273         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
5274         * sysdeps/unix/sysv/tcdrain.c: Likewise.
5275         * sysdeps/unix/sysv/tcflow.c: Likewise.
5276         * sysdeps/unix/sysv/tcflush.c: Likewise.
5277         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
5278         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
5279         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
5280         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
5281         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
5282
5283         * sysdeps/unix/siglist.c: Remove file.
5284
5285         * sysdeps/unix/getppid.S: Remove file.
5286
5287         * sysdeps/unix/mkdir.c: Remove file.
5288         * sysdeps/unix/rmdir.c: Likewise.
5289
5290 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
5291
5292         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
5293         ERR_MAX value.
5294         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
5295         errlist-compat value.
5296
5297 2012-04-18  David S. Miller  <davem@davemloft.net>
5298
5299         * sysdeps/generic/memcopy.h (reg_char): Delete.
5300         * debug/strcat_chk.c: Use char, not reg_char.
5301         * debug/strcpy_chk.c: Likewise.
5302         * debug/strncat_chk.c: Likewise.
5303         * debug/strncpy_chk.c: Likewise.
5304         * string/memchr.c: Likewise.
5305         * string/memrchr.c: Likewise.
5306         * string/rawmemchr.c: Likewise.
5307         * string/strcat.c: Likewise.
5308         * string/strchr.c: Likewise.
5309         * string/strchrnul.c: Likewise.
5310         * string/strcmp.c: Likewise.
5311         * string/strcpy.c: Likewise.
5312         * string/strncat.c: Likewise.
5313         * string/strncmp.c: Likewise.
5314         * string/strncpy.c: Likewise.
5315
5316 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
5317
5318         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
5319         __builtin_memcopy is called when src and dest ranges are known to not
5320         overlap.
5321
5322 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
5323
5324         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
5325         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
5326         fwd_align_merge macro call.
5327         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
5328         bwd_align_merge macro call.
5329         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
5330
5331 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
5332
5333         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
5334         bwd_align_merge macros.
5335         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
5336         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
5337         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
5338
5339 2012-04-18  David S. Miller  <davem@davemloft.net>
5340
5341         * sysdeps/sparc/sparc64/memcopy.h: Delete.
5342
5343 2012-04-18  Andreas Jaeger  <aj@suse.de>
5344
5345         [BZ# 6794]
5346         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
5347         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
5348         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
5349
5350         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
5351         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
5352         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
5353
5354         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
5355         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
5356         Adjust for changed ldbl-128 files.
5357
5358         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
5359         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
5360         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
5361
5362 2012-04-17  David S. Miller  <davem@davemloft.net>
5363
5364         * sysdeps/sparc/sparc32/memcopy.h: Delete.
5365
5366 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
5367
5368         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
5369         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
5370         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
5371         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
5372         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
5373         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
5374
5375 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5376
5377         [BZ #6794]
5378         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
5379         * math/libm-test.inc: Add ilogb errno and exception tests.
5380         * math/w_ilogb.c: New file: ilogb wrapper.
5381         * math/w_ilogbf.c: New file: ilogbf wrapper.
5382         * math/w_ilogbl.c: New file: ilogbl wrapper.
5383         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
5384         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
5385         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
5386         exception being thrown with 0.0 as argument.
5387         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
5388         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
5389         exception being thrown with 0.0 as argument.
5390         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
5391         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
5392         exception being thrown with 0.0 as argument.
5393         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
5394         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
5395         exception being thrown with 0.0 as argument.
5396         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
5397         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
5398         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
5399         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
5400         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
5401         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
5402         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
5403         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
5404         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
5405
5406 2012-04-17  Petr Baudis  <pasky@ucw.cz>
5407
5408         * include/sys/uio.h: Change __vector to __iovec to avoid clash
5409         with altivec.
5410
5411 2012-04-16  Marek Polacek  <polacek@redhat.com>
5412
5413         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
5414
5415 2012-04-16  Marek Polacek  <polacek@redhat.com>
5416
5417         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
5418         operands of fdivp instruction.
5419
5420 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
5421
5422         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
5423         * elf/tst-auditmod3b.c: Likewise.
5424         * elf/tst-auditmod4b.c: Likewise.
5425         * elf/tst-auditmod5b.c: Likewise.
5426         * elf/tst-auditmod6b.c: Likewise.
5427         * elf/tst-auditmod6c.c: Likewise.
5428         * elf/tst-auditmod7b.c: Likewise.
5429         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
5430         * sysdeps/x86_64/preconfigure.in: Likewise.
5431         * sysdeps/x86_64/preconfigure: Regenerated.
5432
5433 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
5434
5435         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
5436         __ILP32__.
5437
5438 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
5439
5440         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5441         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
5442
5443 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
5444
5445         [BZ #13973]
5446         * locale/iso-639.def: Fix gl language name. Spotted by
5447         Yaron Shahrabani.
5448
5449 2012-04-12  Roland McGrath  <roland@hack.frob.com>
5450
5451         [BZ #2074]
5452         * libio/libio.h (__io_write_fn): Update comment.
5453
5454 2012-04-12  Petr Baudis  <pasky@ucw.cz>
5455
5456         [BZ #2074]
5457         * stdio.texi (Hook Functions): The user provided writer function
5458         is not allowed to return -1.
5459
5460 2012-04-11  David S. Miller  <davem@davemloft.net>
5461
5462         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5463
5464 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
5465
5466         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
5467         Add a leading slash to rtkaio.
5468
5469 2012-04-11  Jim Meyering  <meyering@redhat.com>
5470
5471         [BZ #11959]
5472         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
5473         It is not necessarily an error to ignore fwrite's return
5474         value.  One can reliably use ferror to test for errors after
5475         the fact.
5476
5477 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
5478
5479         * bits/types.h (__snseconds_t): New type.
5480         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
5481
5482         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
5483         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5484         (__SNSECONDS_T_TYPE): Likewise.
5485         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5486         (__SNSECONDS_T_TYPE): Likewise.
5487         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5488         (__SNSECONDS_T_TYPE): Likewise.
5489
5490 2012-04-10  Andreas Jaeger  <aj@suse.de>
5491
5492         [BZ #2636]
5493         * manual/time.texi (Processor Time): Return type of times is
5494         elapsed real time since an arbitrary point in the past.
5495         (CPU Time): Move CLK_TCK from here...
5496         (Processor Time): ...to here.  Correct description.
5497         * manual/conf.texi (Constants for Sysconf): Correct description of
5498         _SC_CLK_TCK.
5499
5500 2012-04-10  David S. Miller  <davem@davemloft.net>
5501
5502         [BZ #13967]
5503         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
5504         where the is a gap between DT_REL(A) and DT_JMPREL.
5505
5506 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
5507
5508         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
5509         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
5510         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
5511
5512 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5513
5514         * elf/dl-support.c (_dl_inhibit_cache): New variable.
5515         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
5516         (dl_main): Handle --inhibit-cache.
5517         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
5518         _dl_inhibit_cache.
5519         * elf/dl-load.c (_dl_map_object): Use it.
5520         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
5521
5522 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
5523
5524         [BZ #13872]
5525         * sysdeps/i386/fpu/e_powl.S (p78): New object.
5526         (__ieee754_powl): Saturate large exponents rather than testing for
5527         overflow of y*log2(x).
5528         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
5529         * math/libm-test.inc (pow_test): Do not permit spurious overflow
5530         exceptions.
5531
5532         [BZ #11521]
5533         * math/s_ctan.c: Include <float.h>.
5534         (__ctan): Avoid internal overflow or cancellation in calculating
5535         denominator.
5536         * math/s_ctanf.c: Likewise.
5537         * math/s_ctanl.c: Likewise.
5538         * math/s_ctanh.c: Likewise.
5539         * math/s_ctanhf.c: Likewise.
5540         * math/s_ctanhl.c: Likewise.
5541         * math/libm-test.inc (ctan_test): Add more tests.
5542         (ctanh_test): Likewise.
5543         * sysdeps/i386/fpu/libm-test-ulps: Update.
5544         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5545
5546 2012-04-09  Andreas Jaeger  <aj@suse.de>
5547
5548         [BZ #6894]
5549         * manual/filesys.texi (Directory Entries): Mention that d_namlen
5550         is an optional BSD extension.
5551
5552         [BZ #10254]
5553         * manual/stdio.texi (Opening Streams): Document additional fopen
5554         parameters.
5555
5556 2012-04-09  Roland McGrath  <roland@hack.frob.com>
5557
5558         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
5559         %eax without telling the compiler.
5560
5561 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
5562
5563         [BZ # 13963]
5564         * manual/install.texi: Use sourceware.org.
5565
5566 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
5567
5568         [BZ #13873]
5569         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
5570         (__ieee754_pow): Generate overflow and underflow using huge*huge
5571         and tiny*tiny rather than just returning constant infinity or zero
5572         for large exponents.
5573         * math/libm-test.inc (pow_test): Require overflow exceptions for
5574         applicable cases of large exponents.
5575
5576         [BZ #706]
5577         * sysdeps/i386/fpu/e_pow.S (p10): New object.
5578         (__ieee754_pow): Use iterative multiplication algorithm only for
5579         integer exponents with absolute value below 1024.  Check for odd
5580         integer exponents when using algorithm for real exponents.
5581         * math/libm-test.inc (pow_test): Add more tests.
5582         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5583
5584 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
5585
5586         [BZ #13705]
5587         * math/libm-test.inc (exp_test): Do not allow overflow exception
5588         on underflow test.
5589
5590 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
5591
5592         [BZ #13705]
5593         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
5594         instead of __kernel_standard_f.
5595
5596 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
5597
5598         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
5599         * sysdeps/x86_64/memset_chk.S: Likewise.
5600
5601 2012-04-08  Andreas Jaeger  <aj@suse.de>
5602
5603         [BZ #10153]
5604         * manual/startup.texi (Environment Access): Describe return value
5605         for putenv and setenv.
5606
5607         [BZ #6895]
5608         * manual/filesys.texi (Directory Entries): Add description for
5609         DT_LNK.
5610
5611         [BZ #6890]
5612         * manual/filesys.texi (Directory Entries): Clarify that it's file
5613         system not operating system in the description of DT_UNKNOWN.
5614
5615         [BZ #6578]
5616         * manual/syslog.texi (closelog): Fix reference, it's openlog.
5617
5618 2012-04-08  Stephen Compall  <s11@member.fsf.org>
5619
5620         [BZ #6649]
5621         * manual/llio.texi (Opening and Closing Files): Add cross
5622         reference to explain mode argument.
5623
5624 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
5625
5626         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
5627         * sysdeps/x86_64/memset_chk.S: Likewise.
5628
5629 2012-04-07  David S. Miller  <davem@davemloft.net>
5630
5631         * elf/elf.h (R_SPARC_WDISP10): Define.
5632         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
5633         R_SPARC_SIZE32.
5634         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
5635         R_SPARC_SIZE64 and R_SPARC_H34.
5636
5637 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
5638
5639         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
5640         conditions and remove no longer applicable assertion.
5641
5642 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
5643
5644         * bits/byteswap.h: Include <features.h>.
5645         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
5646         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
5647
5648 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
5649
5650         * bits/byteswap.h (__bswap_16): Removed.
5651         Include <bits/byteswap-16.h> to get __bswap_16.
5652         * sysdeps/i386/bits/byteswap.h: Likewise.
5653         * sysdeps/s390/bits/byteswap.h: Likewise.
5654         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5655         * bits/byteswap-16.h: New file.
5656         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5657         * sysdeps/s390/bits/byteswap-16.h: Likewise.
5658         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
5659         * string/Makefile (headers): Add bits/byteswap-16.h.
5660
5661 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
5662
5663         [BZ #13895]
5664         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
5665         extra indirection.
5666         * nss/Makefile (tests-static, tests): Add tst-nss-static.
5667         * nss/tst-nss-static.c: New.
5668
5669 2012-04-06  Robert Millan  <rmh@gnu.org>
5670
5671         [BZ #6486]
5672         * manual/llio.texi (File Position Primitive): lseek
5673         refers to WHENCE when it really means OFFSET.
5674
5675 2012-04-06  Andreas Jaeger  <aj@suse.de>
5676
5677         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
5678         strncmp declarations.
5679
5680         * abilist/libc.abilist: Add __poll and __ppoll.
5681
5682 2012-04-05  David S. Miller  <davem@davemloft.net>
5683
5684         * scripts/check-local-headers.sh: Accept a host triplet in the
5685         path matched by the exclude regexp.
5686
5687         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
5688         definition.
5689         * sysdeps/powerpc/powerpc32/dl-machine.h
5690         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
5691         * sysdeps/s390/s390-32/dl-machine.h
5692         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
5693         * sysdeps/sparc/sparc32/dl-machine.h
5694         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
5695         * sysdeps/sparc/sparc64/dl-machine.h
5696         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
5697
5698         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
5699         lazy binding.
5700         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
5701         undefined symbol errors.
5702
5703         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
5704         DT_NEEDED entries.
5705
5706 2012-04-05  Michael Matz  <matz@suse.de>
5707
5708         [BZ #13592]
5709         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
5710
5711 2012-04-05  Andreas Jaeger  <aj@suse.de>
5712
5713         [BZ #13908]
5714         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
5715         comment.
5716
5717 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5718
5719         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
5720         which ROUND is no valid rounding mode.
5721
5722 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5723
5724         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
5725         read again.
5726         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
5727
5728 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5729
5730         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
5731         an exception using FPU order intentionally.
5732
5733 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5734
5735         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
5736         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
5737         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
5738         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
5739
5740 2012-04-05  Simon Josefsson  <simon@josefsson.org>
5741
5742         [BZ #12340]
5743         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
5744         EINVAL when BUFLEN is too smal.
5745
5746 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
5747
5748         [BZ #13553]
5749         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
5750         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
5751
5752 2012-04-03  Andreas Jaeger  <aj@suse.de>
5753
5754         [BZ #13938]
5755         * manual/setjmp.texi (System V contexts): Fix sentence.
5756
5757         [BZ #13926]
5758         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
5759         New macro for this case.
5760         [!__GNUC__] (__bswap_64): New inline function for this case.
5761         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5762         * bits/byteswap.h: Likewise.
5763         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
5764         ull, guard with __GLIBC_HAVE_LONG_LONG.
5765
5766         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
5767         __GLIBC_HAVE_LONG_LONG.
5768
5769         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
5770         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
5771
5772 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
5773
5774         [BZ #13691]
5775         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
5776         inptr and inend, rather than using last_ch.
5777
5778 2012-04-02  David S. Miller  <davem@davemloft.net>
5779
5780         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
5781         * stdio-common/printf-parse.h (read_int): Change return type to
5782         'int', return -1 on INT_MAX overflow.
5783         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
5784         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
5785         overflows INT_MAX.  Check for overflow of in-format-string precision
5786         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
5787         SIZE_MAX not INT_MAX for integer overflow test.
5788         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
5789         skip the construct in the format string but do not record anything.
5790         * stdio-common/bug22.c: Adjust to test both width/prevision
5791         INT_MAX overflow as well as total length INT_MAX overflow.  Check
5792         explicitly for proper errno values.
5793
5794 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
5795
5796         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
5797         CHAR_MAX.
5798         * string/test-strcmp.c [! WIDE]: Likewise.
5799         * time/tst-mktime2.c: Likewise for INT_MAX.
5800         * string/test-string.h: #include <sys/param.h> for MIN.
5801
5802         * csu/init-first.c (__libc_init_first): Call __ctype_init.
5803         * sysdeps/i386/init-first.c (init): Likewise.
5804         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
5805         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
5806         * sysdeps/sh/init-first.c (init): Likewise.
5807
5808 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
5809
5810         * po/ru.po: Update from translation team.
5811         * po/vi.po: Likewise.
5812
5813 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
5814
5815         * resolv/nss_dns/dns-host.c: Merge copyright years.
5816
5817 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5818
5819         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
5820         Optimize memcpy with prefetch if
5821         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
5822         src, dst pointers have unequal 16 byte alignments.
5823
5824 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
5825
5826         [BZ #13928]
5827         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
5828         from a CNAME entry and return the minimum ttl for the query.
5829         (gaih_getanswer_slice): Likewise.
5830
5831 2012-03-30  Jeff Law  <law@redhat.com>
5832
5833         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
5834         due to long keys.
5835         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
5836         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
5837
5838         * resolv/nss_dns/dns-host.c: Update copyright year.
5839
5840 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
5841
5842         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
5843         requests to save a system call.  Fix check that all bytes are sent.
5844
5845         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
5846         comments for sendmmsg.
5847
5848 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5849
5850         [BZ #13691]
5851         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
5852         with only 1 character between 0x0041 and 0x01b0.
5853         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
5854         * wcsmbs/tst-mbsnrtowcs.c: New file.
5855
5856 2012-03-29  David S. Miller  <davem@davemloft.net>
5857
5858         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
5859         small copies by hand.
5860
5861 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5862
5863         [BZ #13761]
5864         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
5865         _nss_compat_initgroups_dyn): Fall back to malloc/free
5866         for large group memberships.
5867
5868 2012-03-28  David S. Miller  <davem@davemloft.net>
5869
5870         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
5871         that branches into memcpy.
5872         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
5873         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
5874         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
5875         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
5876         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
5877         bits.
5878         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
5879         implementation too.
5880         * sysdeps/sparc/mempcpy.S: New file.
5881
5882         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
5883         the IFUNC routine in the libc case.
5884         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
5885
5886         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
5887         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
5888         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
5889         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
5890         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
5891         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
5892         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
5893         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
5894
5895         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
5896         loop to 256 bytes instead of 64 bytes and fix test signedness.
5897
5898         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
5899         * sysdeps/sparc/sparc32/Makefile: rather than here...
5900         * sysdeps/sparc/sparc64/Makefile: and here.
5901
5902 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
5903
5904         * malloc/mallocbug.c: Avoid warnings about unused variables.
5905
5906 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
5907
5908         [BZ #13760]
5909         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
5910         in the right place. Discard and retry query if response is
5911         larger than input buffer size.
5912
5913 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
5914
5915         [BZ #369]
5916         [BZ #2678]
5917         [BZ #3866]
5918         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
5919         x for large integer exponent.
5920         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
5921         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
5922         sign of result as needed afterwards.
5923         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
5924         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
5925         result for underflowing pow the same as for overflow.
5926         (__kernel_standard_l): Handle powl overflow and underflow here
5927         rather than calling __kernel_standard.
5928         * math/libm-test.inc (pow_test): Add more tests.
5929
5930         [BZ #3868]
5931         [BZ #13879]
5932         [BZ #13910]
5933         [BZ #13911]
5934         [BZ #13912]
5935         [BZ #13913]
5936         [BZ #13915]
5937         [BZ #13916]
5938         [BZ #13917]
5939         [BZ #13918]
5940         [BZ #13919]
5941         [BZ #13920]
5942         [BZ #13921]
5943         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
5944         * sysdeps/ieee754/k_standard.c: Include <float.h>.
5945         (__kernel_standard_l): New function.
5946         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
5947         __kernel_standard.
5948         * math/w_acosl.c (__acosl): Likewise.
5949         * math/w_asinl.c (__asinl): Likewise.
5950         * math/w_atan2l.c (__atan2l): Likewise.
5951         * math/w_atanhl.c (__atanhl): Likewise.
5952         * math/w_coshl.c (__coshl): Likewise.
5953         * math/w_exp10l.c (__exp10l): Likewise.
5954         * math/w_exp2l.c (__exp2l): Likewise.
5955         * math/w_fmodl.c (__fmodl): Likewise.
5956         * math/w_hypotl.c (__hypotl): Likewise.
5957         * math/w_j0l.c (__j0l, __y0l): Likewise.
5958         * math/w_j1l.c (__j1l, __y1l): Likewise.
5959         * math/w_jnl.c (__jnl, __ynl): Likewise.
5960         * math/w_lgammal.c (__lgammal): Likewise.
5961         * math/w_log10l.c (__log10l): Likewise.
5962         * math/w_log2l.c (__log2l): Likewise.
5963         * math/w_logl.c (__logl): Likewise.
5964         * math/w_powl.c (__powl): Likewise.
5965         * math/w_remainderl.c (__remainderl): Likewise.
5966         * math/w_scalbl.c (sysv_scalbl): Likewise.
5967         * math/w_sinhl.c (__sinhl): Likewise.
5968         * math/w_sqrtl.c (__sqrtl): Likewise.
5969         * math/w_tgammal.c (__tgammal): Likewise.
5970         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
5971         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
5972         * math/libm-test.inc (acos_test): Add more tests.
5973         (acosh_test): Likewise.
5974         (asin_test): Likewise.
5975         (atanh_test): Likewise.
5976         (exp_test): Likewise.
5977         (exp10_test): Likewise.
5978         (exp2_test): Likewise.
5979         (expm1_test): Likewise.
5980         (lgamma_test): Likewise.
5981         (log_test): Likewise.
5982         (log10_test): Likewise.
5983         (log1p_test): Likewise.
5984         (log2_test): Likewise.
5985         (pow_test): Do not allow some spurious overflow exceptions.
5986         (sqrt_test): Add more tests.
5987         (tgamma_test): Likewise.
5988         (y0_test): Likewise.
5989         (y1_test): Likewise.
5990         (yn_test): Likewise.
5991
5992 2012-03-27  Anton Blanchard  <anton@samba.org>
5993
5994         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
5995         MAP_HUGETLB.
5996         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
5997         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
5998         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
5999
6000 2012-03-27  David S. Miller  <davem@davemloft.net>
6001
6002         * conform/Makefile: Run run-conformtest.sh using $(BASH).
6003
6004         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
6005         have-as-vis3 check.
6006
6007 2012-03-27  Andreas Jaeger  <aj@suse.de>
6008
6009         * sysdeps/x86_64/elf/configure.in: Moved to ...
6010         * sysdeps/x86_64/configure.in: ... here.
6011         * sysdeps/x86_64/elf/start.S: Moved to ...
6012         * sysdeps/x86_64/start.S: ... here.
6013         * sysdeps/x86_64/elf/configure: Delete.
6014
6015         * sysdeps/x86_64/configure.in: Merge contents from
6016         sysdeps/i386/configure.in (without i686 check).
6017
6018         * sysdeps/i386/elf/Versions: Merge into ...
6019         * sysdeps/i386/Versions: ... this.
6020         * sysdeps/i386/elf/Versions: Delete file.
6021         * sysdeps/i386/elf/start.S: Moved to ...
6022         * sysdeps/i386/start.S: ...here.
6023         * sysdeps/i386/elf/configure.in: Merge into...
6024         * sysdeps/i386/configure.in: ...here.
6025         * sysdeps/i386/elf/configure.in: Delete file.
6026         * sysdeps/i386/elf/configure: Delete file.
6027
6028         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
6029         * debug/backtracesyms.c: ... here.
6030         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
6031         * debug/backtracesymsfd.c: ... here.
6032         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
6033         * sysdeps/generic/ifunc-sel.h: ... here.
6034
6035         * sysdeps/unix/i386/start.c: Delete file.
6036         * sysdeps/unix/sparc/start.c: Delete file.
6037         * sysdeps/unix/start.c: Delete file.
6038
6039         * sysdeps/sh/elf/configure.in: Moved to ...
6040         * sysdeps/sh/configure.in: ... here.
6041         * sysdeps/sh/elf/start.S: Moved to ...
6042         * sysdeps/sh/start.S: ... here.
6043         * sysdeps/sh/elf/configure: Delete file.
6044
6045         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
6046         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
6047         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
6048         * sysdeps/powerpc/powerpc64/entry.h: ... here.
6049         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
6050         * sysdeps/powerpc/powerpc64/start.S: here.
6051         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
6052         * sysdeps/powerpc/powerpc64/Makefile: ... this.
6053         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
6054         * sysdeps/powerpc/powerpc64/configure.in: ... this.
6055         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
6056
6057         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
6058         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
6059         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
6060         * sysdeps/powerpc/powerpc32/start.S: ... here.
6061         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
6062         * sysdeps/powerpc/powerpc32/configure.in: ... this.
6063         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
6064
6065         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
6066         * sysdeps/powerpc/ifunc-sel.h: ... here.
6067         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
6068         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
6069
6070         * sysdeps/sparc/elf/configure.in: Moved to ...
6071         * sysdeps/sparc/configure.in: ... here.
6072         * sysdeps/sparc/elf/configure: Delete file.
6073         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
6074         * sysdeps/sparc/sparc32/start.S: ... here.
6075         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
6076         * sysdeps/sparc/sparc64/start.S: ... here.
6077         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
6078         * sysdeps/sparc/sparc32/Makefile: ... this.
6079         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
6080         * sysdeps/sparc/sparc64/Makefile: ... this.
6081
6082         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
6083         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
6084         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
6085         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
6086         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
6087         * sysdeps/s390/s390-32/setjmp.S: ... here.
6088         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
6089         * sysdeps/s390/s390-32/configure.in: ... here.
6090         * sysdeps/s390/s390-32/elf/configure: Delete file.
6091         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
6092         * sysdeps/s390/s390-32/start.S: ... here.
6093
6094         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
6095         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
6096         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
6097         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
6098         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
6099         * sysdeps/s390/s390-64/setjmp.S: ... here.
6100         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
6101         * sysdeps/s390/s390-64/configure.in: ... here
6102         * sysdeps/s390/s390-64/elf/configure: Delete file.
6103         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
6104         * sysdeps/s390/s390-64/start.S: ... here.
6105         * sysdeps/s390/s390-64/elf/configure: Delete.
6106
6107         * configure.in: Remove support for elf directories in sysdeps.
6108
6109         * configure: Regenerated.
6110         * sysdeps/i386/configure: Regenerated.
6111         * sysdeps/powerpc/powerpc32/configure: Regenerated.
6112         * sysdeps/powerpc/powerpc64/configure: Regenerated.
6113         * sysdeps/s390/s390-32/configure: Regenerated.
6114         * sysdeps/s390/s390-64/configure: Regenerated.
6115         * sysdeps/sh/configure: Regenerated.
6116         * sysdeps/sparc/configure: Regenerated.
6117         * sysdeps/x86_64/configure: Regenerated.
6118
6119 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
6120
6121         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6122
6123         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
6124         denormal result into account.
6125
6126 2012-03-25  Roland McGrath  <roland@hack.frob.com>
6127
6128         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
6129         Reported by Allan McRae <allan@archlinux.org>.
6130
6131 2012-03-23  Jeff Law  <law@redhat.com>
6132
6133         * nss/getnssent.c (__nss_getent): Fix typo.
6134
6135 2012-03-23  David S. Miller  <davem@davemloft.net>
6136
6137         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6138
6139 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
6140
6141         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
6142         to pad to uint64_t for each field.
6143         (dl_tls_index): Replace unsigned long with uint64_t.
6144
6145 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
6146         Paul Pluzhnikov  <ppluzhnikov@google.com>
6147
6148         [BZ #6528]
6149         * grp/Makefile (otherlibs): Don't set it.
6150         * inet/Makefile (otherlibs): Likewise.
6151         * login/Makefile (otherlibs): Likewise.
6152         * nscd/Makefile (otherlibs): Likewise.
6153         * posix/Makefile (otherlibs): Likewise.
6154         * pwd/Makefile (otherlibs): Likewise.
6155         * rt/Makefile (otherlibs): Likewise.
6156         * sunrpc/Makefile (otherlibs): Likewise.
6157         * nss/Makefile (otherlibs): Likewise.
6158         Add libnss_files to routines and static-only-routines.
6159         ($(objpfx)getent): Remove rule.
6160         * resolv/Makefile: Add libnss_dns and libresolv to routines and
6161         static-only-routines.
6162
6163 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
6164
6165         [BZ #13892]
6166         * math/s_cexp.c: Include <float.h>.
6167         (__cexp): Handle exp result overflowing not necessarily
6168         overflowing both real and imaginary parts of result.
6169         * math/s_cexpf.c: Likewise.
6170         * math/s_cexpl.c: Likewise.
6171         * math/libm-test.inc (cexp_test): Add more tests.
6172         * sysdeps/i386/fpu/libm-test-ulps: Update.
6173         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6174
6175 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
6176
6177         * include/link.h (ELFW): New macro.
6178         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
6179         Replace ELF64_R_TYPE with ELFW(R_TYPE).
6180
6181 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
6182
6183         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
6184         with uint64_t.
6185
6186 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
6187
6188         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
6189         declaration.
6190         (struct La_x32_retval): Likewise.
6191
6192 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
6193
6194         * sysdeps/x86_64/preconfigure.in: New file.
6195         * sysdeps/x86_64/preconfigure: New generated file.
6196
6197 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
6198
6199         [BZ #13824]
6200         * math/e_exp2l.c: Include <float.h>.
6201         (__ieee754_exp2l): Handle overflow and underflow cases
6202         separately.  Only pass fractional part of argument to
6203         __ieee754_expl.
6204         * math/libm-test.inc (exp2_test): Add more tests.
6205
6206         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
6207         negating x to take absolute value.
6208         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
6209         Likewise.
6210         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
6211         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
6212         Likewise.
6213         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
6214         computing low part if x was negated.
6215         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
6216
6217 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
6218
6219         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
6220         la_x32_gnu_pltexit.
6221         (pltexit): Cast int_retval to ptrdiff_t.
6222         * elf/tst-auditmod3b.c: Likewise.
6223         * elf/tst-auditmod4b.c: Likewise.
6224         * elf/tst-auditmod5b.c: Likewise.
6225         * elf/tst-auditmod6b.c: Likewise.
6226         * elf/tst-auditmod6c.c: Likewise.
6227         * elf/tst-auditmod7b.c: Likewise.
6228
6229         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
6230         and x32_gnu_pltexit.
6231
6232         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
6233         __ELF_NATIVE_CLASS.
6234         (La_x32_regs): New macro.
6235         (La_x32_retval): Likewise.
6236         (la_x32_gnu_pltenter): New function prototype.
6237         (la_x32_gnu_pltexit): Likewise.
6238
6239 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
6240
6241         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
6242         exponent.
6243
6244         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6245
6246         * configure.in (libc_cv_cc_nofma): Check for option to disable
6247         generation of FMA instructions.
6248         * configure: Regenerate.
6249         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
6250         * sysdeps/ieee754/dbl-64/Makefile: New file.
6251         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
6252         Remove brandred-fma4.
6253         (CFLAGS-brandred-fma4.c): Remove.
6254         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
6255         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
6256         define.
6257         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
6258         define.
6259
6260 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
6261
6262         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6263         LLONG_MAX != LONG_MAX.
6264         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6265         (_fitoa_word): Likewise.
6266         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
6267         LLONG_MAX != LONG_MAX.
6268         * stdio-common/_itowa.h: Include <_itoa.h>.
6269         (_itowa_word): Use _ITOA_WORD_TYPE on value.
6270         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
6271         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
6272         only if not defined.
6273         (_ITOA_WORD_TYPE): Likewise.
6274         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6275         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
6276
6277 2012-03-21  David S. Miller  <davem@davemloft.net>
6278
6279         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6280
6281 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
6282
6283         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
6284         of x86_64 when setting libc_cv_slibdir, libdir and
6285         libc_cv_localedir.
6286         * sysdeps/unix/sysv/linux/configure: Regenerated.
6287
6288 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
6289
6290         * manual/lang.texi (Old Varargs): Remove section.
6291         (How Variadic): Update menu.
6292         (va_start): Do not mention varargs.h.
6293
6294 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
6295             Joseph Myers  <joseph@codesourcery.com>
6296
6297         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
6298         link test.
6299         * configure: Regenerated.
6300
6301 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
6302
6303         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
6304         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
6305         conformtest.pl
6306
6307 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
6308
6309         * NOTES: Remove.
6310         * Makefile (files-for-dist): Remove NOTES.
6311         (NOTES): Remove rule.
6312         * README: Don't refer to NOTES.
6313         * manual/creature.texi: Don't include macros.texi.
6314         * manual/intro.texi (creature.texi): Remove comment referring to
6315         NOTES.
6316
6317         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
6318         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
6319         * configure: Regenerated.
6320         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
6321         LIBC_TRY_CC_OPTION.
6322         (libc_cv_as_i686): Likewise.
6323         (libc_cv_cc_avx): Likewise.
6324         (libc_cv_cc_sse2avx): Likewise.
6325         (libc_cv_cc_fma4): Likewise.
6326         (libc_cv_cc_novzeroupper): Likewise.
6327         * sysdeps/i386/configure: Regenerated.
6328
6329         [BZ #13883]
6330         * sysdeps/i386/fpu/s_cexp.S: Remove.
6331         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
6332         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
6333         * math/libm-test.inc (cexp_test): Add more tests.
6334         * sysdeps/i386/fpu/libm-test-ulps: Update.
6335         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6336
6337 2012-03-21  Allan McRae  <allan@archlinux.org>
6338
6339         * timezone/Makefile: Do not install iso3166.tab and zone.tab
6340
6341 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
6342
6343         [BZ #13871]
6344         * math/w_exp2.c: Do not include <float.h>.
6345         (o_threshold, u_threshold): Remove.
6346         (__exp2): Calculate result before checking finiteness and calling
6347         __kernel_standard.
6348         * math/w_exp2f.c: Likewise.
6349         * math/w_exp2l.c: Likewise.
6350         * math/libm-test.inc (exp2_test): Require overflow exception for
6351         1e6 input.
6352
6353         [BZ #3866]
6354         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
6355         range of signed 64-bit integers before using fistpll.  Remove
6356         checks for whether integers fit in mantissa bits.
6357         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
6358         the range of signed 32-bit integers before using fistpl.  Remove
6359         checks for whether integers fit in mantissa bits.
6360         * sysdeps/i386/fpu/e_powl.S (p64): New object.
6361         (__ieee754_powl): Test for y outside the range of signed 64-bit
6362         integers before using fistpll.  Reduce 64-bit values to 63-bit
6363         ones as needed.
6364         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
6365         divide-by-zero is raised for zero to large negative powers.
6366         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
6367         (__ieee754_powl): Test for y outside the range of signed 64-bit
6368         integers before using fistpll.  Reduce 64-bit values to 63-bit
6369         ones as needed.
6370         * math/libm-test.inc (pow_test): Add more tests.
6371
6372 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
6373
6374         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
6375         <stdio-common/_itoa.h>.
6376         * debug/segfault.c: Likewise.
6377         * elf/dl-cache.c: Likewise.
6378         * elf/dl-minimal.c: Likewise.
6379         * elf/dl-misc.c: Likewise.
6380         * elf/dl-sysdep.c: Likewise.
6381         * elf/dl-version.c: Likewise.
6382         * elf/rtld.c: Likewise.
6383         * hurd/hurdsock.c: Likewise.
6384         * hurd/lookup-retry.c: Likewise.
6385         * malloc/malloc.c: Likewise.
6386         * malloc/mtrace.c: Likewise.
6387         * nscd/nscd_getgr_r.c: Likewise.
6388         * nscd/nscd_getpw_r.c: Likewise.
6389         * nscd/nscd_getserv_r.c: Likewise.
6390         * posix/getopt_init.c: Likewise.
6391         * posix/wordexp.c: Likewise.
6392         * stdio-common/_itoa.c: Likewise.
6393         * stdio-common/printf_fphex.c: Likewise.
6394         * stdio-common/vfprintf.c: Likewise.
6395         * string/_strerror.c: Likewise.
6396         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
6397         * sysdeps/i386/i686/hp-timing.h: Likewise.
6398         * sysdeps/mach/_strerror.c: Likewise.
6399         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
6400         * sysdeps/mach/hurd/sethostid.c: Likewise.
6401         * sysdeps/mach/hurd/xmknodat.c: Likewise.
6402         * sysdeps/mach/xpg-strerror.c: Likewise.
6403         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
6404         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
6405         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
6406         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
6407         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
6408         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
6409         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
6410         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
6411         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
6412         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
6413         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
6414         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
6415         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
6416         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
6417         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
6418         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
6419         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
6420         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
6421         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
6422         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
6423         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
6424
6425         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
6426
6427         * stdio-common/_itoa.h: Moved to ...
6428         * sysdeps/generic/_itoa.h: Here.
6429
6430         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
6431
6432         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
6433         instead of "_itoa.h" and "_itowa.h".
6434         * stdio-common/vfprintf.: Likewise.
6435
6436 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
6437
6438         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
6439         <bits/wordsize.h>.
6440         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
6441         (__signbit): Likwise.
6442         (llrintf): Likwise.
6443         (llrint): Likwise.
6444
6445 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
6446
6447         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
6448         __WORDSIZE != 64.
6449
6450 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
6451
6452         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
6453         OVERFLOW_EXCEPTION_OK.
6454         * math/libm-test.inc ("Philosophy"): Update comment about
6455         exception testing.
6456         (OVERFLOW_EXCEPTION): Define.
6457         (OVERFLOW_EXCEPTION_OK): Likewise.
6458         (INVALID_EXCEPTION_OK): Renumber.
6459         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
6460         (IGNORE_ZERO_INF_SIGN): Likewise.
6461         (test_exceptions): Handle FE_OVERFLOW.
6462         (exp10_test): Expect overflow exceptions.
6463         (exp2_test): Likewise.
6464         (expm1_test): Likewise.
6465         (nextafter_test): Likewise.
6466         (pow_test): Likewise.
6467         (scalbn_test): Likewise.
6468         (scalbln_test): Likewise.
6469
6470 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6471
6472         * sysdeps/x86_64/bits/atomic.h
6473         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
6474         64bit integer.
6475         (atomic_exchange_acq): Likewise.
6476         (__arch_exchange_and_add_body): Likewise.
6477         (__arch_add_body): Likewise.
6478         (atomic_add_negative): Likewise.
6479         (atomic_add_zero): Likewise.
6480
6481 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6482
6483         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
6484         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
6485
6486 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6487
6488         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
6489         Check __x86_64__ instead of __WORDSIZE.
6490
6491 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6492
6493         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
6494
6495 2012-03-19  David S. Miller  <davem@davemloft.net>
6496
6497         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6498
6499         * sysdeps/sparc/fpu/fenv_private.h: New file.
6500         * sysdeps/sparc/fpu/math_private.h: Use it.
6501         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
6502         Remove.
6503         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
6504         (libc_feholdexcept_setroundl): Remove.
6505         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
6506         Remove.
6507         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
6508         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
6509
6510 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6511
6512         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
6513         int64_t instead of long int.
6514         (INSERT_WORDS64): Likwise.
6515
6516 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6517
6518         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
6519         _Unwind_GetCFA return to _Unwind_Ptr first.
6520
6521 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
6522
6523         [BZ #13629]
6524         * math/s_clog.c: Include <float.h>.
6525         (__clog): Scale large or subnormal inputs.
6526         * math/s_clogf.c: Likewise.
6527         * math/s_clogl.c: Likewise.
6528         * math/s_clog10.c: Include <float.h>.
6529         (M_LOG10_2): Define.
6530         (__clog10): Scale large or subnormal inputs.
6531         * math/s_clog10f.c: Likewise.
6532         * math/s_clog10l.c: Likewise.
6533         * math/libm-test.inc (clog_test): Add more tests.
6534         (clog10_test): Likewise.
6535         * sysdeps/i386/fpu/libm-test-ulps: Update.
6536         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6537
6538         [BZ #11451]
6539         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
6540         x and y.
6541         * math/libm-test.inc (atan2_test): Add another test.
6542
6543         * Makerules (common-objdir-compile): Remove.
6544         * sysdeps/unix/Makefile (config-generated): Do not add
6545         $(unix-generated) to variable.
6546         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
6547         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
6548         Remove rule.
6549         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
6550         Likewise.
6551         [generic bits/local_lim.h] (before-compile): Do not append to
6552         variable.
6553         [generic bits/local_lim.h] (common-generated): Likewise.
6554         [generic sys/param.h] (before-compile): Do not append to variable.
6555         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
6556         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
6557         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
6558         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
6559         include.
6560         [generic sys/param.h] (sys/param.h-includes): Remove variable.
6561         [generic sys/param.h] (sys/param.h-includes): Remove rule.
6562         [generic sys/param.h] ($(addprefix
6563         $(common-objpfx),$(sys/param.h-includes))): Likewise.
6564         [generic sys/param.h] (common-generated): Do not append to
6565         variable.
6566         [generic sys/param.h] (sysdep_headers): Likewise.
6567         [generic bits/errno.h] (before-compile): Do not append to
6568         variable.
6569         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
6570         rule.
6571         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
6572         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
6573         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
6574         [generic bits/errno.h] (common-generated): Do not append to
6575         variable.
6576         [generic bits/ioctls.h] (before-compile): Do not append to
6577         variable.
6578         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
6579         rule.
6580         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
6581         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
6582         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
6583         rule.
6584         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
6585         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
6586         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
6587         [generic bits/ioctls.h] (common-generated): Do not append to
6588         variable.
6589         [generic sys/syscall.h] (syscall.h): Remove variable.
6590         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
6591         rule.
6592         [generic sys/syscall.h] (before-compile): Do not append to
6593         variable.
6594         [generic sys/syscall.h] (common-generated): Likewise.
6595         * sysdeps/unix/errnos-tmpl.c: Remove file.
6596         * sysdeps/unix/errnos.awk: Likewise.
6597         * sysdeps/unix/ioctls-tmpl.c: Likewise.
6598         * sysdeps/unix/ioctls.awk: Likewise.
6599         * sysdeps/unix/mk-local_lim.c: Likewise.
6600         * sysdeps/unix/snarf-ioctls: Likewise.
6601
6602 2012-03-19  Richard Henderson  <rth@twiddle.net>
6603
6604         * sysdeps/i386/fpu/fenv_private.h: New file.
6605         * sysdeps/i386/fpu/math_private.h: Use it.
6606         (math_opt_barrier, math_force_eval): Remove.
6607         (libc_feholdexcept_setround_53bit): Remove.
6608         (libc_feupdateenv_53bit): Remove.
6609         * sysdeps/x86_64/fpu/math_private.h: Likewise.
6610         (math_opt_barrier, math_force_eval): Remove.
6611         (libc_feholdexcept): Remove.
6612         (libc_feholdexcept_setround): Remove.
6613         (libc_fetestexcept, libc_fesetenv): Remove.
6614         (libc_feupdateenv_test): Remove.
6615         (libc_feupdateenv, libc_feholdsetround): Remove.
6616         (libc_feresetround): Remove.
6617
6618         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
6619         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
6620
6621         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
6622         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
6623         (libc_feupdateenv_testl): New.
6624         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
6625         (libc_feupdateenv_testf): New.
6626         (libc_feupdateenv): Use libc_feupdateenv_test.
6627         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
6628         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
6629
6630         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
6631         (libc_feholdsetroundf, libc_feholdsetroundl): New.
6632         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
6633         (libc_feresetround_noex): New.
6634         (libc_feresetround_noexf): New.
6635         (libc_feresetround_noexl): New.
6636         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
6637         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
6638         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
6639         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
6640         SET_RESTORE_ROUND.
6641         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
6642         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
6643         (__cos): Likewise.
6644         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
6645         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
6646         SET_RESTORE_ROUND_NOEX.
6647         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
6648         SET_RESTORE_ROUND_NOEXF.
6649         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
6650         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
6651         (libc_feholdsetroundf): New.
6652         (libc_feresetround, libc_feresetroundf): New.
6653
6654         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
6655         (libc_feholdexcept_setround_53bit): Convert from macro to function.
6656         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
6657
6658         * sysdeps/generic/math_private.h: Include <fenv.h>.
6659         (default_libc_feholdexcept): New.
6660         (default_libc_feholdexcept_setround): New.
6661         (default_libc_fesetenv, default_libc_feupdateenv): New.
6662         (libc_feholdexcept): Only define if undefined.
6663         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
6664         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
6665         (libc_feholdexcept_setroundl): Likewise.
6666         (libc_feholdexcept_setround_53bit): Likewise.
6667         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
6668         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
6669         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
6670         (libc_feupdateenv_53bit): Likewise.
6671         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
6672         (libc_feholdexcept): Convert from macro to inline function.
6673         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
6674         (libc_fesetenv, libc_feupdateenv): Likewise.
6675
6676         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
6677         not previously defined.
6678         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
6679         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
6680         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
6681         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
6682         * sysdeps/ieee754/flt-32/math_private.h: New file.
6683         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
6684         math_private.h below SET_FLOAT_WORD.
6685         (__isnan, __isinf_ns, __finite): Remove.
6686         (__isnanf, __isinf_nsf, __finitef): Remove.
6687
6688 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
6689
6690         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6691
6692 2012-03-17  David S. Miller  <davem@davemloft.net>
6693
6694         [BZ #6471]
6695         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
6696         for 2.16.
6697
6698 2012-03-16  David S. Miller  <davem@davemloft.net>
6699
6700         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
6701         warnings.
6702
6703         [BZ #6471]
6704         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
6705         properly.
6706         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
6707         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
6708         sysdep_routines when subdir is sysvipc.
6709         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
6710         __getshmlba helper.
6711
6712         * sysdeps/sparc/fpu/libm-test/ulps: Update.
6713
6714 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6715
6716         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
6717         [__LP64__].
6718
6719 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6720
6721         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
6722         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
6723         (__lround): Renamed to ...
6724         (__llround): This.  Replace long int with long long int.
6725         Define lround functions as aliases of llround functions.
6726         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
6727
6728 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6729
6730         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6731         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
6732         adresses to uintptr_t.  Replace "long int" and "unsigned long
6733         int" with "greg_t" on va_arg.
6734
6735 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6736
6737         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
6738         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
6739
6740         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
6741         Move e_machine check before EI_CLASS check.  Handle x32
6742         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
6743         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
6744         SKIP_EM_IA_64 and include
6745         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
6746
6747         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
6748         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
6749         (add_system_dir): New macro.
6750
6751         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
6752         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
6753
6754 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
6755
6756         [BZ #2551]
6757         [BZ #2552]
6758         [BZ #2553]
6759         [BZ #2554]
6760         [BZ #2562]
6761         [BZ #2563]
6762         [BZ #2565]
6763         [BZ #2566]
6764         [BZ #2576]
6765         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
6766         (y0): Likewise.
6767         * math/w_j0f.c (j0f): Likewise.
6768         (y0f): Likewise.
6769         * math/w_j0l.c (__j0l): Likewise.
6770         (__y0l): Likewise.
6771         * math/w_j1.c (j1): Likewise.
6772         (y1): Likewise.
6773         * math/w_j1f.c (j1f): Likewise.
6774         (y1f): Likewise.
6775         * math/w_j1l.c (__j1l): Likewise.
6776         (__y1l): Likewise.
6777         * math/w_jn.c (jn): Likewise.
6778         (yn): Likewise.
6779         * math/w_jnf.c (jnf): Likewise.
6780         (ynf): Likewise.
6781         * math/w_jnl.c (__jnl): Likewise.
6782         (__ynl): Likewise.
6783         * math/libm-test.inc (j0_test): Add more tests.
6784         (j1_test): Likewise.
6785         (jn_test): Likewise.  Add trailing semicolon to existing test.
6786         (y0_test): Likewise.
6787         (y1_test): Likewise.
6788         * sysdeps/i386/fpu/libm-test-ulps: Update.
6789         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6790
6791         [BZ #13851]
6792         [BZ #13854]
6793         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
6794         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
6795         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
6796         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
6797         (__tanl): Set errno for infinite argument.
6798         * sysdeps/i386/fpu/mptan.c: Remove.
6799         * sysdeps/i386/fpu/s_tan.S: Likewise.
6800         * sysdeps/i386/fpu/s_tanl.S: Likewise.
6801         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
6802         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
6803         * math/libm-test.inc (tan_test): Add more tests and enable more
6804         tests for double and long double.
6805         * sysdeps/i386/fpu/libm-test-ulps: Update.
6806         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6807
6808 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
6809
6810         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
6811         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
6812
6813 2012-03-16  Roland McGrath  <roland@hack.frob.com>
6814
6815         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
6816         * configure.in: Use it for both main tree and add-ons.
6817         * configure: Regenerated.
6818
6819 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6820
6821         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
6822
6823 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
6824
6825         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
6826         in comment.
6827
6828         [BZ #13851]
6829         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
6830         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
6831         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
6832         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
6833         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
6834         infinite argument.
6835         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
6836         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
6837         != 0 for prec == 2.
6838         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
6839         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
6840         * sysdeps/i386/fpu/s_cosl.S: Likewise.
6841         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
6842         * sysdeps/i386/fpu/s_sinl.S: Likewise.
6843         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
6844         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
6845         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
6846         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
6847         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
6848         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
6849         * math/libm-test.inc (cos_test): Add more tests and enable more
6850         tests for long double.
6851         (sin_test): Likewise.
6852         (sincos_test): Likewise.
6853         * sysdeps/i386/fpu/libm-test-ulps: Update.
6854         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6855
6856 2012-03-16  David S. Miller  <davem@davemloft.net>
6857
6858         * sysdeps/sparc/fpu/math_private.h: New file.
6859
6860 2012-03-15  David S. Miller  <davem@davemloft.net>
6861
6862         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
6863         file.
6864         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
6865         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
6866         file.
6867         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
6868         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
6869         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
6870         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
6871         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
6872         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
6873         sysdep routines.
6874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
6875
6876         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
6877         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
6878
6879         * sysdeps/sparc/sparc-ifunc.h: New file.
6880         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
6881         sparc-ifunc.h
6882         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
6883         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
6884         Likewise.
6885         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
6886         Likewise.
6887         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
6888         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
6889         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
6890         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
6891         Likewise.
6892         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
6893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
6894         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
6895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
6896         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
6897         Likewise.
6898         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
6899         Likewise.
6900         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
6901         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
6902         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
6903         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
6904         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
6905         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
6906         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
6907         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
6908         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
6909         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
6910         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
6911         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
6912         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
6913         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
6914         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
6915         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
6916         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
6917         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
6918         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
6919         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
6920         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
6921         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
6922         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
6923         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
6924
6925 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
6926
6927         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
6928         scaling.
6929         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6930
6931 2012-03-15  Andreas Jaeger  <aj@suse.de>
6932
6933         [BZ #13852]
6934         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
6935         ieee754/flt-32 implementation for sin, cos and sincos.
6936         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
6937         * sysdeps/i386/fpu/s_cosf.S: Likewise.
6938         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
6939         * sysdeps/i386/fpu/s_sinf.S: Likewise.
6940         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
6941         ieee754/flt-32 implementation for tan.
6942
6943         * math/libm-test.inc (cos_test): Enable some large input tests for
6944         float as well
6945         (sin_test): Likewise.
6946         (sincos_test): Likewise.
6947         (tan_test): Add tests for large input.
6948
6949         * sysdeps/i386/fpu/libm-test-ulps: Update.
6950
6951 2012-03-15  Andreas Jaeger  <aj@suse.de>
6952
6953         [BZ #13658]
6954         * math/libm-test.inc (cos_test): Add more test cases.
6955         (sin_test): Likewise.
6956         (sincos_test): Likewise.
6957
6958 2012-03-15  Andreas Jaeger  <aj@suse.de>
6959
6960         [BZ #13837]
6961         * math/libm-test.inc (cos_test): Add a test case for large input
6962         value.
6963         (sin_test): Likewise.
6964         (sincos_test): Likewise.
6965
6966 2012-03-15  Andreas Jaeger  <aj@suse.de>,
6967         Joseph Myers  <joseph@codesourcery.com>
6968
6969         [BZ #13658]
6970         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
6971         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
6972         * sysdeps/i386/fpu/branred.c: Likewise.
6973         * sysdeps/i386/fpu/dosincos.c: Likewise.
6974         * sysdeps/i386/fpu/mpa.c: Likewise.
6975         * sysdeps/i386/fpu/s_cos.S: Likewise.
6976         * sysdeps/i386/fpu/s_sin.S: Likewise.
6977         * sysdeps/i386/fpu/s_sincos.S: Likewise.
6978         * sysdeps/i386/fpu/sincos32.c: Likewise.
6979
6980         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
6981         Define.
6982         (libc_feupdateenv_53bit): Define.
6983         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
6984         Define.
6985         (libc_feupdateenv_53bit): Define.
6986
6987         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
6988         53 bit (without extend i386 double precision).
6989
6990         * math/libm-test.inc (sincos_test): Add tests for large input.
6991         (sin): Likewise.
6992         (cos): Likewise.
6993
6994         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
6995
6996 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
6997
6998         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6999
7000 2012-03-15  David S. Miller  <davem@davemloft.net>
7001
7002         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
7003         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
7004         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
7005         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
7006         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
7007         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
7008         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
7009         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
7010         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
7011         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
7012         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
7013         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
7014         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
7015         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
7016         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
7017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
7018         file.
7019         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
7020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
7021         file.
7022         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
7023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
7024         file.
7025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
7026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
7027         file.
7028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
7029         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
7030         fmin/fmax sysdep routines.
7031         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
7032
7033 2012-03-14  David S. Miller  <davem@davemloft.net>
7034
7035         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
7036         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
7037         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
7038         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
7039         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
7040         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
7041         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
7042         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
7043         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
7044         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
7045         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
7046         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
7047         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
7048         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
7049         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
7050         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
7051         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
7052         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
7053         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
7054         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
7055         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
7056         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
7057         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
7058         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
7059         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
7060         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
7061         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
7062         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
7063         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
7064         routines.
7065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
7066         file.
7067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
7068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
7069         file.
7070         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
7071         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
7072         file.
7073         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
7074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
7075         file.
7076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
7077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
7078         file.
7079         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
7080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
7081         file.
7082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
7083         file.
7084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
7085         file.
7086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
7087         file.
7088         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
7089         New file.
7090         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
7091         file.
7092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
7093         file.
7094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
7095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
7096         file.
7097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
7098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
7099         file.
7100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
7101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
7102         file.
7103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
7104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
7105         VIS3 routines.
7106
7107         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
7108         New file.
7109
7110         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7111
7112         * sysdeps/sparc/configure.in: New file.
7113         * sysdeps/sparc/configure: Generate.
7114         * configure.in (libc_cv_sparc_as_vis3): Substitute.
7115         * configure: Regenerate.
7116         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
7117         * config.make.in (have-as-vis3): New.
7118         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
7119         available use -Av9d instead of -Av9a.
7120         * sysdeps/sparc/sparc64/Makefile: Likewise.
7121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
7122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
7123         New file.
7124         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
7125         file.
7126         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
7127         New file.
7128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
7129         file.
7130         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
7131         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
7132         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
7133         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
7134         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
7135
7136         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
7137         fzeros/fnegs to load 0x80000000 into a float register instead of
7138         using the stack.
7139         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
7140
7141 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
7142
7143         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7144         bits/syscall.h.
7145         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
7146         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
7147         ($(inst_includedir)/bits/syscall.h): Remove rule.
7148         ($(objpfx)bits/syscall.d): Include instead of
7149         $(objpfx)syscall-list.d.
7150         (generated): Change syscall-list.h and syscall-list.d to
7151         bits/syscall.h and bits/syscall.d.
7152
7153 2012-03-14  Roland McGrath  <roland@hack.frob.com>
7154
7155         [BZ #13846]
7156         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
7157
7158 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
7159
7160         [BZ #13841]
7161         * math/s_csqrt.c: Include <float.h>.
7162         (__csqrt): Scale large or subnormal inputs.
7163         * math/s_csqrtf.c: Likewise.
7164         * math/s_csqrtl.c: Likewise.
7165         * math/libm-test.inc (csqrt_test): Add more tests.
7166         * sysdeps/i386/fpu/libm-test-ulps: Update.
7167         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7168
7169         [BZ #13840]
7170         * math/libm-test.inc (hypot_test): Add more tests.
7171
7172 2012-03-13  David S. Miller  <davem@davemloft.net>
7173
7174         [BZ #13840]
7175         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
7176         double-precision for the calculation instead of scaling.
7177
7178 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
7179
7180         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
7181         manipulate bits before adding and subtracting TWO52[sx].
7182         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
7183         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
7184         Likewise.
7185         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
7186
7187 2012-03-13  David S. Miller  <davem@davemloft.net>
7188
7189         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
7190         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
7191         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
7192         rtld-global-offsets.h
7193         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
7194
7195         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
7196         large parameters.
7197
7198         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
7199
7200         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
7201         'err' in the ifdef scope in which it is actually used.
7202
7203         * nss/nss_db/db-init.c: Include string.h
7204
7205 2012-03-12  David S. Miller  <davem@davemloft.net>
7206
7207         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
7208         masking out of the most significant byte of random value used.
7209         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
7210         Fix coding style in previous change.
7211
7212         * sysdeps/unix/sysv/linux/kernel-features.h
7213         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
7214         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
7215         expression.
7216         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
7217         later.
7218
7219 2012-03-11  David S. Miller  <davem@davemloft.net>
7220
7221         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
7222         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
7223         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
7224         for 'resultvar' otherwise things get truncated on 64-bit.
7225
7226         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
7227         Fix masking out of the most significant byte of random value used.
7228
7229         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7230
7231 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
7232
7233         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7234
7235 2012-03-09  David S. Miller  <davem@davemloft.net>
7236
7237         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
7238         variables with appropriate CPP guards.
7239         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
7240         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
7241         on resulting framesize and the management of the outregs buffer for pltexit.
7242         Preserve floating point return values across _dl_call_pltexit call.
7243         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
7244         framesize and the management of the outregs buffer for pltexit.
7245         Preserve floating point return values across _dl_call_pltexit
7246         call.
7247         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
7248         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
7249         (print_exit): Fix format string for return register value.
7250
7251 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
7252
7253         * sunrpc/Makefile (others): Add rpcgen.
7254         ($(objpfx)rpcgen): Remove special build rule and dependency on
7255         libc.
7256         * sunrpc/rpcgen.c: New file.
7257
7258 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
7259
7260         [BZ #13673]
7261         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
7262         * stdio-common/bug-vfprintf-nargs.c: Likewise.
7263         * sysdeps/i386/crti.S: Likewise.
7264         * sysdeps/i386/crtn.S: Likewise.
7265         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
7266         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
7267         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
7268         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
7269         * sysdeps/sh/crti.S: Likewise.
7270         * sysdeps/sh/crtn.S: Likewise.
7271         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
7272
7273         [BZ #13673]
7274         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
7275         with URL.
7276         * locale/programs/locfile-kw.gperf: Likewise.
7277         * locale/programs/charmap-kw.h: Regenerated.
7278         * locale/programs/locfile-kw.h: Likewise.
7279
7280         [BZ #13673]
7281         * intl/plural.y: Replace FSF snail mail address with URL.
7282         * intl/plural.c: Regenerated.
7283
7284 2012-03-09  Richard Henderson  <rth@twiddle.net>
7285
7286         * include/math_private.h: Remove file.
7287         * math/math_private.h: Move file ...
7288         * sysdeps/generic/math_private.h: ... here.
7289
7290         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
7291         * sysdeps/powerpc/fpu/math_private.h: Likewise.
7292         * sysdeps/x86_64/fpu/math_private.h: Likewise.
7293
7294         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
7295         and <math_private.h>.
7296         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
7297         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7298         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
7299         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
7300         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
7301         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
7302         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
7303         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7304         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
7305         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
7306         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7307         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
7308         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
7309         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7310         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
7311         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
7312         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
7313         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
7314         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7315         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
7316         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7317         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
7318         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
7319         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7320         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7321         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7322         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
7323         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7324         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7325         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7326         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
7327         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7328         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
7329         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7330         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
7331         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
7332         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
7333         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
7334         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7335         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7336         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
7337         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
7338         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
7339         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
7340         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
7341         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7342         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7343         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7344         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
7345         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
7346         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7347         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7348         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
7349         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7350         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
7351         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7352         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7353         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
7354         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
7355         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
7356         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7357         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7358         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7359         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
7360         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
7361         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
7362         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
7363         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
7364         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
7365         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
7366         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
7367         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7368         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
7369         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7370         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
7371         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
7372         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
7373         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
7374         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
7375         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7376         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
7377         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7378         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
7379         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7380         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
7381         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
7382         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
7383         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
7384         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
7385         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
7386         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
7387         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
7388         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
7389         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
7390         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
7391         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
7392         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
7393         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7394         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7395         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7396         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
7397         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
7398         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
7399         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
7400         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7401         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
7402         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
7403         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
7404         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7405         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7406         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7407         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
7408         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
7409         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
7410         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
7411         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7412         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7413         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
7414         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7415         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
7416         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
7417         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7418         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7419         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
7420         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
7421         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
7422         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
7423         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
7424         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7425         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7426         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7427         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
7428         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
7429         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7430         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7431         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
7432         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7433         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
7434         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
7435         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7436         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7437         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
7438         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
7439         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
7440         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
7441         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
7442         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
7443         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
7444         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
7445         * sysdeps/ieee754/k_standard.c: Likewise.
7446         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
7447         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
7448         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
7449         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
7450         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
7451         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
7452         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
7453         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
7454         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
7455         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7456         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7457         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
7458         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
7459         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
7460         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
7461         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
7462         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
7463         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
7464         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
7465         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
7466         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
7467         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
7468         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
7469         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
7470         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
7471         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
7472         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7473         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
7474         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
7475         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
7476         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
7477         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
7478         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7479         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7480         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
7481         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
7482         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
7483         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
7484         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
7485         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7486         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7487         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7488         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
7489         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
7490         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7491         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7492         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
7493         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7494         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
7495         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
7496         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
7497         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
7498         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7499         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
7500         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
7501         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
7502         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
7503         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
7504         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
7505         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
7506         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
7507         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7508         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
7509         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
7510         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
7511         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
7512         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
7513         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
7514         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
7515         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
7516         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
7517         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7518         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
7519         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
7520         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
7521         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
7522         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
7523         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
7524         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
7525         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
7526         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
7527         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
7528         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
7529         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
7530         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
7531         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
7532         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
7533         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
7534         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
7535         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
7536         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
7537         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
7538         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
7539         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
7540         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
7541         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
7542         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
7543         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
7544         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
7545         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
7546         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
7547         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
7548         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7549         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
7550         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
7551         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7552         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7553         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
7554         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
7555         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
7556         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
7557         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
7558         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
7559         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
7560         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
7561         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
7562         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
7563         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
7564         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
7565         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
7566         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7567         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7568         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
7569         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
7570         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
7571         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
7572         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
7573         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
7574         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
7575         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7576         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
7577         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7578         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
7579         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
7580         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
7581         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
7582         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
7583         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7584         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
7585         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7586         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7587         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
7588         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7589         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7590         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
7591         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
7592         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
7593         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
7594         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
7595         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
7596         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
7597         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
7598         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
7599         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
7600         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
7601         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
7602         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
7603         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
7604         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
7605         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
7606         * sysdeps/ieee754/s_lib_version.c: Likewise.
7607         * sysdeps/ieee754/s_matherr.c: Likewise.
7608         * sysdeps/ieee754/s_signgam.c: Likewise.
7609         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
7610         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
7611         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7612         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7613         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7614         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7615         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
7616         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
7617         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7618         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7619         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7620         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7621         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
7622         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
7623         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
7624         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
7625         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
7626         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
7627         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
7628         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7629         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7630
7631 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
7632
7633         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
7634         * sunrpc/rpc_main.c: Likewise.
7635         * sunrpc/rpc_svcout.c: Likewise.
7636
7637 2012-03-09  David S. Miller  <davem@davemloft.net>
7638
7639         * include/math_private.h: New file.
7640
7641 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
7642
7643         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
7644         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
7645         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
7646         from <bits/socket_type.h>.
7647         (enum __socket_type): Don't define here.
7648         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
7649         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7650         bits/socket_type.h.
7651
7652         [BZ #13566]
7653         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
7654         checking __USE_GNU.
7655
7656         * Makerules ($(inst_includedir)/%.h): New rule.
7657         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
7658         (install-others): Remove variable setting.
7659         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
7660
7661 2012-03-08  Richard Henderson  <rth@twiddle.net>
7662
7663         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
7664         from macro to inline function; merge with the
7665         !__LIBC_INTERNAL_MATH_INLINES version.
7666         (__ieee754_sqrtf): Likewise.
7667
7668         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
7669         to inline function.
7670         (__rintf, __floor, __floorf): Likewise.
7671
7672         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
7673         macro to inline function.
7674         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
7675
7676         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
7677         not <math/math_private.h>.
7678
7679 2012-03-08  David S. Miller  <davem@davemloft.net>
7680
7681         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
7682         copyright year.
7683         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
7684
7685 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
7686
7687         * resolv/gai_misc.c (handle_requests): Fix struct timespec
7688         normalization.
7689         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
7690         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
7691
7692 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
7693
7694         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
7695         be defined individually, they must be defined as a block.  Define
7696         S for printing a string instead of hidint the different by using a
7697         macro for adding the 'l'.
7698         * stdio-common/tst-fphex-wide.c: Adjust.
7699
7700 2012-03-07  Marek Polacek  <polacek@redhat.com>
7701
7702         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
7703
7704 2012-03-08  Marek Polacek  <polacek@redhat.com>
7705
7706         [BZ #13806]
7707         * stdio-common/Makefile (tests): Add tst-fphex-wide.
7708         * stdio-common/tst-fphex.c: Define a few macros to make the
7709         test reusable.  Use them.
7710         * stdio-common/tst-fphex-wide.c: New file.
7711
7712 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
7713
7714         [BZ #6911]
7715         * manual/macros.texi (gnusystems): New macro.
7716         (nongnusystems): Likewise.
7717         (gnulinuxhurdsystems): Likewise.
7718         (gnuhurdsystems): Likewise..
7719         (gnulinuxsystems): Likewise.
7720         * manual/charset.texi: Use new macros or @theglibc{} to refer to
7721         variants of the GNU system, not "GNU system".
7722         * manual/conf.texi: Likewise.
7723         * manual/errno.texi: Likewise.  Update example of errno macro
7724         expansion.
7725         * manual/filesys.texi: Likewise.
7726         (getumask): Document as specific to GNU/Hurd.
7727         * manual/install.texi: Likewise.  Reword some references to
7728         GNU/Linux.
7729         * manual/intro.texi: Likewise.
7730         * manual/io.texi: Likewise.
7731         (File Name Portability): Detail which constraints are inapplicable
7732         to all GNU systems and which are only inapplicable to GNU/Hurd.
7733         * manual/job.texi: Likewise.
7734         * manual/llio.texi: Likewise.
7735         (O_NOCTTY): Document as present on GNU/Linux.
7736         * manual/maint.texi: Likewise.
7737         * manual/memory.texi: Likewise.
7738         * manual/pattern.texi: Likewise.
7739         * manual/pipe.texi: Likewise.
7740         * manual/process.texi: Likewise.
7741         * manual/resource.texi: Likewise.
7742         (RUSAGE_CHILDREN): Remove statement about specifying a particular
7743         child on GNU/Hurd.
7744         * manual/setjmp.texi: Likewise.
7745         * manual/signal.texi: Likewise.
7746         * manual/startup.texi: Likewise.
7747         * manual/stdio.texi: Likewise.
7748         * manual/terminal.texi: Likewise.
7749         (ONLCR): Document as POSIX.
7750         (OXTABS): Document availability on GNU/Linux as XTABS.
7751         (ONOEOT): Document availability separately from other bits.
7752         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
7753         * manual/time.texi: Likewise.
7754         * manual/users.texi: Likewise.
7755         * INSTALL: Regenerated.
7756         * sysdeps/gnu/errlist.c: Regenerated.
7757
7758         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
7759         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
7760         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
7761         puts.
7762         * configure: Regenerated.
7763
7764 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
7765
7766         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
7767         default includes instead of AC_HEADER_CHECK.
7768         * sysdeps/i386/configure: Regenerated.
7769
7770         [BZ #10716]
7771         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
7772         * math/s_cacoshf.c (__cacoshf): Likewise.
7773         * math/s_cacoshl.c (__cacoshl): Likewise.
7774         * math/s_casinh.c (__casinh): Set signs of result from argument.
7775         * math/s_casinhf.c (__casinhf): Likewise.
7776         * math/s_casinhl.c (__casinhl): Likewise.
7777         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
7778         (casinh_test): Add more tests.
7779         * sysdeps/i386/fpu/libm-test-ulps: Update.
7780         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7781
7782 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
7783
7784         * po/zh_TW.po: Update from translation team.
7785
7786         * login/Makefile (distribute): Remove variable.
7787         * catgets/Makefile: Likewise.
7788         * mach/Makefile: Likewise.
7789         * malloc/Makefile: Likewise.
7790         * misc/Makefile: Likewise.
7791         * iconv/Makefile: Likewise.
7792         * nscd/Makefile: Likewise.
7793         * hurd/Makefile: Likewise.
7794         * manual/Makefile: Likewise.
7795         * locale/Makefile: Likewise.
7796         * intl/Makefile: Likewise.
7797         * conform/Makefile: Likewise.
7798         * nss/Makefile: Likewise.
7799         * time/Makefile: Likewise.
7800         * soft-fp/Makefile: Likewise.
7801         * dirent/Makefile: Likewise.
7802         * gmon/Makefile: Likewise.
7803         * po/Makefile: Likewise.
7804         * rt/Makefile: Likewise.
7805         * socket/Makefile: Likewise.
7806         * math/Makefile: Likewise.
7807         * signal/Makefile: Likewise.
7808         * debug/Makefile: Likewise.
7809         * elf/Makefile: Likewise.
7810         * timezone/Makefile: Likewise.
7811         * stdlib/Makefile: Likewise.
7812         * iconvdata/Makefile: Likewise.
7813         * sunrpc/Makefile: Likewise.
7814         * io/Makefile: Likewise.
7815         * argp/Makefile: Likewise.
7816         * inet/Makefile: Likewise.
7817         * hesiod/Makefile: Likewise.
7818         * grp/Makefile: Likewise.
7819         * csu/Makefile: Likewise.
7820         * wctype/Makefile: Likewise.
7821         * crypt/Makefile: Likewise.
7822         * libio/Makefile: Likewise.
7823         * string/Makefile: Likewise.
7824         * nis/Makefile: Likewise.
7825         * resolv/Makefile: Likewise.
7826         * stdio-common/Makefile: Likewise.
7827         * wcsmbs/Makefile: Likewise.
7828         * dlfcn/Makefile: Likewise.
7829         * posix/Makefile: Likewise.
7830
7831         [BZ #6959]
7832         * timezone/Makefile: Don't install timezone files, just the programs
7833         and scripts.
7834
7835 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
7836
7837         * nss/databases.def: Add missing gshadow entry.
7838
7839         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
7840
7841 2012-03-06  Marek Polacek  <polacek@redhat.com>
7842
7843         [BZ #13726]
7844         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
7845         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
7846         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
7847         * stdio-common/tst-long-dbl-fphex.c: New file.
7848
7849 2012-03-06  David S. Miller  <davem@davemloft.net>
7850
7851         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7852         (set_obp_int): New function.
7853         (get_obp_int): New function.
7854         (__get_clockfreq_via_dev_openprom): Likewise.
7855         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7856         Avoid unused variable warnings on 'val' and use builtin_expect.
7857         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
7858         __builtin_expect.
7859         (INLINE_CLONE_SYSCALL): Likewise.
7860
7861 2012-03-05  David S. Miller  <davem@davemloft.net>
7862
7863         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7864
7865 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
7866
7867         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7868
7869         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
7870         only for |x| >= 40.
7871         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
7872
7873 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
7874
7875         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
7876         Replace gettimeofday with __vdso_gettimeofday.
7877
7878         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7879         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
7880         __vdso_clock_gettime and __vdso_getcpu.
7881
7882         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
7883         time with __vdso_time.
7884
7885 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
7886
7887         * manual/lang.texi (size_t): Note types to which size_t may be
7888         equivalent with the GNU C Library, but do not describe when
7889         differences between them are significant.
7890
7891 2012-03-05  Andreas Jaeger  <aj@suse.de>
7892
7893         * sysdeps/i386/fpu/libm-test-ulps: Update.
7894
7895 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
7896
7897         [BZ #3976]
7898         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
7899         (__ieee754_pow): Save and restore rounding mode and use
7900         round-to-nearest for main computations.
7901         * math/libm-test.inc (pow_test_tonearest): New function.
7902         (pow_test_towardzero): Likewise.
7903         (pow_test_downward): Likewise.
7904         (pow_test_upward): Likewise.
7905         (main): Call the new functions.
7906         * sysdeps/i386/fpu/libm-test-ulps: Update.
7907         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7908
7909         [BZ #3976]
7910         * math/libm-test.inc (cosh_test_tonearest): New function.
7911         (cosh_test_towardzero): Likewise.
7912         (cosh_test_downward): Likewise.
7913         (cosh_test_upward): Likewise.
7914         (sinh_test_tonearest): Likewise.
7915         (sinh_test_towardzero): Likewise.
7916         (sinh_test_downward): Likewise.
7917         (sinh_test_upward): Likewise.
7918         (main): Call the new functions.
7919         * sysdeps/i386/fpu/libm-test-ulps: Update.
7920         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7921
7922 2012-03-05  Tom de Vries  <tom@codesourcery.com>
7923
7924         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
7925         default stack guard is set in last bytes.
7926         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
7927
7928 2012-03-05  Kees Cook  <keescook@chromium.org>
7929
7930         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
7931
7932         [BZ #13656]
7933         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
7934         possibly allocate from heap instead of stack.
7935         * stdio-common/bug-vfprintf-nargs.c: New file.
7936         * stdio-common/Makefile (tests): Add nargs overflow test.
7937
7938 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
7939
7940         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7941
7942 2012-03-03  Marek Polacek  <polacek@redhat.com>
7943
7944         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
7945         * math/math_private.h: Likewise.
7946         * stdlib/tst-strtod.c: Likewise.
7947         * sysdeps/i386/i486/bits/atomic.h: Likewise.
7948         * sysdeps/x86_64/bits/atomic.h: Likewise.
7949
7950 2012-03-02  David S. Miller  <davem@davemloft.net>
7951
7952         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
7953         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
7954         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
7955         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
7956         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
7957         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
7958         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
7959         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
7960
7961 2012-03-02  Roland McGrath  <roland@hack.frob.com>
7962
7963         [BZ #13792]
7964         * manual/examples/README: New file, says the example source files
7965         can be used under GPL>=2.
7966         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
7967         line containing just "*/".
7968         * manual/examples/add.c: Add copyright header (GPL>=2).
7969         * manual/examples/argp-ex1.c: Likewise.
7970         * manual/examples/argp-ex2.c: Likewise.
7971         * manual/examples/argp-ex3.c: Likewise.
7972         * manual/examples/argp-ex4.c: Likewise.
7973         * manual/examples/atexit.c: Likewise.
7974         * manual/examples/db.c: Likewise.
7975         * manual/examples/dir.c: Likewise.
7976         * manual/examples/dir2.c: Likewise.
7977         * manual/examples/execinfo.c: Likewise.
7978         * manual/examples/filecli.c: Likewise.
7979         * manual/examples/filesrv.c: Likewise.
7980         * manual/examples/fmtmsgexpl.c: Likewise.
7981         * manual/examples/genpass.c: Likewise.
7982         * manual/examples/inetcli.c: Likewise.
7983         * manual/examples/inetsrv.c: Likewise.
7984         * manual/examples/isockad.c: Likewise.
7985         * manual/examples/longopt.c: Likewise.
7986         * manual/examples/memopen.c: Likewise.
7987         * manual/examples/memstrm.c: Likewise.
7988         * manual/examples/mkfsock.c: Likewise.
7989         * manual/examples/mkisock.c: Likewise.
7990         * manual/examples/mygetpass.c: Likewise.
7991         * manual/examples/pipe.c: Likewise.
7992         * manual/examples/popen.c: Likewise.
7993         * manual/examples/rprintf.c: Likewise.
7994         * manual/examples/search.c: Likewise.
7995         * manual/examples/select.c: Likewise.
7996         * manual/examples/setjmp.c: Likewise.
7997         * manual/examples/sigh1.c: Likewise.
7998         * manual/examples/sigusr.c: Likewise.
7999         * manual/examples/stpcpy.c: Likewise.
8000         * manual/examples/strdupa.c: Likewise.
8001         * manual/examples/strftim.c: Likewise.
8002         * manual/examples/strncat.c: Likewise.
8003         * manual/examples/subopt.c: Likewise.
8004         * manual/examples/swapcontext.c: Likewise.
8005         * manual/examples/termios.c: Likewise.
8006         * manual/examples/testopt.c: Likewise.
8007         * manual/examples/testpass.c: Likewise.
8008         * manual/examples/timeval_subtract.c: Likewise.
8009
8010         [BZ #13792]
8011         * manual/time.texi (Elapsed Time): Move timeval_subtract example
8012         function to ...
8013         * manual/timeval_subtract.c.texi: ... here, new file.
8014
8015 2012-03-02  David S. Miller  <davem@davemloft.net>
8016
8017         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
8018
8019 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
8020
8021         [BZ #3976]
8022         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
8023         (__sin): Save and restore rounding mode and use round-to-nearest
8024         for all computations.
8025         (__cos): Save and restore rounding mode and use round-to-nearest
8026         for all computations.
8027         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
8028         <fenv.h>.
8029         (tan): Save and restore rounding mode and use round-to-nearest for
8030         all computations.
8031         * math/libm-test.inc (cos_test_tonearest): New function.
8032         (cos_test_towardzero): Likewise.
8033         (cos_test_downward): Likewise.
8034         (cos_test_upward): Likewise.
8035         (sin_test_tonearest): Likewise.
8036         (sin_test_towardzero): Likewise.
8037         (sin_test_downward): Likewise.
8038         (sin_test_upward): Likewise.
8039         (tan_test_tonearest): Likewise.
8040         (tan_test_towardzero): Likewise.
8041         (tan_test_downward): Likewise.
8042         (tan_test_upward): Likewise.
8043         (main): Call the new functions.
8044         * sysdeps/i386/fpu/libm-test-ulps: Update.
8045         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8046
8047         [BZ #10135]
8048         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
8049         small n, then large n, before computing and testing k+n.
8050         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8051         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
8052         Likewise.
8053         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
8054         Likewise.
8055         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
8056         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
8057         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
8058         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
8059         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
8060         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
8061         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
8062         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
8063         * math/libm-test.inc (scalbn_test): Add more tests.
8064         (scalbln_test): Likewise.
8065
8066         * manual/filesys.texi (mode_t): Describe constraints on size and
8067         signedness, not exact equivalence to a particular type.
8068         (ino_t): Likewise.
8069         (ino64_t): Likewise.
8070         (dev_t): Likewise.
8071         (nlink_t): Likewise.
8072         (blkcnt_t): Likewise.
8073         (blkcnt64_t): Likewise.
8074         * manual/llio.texi (off_t): Likewise.
8075
8076         [BZ #3976]
8077         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
8078         (__ieee754_exp): Save and restore rounding mode and use
8079         round-to-nearest for all computations.
8080         * math/libm-test.inc (exp_test_tonearest): New function.
8081         (exp_test_towardzero): Likewise.
8082         (exp_test_downward): Likewise.
8083         (exp_test_upward): Likewise.
8084         (main): Call the new functions.
8085         * sysdeps/i386/fpu/libm-test-ulps: Update.
8086         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8087
8088 2012-03-01  Chris Demetriou  <cgd@google.com>
8089
8090         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
8091         have predictable order.
8092
8093 2012-03-01  David S. Miller  <davem@davemloft.net>
8094
8095         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
8096
8097         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
8098         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
8099         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
8100         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
8101
8102         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
8103         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
8104         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
8105         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
8106         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
8107         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
8108         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
8109         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
8110         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
8111
8112         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8113
8114         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
8115         * sysdeps/sparc/fpu/libm-test-ulps: to here.
8116         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
8117
8118         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
8119         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8120         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
8121         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
8122         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
8123         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
8124         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
8125         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8126         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8127         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
8128         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
8129         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
8130         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
8131         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
8132         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
8133         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8134         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
8135         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
8136         * sysdeps/sparc/elf/configure: Regenerated.
8137
8138 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
8139
8140         * configure.in (AS, LD): Require binutils 2.20 or later.
8141         * configure: Regenerated.
8142         * manual/install.texi (Tools for Compilation): Give binutils 2.20
8143         as required minimum version.
8144         * INSTALL: Regenerated.
8145
8146         [BZ #2541]
8147         [BZ #4108]
8148         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
8149         before squaring exponent.
8150         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
8151         bottom long double and 27 bits of top long double before squaring
8152         exponent.
8153         * math/libm-test.inc (erfc_test): Add more tests.
8154         * sysdeps/i386/fpu/libm-test-ulps: Update.
8155         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8156         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8157
8158 2012-03-01  Kai Tietz  <ktietz@redhat.com>
8159
8160         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
8161         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
8162         containing bit-fields.
8163         * soft-fp/extended.h (_FP_UNION_E): Likewise.
8164         * soft-fp/single.h (_FP_UNION_S): Likewise.
8165         * soft-fp/double.h (_FP_UNION_D): Likewise.
8166
8167 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
8168
8169         [BZ #13786]
8170         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
8171         not include ../strcmp.S.
8172         [USE_AS_STRNCASECMP_L]: Likewise.
8173         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
8174         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
8175         * sysdeps/i386/i686/multiarch/strncase_l-c.c
8176         (__strncasecmp_l_ia32): Define as alias to
8177         __strncasecmp_l_nonascii.
8178
8179         [BZ #5794]
8180         * math/libm-test.inc (expm1_test): Add test for bug 5794.
8181         * sysdeps/i386/fpu/libm-test-ulps: Update.
8182         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8183
8184         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
8185         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8186
8187 2012-02-29  Jeff Law  <law@redhat.com>
8188
8189         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
8190         out of bounds read.
8191
8192 2012-02-29  Marek Polacek  <polacek@redhat.com>
8193
8194         [BZ #13706]
8195         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
8196         * elf/Makefile: Add rules to run tst-unused-dep.out.
8197
8198 2012-02-28  David S. Miller  <davem@davemloft.net>
8199
8200         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
8201         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
8202         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
8203         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
8204         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
8205         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
8206
8207 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
8208
8209         * math/libm-test.inc (llround_test): Move one test from
8210         lround_test.  Use TEST_f_L in moved test.
8211         (lround_test): Move misplaced test to llround_test.  Add testcase
8212         from bug 2561.
8213
8214 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
8215
8216         * sysdeps/x86_64/fpu/e_expf.S: New file.
8217         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
8218
8219 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
8220
8221         [BZ #13637]
8222         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
8223         of remain_len that may cause incomplete multi-byte character and
8224         false match.
8225         * posix/bug-regex33.c: New file.
8226         * posix/Makefile (tests): Add bug-regex33.
8227
8228 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
8229
8230         * manual/macros.texi: New file.
8231         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
8232         * manual/libc.texinfo: Include macros.texi.
8233         * manual/creatute.texi: Likewise.
8234         * manual/install.texi: Likewise.
8235         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
8236         @glibcadj{} in references to the GNU C Library.
8237         * manual/charset.texi: Likewise.
8238         * manual/conf.texi: Likewise.
8239         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
8240         when not using those macros.
8241         * manual/creature.texi: Likewise.
8242         * manual/crypt.texi: Likewise.
8243         * manual/errno.texi: Likewise.
8244         * manual/filesys.texi: Likewise.
8245         * manual/header.texi: Likewise.
8246         * manual/install.texi: Likewise.
8247         * manual/intro.texi: Likewise.
8248         * manual/io.texi: Likewise.
8249         * manual/job.texi: Likewise.
8250         * manual/lang.texi: Likewise.
8251         * manual/libc.texiinfo: Likewise.
8252         * manual/llio.texi: Likewise.
8253         * manual/locale.texi: Likewise.
8254         * manual/maint.texi: Likewise.
8255         * manual/math.texi: Likewise.
8256         * manual/memory.texi: Likewise.
8257         * manual/message.texi: Likewise.
8258         * manual/nss.texi: Likewise.
8259         * manual/pattern.texi: Likewise.
8260         * manual/process.texi: Likewise.
8261         * manual/resource.texi: Likewise.
8262         * manual/search.texi: Likewise.
8263         * manual/setjmp.texi: Likewise.
8264         * manual/signal.texi: Likewise.
8265         * manual/socket.texi: Likewise.
8266         * manual/startup.texi: Likewise.
8267         * manual/stdio.texi: Likewise.
8268         * manual/string.texi: Likewise.
8269         * manual/sysinfo.texi: Likewise.
8270         * manual/syslog.texi: Likewise.
8271         * manual/terminal.texi: Likewise.
8272         * manual/time.texi: Likewise.
8273         * manual/users.texi: Likewise.
8274         * INSTALL: Regenerated.
8275         * NOTES: Regenerated.
8276         * sysdeps/gnu/errlist.c: Regenerated.
8277
8278 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
8279
8280         * include/dirent.h: Include <dirstream.h> before
8281         <dirent/dirent.h>.
8282
8283 2012-02-28  David S. Miller  <davem@davemloft.net>
8284
8285         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
8286         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
8287         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
8288         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
8289
8290 2012-02-27  David S. Miller  <davem@davemloft.net>
8291
8292         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
8293         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
8294         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
8295         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
8296
8297         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
8298         frame pointer instead of stack pointer relative arg slot.
8299         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
8300         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
8301         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
8302
8303 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
8304
8305         [BZ #3992]
8306         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
8307
8308 2012-02-27  David S. Miller  <davem@davemloft.net>
8309
8310         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
8311         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
8312         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
8313         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
8314         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
8315         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
8316         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
8317         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
8318
8319 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
8320
8321         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
8322         later.  Allow versions 5-9.
8323         * configure: Regenerated.
8324         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
8325         required minimum version and 4.6 as recommended version.  Do not
8326         mention bugs in GCC 2.7 and 2.8.
8327         * INSTALL: Regenerated.
8328
8329 2012-02-27  David S. Miller  <davem@davemloft.net>
8330
8331         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
8332         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
8333         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
8334         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
8335         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
8336         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
8337         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
8338         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
8339
8340         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
8341         manipulate bits before adding and subtracting TWO112[sx].
8342         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
8343
8344 2012-02-27  Roland McGrath  <roland@hack.frob.com>
8345
8346         [BZ #13775]
8347         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
8348         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
8349         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
8350         being in POSIX, because they are in 1003.1-2008.
8351
8352         * rt/tst-aio.c: Include <fcntl.h>.
8353         * rt/tst-aio7.c: Likewise.
8354         * rt/tst-aio64.c: Likewise.
8355
8356         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
8357
8358 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
8359
8360         * manual/install.texi (--with-headers): Describe headers as
8361         interface headers, not private headers.
8362         (Specific advice for GNU/Linux systems): Describe use of headers
8363         from "make headers_install", not private headers from older
8364         kernels.
8365         * INSTALL: Regenerated.
8366         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
8367         Change to 2.6.19.
8368         * sysdeps/unix/sysv/linux/configure: Regenerated.
8369
8370         * manual/llio.texi (fclean): Remove documentation.
8371
8372         * manual/Makefile (libc-texi-generated): New variable.  Include
8373         version.texi.
8374         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
8375         $(libc-texi-generated), not duplicated list of files.
8376         (version.texi, stamp-version): New rules.
8377         (realclean): Remove $(libc-texi-generated), not individual files
8378         from that list.  Do not remove dir-add.texinfo.
8379         * manual/libc.texinfo: Comment out uses of edition numbers and
8380         references to printed manual.  Remove last-updated dates.
8381         (EDITION): Comment out.
8382         (ISBN): Likewise.
8383         (VERSION, UPDATED): Remove.
8384         (version.texi): Include.
8385
8386 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
8387
8388         * sysdeps/posix/spawni.c: Include <signal.h>.
8389         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
8390         * sysdeps/pthread/aio_fsync.c: Likewise.
8391
8392 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
8393
8394         * conform/Makefile (tests): Run only when not cross-compiling and
8395         when fast-check is not defined.
8396
8397         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
8398         * conform/data/limits.h-data: Fixes for POSIX2008.
8399         * conform/run-conformtest.sh: Run all tests.
8400         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
8401         headers.
8402         * include/bits/dlfcn.h: Likewise.
8403         * include/langinfo.h: Likewise.
8404         * include/monetary.h: Likewise.
8405         * include/sys/poll.h: Likewise.
8406
8407         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
8408         for __USE_GNU.
8409         * posix/spawn.h: Define __need_sigset_t.
8410         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
8411         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
8412         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
8413         to get sigevent_t only.
8414         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
8415         only for __USE_GNU.
8416         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
8417         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
8418         process_vm_writev only for __USE_GNU.
8419         * termios/termios.h: Declare tcgetsid also for POSIX2008.
8420
8421         * conform/Makefile: For now ignore errors from run-conformtest.
8422         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
8423         POSIX to avoid namespace pollution.  Don't prepend headers.
8424         * conform/data/aio.h-data: Fixes for POSIX testing.
8425         * conform/data/fcntl.h-data: Likewise.
8426         * conform/data/glob.h-data: Likewise.
8427         * conform/data/grp.h-data: Likewise.
8428         * conform/data/pthread.h-data: Likewise.
8429         * conform/data/pwd.h-data: Likewise.
8430         * conform/data/signal.h-data: Likewise.
8431         * conform/data/spawn.h-data: Likewise.
8432         * conform/data/stdio.h-data: Likewise.
8433         * conform/data/stdlib.h-data: Likewise.
8434         * conform/data/stropts.h-data: Likewise.
8435         * conform/data/sys/mman.h-data: Likewise.
8436         * conform/data/sys/stat.h-data: Likewise.
8437         * conform/data/sys/types.h-data: Likewise.
8438         * conform/data/sys/wait.h-data: Likewise.
8439         * conform/data/time.h-data: Likewise.
8440         * conform/data/unistd.h-data: Likewise.
8441         * conform/data/utime.h-data: Likewise.
8442
8443         * io/sys/stat.h: fchmod was always in POSIX.
8444         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
8445         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
8446         * rt/aio.h: Define __need_timespec before including <time.h>.
8447         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
8448         struct.  Add forward declaration of pthread_attr_t and use it in
8449         sigevent.
8450         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
8451         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8452         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
8453         always remove CLK_TCK definition.
8454
8455 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
8456
8457         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
8458
8459 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
8460
8461         * conform/run-conformtest.sh: New file.
8462         * conform/Makefile: Run run-conformtest for tests.
8463         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
8464         support.
8465
8466         * conform/data/uchar.h-data: New file.
8467         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
8468         * conform/data/arpa/inet.h-data: Likewise.
8469         * conform/data/assert.h-data: Likewise.
8470         * conform/data/complex.h-data: Likewise.
8471         * conform/data/cpio.h-data: Likewise.
8472         * conform/data/ctype.h-data: Likewise.
8473         * conform/data/dirent.h-data: Likewise.
8474         * conform/data/dlfcn.h-data: Likewise.
8475         * conform/data/errno.h-data: Likewise.
8476         * conform/data/fcntl.h-data: Likewise.
8477         * conform/data/float.h-data: Likewise.
8478         * conform/data/fmtmsg.h-data: Likewise.
8479         * conform/data/fnmatch.h-data: Likewise.
8480         * conform/data/ftw.h-data: Likewise.
8481         * conform/data/glob.h-data: Likewise.
8482         * conform/data/grp.h-data: Likewise.
8483         * conform/data/iconv.h-data: Likewise.
8484         * conform/data/inttypes.h-data: Likewise.
8485         * conform/data/langinfo.h-data: Likewise.
8486         * conform/data/libgen.h-data: Likewise.
8487         * conform/data/limits.h-data: Likewise.
8488         * conform/data/locale.h-data: Likewise.
8489         * conform/data/math.h-data: Likewise.
8490         * conform/data/monetary.h-data: Likewise.
8491         * conform/data/mqueue.h-data: Likewise.
8492         * conform/data/ndbm.h-data: Likewise.
8493         * conform/data/net/if.h-data: Likewise.
8494         * conform/data/netdb.h-data: Likewise.
8495         * conform/data/netinet/in.h-data: Likewise.
8496         * conform/data/nl_types.h-data: Likewise.
8497         * conform/data/poll.h-data: Likewise.
8498         * conform/data/pthread.h-data: Likewise.
8499         * conform/data/pwd.h-data: Likewise.
8500         * conform/data/regex.h-data: Likewise.
8501         * conform/data/sched.h-data: Likewise.
8502         * conform/data/search.h-data: Likewise.
8503         * conform/data/semaphore.h-data: Likewise.
8504         * conform/data/setjmp.h-data: Likewise.
8505         * conform/data/signal.h-data: Likewise.
8506         * conform/data/spawn.h-data: Likewise.
8507         * conform/data/stdarg.h-data: Likewise.
8508         * conform/data/stdio.h-data: Likewise.
8509         * conform/data/stdlib.h-data: Likewise.
8510         * conform/data/string.h-data: Likewise.
8511         * conform/data/strings.h-data: Likewise.
8512         * conform/data/stropts.h-data: Likewise.
8513         * conform/data/sys/ipc.h-data: Likewise.
8514         * conform/data/sys/mman.h-data: Likewise.
8515         * conform/data/sys/msg.h-data: Likewise.
8516         * conform/data/sys/resource.h-data: Likewise.
8517         * conform/data/sys/select.h-data: Likewise.
8518         * conform/data/sys/sem.h-data: Likewise.
8519         * conform/data/sys/shm.h-data: Likewise.
8520         * conform/data/sys/socket.h-data: Likewise.
8521         * conform/data/sys/stat.h-data: Likewise.
8522         * conform/data/sys/statvfs.h-data: Likewise.
8523         * conform/data/sys/time.h-data: Likewise.
8524         * conform/data/sys/timeb.h-data: Likewise.
8525         * conform/data/sys/times.h-data: Likewise.
8526         * conform/data/sys/types.h-data: Likewise.
8527         * conform/data/sys/uio.h-data: Likewise.
8528         * conform/data/sys/un.h-data: Likewise.
8529         * conform/data/sys/utsname.h-data: Likewise.
8530         * conform/data/sys/wait.h-data: Likewise.
8531         * conform/data/syslog.h-data: Likewise.
8532         * conform/data/tar.h-data: Likewise.
8533         * conform/data/termios.h-data: Likewise.
8534         * conform/data/utime.h-data: Likewise.
8535         * conform/data/utmpx.h-data: Likewise.
8536         * conform/data/varargs.h-data: Likewise.
8537         * conform/data/wchar.h-data: Likewise.
8538         * conform/data/wctype.h-data: Likewise.
8539         * conform/data/wordexp.h-data: Likewise.
8540
8541         * include/stropts.h: New file.
8542         * include/uchar.h: New file.
8543         * include/aio.h: Changes to allow conformtest.pl to use the headers.
8544         * include/assert.h: Likewise.
8545         * include/ctype.h: Likewise.
8546         * include/dirent.h: Likewise.
8547         * include/dlfcn.h: Likewise.
8548         * include/fcntl.h: Likewise.
8549         * include/fnmatch.h: Likewise.
8550         * include/glob.h: Likewise.
8551         * include/grp.h: Likewise.
8552         * include/libio.h: Likewise.
8553         * include/locale.h: Likewise.
8554         * include/math.h: Likewise.
8555         * include/net/if.h: Likewise.
8556         * include/netdb.h: Likewise.
8557         * include/netinet/in.h: Likewise.
8558         * include/pthread.h: Likewise.
8559         * include/pwd.h: Likewise.
8560         * include/regex.h: Likewise.
8561         * include/sched.h: Likewise.
8562         * include/search.h: Likewise.
8563         * include/setjmp.h: Likewise.
8564         * include/signal.h: Likewise.
8565         * include/stdio.h: Likewise.
8566         * include/stdlib.h: Likewise.
8567         * include/string.h: Likewise.
8568         * include/sys/cdefs.h: Likewise.
8569         * include/sys/mman.h: Likewise.
8570         * include/sys/msg.h: Likewise.
8571         * include/sys/resource.h: Likewise.
8572         * include/sys/select.h: Likewise.
8573         * include/sys/socket.h: Likewise.
8574         * include/sys/stat.h: Likewise.
8575         * include/sys/statvfs.h: Likewise.
8576         * include/sys/time.h: Likewise.
8577         * include/sys/times.h: Likewise.
8578         * include/sys/uio.h: Likewise.
8579         * include/sys/utsname.h: Likewise.
8580         * include/sys/wait.h: Likewise.
8581         * include/termios.h: Likewise.
8582         * include/time.h: Likewise.
8583         * include/ulimit.h: Likewise.
8584         * include/unistd.h: Likewise.
8585         * include/utime.h: Likewise.
8586         * include/wchar.h: Likewise.
8587         * include/wctype.h: Likewise.
8588         * include/wordexp.h: Likewise.
8589
8590         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
8591
8592         * time/time.h: TIME_UTC must be a macro.
8593         Make timespec_get available for ISO C11 only as well.
8594
8595 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
8596
8597         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
8598         Reported by Peng Haitao <penght@cn.fujitsu.com>.
8599
8600 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
8601
8602         * configure.in: Use -o not -a in test for unsupported multi-arch.
8603
8604 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
8605
8606         * manual/texinfo.tex: Update to version 2012-01-19.16.
8607
8608 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
8609
8610         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
8611
8612 2012-02-24  Roland McGrath  <roland@hack.frob.com>
8613
8614         [BZ #13738]
8615         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
8616         * manual/fdl-1.3.texi: New file.
8617         * manual/fdl-1.1.texi: File removed.
8618
8619         [BZ #13738]
8620         * manual/libc.texinfo (FDL_VERSION): New @set.
8621         Use it for mention of FDL in cover text.
8622         (Documentation License): Use it in @include file name.
8623
8624 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8625             Roland McGrath  <roland@hack.frob.com>
8626
8627         [BZ #5461]
8628         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
8629         not LONG_LONG_MAX and LONG_LONG_MIN.
8630         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
8631         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
8632         name.
8633         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
8634
8635 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8636
8637         [BZ #2547]
8638         [BZ #11365]
8639         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
8640         manipulate bits before adding and subtracting TWO23[sx].
8641         * math/libm-test.inc (nearbyint_test): Add more tests.
8642
8643 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8644
8645         [BZ #2548]
8646         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
8647         bits before adding and subtracting TWO23[sx].
8648         * math/libm-test.inc (rint_test): Add more tests.
8649         (rint_test_tonearest): Likewise.
8650         (rint_test_towardzero): Likewise.
8651         (rint_test_downward): Likewise.
8652         (rint_test_upward: Likewise.
8653
8654 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8655
8656         [BZ #10110]
8657         * include/stdc-predef.h: New file.  Extracted from features.h.
8658         * include/features.h: Include stdc-predef.h.
8659         * Makefile (headers): Add stdc-predef.h.
8660         * CONFORMANCE (Compiler limitations): Update.
8661
8662 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8663
8664         * manual/libc.texinfo (VERSION, UPDATED): Revert.
8665
8666 2012-02-21  David S. Miller  <davem@davemloft.net>
8667
8668         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
8669         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
8670
8671 2012-02-20  David S. Miller  <davem@davemloft.net>
8672
8673         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
8674         using a normal save/restore sequence, rather than allocating a
8675         dummy stack frame just to store a frame pointer and restore.
8676         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
8677
8678 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
8679
8680         * manual/install.texi: Fix stray word in line-wrapped comment.
8681
8682 2012-02-20  David S. Miller  <davem@davemloft.net>
8683
8684         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
8685         both binutils and gcc support GOTDATA.
8686
8687         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
8688         "rd %pc" in the PIC register setup sequences.
8689
8690         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
8691         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
8692         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
8693         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
8694         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8695         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8696         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8697         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
8698         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
8699         (SYSCALL_ERROR_HANDLER): Likewise.
8700         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
8701         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
8702         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
8703         (SYSCALL_ERROR_HANDLER): Likewise.
8704
8705         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
8706         (HAVE_GCC_GOTDATA): New.
8707         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
8708         relocation support in both binutils and gcc.
8709         * sysdeps/sparc/elf/configure: Regenerate.
8710
8711         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
8712         * sysdeps/sparc/sparc32/elf/configure: Delete.
8713         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
8714         * sysdeps/sparc/sparc64/elf/configure: Delete.
8715         * sysdeps/sparc/elf/configure.in: New file.
8716         * sysdeps/sparc/elf/configure: Generate.
8717
8718         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
8719         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
8720         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
8721         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
8722         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
8723
8724 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
8725
8726         * manual/install.texi: Do not mention specific glibc version
8727         numbers.
8728         * manual/libc.texinfo (VERSION, UPDATED): Update.
8729         (@copying): Use @copyright{} and range of years.
8730
8731 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
8732
8733         [BZ #13695]
8734         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
8735         [crti.S not in sysdirs] (generated): Do not append.
8736         [crti.S not in sysdirs] (omit-deps): Likewise.
8737         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
8738         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
8739         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
8740         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
8741         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
8742         Likewise.
8743         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
8744         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
8745         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
8746         * csu/defs.awk: Remove file.
8747         * sysdeps/generic/initfini.c: Likewise.
8748         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
8749         variable.
8750         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
8751         Likewise.
8752
8753 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
8754
8755         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
8756         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
8757         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
8758         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
8759         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8760         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
8761         <bits/epoll.h>.
8762         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
8763         (__EPOLL_PACKED): Define to empty if not defined by
8764         <bits/epoll.h>.
8765         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
8766         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8767         bits/epoll.h.
8768
8769 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
8770
8771         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
8772         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
8773         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
8774         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
8775         <bits/timerfd.h>.
8776         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
8777         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8778         bits/timerfd.h.
8779
8780 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
8781
8782         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
8783         in C locale.
8784         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8785         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8786         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
8787         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8788
8789 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
8790
8791         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8792         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
8793
8794 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
8795
8796         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
8797         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
8798         defined.
8799         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
8800         Likewise.
8801         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
8802         entry for 2.16.
8803
8804 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
8805
8806         * math/w_acos.c: Use non-signaling floating-point comparisons.
8807         * math/w_acosf.c: Likewise.
8808         * math/w_acosh.c: Likewise.
8809         * math/w_acoshf.c: Likewise.
8810         * math/w_acoshl.c: Likewise.
8811         * math/w_acosl.c: Likewise.
8812         * math/w_asin.c: Likewise.
8813         * math/w_asinf.c: Likewise.
8814         * math/w_asinl.c: Likewise.
8815         * math/w_atanh.c: Likewise.
8816         * math/w_atanhf.c: Likewise.
8817         * math/w_atanhl.c: Likewise.
8818         * math/w_exp2.c: Likewise.
8819         * math/w_exp2f.c: Likewise.
8820         * math/w_exp2l.c: Likewise.
8821         * math/w_j0.c: Likewise.
8822         * math/w_j0f.c: Likewise.
8823         * math/w_j0l.c: Likewise.
8824         * math/w_j1.c: Likewise.
8825         * math/w_j1f.c: Likewise.
8826         * math/w_j1l.c: Likewise.
8827         * math/w_jn.c: Likewise.
8828         * math/w_jnf.c: Likewise.
8829         * math/w_log.c: Likewise.
8830         * math/w_log10.c: Likewise.
8831         * math/w_log10f.c: Likewise.
8832         * math/w_log10l.c: Likewise.
8833         * math/w_log2.c: Likewise.
8834         * math/w_log2f.c: Likewise.
8835         * math/w_log2l.c: Likewise.
8836         * math/w_logf.c: Likewise.
8837         * math/w_logl.c: Likewise.
8838         * math/w_sqrt.c: Likewise.
8839         * math/w_sqrtf.c: Likewise.
8840         * math/w_sqrtl.c: Likewise.
8841         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8842         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
8843         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8844         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
8845         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
8846
8847 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
8848
8849         [BZ #9739]
8850         * manual/string.texi (strnlen): Use correct parameter name in
8851         equivalent expression.
8852
8853 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
8854
8855         [BZ #11174]
8856         * manual/users.texi (seteuid): Consistently use neweuid for
8857         argument name.
8858
8859 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
8860
8861         [BZ #13704]
8862         * manual/nss.texi (Services in the NSS configuration): Correct
8863         list of services in example configuration file.
8864
8865 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
8866
8867         [BZ #11322]
8868         * manual/arith.texi: Remove statements about negative zero
8869         behaving identically to zero.
8870
8871 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
8872
8873         [BZ #5993]
8874         * manual/install.texi: Do not document upgrading from libc5.
8875
8876 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
8877
8878         [BZ #4596]
8879         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
8880
8881 2012-02-18  David S. Miller  <davem@davemloft.net>
8882
8883         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
8884         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
8885         %o7 across the call.
8886         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
8887         instead.
8888         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
8889         SETUP_PIC_REG_LEAF.
8890         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8891         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
8892         * sysdeps/sparc/crtn.S: Likewise.
8893
8894 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
8895
8896         * aout/Makefile: Remove.
8897
8898 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
8899
8900         [BZ #13058]
8901         * manual/examples/argp-ex1.c (main): Format definition in GNU
8902         style.
8903         * manual/examples/argp-ex2.c (main): Likewise.
8904         * manual/examples/argp-ex3.c (main): Likewise.
8905         * manual/examples/argp-ex4.c (main): Likewise.
8906         * manual/examples/longopt.c (main): Use new-style prototype
8907         definition.
8908         * manual/examples/strncat.c (main): Specify return type and use
8909         (void) for arguments.
8910         * manual/examples/subopt.c (main): Use char **argv argument.
8911
8912 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8913
8914         [BZ #5077]
8915         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
8916         rounding modes.
8917
8918 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
8919
8920         [BZ #6907]
8921         * manual/string.texi (strchr): Change when strchrnul is
8922         recommended.
8923
8924 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
8925
8926         [BZ #174]
8927         * manual/locale.texi (setlocale): Document LOCPATH.
8928
8929 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8930
8931         [BZ #10210]
8932         * manual/process.texi (execle): Move @dots{} before last argument.
8933
8934 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
8935
8936         [BZ #12047]
8937         * manual/charset.texi (Generic Charset Conversion): Fix typo
8938         (LC_TYPE -> LC_CTYPE).
8939
8940 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
8941
8942         [BZ #5805]
8943         * manual/arith.texi (scalbn): Use @var{} on parameter names.
8944         (scalbnf): Likewise.
8945         (scalbnl): Likewise.
8946         (scalbln): Likewise.
8947         (scalblnf): Likewise.
8948         (scalblnl): Likewise.
8949         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
8950         (vwarnx): Likewise.
8951         (verr): Likewise.
8952         (verrx): Likewise.
8953         * manual/filesys.texi (telldir): Use braces around return type.
8954         * manual/llio.texi (mmap): Add space after comma.
8955         (mmap64): Likewise.
8956         * manual/math.texi (jn): Use @var{} on parameter names.
8957         (jnf): Likewise.
8958         (jnl): Likewise.
8959         (yn): Likewise.
8960         (ynf): Likewise.
8961         (ynl): Likewise.
8962         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
8963         line.
8964         * manual/resource.texi (ulimit): Use @dots{} instead of literal
8965         "...".
8966         (sched_get_priority_min): Remove semicolon on @deftypefun line.
8967         (sched_get_priority_max): Likewise.
8968         * manual/signal.texi (sigvec): Add space after comma.
8969         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
8970         names.
8971         (if_indextoname): Likewise.
8972         (if_freenameindex): Likewise.
8973         (sendto): Use ',' instead of '.' in prototype.
8974         * manual/startup.texi (syscall): Use @dots{} instead of literal
8975         "...".
8976         * manual/stdio.texi (__fpending): Separate initial words of
8977         paragraph from @deftypefun line.
8978         * manual/syslog.texi (syslog): Use @dots{} instead of literal
8979         "...".
8980         (vsyslog): Use @var{} on parameter names.
8981         * manual/terminal.texi (stty): Use @var{} on parameter names.
8982         * manual/users.texi (getutmp): Use @var{} on parameter names.
8983         (getutmpx): Likewise.
8984
8985 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8986
8987         [BZ #6884]
8988         * manual/stdio.texi (fopen): Fix typos in description of
8989         ",ccs=STRING".
8990
8991 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
8992
8993         [BZ #4026]
8994         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
8995         get clock_id definition.
8996
8997 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
8998
8999         [BZ #4822]
9000         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
9001         (madvise): Cast every argument to void on its own.
9002
9003 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
9004
9005         [BZ #9902]
9006         * manual/startup.texi (Exit Status): Fix typo.
9007
9008 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
9009
9010         [BZ #10140]
9011         * manual/examples/argp-ex1.c: Include <stdlib.h>.
9012         * manual/examples/argp-ex2.c: Likewise.
9013         * manual/examples/argp-ex3.c: Likewise.
9014
9015 2012-02-16  Richard Henderson  <rth@redhat.com>
9016
9017         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
9018         * sysdeps/s390/s390-32/initfini.c: Remove.
9019         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
9020         * sysdeps/s390/s390-64/initfini.c: Remove.
9021
9022 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9023
9024         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
9025         compiler output for sysdeps/generic/initfini.c.
9026         * sysdeps/sh/elf/initfini.c: Remove file.
9027
9028 2012-02-16  David S. Miller  <davem@davemloft.net>
9029
9030         [BZ #11494]
9031         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
9032
9033         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
9034         * sysdeps/sparc/crti.S: New file.
9035         * sysdeps/sparc/crtn.S: New file.
9036         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
9037         * sysdeps/sparc/sparc64/Makefile: Likewise.
9038
9039 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
9040
9041         [BZ #3335]
9042         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
9043
9044 2012-02-15  Roland McGrath  <roland@hack.frob.com>
9045
9046         [BZ #4822]
9047         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
9048
9049         * mach/devstream.c (cookie_io_functions_t): Macro removed.
9050         (write, read, close): Likewise.
9051         Patch by Aurelien Jarno <aurelien@aurel32.net>.
9052
9053 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
9054
9055         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
9056         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
9057         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
9058         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
9059         <bits/signalfd.h>.
9060         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
9061         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9062         bits/signalfd.h.
9063
9064 2012-02-14  Marek Polacek  <polacek@redhat.com>
9065
9066         * sysdeps/x86_64/crti.S: New file.
9067         * sysdeps/x86_64/crtn.S: New file.
9068         * sysdeps/x86_64/elf/initfini.c: Remove file.
9069
9070 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
9071
9072         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
9073         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
9074         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
9075         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
9076         <bits/inotify.h>.
9077         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
9078         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9079         bits/inotify.h.
9080
9081 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
9082
9083         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
9084         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
9085         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
9086         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
9087         <bits/eventfd.h>.
9088         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
9089         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9090         bits/eventfd.h.
9091
9092 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
9093
9094         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
9095         __feraiseexcept instead of feraiseexcept.
9096
9097         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
9098         nanosleep invocations.
9099         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
9100         strings, and add error checking for a nanosleep invocations.
9101
9102 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9103
9104         Replace FSF snail mail address with URLs, as per GNU coding standards.
9105         Most of the snail mail addresses were wrong anyway, and omitting
9106         them makes the source code easier to maintain.  Almost all of the
9107         changes are to license notices and to locale LC_IDENTIFICATION
9108         addresses, except for this one:
9109         * manual/libc.texinfo: In "Published by", give the FSF's URL,
9110         not its snail mail address.
9111
9112 2012-02-09  Richard Henderson  <rth@twiddle.net>
9113
9114         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
9115         of kernel-features.h.
9116
9117         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
9118
9119 2012-02-08  Marek Polacek  <polacek@redhat.com>
9120
9121         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
9122         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
9123         * sysdeps/gnu/_G_config.h: Likewise.
9124         * sysdeps/generic/_G_config.h: Likewise.
9125
9126 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
9127
9128         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
9129         tests.
9130         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9131
9132         * sysdeps/powerpc/powerpc32/crti.S: New file.
9133         * sysdeps/powerpc/powerpc32/crtn.S: New file.
9134         * sysdeps/powerpc/powerpc64/crti.S: New file.
9135         * sysdeps/powerpc/powerpc64/crtn.S: New file.
9136
9137         * Makeconfig (have-initfini): Don't set.
9138         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
9139         * configure.in (nopic_initfini): Don't substitute.
9140         * config.h.in (HAVE_INITFINI): Don't #undef.
9141         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
9142         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
9143
9144 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
9145
9146         Support crti.S and crtn.S provided directly by architectures.
9147         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
9148         [crti.S in sysdirs] (omit-deps): Likewise.
9149         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
9150         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
9151         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
9152         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
9153         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
9154         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
9155         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
9156         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
9157         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
9158         compiler output for sysdeps/generic/initfini.c.
9159         * sysdeps/i386/elf/Makefile: Remove file.
9160         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
9161
9162 2012-02-07  Marek Polacek  <polacek@redhat.com>
9163
9164         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
9165         * sysdeps/gnu/_G_config.h: Likewise.
9166         * sysdeps/mach/hurd/_G_config.h: Likewise.
9167
9168 2012-02-07  Marek Polacek  <polacek@redhat.com>
9169
9170         * math/Makefile (tests): Add tst-CMPLX2.
9171         * math/tst-CMPLX2.c: New file.
9172
9173 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
9174
9175         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9176
9177         * math/libm-test.inc (jn_test): Add missing L suffix.
9178
9179 2012-02-06  Marek Polacek  <polacek@redhat.com>
9180
9181         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
9182         * sysdeps/i386/fpu/e_powf.S: Likewise.
9183         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
9184         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9185         * sysdeps/i386/fpu/e_acosh.S: Likewise.
9186         * sysdeps/i386/fpu/e_pow.S: Likewise.
9187         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
9188         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
9189         * sysdeps/i386/fpu/s_expm1.S: Likewise.
9190         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
9191         * sysdeps/i386/fpu/e_log2.S: Likewise.
9192         * sysdeps/i386/fpu/e_log2l.S: Likewise.
9193         * sysdeps/i386/fpu/e_scalb.S: Likewise.
9194         * sysdeps/i386/fpu/e_powl.S: Likewise.
9195         * sysdeps/i386/fpu/s_log1p.S: Likewise.
9196         * sysdeps/i386/fpu/e_log10f.S: Likewise.
9197         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
9198         * sysdeps/i386/fpu/e_logl.S: Likewise.
9199         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
9200         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
9201         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
9202         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
9203         * sysdeps/i386/fpu/e_log2f.S: Likewise.
9204         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
9205         * sysdeps/i386/fpu/e_log.S: Likewise.
9206         * sysdeps/i386/fpu/s_cexp.S: Likewise.
9207         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
9208         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
9209         * sysdeps/i386/fpu/e_logf.S: Likewise.
9210         * sysdeps/i386/fpu/e_log10l.S: Likewise.
9211         * sysdeps/i386/fpu/e_atanh.S: Likewise.
9212         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
9213         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
9214         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9215         * sysdeps/i386/fpu/e_log10.S: Likewise.
9216         * sysdeps/i386/fpu/s_frexp.S: Likewise.
9217         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
9218         * sysdeps/i386/fpu/s_asinh.S: Likewise.
9219         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
9220         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
9221         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
9222         * sysdeps/i386/asm-syntax.h: Likewise.
9223         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
9224         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9225         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
9226         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
9227         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
9228         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
9229         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
9230         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
9231         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
9232         * sysdeps/powerpc/sysdep.h: Likewise.
9233         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
9234         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9235
9236 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
9237
9238         [BZ #411]
9239         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
9240
9241 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
9242
9243         * sysdeps/i386/sysdep.h: Include <features.h>.
9244         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
9245         version.
9246
9247 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
9248
9249         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
9250         Define.
9251         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
9252         LOAD_PIC_REG_STR.
9253
9254 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
9255
9256         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
9257         (SETUP_PIC_REG): Use GET_PC_THUNK.
9258         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
9259         macro.
9260
9261 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
9262
9263         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
9264         for non-PIC compilation.
9265         (SETUP_PIC_REG): Add .p2align directive.
9266         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
9267         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
9268         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
9269         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
9270         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
9271         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
9272         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
9273         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
9274         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
9275         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
9276         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
9277         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
9278         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
9279         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
9280         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
9281         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
9282         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
9283         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
9284         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
9285         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
9286         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
9287         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
9288         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
9289         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
9290         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
9291         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
9292         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
9293         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
9294         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
9295         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
9296         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
9297         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
9298         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
9299         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
9300         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
9301         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
9302         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
9303         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
9304         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
9305         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
9306         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
9307
9308 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
9309
9310         * math/tst-CMPLX.c: Include <stdio.h>.
9311
9312 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
9313
9314         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
9315         float.
9316         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
9317         * sysdeps/sparc/bits/mathdef.h: Likewise.
9318
9319 2012-01-31  Marek Polacek  <polacek@redhat.com>
9320
9321         * libio/libio.h: Don't define _PARAMS.
9322         * locale/programs/config.h: Don't define PARAMS.
9323         * stdlib/strtol_l.c: Likewise.
9324         (__strtol_l): Remove PARAMS from the prototype.
9325
9326 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
9327
9328         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
9329         names.  Just use the correct names.  Remove unnecessary wrapper
9330         functions.
9331         * malloc/arena.c: Likewise.
9332         * malloc/hooks.c: Likewise.
9333
9334         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
9335         ARENA_TEST says not to.  Simplify test for creation of a new arena.
9336         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
9337
9338 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
9339
9340         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
9341         into tail calls.
9342         (update_get_addr): New function.
9343         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
9344         GET_ADDR_MODULE parameter.
9345
9346 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
9347
9348         * crypt/cert.c: Remove __STDC__ conditionals.
9349         * crypt/crypt-entry.c: Likewise.
9350         * crypt/crypt_util.c: Likewise.
9351         * libio/filedoalloc.c: Likewise.
9352         * libio/fileops.c: Likewise.
9353         * libio/genops.c: Likewise.
9354         * libio/iofclose.c: Likewise.
9355         * libio/iofdopen.c: Likewise.
9356         * libio/iofopen.c: Likewise.
9357         * libio/iofopen64.c: Likewise.
9358         * libio/iogetdelim.c: Likewise.
9359         * libio/iopopen.c: Likewise.
9360         * libio/obprintf.c: Likewise.
9361         * libio/oldfileops.c: Likewise.
9362         * libio/oldiofclose.c: Likewise.
9363         * libio/oldiofdopen.c: Likewise.
9364         * libio/oldiofopen.c: Likewise.
9365         * libio/oldiopopen.c: Likewise.
9366         * libio/wfiledoalloc.c: Likewise.
9367         * libio/wgenops.c: Likewise.
9368         * locale/programs/xmalloc.c: Likewise.
9369         * misc/syslog.c: Likewise.
9370         * stdio-common/xbug.c: Likewise.
9371         * string/memchr.c: Likewise.
9372         * string/memcmp.c: Likewise.
9373         * string/memrchr.c: Likewise.
9374         * string/rawmemchr.c: Likewise.
9375         * sysdeps/posix/getcwd.c: Likewise.
9376         * time/strftime_l.c: Likewise.
9377
9378 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
9379
9380         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
9381         * config.make.in (config-cflags-sse2avx): Define.
9382         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
9383         Fix typo.
9384
9385 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
9386
9387         * scripts/config.guess: Update from upstream config git repository.
9388         * scripts/config.sub: Likewise.
9389
9390 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
9391
9392         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
9393         (EM_NUM): Update.
9394         (R_TILEPRO_*, R_TILEGX_*): New macros.
9395
9396         * scripts/firstversions.awk: Fix bug in version range handling.
9397
9398         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
9399
9400         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
9401
9402         * include/sys/epoll.h: New file.
9403         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
9404         libc_hidden_def.
9405
9406 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
9407
9408         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
9409         Avoid unnecessary __WORDSIZE == 64 test.
9410         (fmaxf): Use VEX format if possible.
9411         (fmax): Likewise.
9412         (fminf): Likewise.
9413         (fmin): Likewise.
9414
9415         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
9416         * math/math_private.h: Remove libc_fegetround* and
9417         libc_fesetround*.
9418         * sysdeps/i386/configure.in: Check for -msse2avx.
9419         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
9420         also if SSE2AVX is defined.
9421         Remove libc_fegetround* and libc_fesetround*.
9422         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
9423         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
9424         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
9425         of HAS_YMM_USABLE.
9426         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9427         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9428         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9429         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9430         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9431
9432         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
9433
9434 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9435
9436         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
9437         size is not set.
9438         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
9439
9440 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
9441
9442         [BZ #13618]
9443         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
9444         relocation.
9445         * Makeconfig (libm): Define.
9446         * elf/Makefile: Add rules to build and run tst-relsort1.
9447         * elf/tst-relsort1.c: New file.
9448         * elf/tst-relsort1mod1.c: New file.
9449         * elf/tst-relsort1mod2.c: New file.
9450
9451 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
9452
9453         * math/s_ldexp.c: Remove __STDC__ conditionals.
9454         * math/s_ldexpf.c: Likewise.
9455         * math/s_ldexpl.c: Likewise.
9456         * math/s_nextafter.c: Likewise.
9457         * math/s_nexttowardf.c: Likewise.
9458         * math/s_significand.c: Likewise.
9459         * math/s_significandf.c: Likewise.
9460         * math/s_significandl.c: Likewise.
9461         * math/w_jnl.c: Likewise.
9462         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
9463         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
9464         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
9465         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
9466         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
9467         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
9468         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
9469         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9470         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
9471         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
9472         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
9473         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9474         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
9475         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
9476         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
9477         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
9478         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9479         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
9480         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9481         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9482         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9483         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9484         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9485         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9486         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9487         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
9488         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
9489         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9490         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
9491         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
9492         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
9493         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
9494         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
9495         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
9496         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
9497         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
9498         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
9499         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
9500         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
9501         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
9502         * sysdeps/ieee754/k_standard.c: Likewise.
9503         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9504         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
9505         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
9506         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9507         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9508         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
9509         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
9510         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
9511         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
9512         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9513         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
9514         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
9515         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
9516         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
9517         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
9518         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9519         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
9520         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
9521         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
9522         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9523         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
9524         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
9525         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
9526         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
9527         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
9528         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
9529         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9530         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9531         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9532         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
9533         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
9534         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
9535         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9536         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
9537         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
9538         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
9539         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9540         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
9541         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
9542         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9543         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9544         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
9545         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9546         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9547         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
9548         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
9549         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
9550         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
9551         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
9552         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9553         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9554         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
9555         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
9556         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
9557         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
9558         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
9559         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9560         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9561         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9562         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9563         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9564         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9565         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
9566         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
9567         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
9568         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
9569         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
9570         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
9571         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
9572         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
9573         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
9574         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
9575         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
9576         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
9577         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
9578         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
9579         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
9580         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
9581         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
9582         * sysdeps/ieee754/s_matherr.c: Likewise.
9583         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
9584         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
9585         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
9586         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
9587
9588 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
9589
9590         * crypt/md5.h: Remove __STDC__ conditionals.
9591         * libio/libioP.h: Likewise.
9592         * locale/programs/config.h: Likewise.
9593         * sysdeps/generic/sysdep.h: Likewise.
9594         * sysdeps/i386/asm-syntax.h: Likewise.
9595         * sysdeps/s390/asm-syntax.h: Likewise.
9596         * sysdeps/unix/sysdep.h: Likewise.
9597         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
9598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9599
9600 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
9601
9602         * libio/libio.h: Remove __STDC__ conditionals.
9603         * malloc/obstack.h: Likewise.
9604         * math/complex.h: Likewise.
9605         * math/math.h: Likewise.
9606         * sysdeps/generic/_G_config.h: Likewise.
9607         * sysdeps/gnu/_G_config.h: Likewise.
9608         * sysdeps/mach/hurd/_G_config.h: Likewise.
9609         * sysdeps/powerpc/bits/mathdef.h: Likewise.
9610         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
9611         * sysdeps/sparc/bits/mathdef.h: Likewise.
9612
9613 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
9614
9615         [BZ #13583]
9616         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
9617         Clean up HAS_* macros.
9618         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
9619         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
9620         possible.
9621         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
9622         HAS_AVX.
9623         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9624         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9625         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9626         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9627         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9628
9629 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
9630
9631         * elf/tst-unique3.cc (gets): Remove declaration.
9632         * elf/tst-unique3lib.cc (gets): Likewise.
9633         * elf/tst-unique3lib2.cc (gets): Likewise.
9634         * elf/tst-unique4.cc (gets): Likewise.
9635
9636 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
9637
9638         * include/stdio.h: Add C++ protection.  Add gets declarations and
9639         definitions.
9640         * debug/tst-chk1.c: Don't declare gets here.
9641         * stdio-common/tst-gets.c: Likewise.
9642
9643 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
9644
9645         * posix/glob: Remove directory.
9646
9647 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
9648
9649         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
9650
9651 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
9652
9653         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
9654         of the non-standard EPFNOSUPPORT.
9655
9656 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9657
9658         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
9659         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
9660         ANYWHERE set to 1 only on KERN_NO_SPACE error.
9661
9662 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
9663
9664         * wcsmbs/uchar.h: Test __STDC_VERSION__.
9665
9666 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
9667
9668         * nscd/aicache.c (addhstaiX): Do not cache negative results of
9669         transient errors.
9670         * nscd/grpcache.c (cache_addgr): Likewise.
9671         * nscd/hstcache.c (cache_addhst): Likewise.
9672         * nscd/initgrcache.c (addinitgroupsX): Likewise.
9673         * nscd/pwdcache.c (cache_addpw): Likewise.
9674         * nscd/servicescache.c (cache_addserv): Likewise.
9675
9676 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
9677
9678         * malloc/malloc.c: Various cleanups.
9679         * malloc/hooks.c: Likewise.
9680
9681         * stdlib/Makefile (tests): Add bug-fmtmsg1.
9682         * stdlib/bug-fmtmsg1.c: New file.
9683
9684         * stdlib/fmtmsg.c (init): Add missing unlock.
9685         Patch by Peng Haitao <penght@cn.fujitsu.com>.
9686
9687 2012-01-12  Marek Polacek  <polacek@redhat.com>
9688
9689         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
9690         and _GNU_SOURCE.
9691
9692 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
9693
9694         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
9695         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
9696         macro to ensure uniqueness of label name.
9697         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
9698         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
9699
9700 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
9701
9702         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
9703
9704         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
9705         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
9706         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
9707         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
9708
9709 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
9710
9711         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
9712
9713         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
9714         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
9715         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
9716
9717         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
9718
9719         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
9720         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
9721         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
9722         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
9723
9724         * math/bits/math-finite.h: Add ldexp support.
9725
9726 2012-01-10  Marek Polacek  <polacek@redhat.com>
9727
9728         * locale/programs/localedef.h (show_archive_content): Add noreturn
9729         attribute.
9730
9731 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
9732
9733         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
9734
9735 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
9736
9737         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
9738
9739         * io/Makefile (headers): Add bits/poll2.h.
9740
9741 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
9742
9743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
9744         typo #include statement.
9745
9746 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
9747
9748         * include/sys/cdefs.h: Define __attribute_alloc_size.
9749         * catgets/gencat.c: Add alloc_size attribute and apply consistently
9750         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
9751         * elf/pldd.c: Likewise.
9752         * iconv/iconv_charmap.c: Likewise.
9753         * iconv/iconvconfig.c: Likewise.
9754         * iconv/strtab.c: Likewise.
9755         * locale/programs/locale.c: Likewise.
9756         * locale/programs/localedef.h: Likewise.
9757         * locale/programs/simple-hash.c: Likewise.
9758         * nscd/nscd.h: Likewise.
9759         * nss/makedb.c: Likewise.
9760         * sysdeps/generic/ldconfig.h: Likewise.
9761         * locale/programs/localedef.c: Remove xmalloc prototype.
9762         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
9763
9764 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
9765
9766         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
9767         appropriate.
9768
9769 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
9770
9771         * math/Makefile (tests): Add tst-CMPLX.
9772         * math/tst-CMPLX.c: New file.
9773
9774         * math/complex.h (CMPLXL): Fix typo.
9775
9776         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
9777         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
9778         GLIBC_2.16.
9779         * debug/tst-chk1.c: Add poll and ppoll tests.
9780         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
9781         * include/sys/poll.h: Add hidden proto for ppoll.
9782         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
9783         * sysdeps/mach/hurd/ppoll.c: Likewise.
9784         * io/ppoll.c: Likewise.
9785         * debug/poll_chk.c: New file.
9786         * debug/ppoll_chk.c: New file.
9787         * include/bits/poll2.h: New file.
9788         * io/bits/poll2.h: New file.
9789
9790         [BZ #1350]
9791         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
9792
9793         * configure.in: static is always set to yes.  Remove.
9794         * config.make.in: Don't set build-static.
9795         * Makeconfig: Remove use of build-static.
9796         * dlfcn/Makefile: Likewise.
9797         * elf/Makefile: Likewise.
9798         * math/Makefile: Likewise.
9799         * misc/Makefile: Likewise.
9800         * nptl/Makefile: Likewise.
9801         * sysdeps/mach/hurd/Makefile: Likewise.
9802
9803         * configure.in: PWD_P is not used anymore.
9804         * config.make.in: Remove PWD_P entry.
9805
9806         * configure.in: Remove last remnants of RANLIB.
9807         No need to check for signed size_t anymore.
9808         Don't set libc_commonpagesize and libc_relro_required here for Alpha
9809         and IA-64.
9810         Remove __builtin_expect test because we require at least gcc 3.4.
9811         * aclocal.m4: Likewise.
9812
9813         * wcsmbs/mbrtoc16.c: Implement using towc function.
9814         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
9815         * wcsmbs/wcsmbsload.c: Likewise.
9816         * iconv/gconv_simple.c: Likewise.
9817         * iconv/gconv_int.h: Likewise.
9818         * iconv/gconv_builtin.h: Likewise.
9819         * iconv/iconv_prog.c: Remove CHAR16 handling.
9820
9821         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
9822
9823         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
9824
9825         * configure.in: Remove --with-elf and --enable-bounded options.
9826         Dont set base_machine for ia64.  More non-ELF conditions removed.
9827         Remove testing and setting of leading underscore information.
9828         * config.make.in (build-bounded): Set to no.
9829         * config.h.in: Remove NO_UNDERSCORES entry.
9830         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
9831         them.
9832         * csu/start.c: Remove !NO_UNDERSCORE code.
9833         * locale/localeinfo.h: Likewise.
9834         * sysdeps/generic/machine-gmon.h: Likewise.
9835         * sysdeps/generic/sysdep.h: Likewise.
9836         * sysdeps/i386/sysdep.h: Likewise.
9837         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
9838         * sysdeps/mach/sysdep.h: Likewise.
9839         * sysdeps/s390/s390-32/sysdep.h: Likewise.
9840         * sysdeps/s390/s390-64/sysdep.h: Likewise.
9841         * sysdeps/sh/sysdep.h: Likewise.
9842         * sysdeps/sparc/sparc32/alloca.S: Likewise.
9843         * sysdeps/unix/i386/sysdep.S: Likewise.
9844         * sysdeps/unix/sparc/start.c: Likewise.
9845         * sysdeps/unix/sparc/sysdep.S: Likewise.
9846         * sysdeps/unix/sparc/sysdep.h: Likewise.
9847         * sysdeps/unix/start.c: Likewise.
9848         * sysdeps/unix/x86_64/sysdep.S: Likewise.
9849         * sysdeps/x86_64/sysdep.h: Likewise.
9850
9851 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
9852
9853         [BZ #13553]
9854         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
9855         for non-gcc.
9856         * argp/argp-fmtstream.h: Use const instead __const.
9857         * argp/argp.h: Likewise.
9858         * assert/assert.h: Likewise.
9859         * bits/fenv.h: Likewise.
9860         * bits/sched.h: Likewise.
9861         * bits/sigset.h: Likewise.
9862         * bits/sigthread.h: Likewise.
9863         * catgets/nl_types.h: Likewise.
9864         * conform/data/pthread.h-data: Likewise.
9865         * crypt/crypt-private.h: Likewise.
9866         * crypt/crypt.h: Likewise.
9867         * crypt/crypt_util.c: Likewise.
9868         * ctype/ctype.h: Likewise.
9869         * debug/execinfo.h: Likewise.
9870         * debug/mbsnrtowcs_chk.c: Likewise.
9871         * debug/mbsrtowcs_chk.c: Likewise.
9872         * debug/wcsnrtombs_chk.c: Likewise.
9873         * debug/wcsrtombs_chk.c: Likewise.
9874         * debug/wcstombs_chk.c: Likewise.
9875         * dirent/dirent.h: Likewise.
9876         * dlfcn/dlfcn.h: Likewise.
9877         * elf/neededtest4.c: Likewise.
9878         * grp/grp.h: Likewise.
9879         * gshadow/gshadow.h: Likewise.
9880         * iconv/gconv.h: Likewise.
9881         * iconv/gconv_int.h: Likewise.
9882         * iconv/gconv_simple.c: Likewise.
9883         * iconv/iconv.h: Likewise.
9884         * iconv/loop.c: Likewise.
9885         * iconv/skeleton.c: Likewise.
9886         * include/aio.h: Likewise.
9887         * include/aliases.h: Likewise.
9888         * include/argz.h: Likewise.
9889         * include/arpa/inet.h: Likewise.
9890         * include/assert.h: Likewise.
9891         * include/dirent.h: Likewise.
9892         * include/dlfcn.h: Likewise.
9893         * include/execinfo.h: Likewise.
9894         * include/fcntl.h: Likewise.
9895         * include/fenv.h: Likewise.
9896         * include/glob.h: Likewise.
9897         * include/grp.h: Likewise.
9898         * include/libintl.h: Likewise.
9899         * include/mntent.h: Likewise.
9900         * include/netdb.h: Likewise.
9901         * include/pwd.h: Likewise.
9902         * include/rpc/netdb.h: Likewise.
9903         * include/sched.h: Likewise.
9904         * include/search.h: Likewise.
9905         * include/shadow.h: Likewise.
9906         * include/signal.h: Likewise.
9907         * include/stdio.h: Likewise.
9908         * include/stdlib.h: Likewise.
9909         * include/string.h: Likewise.
9910         * include/sys/socket.h: Likewise.
9911         * include/sys/stat.h: Likewise.
9912         * include/sys/statfs.h: Likewise.
9913         * include/sys/statvfs.h: Likewise.
9914         * include/sys/syslog.h: Likewise.
9915         * include/sys/time.h: Likewise.
9916         * include/sys/uio.h: Likewise.
9917         * include/time.h: Likewise.
9918         * include/unistd.h: Likewise.
9919         * include/utmp.h: Likewise.
9920         * include/wchar.h: Likewise.
9921         * include/wctype.h: Likewise.
9922         * inet/aliases.h: Likewise.
9923         * inet/arpa/inet.h: Likewise.
9924         * inet/netinet/ether.h: Likewise.
9925         * inet/netinet/in.h: Likewise.
9926         * intl/libintl.h: Likewise.
9927         * io/bits/fcntl2.h: Likewise.
9928         * io/fcntl.h: Likewise.
9929         * io/ftw.h: Likewise.
9930         * io/sys/poll.h: Likewise.
9931         * io/sys/stat.h: Likewise.
9932         * io/sys/statfs.h: Likewise.
9933         * io/sys/statvfs.h: Likewise.
9934         * io/utime.h: Likewise.
9935         * libio/bits/stdio.h: Likewise.
9936         * libio/bits/stdio2.h: Likewise.
9937         * libio/libio.h: Likewise.
9938         * libio/libioP.h: Likewise.
9939         * libio/stdio.h: Likewise.
9940         * locale/lc-ctype.c: Likewise.
9941         * locale/locale.h: Likewise.
9942         * login/utmp.h: Likewise.
9943         * malloc/arena.c: Likewise.
9944         * malloc/malloc.c: Likewise.
9945         * malloc/malloc.h: Likewise.
9946         * malloc/mcheck.c: Likewise.
9947         * malloc/mtrace.c: Likewise.
9948         * math/bits/mathcalls.h: Likewise.
9949         * math/fenv.h: Likewise.
9950         * math/math_private.h: Likewise.
9951         * misc/bits/error.h: Likewise.
9952         * misc/bits/syslog.h: Likewise.
9953         * misc/err.h: Likewise.
9954         * misc/error.h: Likewise.
9955         * misc/fstab.h: Likewise.
9956         * misc/mntent.h: Likewise.
9957         * misc/regexp.h: Likewise.
9958         * misc/search.h: Likewise.
9959         * misc/sgtty.h: Likewise.
9960         * misc/sys/mman.h: Likewise.
9961         * misc/sys/syslog.h: Likewise.
9962         * misc/sys/uio.h: Likewise.
9963         * misc/sys/xattr.h: Likewise.
9964         * misc/ttyent.h: Likewise.
9965         * nis/rpcsvc/ypclnt.h: Likewise.
9966         * nss/nss.h: Likewise.
9967         * posix/bits/unistd.h: Likewise.
9968         * posix/fnmatch.h: Likewise.
9969         * posix/glob.h: Likewise.
9970         * posix/sched.h: Likewise.
9971         * posix/spawn.h: Likewise.
9972         * posix/sys/wait.h: Likewise.
9973         * posix/unistd.h: Likewise.
9974         * posix/wordexp.h: Likewise.
9975         * pwd/pwd.h: Likewise.
9976         * resolv/netdb.h: Likewise.
9977         * resource/sys/resource.h: Likewise.
9978         * rt/aio.h: Likewise.
9979         * rt/bits/mqueue2.h: Likewise.
9980         * rt/mqueue.h: Likewise.
9981         * shadow/shadow.h: Likewise.
9982         * signal/signal.h: Likewise.
9983         * socket/send.c: Likewise.
9984         * socket/sendto.c: Likewise.
9985         * socket/sys/socket.h: Likewise.
9986         * stdio-common/printf.h: Likewise.
9987         * stdlib/bits/stdlib.h: Likewise.
9988         * stdlib/fmtmsg.h: Likewise.
9989         * stdlib/monetary.h: Likewise.
9990         * stdlib/stdlib.h: Likewise.
9991         * stdlib/ucontext.h: Likewise.
9992         * streams/stropts.h: Likewise.
9993         * string/argz.h: Likewise.
9994         * string/bits/string2.h: Likewise.
9995         * string/string.h: Likewise.
9996         * string/strings.h: Likewise.
9997         * sunrpc/rpc/auth.h: Likewise.
9998         * sunrpc/rpc/auth_des.h: Likewise.
9999         * sunrpc/rpc/clnt.h: Likewise.
10000         * sunrpc/rpc/netdb.h: Likewise.
10001         * sunrpc/rpc/pmap_clnt.h: Likewise.
10002         * sunrpc/rpc/xdr.h: Likewise.
10003         * sysdeps/generic/inttypes.h: Likewise.
10004         * sysdeps/generic/net/if.h: Likewise.
10005         * sysdeps/generic/sys/swap.h: Likewise.
10006         * sysdeps/gnu/net/if.h: Likewise.
10007         * sysdeps/gnu/utmpx.h: Likewise.
10008         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
10009         * sysdeps/i386/i486/bits/string.h: Likewise.
10010         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
10011         * sysdeps/s390/bits/string.h: Likewise.
10012         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
10013         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
10014         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10015         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
10016         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10017         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10018         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10019         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
10020         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
10021         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
10022         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
10023         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
10024         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
10025         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
10026         * sysdeps/unix/sysv/linux/readv.c: Likewise.
10027         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
10028         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
10029         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10030         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
10031         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
10032         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
10033         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
10034         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
10035         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
10036         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
10037         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
10038         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
10039         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
10040         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
10041         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
10042         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
10043         * sysvipc/sys/ipc.h: Likewise.
10044         * sysvipc/sys/msg.h: Likewise.
10045         * sysvipc/sys/sem.h: Likewise.
10046         * sysvipc/sys/shm.h: Likewise.
10047         * termios/termios.h: Likewise.
10048         * time/sys/time.h: Likewise.
10049         * time/time.h: Likewise.
10050         * wcsmbs/bits/wchar2.h: Likewise.
10051         * wcsmbs/uchar.h: Likewise.
10052         * wcsmbs/wchar.h: Likewise.
10053         * wctype/wctype.h: Likewise.
10054
10055         [BZ #13551]
10056         * Makeconfig: Remove all but ELF support including AIX support.
10057         * Makerules: Likewise.
10058         * config.h.in: Likewise.
10059         * config.make.in: Likewise.
10060         * configure: Likewise.
10061         * configure.in: Likewise.
10062         * csu/Makefile: Likewise.
10063         * csu/version.c: Likewise.
10064         * debug/Makefile: Likewise.
10065         * dlfcn/Makefile: Likewise.
10066         * elf/Makefile: Likewise.
10067         * extra-lib.mk: Likewise.
10068         * iconv/Makefile: Likewise.
10069         * include/libc-symbols.h: Likewise.
10070         * include/shlib-compat.h: Likewise.
10071         * resolv/Makefile: Likewise.
10072         * resolv/res_libc.c: Likewise.
10073         * rt/Makefile: Likewise.
10074         * sysdeps/i386/asm-syntax.h: Likewise.
10075         * sysdeps/i386/sysdep.h: Likewise.
10076         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
10077         * sysdeps/mach/sysdep.h: Likewise.
10078         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
10079         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
10080         * sysdeps/s390/asm-syntax.h: Likewise.
10081         * sysdeps/s390/s390-32/sysdep.h: Likewise.
10082         * sysdeps/s390/s390-64/sysdep.h: Likewise.
10083         * sysdeps/sh/sysdep.h: Likewise.
10084         * sysdeps/unix/sparc/sysdep.h: Likewise.
10085         * sysdeps/wordsize-32/divdi3.c: Likewise.
10086         * sysdeps/x86_64/sysdep.h: Likewise.
10087
10088         * argp/Versions: Remove _argp_unlock_xxx.
10089
10090         [BZ #13559]
10091         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
10092         * abilist/libBrokenLocale.abilist: Likewise.
10093         * abilist/libanl.abilist: Likewise.
10094         * abilist/libc.abilist: Likewise.
10095         * abilist/libcrypt.abilist: Likewise.
10096         * abilist/libdl.abilist: Likewise.
10097         * abilist/libm.abilist: Likewise.
10098         * abilist/libnsl.abilist: Likewise.
10099         * abilist/libpthread.abilist: Likewise.
10100         * abilist/libresolv.abilist: Likewise.
10101         * abilist/librt.abilist: Likewise.
10102         * abilist/libthread_db.abilist: Likewise.
10103         * abilist/libutil.abilist: Likewise.
10104         * abilist/libnss_db.abilist: New file.
10105
10106         * scripts/abilist.awk: Add support for indirect functions.
10107
10108         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
10109
10110         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
10111
10112         * shlib-versions: Remove entries for ports architectures.
10113
10114         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
10115         files in ports.
10116         * elf/stackguard-macros.h: Remove support for IA-64.
10117         * elf/tst-auditmod1.c: Likewise.
10118         * sysdeps/generic/ldsodefs.h: Likewise.
10119
10120         * sysdeps/unix/sysv/linux/configure.in: Ports should define
10121         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
10122         configure files.
10123
10124         [BZ #13552]
10125         * configure.in: Remove --enable-omitfp support.
10126         * FAQ.in: Adjust.
10127         * config.make.in: Likewise.
10128         * Makeconfig: Likewise.
10129         * manual/install.texi: Likewise.
10130
10131         In case anyone cares, the IA-64 architecture could move to ports.
10132         * sysdeps/ia64/*: Removed.
10133         * sysdeps/unix/sysv/linux/ia64/*: Removed.
10134         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
10135
10136         [BZ #13555]
10137         * configure.in: Remove entries for unsupported architectures.
10138
10139         [BZ #13533]
10140         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
10141         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
10142         routines.
10143         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
10144         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
10145         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
10146         fall back to using wcrtomb.
10147         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
10148         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
10149         renaming.
10150         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
10151         * wcsmbs/tst-c16c32-1.c: New file.
10152
10153         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
10154         local variable.
10155
10156         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
10157
10158         * elf/tst-unique3.cc: Add explicit declaration of gets.
10159         * elf/tst-unique3lib.cc: Likewise.
10160         * elf/tst-unique3lib2.cc: Likewise.
10161         * elf/tst-unique4.cc: Likewise.
10162
10163         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
10164
10165 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
10166
10167         [BZ #13566]
10168         * assert/assert.h (static_assert): Don't define for C++.
10169         * libio/stdio.h (gets): Do declare for C++ <= C++11.
10170         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
10171
10172 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
10173
10174         * iconv/loop.c (single loop): Fix assertion in storing of
10175         remaining bytes.
10176
10177         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
10178
10179 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
10180
10181         * posix/getconf.c: Update copyright year.
10182         * nss/getent.c: Likewise.
10183         * nss/makedb.c: Likewise.
10184         * iconv/iconvconfig.c: Likewise.
10185         * iconv/iconv_prog.c: Likewise.
10186         * elf/ldconfig.c: Likewise.
10187         * elf/pldd.c: Likewise.
10188         * elf/sotruss.ksh: Likewise.
10189         * catgets/gencat.c: Likewise.
10190         * csu/version.c: Likewise.
10191         * elf/ldd.bash.in: Likewise.
10192         * elf/sprof.c (print_version): Likewise.
10193         * locale/programs/locale.c: Likewise.
10194         * locale/programs/localedef.c: Likewise.
10195         * login/programs/pt_chown.c: Likewise.
10196         * nscd/nscd.c (print_version): Likewise.
10197         * debug/xtrace.sh: Likewise.
10198         * malloc/memusage.sh: Likewise.
10199         * malloc/mtrace.pl: Likewise.
10200         * debug/catchsegv.sh: Likewise.
10201
10202 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
10203
10204         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
10205         pure attribute.
10206
10207 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
10208
10209         [BZ #13533]
10210         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
10211         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
10212         transformations.
10213         * iconv/gconv_int.h: Likewise.
10214         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
10215         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
10216         from libc for GLIBC_2.16.
10217         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
10218         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
10219         * wcsmbs/uchar.h: Really define mbstate_t.
10220         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
10221         * wcsmbs/c16rtomb.c: New file.
10222         * wcsmbs/mbrtoc16.c: New file.
10223         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
10224         for C/POSIX locale.
10225         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
10226         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
10227
10228         * wcsmbs/wchar.h: Add missing __restrict.
10229
10230 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
10231
10232         [BZ #13532]
10233         * time/Makefile (routines): Add timespec_get.
10234         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
10235         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
10236         timespec for ISO C11.
10237         * time/timespec_get.c: New file.
10238         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
10239         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
10240
10241         [BZ #13531]
10242         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
10243         * stdlib/stdlib.h: Declare aligned_alloc.
10244         * Versions.def: Add GLIBC_2.16 for libc.
10245         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
10246
10247         [BZ 13527]
10248         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
10249         ISO C11.
10250
10251         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
10252         code.
10253
10254         [BZ #13528]
10255         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
10256
10257         [BZ #13529]
10258         * assert/assert.h (static_assert): Define.
10259
10260         * version.h: Update for 2.16 development version.
10261
10262         [BZ #13526]
10263         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
10264         _ISOC11_SOURCE.
10265
10266         * version.h (RELEASE): Bump for 2.15 release.
10267         * include/features.h (__GLIBC_MINOR__): Bump to 15.
10268
10269         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
10270         Patch by Marek Polacek <mpolacek@redhat.com>.
10271
10272         * bits/byteswap.h: Protect long long constants with __extension__.
10273         * sysdeps/i386/bits/byteswap.h: Likewise.
10274         * sysdeps/ia64/bits/byteswap.h: Likewise.
10275         * sysdeps/s390/bits/byteswap.h: Likewise.
10276         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10277
10278 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10279
10280         [BZ #13540]
10281         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
10282         destination buffer.
10283         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
10284
10285 2011-12-23  Marek Polacek  <polacek@redhat.com>
10286
10287         * elf/dl-addr.c (determine_info): Add inline keyword.
10288         * elf/tst-auditmod4b.c (check_avx): Likewise.
10289         * elf/tst-auditmod6b.c (check_avx): Likewise.
10290         * elf/tst-auditmod6c.c (check_avx): Likewise.
10291         * elf/tst-auditmod7b.c (check_avx): Likewise.
10292
10293 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
10294
10295         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
10296         !__SSE_MATH__.
10297
10298 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10299
10300         [BZ #13540]
10301         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
10302         processing for last bytes.
10303
10304 2011-08-06  Bruno Haible  <bruno@clisp.org>
10305
10306         [BZ #13061]
10307         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
10308         U+0385, not to U+1FEE.
10309
10310         [BZ #13062]
10311         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
10312         entry for U+00A5 U+0301.
10313
10314 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
10315
10316         [BZ #13166]
10317         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
10318         buffer for the output is too small.
10319
10320         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
10321         optimization.
10322
10323         [BZ #13185]
10324         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
10325         SSE flags if possible.
10326
10327 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10328
10329         [BZ #13540]
10330         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
10331         processing for last bytes.
10332
10333 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
10334
10335         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
10336         (syscall-list-default-options, syscall-list-default-condition)
10337         (syscall-list-includes): Define.
10338         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
10339         list of ABIs and options and #if conditions for each ABI.  Do not
10340         handle common syscalls between ABIs specially.
10341         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
10342         Remove.
10343         (syscall-list-variants, syscall-list-32bit-options)
10344         (syscall-list-32bit-condition, syscall-list-64bit-options)
10345         (syscall-list-64bit-condition): Define.
10346         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
10347         (syscall-list-variants, syscall-list-32bit-options)
10348         (syscall-list-32bit-condition, syscall-list-64bit-options)
10349         (syscall-list-64bit-condition): Define.
10350         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
10351         Remove.
10352         (syscall-list-variants, syscall-list-32bit-options)
10353         (syscall-list-32bit-condition, syscall-list-64bit-options)
10354         (syscall-list-64bit-condition): Define.
10355         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
10356         Remove.
10357         (syscall-list-variants, syscall-list-32bit-options)
10358         (syscall-list-32bit-condition, syscall-list-64bit-options)
10359         (syscall-list-64bit-condition): Define.
10360
10361 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
10362
10363         * locale/iso-639.def: Add brx entry.
10364
10365         [BZ #13328]
10366         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
10367         Proposed by Mariusz_Cukr <marcukr@op.pl>.
10368
10369         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
10370         __feraiseexcept_renamed.
10371
10372 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
10373
10374         [BZ #13538]
10375         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
10376         EPOLLET with unsigned values.
10377         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
10378         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
10379
10380         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
10381         to large cancellation.
10382         * math/s_cacoshf.c: Likewise.
10383         * math/s_cacoshl.c: Likewise.
10384
10385 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
10386
10387         [BZ #13305]
10388         [BZ #12786]
10389         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
10390         * math/s_cacoshf.c: Likewise.
10391         * math/s_cacoshl.c: Likewise.
10392
10393 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
10394
10395         [BZ #13439]
10396         * iconv/gconv.h: Define __GCONV_SWAP.
10397         * iconvdata/unicode.c: The swap bit must be stored in __flags.
10398         * iconvdata/utf-16.c: Likewise.
10399         * iconvdata/utf-32.c: Likewise.
10400
10401 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
10402
10403         [BZ #13524]
10404         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
10405         numerator after shifting it by one limb.
10406
10407 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
10408
10409         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
10410         under [__USE_EXTERN_INLINES].
10411
10412 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
10413
10414         [BZ #13446]
10415         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
10416
10417 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10418
10419         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
10420         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
10421         optimized code.
10422         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
10423         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
10424         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
10425         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
10426         for strncasecmp/strncasecmp_l compilation.
10427         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
10428         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
10429
10430 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
10431
10432         [BZ #13484]
10433         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
10434         of __asm__.
10435
10436 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
10437
10438         [BZ #13506]
10439         * time/tzfile.c (__tzfile_read): Check values from file header.
10440
10441 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
10442
10443         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
10444         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
10445         * powerpc/powerpc32/dl-start.S: Likewise.
10446         * powerpc/powerpc32/elf/start.S: Likewise.
10447         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
10448         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
10449         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
10450         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
10451         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
10452         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
10453         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
10454         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
10455         * powerpc/powerpc32/fpu/s_round.S: Likewise.
10456         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
10457         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
10458         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
10459         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
10460         * powerpc/powerpc32/memset.S: Likewise.
10461         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
10462         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
10463         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
10464         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
10465         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
10466         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
10467         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
10468         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
10469         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
10470         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
10471         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
10472         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
10473         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
10474
10475 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10476
10477         * math/libm-test.inc: Added more nearbyint tests.
10478         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
10479         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
10480         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
10481         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
10482
10483 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
10484
10485         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
10486         FD_CLOEXEC.
10487
10488 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10489
10490         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
10491         Add wcscpy-ssse3 wcscpy-c.
10492         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
10493         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
10494         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
10495         * sysdeps/x86_64/wcschr.S: New file.
10496         * sysdeps/x86_64/wcsrchr.S: New file.
10497         * string/test-strcmp.c: Remove checking of wcscmp function for
10498         wrong alignments.
10499         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
10500         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
10501         wcsrchr-sse2 wcsrchr-c.
10502         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
10503         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
10504         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
10505         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
10506         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
10507         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
10508         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
10509         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
10510         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
10511         * wcsmbc/wcschr.c (WCSCHR): New macro.
10512
10513 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10514
10515         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
10516         * wcsmbs/test-wcsrchr.c: New file.
10517         * string/test-strrchr.c: Add wcsrchr support.
10518         (WIDE): New macro.
10519         * wcsmbs/test-wcscpy.c: New file.
10520         * string/test-strcpy.c: Add wcscpy support.
10521         (WIDE): New macro.
10522
10523 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
10524
10525         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
10526         the inner loop.
10527
10528 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
10529
10530         [BZ #13472]
10531         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
10532
10533 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
10534
10535         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
10536         Minor optimizations.
10537
10538         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
10539         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
10540         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
10541
10542 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
10543
10544         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
10545         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
10546         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
10547         for gcc to avoid warnings.
10548         * inet/Makefile (tests): Add tst-checks.
10549         * inet/tst-checks.c: New file.
10550
10551         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
10552         warning.
10553
10554         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
10555         __wmemcmp_sse2.
10556
10557         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
10558         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
10559
10560         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
10561
10562 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
10563
10564         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
10565         problem.
10566
10567         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
10568
10569 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
10570
10571         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
10572         conditional on GCC version.
10573         (__arch_compare_and_exchange_val_8_acq)
10574         (__arch_compare_and_exchange_val_16_acq)
10575         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
10576         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
10577         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
10578
10579 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
10580
10581         * sysdeps/sh/backtrace.c: New file.
10582
10583 2011-12-02  Andreas Schwab  <schwab@redhat.com>
10584
10585         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
10586         parenthesis.
10587
10588 2011-12-01  Andreas Schwab  <schwab@redhat.com>
10589
10590         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
10591         falling back to utime.
10592
10593 2011-11-30  Andreas Schwab  <schwab@redhat.com>
10594
10595         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
10596         expectations for float.
10597
10598 2011-11-29  Andreas Schwab  <schwab@redhat.com>
10599
10600         * locale/weight.h (findidx): Add parameter len.
10601         * locale/weightwc.h (findidx): Likewise.
10602         * posix/fnmatch_loop.c (FCT): Adjust caller.
10603         * posix/regcomp.c (build_equiv_class): Likewise.
10604         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
10605         * posix/regexec.c (check_node_accept_bytes): Likewise.
10606         * string/strcoll_l.c (STRCOLL): Likewise.
10607         * string/strxfrm_l.c (STRXFRM): Likewise.
10608
10609 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
10610
10611         * Makefile.in: Remove CVSOPT handling.
10612         * configure.in: Remove use of AC_REVISION.
10613         * iconvdata/Makefile (distribute): No need to filter out CVS.
10614         * scripts/list-sources.sh: Remove CVS, subversion and monotone
10615         handling.
10616
10617 2011-11-16  Andreas Schwab  <schwab@redhat.com>
10618
10619         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
10620         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
10621         [USE_AS_STRNCASECMP_L]: Likewise.
10622         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
10623         NO_TLS_DIRECT_SEG_REFS.
10624         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
10625         Fix argument offsets for non-PIC.
10626         [USE_AS_STRNCASECMP_L]: Likewise.
10627         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
10628         NO_TLS_DIRECT_SEG_REFS.
10629
10630 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
10631
10632         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
10633         O_CLOEXEC.
10634         * locale/loadlocale.c (_nl_load_locale): Likewise.
10635
10636 2011-11-15  Andreas Schwab  <schwab@redhat.com>
10637
10638         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
10639         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
10640         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
10641         (SYSCALL_GETTIME): Set errno on error.
10642
10643         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
10644         count references to noai6ai_cached.
10645
10646 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
10647
10648         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
10649
10650         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
10651         FD_CLOEXEC for /proc/self/maps.
10652
10653         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
10654         FD_CLOEXEC for /proc/meminfo.
10655
10656         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
10657         gai.conf.
10658
10659         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
10660         FD_CLOEXEC for given file.
10661
10662         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
10663
10664         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
10665         FD_CLOEXEC for /etc/hosts.
10666         (_gethtent): Likewise.
10667
10668         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
10669
10670         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
10671         cancellation and set FD_CLOEXEC for /etc/netgroup.
10672
10673         * nss/nss_files/files-key.c (search): Don't allow cancellation when
10674         reading /etc/publickey.
10675
10676         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
10677         allow cancellation when reading /etc/group.
10678
10679         * nss/nss_files/files-alias.c (internal_setent): Don't allow
10680         cancellation.
10681         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
10682
10683         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
10684         when using data file.
10685
10686         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
10687
10688         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
10689         (write_nis_obj): Use "c" and "e" in fopen.
10690
10691         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
10692
10693         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
10694
10695         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
10696
10697         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
10698
10699         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
10700         locale.alias.
10701
10702         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
10703
10704         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
10705
10706         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
10707
10708         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
10709         file parsing and set FD_CLOEXEC.
10710
10711 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
10712
10713         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
10714
10715 2011-11-14  Andreas Schwab  <schwab@redhat.com>
10716
10717         * malloc/arena.c (arena_get2): Don't call reused_arena when
10718         _int_new_arena failed.
10719
10720 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
10721
10722         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
10723         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
10724         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
10725         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10726         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
10727         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
10728         to compile strcasecmp and strncasecmp.
10729         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
10730         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
10731
10732         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
10733
10734 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
10735
10736         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
10737         locale-defines.sym to gen-as-const-headers.
10738         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
10739         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
10740         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
10741         to compile strcasecmp and strncasecmp.
10742         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
10743         strcasecmp_l and strncasecmp_l.
10744         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
10745         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
10746         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
10747         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
10748         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
10749         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
10750         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
10751         * sysdeps/i386/i686/multiarch/strncase.S: New file.
10752         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
10753         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
10754         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
10755
10756 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
10757
10758         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
10759         result of SYSDEP_GETTIME_CPU to retval.
10760         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
10761         parameter list to macro.  Remove trailing semicolon.  Adjust users.
10762
10763         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
10764         variable.
10765
10766         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
10767         mantissa words.
10768         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
10769
10770         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
10771         from unused variable.
10772
10773         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
10774         DWARF definitions.
10775         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
10776         for assembling.
10777
10778         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
10779         over namespaces.
10780
10781         * sunrpc/rpc_prot.c (rejected): Fix case value.
10782
10783         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
10784         unsigned long long int to avoid warnings in shift.
10785
10786         * posix/regex_internal.c (re_string_reconstruct): Actually use result
10787         of use of trans.
10788         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
10789         variable tmp.
10790
10791         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
10792         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
10793         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
10794
10795         * nis/nis_table.c (nis_list): Use variable of correct type for
10796         result of __follow_path call.
10797
10798 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10799
10800         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
10801         of math functions ceil, trunc, floor, round, and sqrt, when
10802         avaliable on the platform.
10803         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
10804         name clash.
10805         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10806         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
10807         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
10808
10809 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
10810
10811         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
10812         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
10813
10814 2011-11-11  Roland McGrath  <roland@hack.frob.com>
10815
10816         * include/unistd.h: Fix __readlink return type.
10817         Reported by Chris Metcalf <cmetcalf@tilera.com>.
10818
10819 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
10820
10821         * stdlib/ucontext.h: Undo last change for makecontext.
10822
10823 2011-11-11  Andreas Schwab  <schwab@redhat.com>
10824
10825         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
10826
10827         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
10828         * setjmp/setjmp.h: Mark functions as non-leaf.
10829         * setjmp/bits/setjmp2.h: Likewise.
10830         * stdlib/ucontext.h: Likewise.
10831
10832 2011-11-10  Andreas Schwab  <schwab@redhat.com>
10833
10834         * malloc/arena.c (_int_new_arena): Don't increment narenas.
10835         (reused_arena): Don't check arena limit.
10836         (arena_get2): Atomically check arena limit.
10837
10838 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
10839
10840         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
10841         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
10842
10843         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
10844         instructions.
10845
10846 2011-11-07  Andreas Schwab  <schwab@redhat.com>
10847
10848         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
10849         handler when locking.
10850
10851         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10852         Fix size of allocated buffer.
10853
10854 2011-11-04  Andreas Schwab  <schwab@redhat.com>
10855
10856         [BZ #10103]
10857         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
10858         declarations for long double functions.
10859         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
10860
10861         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
10862
10863 2011-11-03  Andreas Schwab  <schwab@redhat.com>
10864
10865         * nscd/nscd.c (main): Don't start AVC thread until credentials are
10866         installed.
10867
10868         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
10869         is disabled.
10870
10871 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10872
10873         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
10874
10875 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
10876
10877         * include/alloca.h (stackinfo_alloca_round): Define.
10878         (extend_alloca): Use it.
10879         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
10880         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
10881         here.
10882
10883         * scripts/check-local-headers.sh: Ignore libaudit.h.
10884
10885         * nscd/Makefile (extra-objs): Make recursively expanded.
10886
10887 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
10888
10889         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
10890         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
10891
10892         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
10893         * posix/tst-rfc3484-2.c: Likewise.
10894         * posix/tst-rfc3484-3.c: Likewise.
10895
10896         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
10897         process_vm_writev.
10898         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
10899         process_vm_writev.
10900         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
10901         process_vm_writev from libc using GLIBC_2.15 version.
10902
10903         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
10904
10905 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
10906
10907         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
10908         stack usage.
10909
10910 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
10911
10912         [BZ #13367]
10913         * nss/getent.c (initgroups_keys): Show error message in case no group
10914         names are given.
10915
10916         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
10917         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
10918         __bump_nl_timestamp.
10919         * nscd/connections (nscd_init): When host database is served open
10920         netlink socket and request notification about configuration changes.
10921         (main_loop_poll): Track netlink file descriptor and bump timestamp
10922         in case data becomes available.
10923         (main_loop_epoll): Likewise.
10924         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
10925         (database_pers_head): Add extra_data fileds.
10926         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
10927         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
10928         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
10929         Adjust caller.
10930         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
10931         in6ai data, call __free_in6ai.
10932         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
10933         Add -DHAVE_NETLINK.
10934         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
10935         interface information.  Reuse previous data if netlink timestamp
10936         is not changed.
10937         (__bump_nl_timestamp): New function.
10938         (__free_in6ai): New function.
10939
10940 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
10941
10942         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
10943         close_not_cancel_no_status here.
10944         (__check_pf): Reorganize code a bit to not call close twice if OOM.
10945
10946 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
10947
10948         [BZ #13276]
10949         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
10950         return value.
10951
10952         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
10953         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
10954         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
10955
10956 2011-07-03  Andreas Jaeger  <aj@suse.de>
10957
10958         [BZ #10709]
10959         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
10960         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
10961         * math/libm-test.inc (sin_test): Add test case.
10962
10963 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
10964
10965         [BZ #13337]
10966         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
10967         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
10968
10969         * elf/chroot_canon.c (chroot_canon): Cleanups.
10970
10971         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
10972
10973         [BZ #13335]
10974         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
10975         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
10976
10977         * string/test-strchr.c: Make usable for strchrnul testing.
10978         * string/test-strchrnul.c: New file.
10979         * string/Makefile (strop-tests): Add strchrnul.
10980
10981         * po/it.po: Update from translation team.
10982         * po/es.po: Likewise.
10983
10984 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
10985
10986         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
10987         the three constants needed as parameters.  Drop the others.
10988         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
10989         __m128i_strloadu_tolower.
10990         Create and initialize variable zero and use it in all the places
10991         where _mm_setzero_si128 was used.
10992
10993         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
10994         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
10995         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
10996         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
10997         anymore.
10998         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
10999         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
11000         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
11001         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
11002         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
11003         __mpranred, __mptan.
11004         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
11005         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
11006         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
11007         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
11008         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
11009         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
11010         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
11011         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
11012         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
11013
11014 2011-10-28  Andreas Schwab  <schwab@redhat.com>
11015
11016         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
11017         redefine if SHARED.
11018         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
11019
11020         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
11021         wide char related routines to wcsmbs subdir.
11022
11023 2011-10-27  Andreas Schwab  <schwab@redhat.com>
11024
11025         [BZ #13344]
11026         * misc/sys/cdefs.h (__THROWNL): Define.
11027         * posix/unistd.h: Use __THREADNL instead of __THREAD
11028         for memory synchronization functions.
11029
11030 2011-10-26  Roland McGrath  <roland@hack.frob.com>
11031
11032         [BZ #13349]
11033         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
11034         doesn't exist.
11035         * manual/stdio.texi (Obstack Streams): Node removed.
11036
11037 2011-10-26  Andreas Schwab  <schwab@redhat.com>
11038
11039         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
11040         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11041         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11042
11043         * math/math_private.h (math_force_eval): Allow non-addressable
11044         arguments.
11045         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
11046
11047 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
11048
11049         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
11050         file is not needed.
11051
11052         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
11053         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
11054         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11055         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11056         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11057         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11058         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11059         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
11060         Add AVX variants.
11061         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
11062         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
11063         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
11064         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
11065         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
11066         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
11067         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
11068         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
11069         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
11070         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
11071         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
11072         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
11073         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
11074         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
11075         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
11076         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
11077         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
11078         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
11079         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
11080
11081         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
11082         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
11083
11084         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
11085         place.  Use VEX encoding when compiling for AVX.
11086
11087 2011-10-25  Andreas Schwab  <schwab@redhat.com>
11088
11089         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
11090         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
11091
11092         * string/test-strchr.c (do_test): Don't generate NUL bytes.
11093
11094 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
11095
11096         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
11097         useless if() expression.
11098         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11099         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11100         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11101         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11102         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11103         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11104         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11105         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11106         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11107         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11108         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11109         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11110         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11111         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11112         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11113         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11114         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11115         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11116         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11117
11118         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
11119
11120 2011-10-25  Andreas Schwab  <schwab@redhat.com>
11121
11122         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
11123         condition.
11124         * elf/dl-fini.c (_dl_sort_fini): Likewise.
11125
11126 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
11127
11128         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
11129         .text section.  Avoid duplicate constants.
11130         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11131         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11132         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11133         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11134         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11135         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11136         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11137         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11138         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
11139         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
11140         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
11141         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
11142         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
11143         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
11144         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
11145         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
11146         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
11147         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
11148         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11149         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11150         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11151         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11152         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11153         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
11154         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
11155         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
11156         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
11157         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
11158         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
11159         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
11160         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
11161         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
11162         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
11163         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
11164         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
11165         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
11166         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
11167         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
11168         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
11169         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
11170         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
11171         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
11172         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
11173         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
11174         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
11175
11176 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
11177
11178         * sysdeps/x86_64/dla.h: Move to ...
11179         * sysdeps/x86_64/fpu/dla.h: ...here.
11180         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
11181         situations.  Use __builtin_fma only for gcc 4.6 and up.
11182
11183         * config.make.in: Add have-mfma4 entry.
11184         * configure.in: Substitute libc_cv_cc_fma4.
11185         * math/Makefile (dbl-only-routines): Add sincostab.
11186         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
11187         Use __sincostab not sincos.
11188         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
11189         name is a macro.
11190         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11191         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11192         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11193         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
11194         using __copysign.
11195         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
11196         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
11197         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
11198         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
11199         and __inv.
11200         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
11201         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
11202         __copysign.
11203         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
11204         define aliases when function name is a macro.
11205         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
11206         sysdeps/ieee754/dbl-64/sincos.tbl.
11207         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
11208         fma4-enabled routines.
11209         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
11210         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
11211         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
11212         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
11213         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
11214         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
11215         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
11216         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
11217         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
11218         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
11219         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
11220         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
11221         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
11222         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
11223         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
11224         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
11225         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
11226         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
11227         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
11228         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
11229         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
11230         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
11231         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
11232         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
11233         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
11234         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
11235         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
11236         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
11237         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
11238         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
11239
11240         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
11241         rename.
11242         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11243         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11244         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11245         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11246         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11247         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11248         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11249         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11250
11251 2011-10-24  Andreas Schwab  <schwab@redhat.com>
11252
11253         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
11254
11255 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
11256
11257         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
11258
11259         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
11260         prediction.
11261         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
11262
11263         * string/strnlen.c: Don't define STRNLEN, reverse logic.
11264         Remove unused variable magic_bits.
11265         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
11266
11267         * string/strnlen.c: Define and use STRNLEN macro.
11268         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
11269         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
11270         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
11271         * wcsmbs/wcslen.c: Define and use WCSLEN.
11272         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
11273         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
11274         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
11275         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
11276         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
11277         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
11278         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
11279
11280 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11281
11282         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11283         strnlen-sse2-no-bsf.
11284         Rename strlen-no-bsf to strlen-sse2-no-bsf.
11285         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
11286         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
11287         Add strnlen support.
11288         (USE_AS_STRNLEN): New macro.
11289         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
11290         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
11291         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
11292         * sysdeps/x86_64/wcslen.S: New file.
11293
11294 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
11295
11296         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
11297         XMM-moves are used for copying on small sizes.
11298
11299 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11300
11301         * wcsmbs/Makefile (strop-tests): Add wcschr.
11302         * wcsmbs/test-wcschr.c: New file.
11303         * string/test-strchr.c: Update.
11304         Add wcschr support.
11305         (WIDE): New macro.
11306
11307 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11308
11309         * wcsmbs/Makefile (strop-tests): Add wcslen.
11310         * wcsmbs/test-wcslen.c: New file.
11311         * string/test-strlen.c: Update.
11312         Add wcslen support.
11313         (WIDE): New macro.
11314
11315 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
11316
11317         * po/it.po: Update from translation team.
11318
11319 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11320
11321         * sysdeps/x86_64/wcscmp.S: Update.
11322         Fix wrong comparison semantics.
11323         wcscmp shall use signed comparison not unsigned.
11324         Don't use substraction to avoid overflow bug.
11325         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
11326         * wcsmbc/wcscmp.c: Likewise.
11327         * string/test-strcmp.c: Likewise.
11328         Add new tests to check cases with negative values.
11329
11330 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
11331
11332         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
11333         * sysdeps/x86_64/dla.h: ...here.  New file.
11334         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
11335         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11336         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11337         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11338         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11339         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11340         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11341         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11342         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11343
11344 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
11345
11346         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
11347         __ynl_finite aliases.
11348
11349 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
11350
11351         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11352
11353         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
11354         define DLA_FMA.
11355         [DLA_FMA] (EMULV): Use DLA_FMA.
11356         [DLA_FMA] (MUL12): Use EMULV.
11357         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
11358         that are not needed.
11359         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11360         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11361         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11362         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11363         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11364         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11365         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11366
11367 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
11368
11369         * math/s_nan.c: Undef __nan.
11370         * math/s_nanf.c: Undef __nanf.
11371         * math/s_nanl.c: Undef __nanl.
11372         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
11373         "math_private.h".
11374
11375 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
11376
11377         * math/s_catan.c: Add branch predictions.
11378         * math/s_catanf.c: Likewise.
11379         * math/s_catanh.c: Likewise.
11380         * math/s_catanhf.c: Likewise.
11381         * math/s_catanhl.c: Likewise.
11382         * math/s_catanl.c: Likewise.
11383         * math/s_cexp.c: Likewise.
11384         * math/s_cexpf.c: Likewise.
11385         * math/s_cexpl.c: Likewise.
11386         * math/s_clog.c: Likewise.
11387         * math/s_clog10.c: Likewise.
11388         * math/s_clog10f.c: Likewise.
11389         * math/s_clog10l.c: Likewise.
11390         * math/s_clogf.c: Likewise.
11391         * math/s_clogl.c: Likewise.
11392         * math/s_csqrt.c: Likewise.
11393         * math/s_csqrtf.c: Likewise.
11394         * math/s_csqrtl.c: Likewise.
11395         * math/s_ctanf.c: Likewise.
11396         * math/s_ctanh.c: Likewise.
11397         * math/s_ctanhf.c: Likewise.
11398         * math/s_ctanhl.c: Likewise.
11399         * math/s_ctanl.c: Likewise.
11400
11401         * math/math_private.h: Define __nan, __nanf, __nanl.
11402         * math/s_cacosh.c: Include <math_private.h>.
11403         * math/s_cacoshl.c: Likewise.
11404         * math/s_casinh.c: Likewise.
11405         * math/s_casinhf.c: Likewise.
11406         * math/s_casinhl.c: Likewise.
11407         * math/s_ccos.c: Rely entire on ccosh.
11408         * math/s_ccosf.c: Rely entire on ccoshf.
11409         * math/s_ccosl.c: Rely entirely on ccoshl.
11410         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
11411         Remove tests for FE_INVALID.
11412         * math/s_ccoshf.c: Likewise.
11413         * math/s_ccoshl.c: Likewise.
11414         * math/s_csin.c: Likewise.
11415         * math/s_csinf.c: Likewise.
11416         * math/s_csinh.c Likewise.
11417         * math/s_csinhf.c: Likewise.
11418         * math/s_csinhl.c: Likewise.
11419         * math/s_csinl.c: Likewise.
11420         * math/s_ctan.c: Likewise.
11421         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
11422         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
11423         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
11424
11425 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
11426
11427         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
11428         compilation problems.
11429
11430         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
11431         __builtin_expect.
11432
11433 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
11434
11435         * sysdeps/i386/configure.in: Test for -mfma4 option.
11436         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
11437         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
11438         COMMON_CPUID_INDEX_80000001.
11439         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
11440         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
11441         use it if FMA3 is not supported.
11442         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
11443
11444         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
11445         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
11446
11447 2011-10-20  Andreas Schwab  <schwab@redhat.com>
11448
11449         [BZ #12892]
11450         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
11451         it would create a cycle with a link time dependency.
11452
11453 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
11454
11455         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
11456         instruction.
11457         * string/Makefile (strop-tests): Add rawmemchr.
11458         * string/test-rawmemchr.c: New file.
11459
11460         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
11461         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
11462         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
11463         when compiling str{,n}casecmp and when AVX is available.  Hook up
11464         new optimized code in initializers.
11465
11466 2011-10-19  Andreas Schwab  <schwab@redhat.com>
11467
11468         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
11469         __feraiseexcept instead of feraiseexcept.
11470
11471 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
11472
11473         * math/math_private.h: Define defaults for libc_fetestexcept and
11474         libc_feupdateenv.
11475         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
11476         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11477         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11478         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11479         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11480         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
11481         libc_fetestexcept and libc_feupdateenv.
11482
11483         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
11484         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
11485         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
11486         * sysdeps/x86_64/fpu/math_private.h: Define special version of
11487         libc_feholdexcept_setround.
11488
11489         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
11490         Add s_nearbyint-c and s_nearbyintf-c.
11491         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
11492         nearbyintf inlines.
11493         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
11494         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
11495         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
11496         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
11497
11498         * math/math_private.h: Define defaults for libc_fegetround,
11499         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
11500         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
11501         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
11502         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
11503         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
11504         standard functions.
11505         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11506         Remove comments and hacks for old compiler versions.
11507         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
11508         libc_fegetround, libc_fesetround, libc_feholdexcept, and
11509         libc_feholdexceptl.
11510
11511 2011-10-18  Andreas Schwab  <schwab@redhat.com>
11512
11513         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
11514         (__feraiseexcept_renamed): Add __NTH.
11515         (feraiseexcept): Add __NTH.  Rename local variables to fix
11516         namespace violations.
11517
11518 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
11519
11520         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
11521
11522         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
11523
11524         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
11525         recently added interfaces.
11526         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11527
11528         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
11529         about macro parameter expansion.
11530
11531         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
11532         __NO_MATH_INLINES is defined.  Cleanups.
11533
11534         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
11535         and __floorf is target has SSE4.1.
11536         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
11537         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
11538         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
11539         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
11540
11541         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
11542         name.
11543         (floorf): Likewise.
11544
11545         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
11546
11547 2011-10-17  Andreas Schwab  <schwab@redhat.com>
11548
11549         * misc/sys/cdefs.h: Fix last change.
11550
11551         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
11552         database lookup.
11553
11554 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
11555
11556         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
11557
11558         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
11559         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11560         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11561         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11562         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11563         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11564         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11565         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11566         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11567         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
11568         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
11569         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
11570         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
11571         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
11572         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
11573         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
11574         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
11575         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
11576         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
11577         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
11578         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
11579         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
11580
11581         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
11582         ceil, ceilf, floor, floorf.
11583
11584         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
11585         Perform IRELATIVE relocations last.
11586
11587         * elf/do-rel.h: Add another parameter nrelative, replacing the
11588         local variable with the same name.  Change name of the function
11589         to end in Rel or Rela (uppercase).
11590         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
11591         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
11592         elf_dynamic_do_##reloc function.
11593
11594 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
11595
11596         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
11597         is sufficient, at least on modern CPUs.
11598
11599         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
11600
11601         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
11602         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
11603
11604         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
11605         __expl_finite.
11606         * math/bits/math-finite.h: Add entries for exp.
11607         * math/e_expl.c: Add __*_finite alias.
11608         * sysdeps/i386/fpu/e_exp.S: Likewise.
11609         * sysdeps/i386/fpu/e_expf.S: Likewise.
11610         * sysdeps/i386/fpu/e_expl.c: Likewise.
11611         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11612         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11613         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11614         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
11615         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
11616         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11617         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11618
11619         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
11620         is sufficient, at least on modern CPUs.
11621
11622         * ctype/ctype-info.c (__ctype_init): Define.
11623         * include/ctype.h (__ctype_init): Declare.
11624         (__ctype_b_loc): The variable is always initialized.
11625         (__ctype_toupper_loc): Likewise.
11626         (__ctype_tolower_loc): Likewise.
11627         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
11628         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
11629
11630 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
11631
11632         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
11633
11634         * configure.in: Also look in $cxxmachine/include for C++ system
11635         headers.
11636
11637 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11638
11639         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
11640         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
11641         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
11642         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
11643         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
11644         (USE_AS_WMEMCMP): New macro.
11645         Fixing indents.
11646         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
11647         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
11648         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
11649         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
11650         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11651         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
11652         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
11653         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
11654         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
11655         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
11656         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
11657         (USE_AS_WMEMCMP): New macro.
11658         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
11659         * sysdeps/string/test-memcmp.c: Update.
11660         Fix simple_wmemcmp.
11661         Add new tests.
11662         * wcsmbs/wmemcmp.c: Update.
11663         (WMEMCMP): New macro.
11664         Fix overflow bug.
11665
11666 2011-10-12  Andreas Jaeger  <aj@suse.de>
11667
11668         [BZ #13268]
11669         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
11670
11671 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
11672
11673         * libio/iofwide.c (do_length): Avoid warning.
11674
11675         * ctype/ctype.h (__isctype_f): Add missing __THROW.
11676
11677 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
11678
11679         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
11680
11681         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
11682         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
11683         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
11684         * sysdeps/i386/i686/fpu/e_log.S: New file.
11685         * sysdeps/i386/i686/fpu/e_logf.S: New file.
11686         * sysdeps/i386/i686/fpu/e_logl.S: New file.
11687
11688         * ctype/ctype.h: Add support for inlined isXXX functions when
11689         compiling C++ code.
11690
11691 2011-10-14  Andreas Schwab  <schwab@redhat.com>
11692
11693         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11694
11695         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
11696
11697 2011-10-13  Roland McGrath  <roland@hack.frob.com>
11698
11699         [BZ #13291]
11700         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
11701
11702 2011-10-13  Andreas Schwab  <schwab@redhat.com>
11703
11704         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
11705         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
11706         feraiseexcept.
11707
11708         * sysdeps/x86_64/memrchr.S: Check for zero size.
11709
11710         * string/stratcliff.c: Add memrchr tests.
11711
11712 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11713
11714         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11715         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
11716         rawmemchr-sse2 rawmemchr-sse2-bsf.
11717         * sysdeps/i386/i686/multiarch/memchr.S: New file.
11718         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
11719         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
11720         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
11721         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
11722         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
11723         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
11724         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
11725         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
11726         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
11727         * string/memrchr.c (MEMRCHR): New macro.
11728
11729 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
11730
11731         Add integration with gcc's -ffinite-math-only and optimize wrapper
11732         functions in libm.
11733         * Versions.def: Define GLIBC_2.15 version for libm.
11734         * math/Makefile (headers): Add bits/math-finite.h.
11735         * math/bits/math-finite.h: New file.
11736         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
11737         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
11738         * math/e_acoshl.c: Add __*_finite alias.
11739         * math/e_acosl.c: Likewise.
11740         * math/e_asinl.c: Likewise.
11741         * math/e_atan2l.c: Likewise.
11742         * math/e_atanhl.c: Likewise.
11743         * math/e_coshl.c: Likewise.
11744         * math/e_exp10.c: Likewise.
11745         * math/e_exp10f.c: Likewise.
11746         * math/e_exp10l.c: Likewise.
11747         * math/e_exp2l.c: Likewise.
11748         * math/e_fmodl.c: Likewise.
11749         * math/e_gammal_r.c: Likewise.
11750         * math/e_hypotl.c: Likewise.
11751         * math/e_j0l.c: Likewise.
11752         * math/e_j1l.c: Likewise.
11753         * math/e_jnl.c: Likewise.
11754         * math/e_lgammal_r.c: Likewise.
11755         * math/e_log10l.c: Likewise.
11756         * math/e_log2l.c: Likewise.
11757         * math/e_logl.c: Likewise.
11758         * math/e_powl.c: Likewise.
11759         * math/e_sinhl.c: Likewise.
11760         * math/e_sqrtl.c: Likewise.
11761         * math/e_scalb.c: Completely rewritten and optimized.
11762         * math/e_scalbf.c: Likewise.
11763         * math/e_scalbl.c: Likewise.
11764         * math/w_acos.c: Likewise.
11765         * math/w_acosf.c: Likewise.
11766         * math/w_acosl.c: Likewise.
11767         * math/w_acosh.c: Likewise.
11768         * math/w_acoshf.c: Likewise.
11769         * math/w_acoshl.c: Likewise.
11770         * math/w_asin.c: Likewise.
11771         * math/w_asinf.c: Likewise.
11772         * math/w_asinl.c: Likewise.
11773         * math/w_atan2.c: Likewise.
11774         * math/w_atan2f.c: Likewise.
11775         * math/w_atan2l.c: Likewise.
11776         * math/w_atanh.c: Likewise.
11777         * math/w_atanhf.c: Likewise.
11778         * math/w_atanhl.c: Likewise.
11779         * math/w_exp10.c: Likewise.
11780         * math/w_exp10f.c: Likewise.
11781         * math/w_exp10l.c: Likewise.
11782         * math/w_fmod.c: Likewise.
11783         * math/w_fmodf.c: Likewise.
11784         * math/w_fmodl.c: Likewise.
11785         * math/w_j0.c: Likewise.
11786         * math/w_j0f.c: Likewise.
11787         * math/w_j0l.c: Likewise.
11788         * math/w_j1.c: Likewise.
11789         * math/w_j1f.c: Likewise.
11790         * math/w_j1l.c: Likewise.
11791         * math/w_jn.c: Likewise.
11792         * math/w_jnf.c: Likewise.
11793         * math/w_log.c: Likewise.
11794         * math/w_logf.c: Likewise.
11795         * math/w_logl.c: Likewise.
11796         * math/w_log10.c: Likewise.
11797         * math/w_log10f.c: Likewise.
11798         * math/w_log10l.c: Likewise.
11799         * math/w_log2.c: Likewise.
11800         * math/w_log2f.c: Likewise.
11801         * math/w_log2l.c: Likewise.
11802         * math/w_pow.c: Likewise.
11803         * math/w_powf.c: Likewise.
11804         * math/w_powl.c: Likewise.
11805         * math/w_remainder.c: Likewise.
11806         * math/w_remainderf.c: Likewise.
11807         * math/w_remainderl.c: Likewise.
11808         * math/w_scalb.c: Likewise.
11809         * math/w_scalbf.c: Likewise.
11810         * math/w_scalbl.c: Likewise.
11811         * math/w_sqrt.c: Likewise.
11812         * math/w_sqrtf.c: Likewise.
11813         * math/w_sqrtl.c: Likewise.
11814         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
11815         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
11816         used.
11817         * math/math_private.h: Declare __kernel_standard_f.
11818         * math/w_cosh.c: Remove cruft and optimize a bit.
11819         * math/w_coshf.c: Likewise.
11820         * math/w_coshl.c: Likewise.
11821         * math/w_exp2.c: Likewise.
11822         * math/w_exp2f.c: Likewise.
11823         * math/w_exp2l.c: Likewise.
11824         * math/w_hypot.c: Likewise.
11825         * math/w_hypotf.c: Likewise.
11826         * math/w_hypotl.c: Likewise.
11827         * math/w_lgamma.c: Likewise.
11828         * math/w_lgamma_r.c: Likewise.
11829         * math/w_lgammaf.c: Likewise.
11830         * math/w_lgammaf_r.c: Likewise.
11831         * math/w_lgammal.c: Likewise.
11832         * math/w_lgammal_r.c: Likewise.
11833         * math/w_sinh.c: Likewise.
11834         * math/w_sinhf.c: Likewise.
11835         * math/w_sinhl.c: Likewise.
11836         * math/w_tgamma.c: Likewise.
11837         * math/w_tgammaf.c: Likewise.
11838         * math/w_tgammal.c: Likewise.
11839         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11840         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11841         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
11842         Minor optimizations.  Pretty printing.  Remove cruft.
11843         * sysdeps/i386/fpu/e_acosf.S: Likewise.
11844         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11845         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11846         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11847         * sysdeps/i386/fpu/e_acosl.c: Likewise.
11848         * sysdeps/i386/fpu/e_asin.S: Likewise.
11849         * sysdeps/i386/fpu/e_asinf.S: Likewise.
11850         * sysdeps/i386/fpu/e_atan2.S: Likewise.
11851         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
11852         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
11853         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11854         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11855         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11856         * sysdeps/i386/fpu/e_exp10.S: Likewise.
11857         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
11858         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
11859         * sysdeps/i386/fpu/e_exp2.S: Likewise.
11860         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
11861         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
11862         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11863         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
11864         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11865         * sysdeps/i386/fpu/e_hypot.S: Likewise.
11866         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
11867         * sysdeps/i386/fpu/e_log.S: Likewise.
11868         * sysdeps/i386/fpu/e_log10.S: Likewise.
11869         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11870         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11871         * sysdeps/i386/fpu/e_log2.S: Likewise.
11872         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11873         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11874         * sysdeps/i386/fpu/e_logf.S: Likewise.
11875         * sysdeps/i386/fpu/e_logl.S: Likewise.
11876         * sysdeps/i386/fpu/e_pow.S: Likewise.
11877         * sysdeps/i386/fpu/e_powf.S: Likewise.
11878         * sysdeps/i386/fpu/e_powl.S: Likewise.
11879         * sysdeps/i386/fpu/e_remainder.S: Likewise.
11880         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
11881         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
11882         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11883         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11884         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11885         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
11886         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
11887         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
11888         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11889         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11890         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11891         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11892         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11893         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11894         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11895         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11896         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11897         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11898         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11899         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11900         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11901         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11902         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11903         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11904         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11905         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11906         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11907         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11908         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11909         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11910         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11911         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11912         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11913         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11914         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11915         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11916         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11917         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11918         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11919         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11920         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11921         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11922         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11923         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11924         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11925         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11926         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11927         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11928         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11929         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11930         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11931         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11932         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11933         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11934         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11935         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11936         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11937         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11938         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11939         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11940         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11941         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11942         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11943         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11944         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11945         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11946         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11947         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11948         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11949         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11950         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11951         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11952         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11953         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11954         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11955         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11956         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11957         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11958         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11959         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11960         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11961         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11962         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11963         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11964         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
11965         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11966         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11967         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11968         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11969         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11970         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11971         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11972         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11973         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11974         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11975         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11976         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11977         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11978         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11979         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11980         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11981         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
11982         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
11983         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
11984         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
11985         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
11986         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
11987         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
11988         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
11989         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
11990         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
11991         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
11992         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11993         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11994         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11995         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11996         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
11997         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11998         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
11999         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
12000         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
12001         (__isnanf): Likewise.
12002         (__isinf_ns): Likewise.
12003         (__isinf_nsf): Likewise.
12004         (__finite): Likewise.
12005         (__finitef): Likewise.
12006         (__ieee754_sqrt): Define as macro.
12007         (__ieee754_sqrtf): Define as macro.
12008         (__ieee754_sqrtl): Define as macro.
12009         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
12010         inlined copy.
12011         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
12012         __FINITE_MATH_ONLY__ consistent.
12013         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
12014
12015 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
12016
12017         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
12018         of rawmemchr.
12019
12020         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
12021
12022 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
12023
12024         * po/ja.po: Update from translation team.
12025
12026 2011-10-08  Roland McGrath  <roland@hack.frob.com>
12027
12028         * locale/programs/locarchive.c (prepare_address_space): New function.
12029         (create_archive, enlarge_archive, open_archive): Use it.
12030
12031         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
12032         inside [SHARED], where it is used.
12033
12034         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
12035
12036         * nss/getent.c (netgroup_keys): Remove unused variable.
12037         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12038
12039 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
12040
12041         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
12042         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
12043         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
12044         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
12045         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
12046         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
12047         * math/Makefile (libm-calls): Add s_isinf_ns.
12048         * math/divtc3.c: Use __isinf_nsl instead of isinf.
12049         * math/multc3.c: Likewise.
12050         * math/s_casin.c: Likewise.
12051         * math/s_casinf.c: Likewise.
12052         * math/s_casinl.c: Likewise.
12053         * math/s_ccos.c: Likewise.
12054         * math/s_ccosf.c: Likewise.
12055         * math/s_ccosl.c: Likewise.
12056         * math/s_ctan.c: Likewise.
12057         * math/s_ctanf.c: Likewise.
12058         * math/s_ctanh.c: Likewise.
12059         * math/s_ctanhf.c: Likewise.
12060         * math/s_ctanhl.c: Likewise.
12061         * math/s_ctanl.c: Likewise.
12062         * math/w_fmod.c: Likewise.
12063         * math/w_fmodf.c: Likewise.
12064         * math/w_fmodl.c: Likewise.
12065         * math/w_remainder.c: Likewise.
12066         * math/w_remainderf.c: Likewise.
12067         * math/w_remainderl.c: Likewise.
12068         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
12069         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
12070         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
12071         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
12072         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
12073         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
12074         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
12075         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
12076
12077         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
12078         of the number.
12079         * stdio-common/printf_fphex.c: Likewise.
12080         * stdio-common/printf_size.c: Likewise.
12081
12082         * math/e_exp10.c: Include math_private.h using <...> not "...".
12083         * math/e_exp10f.c: Likewise.
12084         * math/e_exp10l.c: Likewise.
12085         * math/e_exp2l.c: Likewise.
12086         * math/e_j0l.c: Likewise.
12087         * math/e_j1l.c: Likewise.
12088         * math/e_jnl.c: Likewise.
12089         * math/e_lgammal_r.c: Likewise.
12090         * math/e_rem_pio2l.c: Likewise.
12091         * math/e_scalb.c: Likewise.
12092         * math/e_scalbf.c: Likewise.
12093         * math/e_scalbl.c: Likewise.
12094         * math/k_cosl.c: Likewise.
12095         * math/k_sinl.c: Likewise.
12096         * math/k_tanl.c: Likewise.
12097         * math/s_cacoshf.c: Likewise.
12098         * math/s_catan.c: Likewise.
12099         * math/s_catanf.c: Likewise.
12100         * math/s_catanh.c: Likewise.
12101         * math/s_catanhf.c: Likewise.
12102         * math/s_catanhl.c: Likewise.
12103         * math/s_catanl.c: Likewise.
12104         * math/s_ccosh.c: Likewise.
12105         * math/s_ccoshf.c: Likewise.
12106         * math/s_ccoshl.c: Likewise.
12107         * math/s_cexp.c: Likewise.
12108         * math/s_cexpf.c: Likewise.
12109         * math/s_cexpl.c: Likewise.
12110         * math/s_clog.c: Likewise.
12111         * math/s_clog10.c: Likewise.
12112         * math/s_clog10f.c: Likewise.
12113         * math/s_clog10l.c: Likewise.
12114         * math/s_clogf.c: Likewise.
12115         * math/s_clogl.c: Likewise.
12116         * math/s_csin.c: Likewise.
12117         * math/s_csinf.c: Likewise.
12118         * math/s_csinh.c: Likewise.
12119         * math/s_csinhf.c: Likewise.
12120         * math/s_csinhl.c: Likewise.
12121         * math/s_csinl.c: Likewise.
12122         * math/s_csqrt.c: Likewise.
12123         * math/s_csqrtf.c: Likewise.
12124         * math/s_csqrtl.c: Likewise.
12125         * math/s_ctan.c: Likewise.
12126         * math/s_ctanf.c: Likewise.
12127         * math/s_ctanh.c: Likewise.
12128         * math/s_ctanhf.c: Likewise.
12129         * math/s_ctanhl.c: Likewise.
12130         * math/s_ctanl.c: Likewise.
12131         * math/s_ldexp.c: Likewise.
12132         * math/s_ldexpf.c: Likewise.
12133         * math/s_ldexpl.c: Likewise.
12134         * math/s_significand.c: Likewise.
12135         * math/s_significandf.c: Likewise.
12136         * math/s_significandl.c: Likewise.
12137         * math/w_acos.c: Likewise.
12138         * math/w_acosf.c: Likewise.
12139         * math/w_acosh.c: Likewise.
12140         * math/w_acoshf.c: Likewise.
12141         * math/w_acoshl.c: Likewise.
12142         * math/w_acosl.c: Likewise.
12143         * math/w_asin.c: Likewise.
12144         * math/w_asinf.c: Likewise.
12145         * math/w_asinl.c: Likewise.
12146         * math/w_atan2.c: Likewise.
12147         * math/w_atan2f.c: Likewise.
12148         * math/w_atan2l.c: Likewise.
12149         * math/w_atanh.c: Likewise.
12150         * math/w_atanhf.c: Likewise.
12151         * math/w_atanhl.c: Likewise.
12152         * math/w_cosh.c: Likewise.
12153         * math/w_coshf.c: Likewise.
12154         * math/w_coshl.c: Likewise.
12155         * math/w_dremf.c: Likewise.
12156         * math/w_exp10.c: Likewise.
12157         * math/w_exp10f.c: Likewise.
12158         * math/w_exp10l.c: Likewise.
12159         * math/w_exp2.c: Likewise.
12160         * math/w_exp2f.c: Likewise.
12161         * math/w_fmod.c: Likewise.
12162         * math/w_fmodf.c: Likewise.
12163         * math/w_fmodl.c: Likewise.
12164         * math/w_hypot.c: Likewise.
12165         * math/w_hypotf.c: Likewise.
12166         * math/w_hypotl.c: Likewise.
12167         * math/w_j0.c: Likewise.
12168         * math/w_j0f.c: Likewise.
12169         * math/w_j0l.c: Likewise.
12170         * math/w_j1.c: Likewise.
12171         * math/w_j1f.c: Likewise.
12172         * math/w_j1l.c: Likewise.
12173         * math/w_jn.c: Likewise.
12174         * math/w_jnf.c: Likewise.
12175         * math/w_jnl.c: Likewise.
12176         * math/w_lgamma.c: Likewise.
12177         * math/w_lgamma_r.c: Likewise.
12178         * math/w_lgammaf.c: Likewise.
12179         * math/w_lgammaf_r.c: Likewise.
12180         * math/w_lgammal.c: Likewise.
12181         * math/w_lgammal_r.c: Likewise.
12182         * math/w_log.c: Likewise.
12183         * math/w_log10.c: Likewise.
12184         * math/w_log10f.c: Likewise.
12185         * math/w_log10l.c: Likewise.
12186         * math/w_log2.c: Likewise.
12187         * math/w_log2f.c: Likewise.
12188         * math/w_log2l.c: Likewise.
12189         * math/w_logf.c: Likewise.
12190         * math/w_logl.c: Likewise.
12191         * math/w_pow.c: Likewise.
12192         * math/w_powf.c: Likewise.
12193         * math/w_powl.c: Likewise.
12194         * math/w_remainder.c: Likewise.
12195         * math/w_remainderf.c: Likewise.
12196         * math/w_remainderl.c: Likewise.
12197         * math/w_scalb.c: Likewise.
12198         * math/w_scalbf.c: Likewise.
12199         * math/w_scalbl.c: Likewise.
12200         * math/w_sinh.c: Likewise.
12201         * math/w_sinhf.c: Likewise.
12202         * math/w_sinhl.c: Likewise.
12203         * math/w_sqrt.c: Likewise.
12204         * math/w_sqrtf.c: Likewise.
12205         * math/w_sqrtl.c: Likewise.
12206         * math/w_tgamma.c: Likewise.
12207         * math/w_tgammaf.c: Likewise.
12208         * math/w_tgammal.c: Likewise.
12209
12210         * po/ja.po: Update from translation team.
12211
12212 2011-09-29  Andreas Jaeger  <aj@suse.de>
12213
12214         [BZ #13179]
12215         * sunrpc/netname.c (netname2host): Fix logic.
12216
12217         [BZ #6779]
12218         [BZ #6783]
12219         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
12220         correctly.
12221         * math/w_remainder.c (__remainder): Likewise.
12222         * math/w_remainderf.c (__remainderf): Likewise.
12223         * math/libm-test.inc (remainder_test): Add test cases.
12224
12225 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12226
12227         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
12228         sdiv_qrnnd.
12229
12230 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
12231
12232         * string/test-memcmp.c: Avoid unncessary #defines.
12233         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
12234
12235 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12236
12237         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
12238         Use new sse2 version for core i3 - i7 as it's faster
12239         than sse42 version.
12240         (bit_Prefer_PMINUB_for_stringop): New.
12241         * sysdeps/x86_64/rawmemchr.S: Update.
12242         Replace with faster SSE2 version.
12243         * sysdeps/x86_64/memrchr.S: New file.
12244         * sysdeps/x86_64/memchr.S: Update.
12245         Replace with faster SSE2 version.
12246
12247 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
12248
12249         * elf/dl-load.c (lose): Add cast to avoid warning.
12250
12251 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
12252
12253         * po/ca.po: Update from translation team.
12254
12255         * inet/getnetgrent_r.c: Hook up nscd.
12256         * nscd/Makefile (routines): Add nscd_netgroup.
12257         (nscd-modules): Add netgroupcache.
12258         (CFLAGS-netgroupcache.c): Define.
12259         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
12260         (cache_search): Add const to second parameter.
12261         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
12262         INNETGR.
12263         (dbs): Add netgrdb entry.
12264         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
12265         (verify_persistent_db): Handle netgrdb.
12266         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
12267         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
12268         GETFDNETGR.
12269         (netgroup_response_header): Define.
12270         (innetgroup_response_header): Define.
12271         (datahead): Add netgroup_response_header and innetgroup_response_header
12272         elements.
12273         * nscd/nscd.conf: Add entries for netgroup cache.
12274         * nscd/nscd.h (dbtype): Add netgrdb.
12275         (_PATH_NSCD_NETGROUP_DB): Define.
12276         (netgroup_iov_disabled): Declare.
12277         (xmalloc, xcalloc, xrealloc): Move declarations here.
12278         (cache_search): Adjust prototype.
12279         Add netgroup-related prototypes.
12280         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
12281         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
12282         (__nscd_innetgr): Declare.
12283         * nscd/selinux.c (perms): Use access_vector_t as element type and
12284         add netgroup-related initializers.
12285         * nscd/netgroupcache.c: New file.
12286         * nscd/nscd_netgroup.c: New file.
12287         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
12288         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
12289         For four parameters use innetgr.
12290         * nss/nss_files/files-init.c: Add definition and callback for netgr.
12291         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
12292         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
12293         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
12294
12295         * nscd/connections.c (register_traced_file): Don't register file
12296         for disabled databases.
12297
12298 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
12299
12300         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
12301
12302         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
12303         from tree and freeing node.
12304
12305 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
12306
12307         * nss/nsswitch.c (__nss_database_lookup): Handle
12308         nss_parse_service_list out of memory case.
12309
12310 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
12311
12312         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
12313         out of memory case.
12314
12315 2011-10-04  Andreas Schwab  <schwab@redhat.com>
12316
12317         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
12318         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
12319         pass it down.
12320         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
12321         elf_machine_rela, elf_machine_lazy_rel.
12322         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
12323         (ELF_DYNAMIC_DO_REL): Likewise.
12324         (ELF_DYNAMIC_DO_RELA): Likewise.
12325         (ELF_DYNAMIC_RELOCATE): Likewise.
12326         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
12327         to ELF_DYNAMIC_DO_REL.
12328         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
12329         (dl_main): In trace mode always set __RTLD_NOIFUNC.
12330         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
12331         elf_machine_rela.
12332         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
12333         skip_ifunc, don't call ifunc function if non-zero.
12334         (elf_machine_rela): Likewise.
12335         (elf_machine_lazy_rel): Likewise.
12336         (elf_machine_lazy_rela): Likewise.
12337         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12338         (elf_machine_lazy_rel): Likewise.
12339         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12340         Likewise.
12341         (elf_machine_lazy_rel): Likewise.
12342         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12343         Likewise.
12344         (elf_machine_lazy_rel): Likewise.
12345         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
12346         (elf_machine_lazy_rel): Likewise.
12347         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
12348         (elf_machine_lazy_rel): Likewise.
12349         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12350         (elf_machine_lazy_rel): Likewise.
12351         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
12352         (elf_machine_lazy_rel): Likewise.
12353         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
12354         (elf_machine_lazy_rel): Likewise.
12355         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12356         (elf_machine_lazy_rel): Likewise.
12357
12358 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
12359
12360         * nss/nss_files/files-init.c (_nss_files_init): Use static
12361         initialization for all the *_traced_file variables.
12362
12363 2011-09-28  Andreas Schwab  <schwab@redhat.com>
12364
12365         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12366
12367 2011-09-27  Roland McGrath  <roland@hack.frob.com>
12368
12369         [BZ #13226]
12370         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
12371
12372 2011-09-27  Andreas Schwab  <schwab@redhat.com>
12373
12374         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12375         Reread the line before reparsing it.
12376
12377 2011-09-26  Andreas Schwab  <schwab@redhat.com>
12378
12379         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
12380
12381 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
12382             Maxim Kuvyrkov  <maxim@codesourcery.com>
12383             Joseph Myers  <joseph@codesourcery.com>
12384
12385         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
12386         if needed for __stack_chk_guard.
12387
12388 2011-09-19  Roland McGrath  <roland@hack.frob.com>
12389
12390         * sysdeps/posix/spawni.c (script_execute): Always define it.
12391         It will be optimized away if unused.
12392         (maybe_script_execute): New function.
12393         (__spawni): Call it.
12394
12395         * Makerules: Don't include tls.make.
12396         (config-tls): Always set to thread.
12397         * tls.make.c: File removed.
12398
12399 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
12400
12401         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
12402         * config.make.in (CPPFLAGS-config): New substituted variable.
12403
12404 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
12405
12406         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
12407
12408         [BZ #13192]
12409         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
12410         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
12411
12412 2011-09-15  Roland McGrath  <roland@hack.frob.com>
12413
12414         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
12415         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
12416         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
12417         (CALL_FAIL): Likewise.
12418         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
12419         (CALL_FAIL): Macro removed.
12420         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
12421
12422 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
12423
12424         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
12425         for __FINITE_MATH_ONLY__ == 1.
12426
12427 2011-09-15  Andreas Schwab  <schwab@redhat.com>
12428
12429         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
12430         __ieee754_sqrt instead of sqrt.
12431         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
12432         __ieee754_sqrtf instead of sqrtf.
12433         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
12434         __floorf instead of floorf.
12435         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
12436         __floorf, __truncf instead of floorf, truncf.
12437
12438 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
12439
12440         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
12441
12442         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
12443         __extern_always_inline.
12444         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
12445         32-bit.
12446
12447 2011-09-14  Andreas Schwab  <schwab@redhat.com>
12448
12449         * elf/rtld.c (dl_main): Also relocate in dependency order when
12450         doing symbol dependency testing.
12451
12452 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
12453
12454         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12455         Always define `refsym'.
12456
12457 2011-09-13  Andreas Schwab  <schwab@redhat.com>
12458
12459         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
12460         (__FD_ELT): Renamed from __FDELT.
12461         * misc/bits/select2.h (__FD_ELT): Likewise.
12462         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
12463         __FD_MASK instead of __FDELT, __FDMASK.
12464         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
12465         Likewise.
12466         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
12467         Likewise.
12468
12469         * elf/Makefile (gen-ldd): Fix pattern.
12470
12471         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
12472         (init_tls): Likewise.
12473
12474 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
12475
12476         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
12477
12478 2011-09-12  Andreas Schwab  <schwab@redhat.com>
12479
12480         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
12481         `struct cmsghdr *' instead of `void *'.
12482         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
12483         Likewise.
12484
12485 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
12486
12487         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
12488         if non-absolute.
12489         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
12490         ldd_rewrite_script.
12491
12492 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
12493
12494         * configure.in: Remove --with-tls option.
12495         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
12496         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
12497         out in case it is missing.
12498         * sysdeps/ia64/elf/configure.in: Likewise.
12499         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
12500         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
12501         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
12502         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
12503         * sysdeps/sh/elf/configure.in: Likewise.
12504         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
12505         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12506         * sysdeps/x86_64/elf/configure.in: Likewise.
12507         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
12508         * sysdeps/mach/hurd/tls.h: Likewise.
12509
12510         [BZ #13067]
12511         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
12512
12513         [BZ #13090]
12514         * configure.in: Fix use of AC_INIT.
12515
12516         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
12517
12518 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
12519
12520         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
12521         __set_errno.
12522         * malloc/hooks.c: Likewise.
12523
12524         [BZ #11929]
12525         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
12526         variables statically.
12527         (narenas): Initialize.
12528         (list_lock): Initialize.
12529         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
12530         initializtion of main_arena and list_lock.  Small cleanups.
12531         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
12532         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
12533         Add initializers to main_arena and mp_.
12534         (malloc_state): Remove pagesize member.  Change all users to use
12535         GLRO(dl_pagesize).
12536
12537         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
12538         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
12539         is always initialized.
12540
12541         * malloc/malloc.c: Removed unused configurations and dead code.
12542         * malloc/arena.c: Likewise.
12543         * malloc/hooks.c: Likewise.
12544         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
12545
12546         * include/tls.h: Removed.  USE___THREAD must always be defined.
12547         * bits/libc-tsd.h: Don't handle !USE___THREAD.
12548         * elf/dl-libc.c: Likewise.
12549         * elf/dl-tsd.c: Likewise.
12550         * include/errno.h: Likewise.
12551         * include/netdb.h: Likewise.
12552         * include/resolv.h: Likewise.
12553         * inet/herrno-loc.c: Likewise.
12554         * inet/herrno.c: Likewise.
12555         * malloc/arena.c: Likewise.
12556         * malloc/hooks.c: Likewise.
12557         * malloc/malloc.c: Likewise.
12558         * resolv/res-state.c: Likewise.
12559         * resolv/res_libc.c: Likewise.
12560         * sysdeps/i386/dl-machine.h: Likewise.
12561         * sysdeps/ia64/dl-machine.h: Likewise.
12562         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12563         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12564         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12565         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12566         * sysdeps/sh/dl-machine.h: Likewise.
12567         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12568         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12569         * sysdeps/unix/i386/sysdep.S: Likewise.
12570         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
12571         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
12572         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
12573         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
12574         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
12575         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
12576         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
12577         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12578         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12579         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12580         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12581         * sysdeps/x86_64/dl-machine.h: Likewise.
12582         * tls.make.c: Likewise.
12583
12584         * configure.in: Remove --with-__thread option.  Make tests for
12585         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
12586         tls_model attribute fail if no support is available.  Remove
12587         USE_IN_LIBIO.
12588         * Makeconfig: Adjust for dropped configure option.  All features are
12589         now mandatory.
12590         * Makerules: Likewise.
12591         * Versions.def: Likewise.
12592         * argp/argp-fmtstream.c: Likewise.
12593         * argp/argp-fmtstream.h: Likewise.
12594         * argp/argp-help.c: Likewise.
12595         * assert/assert.c: Likewise.
12596         * config.h.in: Likewise.
12597         * config.make.in: Likewise.
12598         * configure: Likewise.
12599         * configure.in: Likewise.
12600         * csu/Versions: Likewise.
12601         * csu/init.c: Likewise.
12602         * elf/tst-audit2.c: Likewise.
12603         * elf/tst-tls10.c: Likewise.
12604         * elf/tst-tls10.h: Likewise.
12605         * elf/tst-tls11.c: Likewise.
12606         * elf/tst-tls12.c: Likewise.
12607         * elf/tst-tls14.c: Likewise.
12608         * elf/tst-tlsmod11.c: Likewise.
12609         * elf/tst-tlsmod12.c: Likewise.
12610         * elf/tst-tlsmod13.c: Likewise.
12611         * elf/tst-tlsmod13a.c: Likewise.
12612         * elf/tst-tlsmod14a.c: Likewise.
12613         * elf/tst-tlsmod15b.c: Likewise.
12614         * elf/tst-tlsmod16a.c: Likewise.
12615         * elf/tst-tlsmod16b.c: Likewise.
12616         * elf/tst-tlsmod7.c: Likewise.
12617         * elf/tst-tlsmod8.c: Likewise.
12618         * elf/tst-tlsmod9.c: Likewise.
12619         * gmon/gmon.c: Likewise.
12620         * grp/fgetgrent_r.c: Likewise.
12621         * grp/putgrent.c: Likewise.
12622         * hurd/fopenport.c: Likewise.
12623         * include/libc-symbols.h: Likewise.
12624         * include/tls.h: Likewise.
12625         * intl/gettextP.h: Likewise.
12626         * intl/loadinfo.h: Likewise.
12627         * locale/global-locale.c: Likewise.
12628         * locale/localeinfo.h: Likewise.
12629         * mach/devstream.c: Likewise.
12630         * malloc/arena.c: Likewise.
12631         * malloc/set-freeres.c: Likewise.
12632         * misc/err.c: Likewise.
12633         * misc/getttyent.c: Likewise.
12634         * misc/mntent_r.c: Likewise.
12635         * posix/getopt.c: Likewise.
12636         * posix/wordexp.c: Likewise.
12637         * pwd/fgetpwent_r.c: Likewise.
12638         * resolv/Versions: Likewise.
12639         * resolv/res_hconf.c: Likewise.
12640         * shadow/fgetspent_r.c: Likewise.
12641         * shadow/putspent.c: Likewise.
12642         * stdio-common/printf_fphex.c: Likewise.
12643         * stdio-common/tmpfile.c: Likewise.
12644         * stdlib/abort.c: Likewise.
12645         * stdlib/fmtmsg.c: Likewise.
12646         * sunrpc/auth_unix.c: Likewise.
12647         * sunrpc/clnt_perr.c: Likewise.
12648         * sunrpc/clnt_tcp.c: Likewise.
12649         * sunrpc/clnt_udp.c: Likewise.
12650         * sunrpc/clnt_unix.c: Likewise.
12651         * sunrpc/openchild.c: Likewise.
12652         * sunrpc/svc_simple.c: Likewise.
12653         * sunrpc/svc_tcp.c: Likewise.
12654         * sunrpc/svc_udp.c: Likewise.
12655         * sunrpc/svc_unix.c: Likewise.
12656         * sunrpc/xdr.c: Likewise.
12657         * sunrpc/xdr_array.c: Likewise.
12658         * sunrpc/xdr_rec.c: Likewise.
12659         * sunrpc/xdr_ref.c: Likewise.
12660         * sunrpc/xdr_stdio.c: Likewise.
12661
12662 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
12663
12664         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12665
12666 2011-07-03  Andreas Jaeger  <aj@suse.de>
12667
12668         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
12669         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
12670         regenerate with gen-libm-tests.pl.
12671
12672 2010-05-12  Petr Baudis  <pasky@suse.cz>
12673
12674         [BZ #11589]
12675         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
12676         around j0() zero points by switching to j1().
12677         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12678         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12679         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12680         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12681
12682 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
12683
12684         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
12685         instead of 0.
12686         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
12687         instead of 0.                              .
12688         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12689         Patch in part by Pavel Roskin <proski@gnu.org>.
12690
12691         [BZ #13138]
12692         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
12693         realloc.
12694         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
12695         Free memory block if necessary.
12696
12697         [BZ #12847]
12698         * libio/genops.c (INTDEF): For string streams the _lock pointer can
12699         be NULL.  Don't lock in this case.
12700
12701 2011-09-09  Roland McGrath  <roland@hack.frob.com>
12702
12703         * elf/elf.h (ELFOSABI_GNU): New macro.
12704         (ELFOSABI_LINUX): Define to that.
12705
12706 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
12707
12708         * string/strncat.c (strncat): Undef the symbol in case it has been
12709         defined in bits/string.h.
12710
12711 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
12712
12713         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
12714
12715         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
12716         link map.
12717
12718 2011-08-17  Andreas Jaeger  <aj@suse.de>
12719
12720         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
12721
12722 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
12723             Ian Lance Taylor  <iant@google.com>
12724
12725         * math/libm-test.inc (lround_test): New testcase.
12726         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
12727
12728 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
12729
12730         * Makefile: Remove support for automatic cvs check-ins.
12731         * Makerules: Likewise.
12732         * config.make.in: Likewise.
12733         * configure.in: Likewise.
12734         * intl/Makefile: Likewise.
12735         * locale/Makefile: Likewise.
12736         * po/Makefile: Likewise.
12737         * posix/Makefile: Likewise.
12738         * sysdeps/gnu/Makefile: Likewise.
12739         * sysdeps/mach/hurd/Makefile: Likewise.
12740         * sysdeps/sparc/sparc32/Makefile: Likewise.
12741
12742         [BZ #13118]
12743         * posix/Makefile (bug-regex32-ENV): Define.
12744         Patch by John Stanley <jpsinthemix@verizon.net>.
12745
12746         * misc/Makefile (headers): Add bits/select2.h.
12747         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
12748         * misc/bits/select2.h: New file.
12749         * include/bits/select2.h: New file.
12750         * debug/Makefile (routines): Add fdelt_chk.
12751         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
12752         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
12753         FD_ISSET.
12754         * debug/fdelt_chk.c: New file.
12755
12756         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
12757         * wcsmbs/test-wmemcmp.c: Likewise.
12758         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
12759         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
12760
12761 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12762
12763         * string/Makefile (strop-tests): Add memcmp.
12764         * string/test-wmemcmp.c: New file.
12765         * string/test-memcmp.c: Add wmemcmp support.
12766
12767 2011-09-08  Roland McGrath  <roland@hack.frob.com>
12768
12769         [BZ #13153]
12770         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
12771         2011-07-19 change.
12772
12773         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
12774         garbage value in a __mach_port_mod_refs call in the cases of the
12775         task-self and thread-self ports.
12776
12777 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12778
12779         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
12780
12781 2011-09-08  Andreas Schwab  <schwab@redhat.com>
12782
12783         * elf/dl-load.c (lose): Check for non-null L.
12784
12785 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
12786
12787         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
12788
12789         * elf/dl-libc.c (dlerror_run): Pass back error code from
12790         dl_catch_error.
12791
12792         [BZ #13123]
12793         * elf/dl-load.c (lose): Free l_origin if it is valid.
12794
12795         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
12796         names.
12797         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
12798         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
12799         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
12800         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
12801         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
12802         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
12803
12804 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12805
12806         * sysdeps/powerpc/fpu/e_hypot.c: New file.
12807         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
12808         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
12809         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
12810         * sysdeps/powerpc/fpu/k_cosf.c: New file.
12811         * sysdeps/powerpc/fpu/k_sinf.c: New file.
12812         * sysdeps/powerpc/fpu/s_cosf.c: New file.
12813         * sysdeps/powerpc/fpu/s_sinf.c: New file.
12814         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
12815         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
12816
12817 2011-08-15  Alan Modra  <amodra@gmail.com>
12818
12819         [BZ #13092]
12820         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
12821         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
12822         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
12823         ppc_mcount to static-only-routines.
12824         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
12825         __mcount_internal.
12826         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
12827         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
12828
12829 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
12830
12831         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
12832         for finite and infinity parameters.
12833
12834 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12835
12836         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
12837         and add nop instructions for throughput optimization.
12838         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
12839
12840 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
12841
12842         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
12843         aligned copy for power7 with vector-scalar instructions.
12844         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
12845
12846 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
12847
12848         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
12849         AVX check.
12850
12851 2011-09-07  Andreas Schwab  <schwab@redhat.com>
12852
12853         [BZ #13144]
12854         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
12855         last change.
12856
12857 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
12858
12859         * sysdeps/unix/sysv/linux/x86_64/init-first.c
12860         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
12861         syscall wrapper around clock_gettime in __vdso_clock_gettime.
12862         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
12863         clock_gettime.
12864
12865 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
12866
12867         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
12868         Forgot to demangle the pointer.
12869
12870         * sysdeps/i386/sysdep.h: Define atom_text_section.
12871         * sysdeps/x86_64/sysdep.h: Likewise.
12872         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
12873         section with atom_text_section.
12874         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
12875         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
12876         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
12877         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
12878         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
12879
12880         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
12881         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
12882         already be defined.  Change to take two parameters and don't assign
12883         result to variable.  Adjust all users.
12884         Define INTERNAL_GETTIME if not already defined.
12885         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
12886         call.
12887         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
12888         HAVE_CLOCK_GETTIME_VSYSCALL.
12889         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
12890
12891         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
12892         gettimeofday vsyscall, just use time.
12893
12894 2011-09-06  Andreas Schwab  <schwab@redhat.com>
12895
12896         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
12897         <errno.h>.
12898
12899 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
12900
12901         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
12902         syscall on x86-64.
12903         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
12904         syscall.
12905         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
12906         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
12907         syscall if possible.
12908
12909 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
12910
12911         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
12912         e_ident.  Don't pass to find_mapsXX.
12913         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
12914
12915 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12916
12917         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12918         strchr-sse2-no-bsf strrchr-sse2-no-bsf
12919         * sysdeps/x86_64/multiarch/strchr.S: Update.
12920         Check bit_slow_BSF bit.
12921         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
12922         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
12923         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
12924
12925 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
12926
12927         [BZ #13134]
12928         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
12929         before glibc 2.15.
12930         (tryshell): Define.
12931         (__spawni): Change last parameter to be flag.  Test
12932         SPAWN_XFLAGS_USE_PATH flag to use path or not.
12933         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
12934         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
12935         * posix/spawni.c: Likewise.
12936         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
12937         * posix/spawnp.c: Likewise.  Change normal version to use
12938         SPAWN_XFLAGS_USE_PATH.
12939         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
12940         SPAWN_XFLAGS_TRY_SHELL.
12941
12942         [BZ #13150]
12943         * posix/glob.h: Remove gcc 1.x support.
12944
12945         [BZ #13068]
12946         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
12947
12948 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12949
12950         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12951         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
12952         strrchr-sse2-bsf
12953         * sysdeps/i386/i686/multiarch/strchr.S: New file.
12954         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
12955         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
12956         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
12957         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
12958         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
12959
12960 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12961
12962         * sysdeps/x86_64/wcscmp.S: New file.
12963
12964         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
12965         wcscmp-c wcscmp-sse2
12966         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
12967         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
12968         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
12969         * wcsmbs/wcscmp.c: Allow renaming.
12970
12971 2011-09-05  David S. Miller  <davem@davemloft.net>
12972
12973         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
12974         stack slot, rather than the struct return pointer slot.
12975         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
12976         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
12977         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
12978         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
12979
12980 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
12981
12982         * po/ja.po: Update from translation team.
12983
12984         [BZ #13144]
12985         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
12986         kernel in 64-bit binaries.
12987
12988 2011-09-01  David S. Miller  <davem@davemloft.net>
12989
12990         * elf/elf.h (HWCAP_SPARC_*): Move to..
12991         * sysdeps/sparc/sysdep.h: this new file and add new values.
12992         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
12993         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
12994         _DL_HWCAP_COUNT to 24.
12995         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
12996         entries.
12997         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
12998         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
12999         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
13000         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
13001         instead of magic constants.
13002         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13003
13004 2011-08-31  David S. Miller  <davem@davemloft.net>
13005
13006         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
13007         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
13008         Reimplement to do errno handling inline.
13009         (SYSCALL_ERROR_HANDLER): New macro.
13010         (__SYSCALL_STRING): Do not do errno handling in asm.
13011         (__CLONE_SYSCALL_STRING): Delete.
13012         (__INTERNAL_SYSCALL_STRING): Delete.
13013         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
13014         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
13015         (PSEUDO): Reimplement to do errno handling inline.
13016         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
13017         (SYSCALL_ERROR_HANDLER): New macro.
13018         (__SYSCALL_STRING): Do not do errno handling in asm.
13019         (__CLONE_SYSCALL_STRING): Delete.
13020         (__INTERNAL_SYSCALL_STRING): Delete.
13021         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
13022         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
13023         i386.
13024         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
13025         (inline_syscall*): Add 'err' argument.
13026         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
13027         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
13028         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
13029         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
13030
13031         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
13032         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
13033
13034 2011-08-30  Andreas Schwab  <schwab@redhat.com>
13035
13036         * elf/rtld.c (dl_main): Relocate objects in dependency order.
13037
13038 2011-08-29  Jiri Olsa <jolsa@redhat.com>
13039
13040         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
13041         directive.
13042
13043 2011-08-24  David S. Miller  <davem@davemloft.net>
13044
13045         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
13046
13047 2011-08-24  Andreas Schwab  <schwab@redhat.com>
13048
13049         * elf/Makefile: Add rules to build and run unload8 test.
13050         * elf/unload8.c: New file.
13051         * elf/unload8mod1.c: New file.
13052         * elf/unload8mod1x.c: New file.
13053         * elf/unload8mod2.c: New file.
13054         * elf/unload8mod3.c: New file.
13055
13056         * elf/dl-close.c (_dl_close_worker): Reset private search list if
13057         it wasn't used.
13058
13059 2011-08-23  David S. Miller  <davem@davemloft.net>
13060
13061         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
13062         subtract stack bias.
13063         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
13064         %sp not %fp in calculations.
13065         (_JMPBUF_UNWINDS_ADJ): Likewise.
13066
13067         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
13068         (aio_suspend): Call it to force an exception region around the
13069         AIO_MISC_WAIT() invocation.
13070
13071 2011-08-23  Andreas Schwab  <schwab@redhat.com>
13072
13073         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
13074         backslash.
13075
13076 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
13077
13078         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
13079         protection macro.
13080         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
13081         and <dl-machine.h>.
13082         (Elf64_FuncDesc): Remove.
13083
13084 2011-08-22  David S. Miller  <davem@davemloft.net>
13085
13086         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
13087         sigaltstack check, add missing cfi directives.
13088         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
13089         missing cfi directives, and sigaltstack handling.
13090
13091 2011-08-16  Andreas Schwab  <schwab@redhat.com>
13092
13093         [BZ #11724]
13094         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
13095         object is seen twice.
13096         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13097
13098         * elf/Makefile (distribute): Add tst-initorder2.c.
13099         (tests): Add tst-initorder2.
13100         (modules-names): Add tst-initorder2a tst-initorder2b
13101         tst-initorder2c tst-initorder2d.  Add rules to build them.
13102         ($(objpfx)tst-initorder2.out): New rule.
13103         * elf/tst-initorder2.c: New file.
13104         * elf/tst-initorder2.exp: New file.
13105
13106 2011-08-22  Andreas Schwab  <schwab@redhat.com>
13107
13108         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
13109
13110         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
13111         dependencies back to end of function.
13112
13113         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
13114         $(elfobjdir)/ld.so.
13115
13116 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
13117
13118         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
13119         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
13120         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
13121         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
13122         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
13123         of __vdso_gettimeofday.
13124         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
13125         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
13126         attribute_hidden.
13127         (_libc_vdso_platform_setup): Remove initialization of
13128         __vdso_gettimeofday and __vdso_time.
13129
13130 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
13131
13132         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
13133         and fgetc_unlocked.
13134         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
13135         getc_unlocked.
13136
13137         * elf/dl-open.c (add_to_global): Report additions to the global scope
13138         for LD_DEBUG=scopes.
13139         (dl_open_worker): Also print scope of newly loaded dependencies.
13140         (_dl_show_scope): Indicate if there is no scope.
13141
13142         [BZ #13114]
13143         * stdio-common/Makefile (tests): Add bug24.
13144         * stdio-common/bug24.c: New file.
13145
13146 2011-08-19  Andreas Jaeger  <aj@suse.de>
13147
13148         [BZ #13114]
13149         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
13150         non-existant file when using close-on-exec mode.
13151
13152 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
13153
13154         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
13155         the very first instruction.
13156
13157         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
13158         the CFI state in the end.
13159         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
13160         inclusion of dl-trampoline.h.
13161         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
13162
13163 2011-08-19  Andreas Schwab  <schwab@redhat.com>
13164
13165         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
13166         expectations for long double.
13167
13168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
13169         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
13170
13171 2011-08-14  David S. Miller  <davem@davemloft.net>
13172
13173         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
13174         artificual limit depends upon the system page size.
13175
13176 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
13177
13178         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
13179         * resolv/Makefile: Define CFLAGS-libresolv.
13180
13181 2011-08-17  Andreas Schwab  <schwab@redhat.com>
13182
13183         * nss/makedb.c (compute_tables): Make variables used in nested
13184         function static.
13185
13186 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
13187
13188         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
13189         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
13190         if buffer was too small.
13191
13192         * elf/pldd.c (main): Attach to all threads in the process.
13193         Rewrite /proc handling to use *at functions.
13194
13195 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
13196
13197         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
13198         specifies first scope to show.
13199         (dl_open_worker): Update callers.  Move printing scope of new
13200         object to before the relocation.
13201         * elf/rtld.c (dl_main): Update _dl_show_scope call.
13202         * sysdeps/generic/ldsodefs.h: Update declaration.
13203
13204         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
13205         string for the scope number.
13206
13207 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
13208
13209         * nscd/servicescache.c (cache_addserv): Make sure written is always
13210         initialized.
13211
13212 2011-08-14  Roland McGrath  <roland@hack.frob.com>
13213
13214         * sysdeps/i386/i486/bits/atomic.h
13215         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
13216         statement expression, so as to suppress "set but not used" warning.
13217         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
13218
13219         * string/strncat.c (STRNCAT): Use prototype definition.
13220
13221         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
13222         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
13223         -Iprograms here.
13224         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
13225         (localedef-modules): Add localedef.
13226         (locale-modules): Add locale.
13227
13228         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
13229         * elf/rtld.c (dl_main): Invert order of assignment in last change,
13230         to avoid a warning.
13231
13232 2011-08-14  David S. Miller  <davem@davemloft.net>
13233
13234         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
13235         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
13236
13237 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
13238
13239         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
13240         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
13241         * elf/rtld.c (dl_main): Set l_name of vDSO.
13242         Call _dl_show_scope when DL_DEBUG_SCOPES.
13243         (process_dl_debug): Recognize scopes flag and also set it for all.
13244         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
13245         Declare _dl_show_scope.
13246
13247         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
13248         (do_dlopen): Pass caller_dlopen to dl_open.
13249         (__libc_dlopen_mode): Initialize caller_dlopen.
13250
13251         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
13252         of libc.  Make tolower call locale-independent.  Optimize a bit by
13253         using isdigit instead of isalnum.
13254         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
13255
13256 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
13257
13258         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
13259         was a dependency or dynamically loaded.
13260
13261 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
13262
13263         * intl/l10nflist.c: Allow architecture-specific pop function.
13264         * sysdeps/x86_64/l10nflist.c: New file.
13265
13266         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
13267         classification.
13268
13269 2011-08-10  Andreas Schwab  <schwab@redhat.com>
13270
13271         * include/dirent.h: Add libc_hidden_proto for scandirat and
13272         scandirat64.  Don't declare __scandirat64.
13273         * dirent/scandirat.c: Add libc_hidden_def.
13274         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
13275         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
13276
13277 2011-08-10  David S. Miller  <davem@davemloft.net>
13278
13279         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
13280         enum.
13281         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
13282         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
13283         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
13284
13285 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
13286
13287         * Versions.def [libc]: Add GLIBC_2.15.
13288         * dirent/Makefile (routines): Add scandirat and scandirat64.
13289         * dirent/Versions [libc]: Export scandirat and scandirat64 for
13290         GLIBC_2.15.
13291         * dirent/dirent.h: Declare scandirat and scandirat64.
13292         * dirent/scandirat.c: New file.
13293         * dirent/scandirat64.c: New file.
13294         * sysdeps/wordsize-64/scandirat.c: New file.
13295         * sysdeps/wordsize-64/scandirat64.c: New file.
13296         * dirent/opendir.c: Define opendirat.
13297         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
13298         using scandirat.
13299         * dirent/scandir64.c: Adjust for scandir.c change.
13300         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
13301         __scandirat64, and __scandir_cancel_handler.
13302         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
13303         additional parameter and use openat instead of open (outside of ld.so).
13304         Add new __opendir as wrapper around __opendirat.
13305         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
13306         here without requiring old scandirat implementation.
13307
13308 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
13309
13310         * dirent/scandir.c (cancel_handler): Renamed to
13311         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
13312         defined.  Adjust users.
13313         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
13314         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
13315
13316 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
13317
13318         * string/test-string.h (IMPL): Use __STRING to expand name and then
13319         stringify it.
13320
13321         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
13322         of cleanups.
13323
13324 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13325
13326         * string/Makefile: Update.
13327         (strop-tests): Append strncat.
13328         * string/test-wcscmp.c: New file.
13329         New comprehensive test for wcscmp.
13330         * string/test-strcmp.c: Update.
13331         (WIDE): New define.
13332
13333 2011-07-22  Andreas Schwab  <schwab@redhat.com>
13334
13335         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
13336         line.
13337
13338 2011-07-26  Andreas Schwab  <schwab@redhat.com>
13339
13340         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
13341         encoding to ACE if AI_IDN.
13342
13343 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
13344
13345         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
13346         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
13347
13348 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13349
13350         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
13351         Fix overflow bug in strncat.
13352         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
13353
13354         * string/test-strncat.c: Update.
13355         Add new tests for checking overflow bugs.
13356
13357 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13358
13359         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13360         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
13361         * sysdeps/i386/i686/multiarch/strcat.S: New file.
13362         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
13363         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
13364         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
13365         * sysdeps/i386/i686/multiarch/strncat.S: New file.
13366         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
13367         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
13368
13369         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
13370         (USE_AS_STRCAT): Define.
13371         Add strcat and strncat support.
13372         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
13373
13374 2011-07-25  Andreas Schwab  <schwab@redhat.com>
13375
13376         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
13377         __n bigger than INT_MAX+1.
13378         (__strncmp_g): Likewise.
13379
13380 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
13381
13382         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
13383         * libio/stido.h: Likewise.
13384
13385         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
13386         (AF_NFC): Define.
13387         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
13388         (AF_NFC): Define.
13389
13390         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
13391         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
13392         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
13393         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
13394         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
13395
13396         [BZ #13021]
13397         * scripts/test-installation.pl: Don't expect libnss_test1 to be
13398         installed.
13399
13400         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
13401         typo.
13402         (_dl_x86_64_save_sse): Likewise.
13403
13404 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
13405
13406         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
13407         OSXSAVE.
13408         (_dl_x86_64_save_sse): Likewise.
13409
13410         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
13411
13412         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
13413
13414 2011-07-21  Andreas Schwab  <schwab@redhat.com>
13415
13416         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
13417         change.
13418         (_dl_x86_64_save_sse): Use correct AVX check.
13419
13420 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13421
13422         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
13423         bug in strncpy/strncat.
13424         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
13425
13426 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
13427
13428         * string/tester.c (test_strcat): Add tests for different alignments
13429         of source and destination.
13430         (test_strncat): Likewise.
13431
13432 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
13433
13434         [BZ #12852]
13435         * posix/glob.c (glob): Check passed in values before using them in
13436         expressions to avoid some overflows.
13437         (glob_in_dir): Likewise.
13438
13439         [BZ #13007]
13440         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
13441         check for AVX enablement so that we don't crash with old kernels and
13442         new hardware.
13443         * elf/tst-audit4.c: Add same checks here.
13444         * elf/tst-audit6.c: Likewise.
13445
13446         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
13447
13448 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
13449
13450         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
13451
13452 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
13453
13454         * po/cs.po: Update from translation team.
13455         * po/bg.po: Likewise.
13456
13457 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
13458
13459         * misc/sys/cdefs.h: Add support for const attribute.
13460         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
13461         to gnu_dev_{major,minor,makedev} functions.
13462
13463 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
13464
13465         * intl/dcigettext.c (get_output_charset): Add missing bracket.
13466
13467 2011-07-20  Andreas Schwab  <schwab@redhat.com>
13468
13469         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
13470         strlen results.
13471
13472 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13473
13474         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
13475         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
13476         register in order to avoid conflicts with the soft frame pointer
13477         being held in r11 when necessary.
13478         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
13479         (INTERNAL_VSYSCALL_NCS): Likewise.
13480
13481 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
13482
13483         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
13484         * elf/dl-fini.c (_dl_fini): Adjust caller.
13485         * elf/dl-close.c (_dl_close_worker): Likewise.
13486         * sysdeps/generic/ldsodefs.h: Adjust declaration.
13487
13488 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
13489
13490         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
13491         "aux_cache->nlibs < 0".
13492
13493         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
13494         in the reload-count case.
13495
13496 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13497
13498         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13499         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
13500         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
13501         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
13502         * sysdeps/x86_64/multiarch/strcat.S: New file.
13503         * sysdeps/x86_64/multiarch/strncat.S: New file.
13504         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
13505         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
13506         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
13507         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
13508         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
13509         (USE_AS_STRCAT): Define.
13510         Add strcat and strncat support.
13511         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
13512         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
13513         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
13514         * string/strncat.c: Update.
13515         (USE_AS_STRNCAT): Define.
13516         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13517         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
13518         and i7.
13519         * sysdeps/x86_64/multiarch/init-arch.h
13520         (bit_Prefer_PMINUB_for_stringop): New.
13521         (index_Prefer_PMINUB_for_stringop): Likewise.
13522         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
13523         bit_Prefer_PMINUB_for_stringop.
13524
13525 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
13526
13527         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
13528         buffer64.
13529         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
13530         of casting of buffer.
13531         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
13532         buffer32 and buffer64.
13533         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
13534         writes instead of casting of buffer.
13535         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
13536         buffer32.
13537         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
13538         casting of buffer.
13539
13540 2011-07-19  Andreas Schwab  <schwab@redhat.com>
13541
13542         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
13543
13544 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
13545
13546         * nscd/nscd.c (termination_handler): Don't do anything for a database
13547         if it has not yet been initialized.
13548
13549 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
13550
13551         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
13552
13553 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
13554
13555         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
13556
13557 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
13558
13559         * po/nl.po: Update from translation team.
13560         * po/sv.po: Likewise.
13561
13562 2011-07-16  Roland McGrath  <roland@hack.frob.com>
13563
13564         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
13565         now disallowed by GCC.
13566
13567         * configure.in (use-default-link): Default to yes if a test -shared
13568         link meets our qualifications.
13569         * configure: Regenerated.
13570
13571         * config.make.in (output-format): New variable.
13572         * configure.in: Check for ld --print-output-format support.
13573         * configure: Regenerated.
13574         * Makerules ($(common-objpfx)format.lds)
13575         [$(output-format) != unknown]: Just use $(output-format),
13576         instead of the linker-script munging.
13577
13578 2011-07-14  Roland McGrath  <roland@hack.frob.com>
13579
13580         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
13581         of $(common-objpfx)shlib.lds.
13582         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
13583
13584         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
13585         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
13586
13587         * configure.in (-z relro check): Adjust test code to add a large
13588         writable data section after it.
13589         * configure: Regenerated.
13590
13591 2011-07-11  Roland McGrath  <roland@hack.frob.com>
13592
13593         * configure.in (-z relro check): Fix test code to make the variable
13594         truly const.
13595         * configure: Regenerated.
13596
13597 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
13598
13599         * nscd/nscd.h (struct traced_file): Define.
13600         (struct database_dyn): Remove inotify_descr, reset_res, and filename
13601         elements.  Add traced_files.
13602         (inotify_fd): Declare.
13603         (register_traced_file): Declare.
13604         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
13605         (inotify_fd): Export.
13606         (resolv_conf_descr): Remove.
13607         (nscd_init): Move inotify descriptor creation to main.
13608         Don't register files for notification here.
13609         (register_traced_file): New function.
13610         (invalidate_cache): Don't use reset_res to determine whether to call
13611         res_init, go through the list of registered files.
13612         (main_loop_poll): The inotify descriptors are now stored in the
13613         structures for the traced files.
13614         (main_loop_epoll): Likewise
13615         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
13616         to __nss_disable_nscd.
13617         * nscd/cache.c (prune_cache): There is no single inotify descriptor
13618         for a database anymore.  Check the records for all the registered
13619         files instead.
13620         * nss/Makefile (libnss_files-routines): Add files-init.
13621         (libnss_db-routines): Add db-init.
13622         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
13623         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
13624         * nss/nss_db/db-init.c: New file.
13625         * nss/nss_files/files-init.c: New file.
13626         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
13627         __nss_lookup_function.
13628         (__nss_lookup_function): Call nss_load_library.
13629         (nss_load_all_libraries): New function.
13630         (__nss_disable_nscd): Take parameter with callback function for files
13631         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
13632         used for the cached services.
13633         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
13634         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
13635         options for features to all the files in nscd.
13636
13637         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
13638
13639 2011-07-10  Roland McGrath  <roland@hack.frob.com>
13640
13641         * csu/elf-init.c (__libc_csu_init): Comment typo.
13642
13643 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
13644
13645         * po/pl.po: Update from translation team.
13646         * po/ja.po: Likewise.
13647         * po/ru.po: Likewise.
13648         * po/ko.po: Likewise.
13649         * po/fr.po: Likewise.
13650
13651 2011-07-09  Roland McGrath  <roland@hack.frob.com>
13652
13653         * configure.in (.ctors/.dtors header and trailer check):
13654         Use an empirical test on a built program.
13655         * configure: Regenerated.
13656
13657         * configure.in (-z relro check): Use an empirical test on a built DSO.
13658         Detect, but do not require, on ia64.
13659         * configure: Regenerated.
13660
13661         * configure.in (READELF): Find it with AC_CHECK_TOOL.
13662         Update tests that use readelf to use $READELF instead.
13663         * configure: Regenerated.
13664
13665 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
13666
13667         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
13668         if the result is not used.
13669
13670 2011-07-05  Andreas Jaeger  <aj@suse.de>
13671
13672         [BZ#9696]
13673         * stdlib/tst-strtod.c: Add testcase.
13674
13675 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
13676
13677         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
13678         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
13679         The latter has a higher limit.  Take additional parameter to pass to
13680         the new function.
13681         (__pathconf): Pass file to __statfs_link_max.
13682         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
13683         __statfs_link_max.
13684         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
13685         __statfs_link_max.
13686
13687         [BZ #12868]
13688         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
13689         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
13690         Handle Lustre.
13691         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
13692         (__statfs_filesize_max): Likewise.
13693         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
13694
13695 2011-07-05  Andreas Jaeger  <aj@suse.de>
13696
13697         * resolv/res_comp.c (dn_skipname): Remove unused variable.
13698
13699 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
13700
13701         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
13702         `status' variable.
13703         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
13704         Likewise.
13705
13706 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
13707
13708         * Makefile (strop-tests): Add strncat.
13709         * string/test-strncat.c: New file.
13710
13711 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
13712
13713         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
13714
13715 2011-06-21  Andreas Jaeger  <aj@suse.de>
13716
13717         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
13718         Copy rule from iconvdata/Makefile.
13719
13720 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
13721
13722         [BZ #12922]
13723         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
13724         but no long options are defined, just return 'W'.
13725
13726 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
13727
13728         [BZ #9696]
13729         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
13730
13731 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
13732
13733         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
13734         netgroups to read.
13735         (innetgr): Likewise.
13736
13737 2011-07-05  Roland McGrath  <roland@hack.frob.com>
13738
13739         * config.make.in (install_root): Default to $(DESTDIR).
13740
13741 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
13742
13743         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
13744
13745 2011-07-02  Roland McGrath  <roland@hack.frob.com>
13746
13747         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
13748
13749         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
13750         containing directory rather than embedding absolute directory names.
13751
13752         * scripts/check-local-headers.sh: Rewritten using awk.
13753         Match by word, not by line.  Print error messages for matches.
13754         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
13755
13756         * Makerules [shlib-lds-flags empty]:
13757         ($(common-objpfx)libc_pic.opts): New target.
13758         ($(common-objpfx)libc_pic.os.clean): New target.
13759         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
13760
13761         * config.make.in (OBJCOPY): New variable.
13762         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
13763         * configure: Regenerated.
13764
13765         * config.make.in (use-default-link): New variable.
13766         * configure.in (use_default_link): Grok --with-default-link to set it.
13767         * configure: Regenerated.
13768         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
13769         (shlib-lds, shlib-lds-flags): Define to empty.
13770
13771         * Makerules (shlib-lds): New variable.
13772         (shlib-lds-flags): New variable.
13773         (build-shlib, build-moduile, build-module-asneeded): Use it.
13774         ($(common-objpfx)libc.so): Use $(shlib-lds).
13775         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
13776         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
13777
13778         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
13779         DT_FLAGS/DT_FLAGS_1 with zero flags.
13780
13781         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
13782         linker script munging.
13783
13784 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
13785
13786         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
13787         as 128-bit value.
13788         * crypt/sha512.c (sha512_process_block): Perform total addition using
13789         128-bit if possible.
13790         (__sha512_finish_ctx): Likewise.
13791         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
13792         as 64-bit value.
13793         * crypt/sha256.c (SWAP64): Define.
13794         (sha256_process_block): Perform total addition using 64-bit if
13795         possible.
13796         (__sha256_finish_ctx): Likewise.
13797
13798 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
13799
13800         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
13801         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13802         * nscd/hstcache.c (cache_addhst): Likewise.
13803         * nscd/grpcache.c (cache_addgr): Likewise.
13804         * nscd/aicache.c (addhstaiX): Likewise
13805         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
13806
13807 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
13808
13809         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
13810         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13811         * nscd/hstcache.c (cache_addhst): Likewise.
13812         * nscd/grpcache.c (cache_addgr): Likewise.
13813         * nscd/aicache.c (addhstaiX): Likewise
13814
13815 2011-07-01  Andreas Schwab  <schwab@redhat.com>
13816
13817         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
13818         domain only when needed.
13819
13820 2011-06-30  Andreas Schwab  <schwab@redhat.com>
13821
13822         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
13823         is always restored.
13824
13825 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
13826
13827         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
13828         are re-adding the entry.
13829         * nscd/servicescache.c (cache_addserv): Likewise.
13830
13831 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
13832
13833         * sysdeps/generic/dl-irel.h: fix protection against multiple
13834         inclusions.
13835         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
13836
13837 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
13838
13839         [BZ #12935]
13840         * malloc/memusage.sh: Fix quoting in message.
13841         * debug/xtrace.sh: Likewise.
13842
13843         * configure.in: Remove support for --experimental-malloc option, make
13844         it the default.
13845         * config.make.in: Likewise.
13846         * malloc/Makefile: Likewise.
13847
13848 2011-06-27  Andreas Schwab  <schwab@redhat.com>
13849
13850         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
13851         two-byte characters.
13852
13853 2011-06-27  Roland McGrath  <roland@hack.frob.com>
13854
13855         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
13856         AC_CACHE_CHECK invocation.
13857         * configure: Regenerated.
13858
13859         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
13860
13861 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
13862
13863         [BZ #12350]
13864         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
13865         bit from old_res_options.
13866
13867         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
13868
13869         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
13870         value type for setfct.
13871
13872 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
13873
13874         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
13875         __gettimeofday instead of gettimeofday.
13876
13877 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
13878
13879         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
13880
13881 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
13882
13883         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
13884
13885         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
13886         info.
13887
13888 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13889
13890         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13891         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
13892         strcpy-sse2-unaligned strncpy-sse2-unaligned
13893         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
13894         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
13895         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
13896         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
13897         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
13898         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
13899         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
13900         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
13901         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
13902         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
13903         (STRCPY): Support SSE2 and SSSE3 versions.
13904
13905 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
13906
13907         [BZ #12874]
13908         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
13909         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
13910         kernels which artificially limit size of requests.
13911
13912 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13913
13914         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13915         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
13916         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
13917         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
13918         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
13919         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
13920         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
13921         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
13922         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
13923         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
13924         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
13925         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
13926         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
13927         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
13928         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
13929         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13930         Enable unaligned load optimization for Intel Core i3, i5 and i7
13931         processors.
13932         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
13933         Define.
13934         (index_Fast_Unaligned_Load): Define.
13935         (HAS_FAST_UNALIGNED_LOAD): Define.
13936
13937 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
13938
13939         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
13940
13941 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
13942
13943         [BZ #12907]
13944         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
13945         until it is clear that the information is realy needed.
13946         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
13947
13948 2011-06-22  Andreas Schwab  <schwab@redhat.com>
13949
13950         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
13951
13952 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
13953
13954         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
13955         /sys/devices/system/cpu/online if it is usable.
13956
13957         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
13958         reading the information from the /proc filesystem to once a second.
13959
13960 2011-06-21  Andreas Jaeger  <aj@suse.de>
13961
13962         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
13963         NULL after inclusion of kernel headers.
13964
13965 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
13966
13967         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
13968         calls to internal_setent.
13969
13970         [BZ #12885]
13971         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
13972         addresses using gethostbyname4_r ignore IPv4 addresses.
13973
13974         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
13975         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
13976
13977         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
13978
13979 2011-06-20  David S. Miller  <davem@davemloft.net>
13980
13981         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
13982         inclusions.
13983         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
13984
13985         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
13986         (elf_irel): Use it.
13987         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
13988         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
13989         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
13990         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
13991         * sysdeps/x86_64/dl-irel.h: Likewise.
13992
13993         * elf/dl-runtime.c: Use elf_ifunc_invoke.
13994         * elf/dl-sym.c: Likewise.
13995
13996 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
13997
13998         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
13999         need to dereference resplen2.
14000
14001 2011-06-14  Andreas Schwab  <schwab@redhat.com>
14002
14003         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
14004
14005 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
14006
14007         * Makeconfig: Define vardbdir and inst_vardbdir.
14008         * nss/Makefile: Add rules to install db-Makefile.
14009
14010         * nss/nss_db/db-XXX.c: Cleanup.
14011
14012         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
14013         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
14014         GLIBC_PRIVATE.
14015         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
14016         * nss/makedb.c: Implement -g option to specify that value strings
14017         are generated and should not be added to table iterated over for
14018         get*ent calls.
14019         * nss/nss_db/db-initgroups.c: New file.
14020
14021         * nss/getent.c: Add support for initgroups lookups through getgrouplist
14022         interface.
14023
14024         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
14025         (internal_getgrouplist): Adjust to name change.
14026         Update use_initgroups_entry if this is not the first call.
14027         * nss/databases.def: Add initgroups entry.
14028
14029         * nss/makedb.c (compute_tables): Check result of multiple hash table
14030         sizes to minimize maximum chain length.
14031
14032 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
14033
14034         * Versions.def: Add entry for libnss_db.
14035         * shlib-versions: Likewise.
14036         * nss/Makefile: Add rules to build libnss_db.
14037         * nss/Versions: Add libnss_db information.  Organize libnss_files
14038         entries better.
14039         * nss/db-Makefile: Add gshadow support.  Change rules for the new
14040         makedb progra.  Some minor improvements to generate smaller files.
14041         * nss/nss_db/nss_db.h: Move NSS database header data structures to
14042         here from...
14043         * nss/makedb.c: ...here.
14044         Improve database format to be smaller and require less memory at
14045         runtime.
14046         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
14047         db anymore.
14048         * nss/nss_db/db-netgrp.c: Likewise.
14049         * nss/nss_db/db-open.c: Likewise.
14050         * nss/nss_files/flies-XXX.x: Adjust comments.
14051         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
14052         * nss/nss_files/files-grp.c: Likewise.
14053         * nss/nss_files/files-hosts.c: Likewise.
14054         * nss/nss_files/files-network.c: Likewise.
14055         * nss/nss_files/files-proto.c: Likewise.
14056         * nss/nss_files/files-pwd.c: Likewise.
14057         * nss/nss_files/files-rpc.c: Likewise.
14058         * nss/nss_files/files-service.c: Likewise.
14059         * nss/nss_files/files-sgrp.c: Likewise.
14060         * nss/nss_files/files-spwd.c: Likewise.
14061         * nss/nss_db/db-alias.c: Removed.
14062         * nss/nss_db/dummy-db.h: Removed.
14063
14064 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
14065
14066         * nss/makedb.c: Rewritten to not use database library.
14067         * nss/Makefile: Update to build new makedb program.
14068
14069 2011-06-14  Andreas Jaeger  <aj@suse.de>
14070
14071         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
14072         memset declaration.
14073
14074 2011-06-10  Andreas Schwab  <schwab@redhat.com>
14075
14076         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
14077         tmpbuf.
14078
14079 2011-06-10  Roland McGrath  <roland@hack.frob.com>
14080
14081         * Makerules (shlib.lds): Fail if the linker script comes out empty.
14082         * elf/Makefile ($(objpfx)ld.so): Likewise.
14083
14084         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
14085         Don't list ld.so twice in dependencies.
14086
14087         * posix/bug-regex31.c: Include <stdlib.h>.
14088
14089         * nscd/hstcache.c (cache_addhst): Remove unused variable.
14090
14091         * nis/nss_compat/compat-spwd.c
14092         (getspent_next_nss_netgr): Remove unused variable.
14093         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
14094
14095         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
14096         nonmembers" output to use the right array.
14097
14098         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
14099
14100         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
14101
14102         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
14103         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
14104         * catgets/gencat.c (read_input_file): Likewise.
14105         * locale/programs/locarchive.c (enlarge_archive): Likewise.
14106
14107         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
14108         variable definition inside #if's controlling its use.
14109
14110         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
14111
14112         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
14113
14114         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
14115
14116         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
14117         unreachable code.
14118
14119         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
14120
14121         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
14122         * configure: Regenerated.
14123
14124         * Makerules: Revert last change.
14125         * elf/Makefile: Likewise.
14126
14127 2011-06-09  Roland McGrath  <roland@hack.frob.com>
14128
14129         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
14130         * elf/Makefile ($(objpfx)librtld.os): Likewise.
14131         (reloc-link): Likewise.
14132
14133 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
14134
14135         * elf/Makefile: Add rules to build pldd.
14136         * elf/pldd.c: New file.
14137         * elf/pldd-xx.c: New file.
14138
14139 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
14140
14141         * version.h: Update for 2.15 development version.
14142
14143 2011-06-07  David S. Miller  <davem@davemloft.net>
14144
14145         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
14146         ifuncs.
14147         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
14148         elf_machine_lazy_rel): Likewise.
14149         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
14150         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
14151         elf_machine_lazy_rel): Likewise.
14152         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
14153         dl_hwcap via passed in argument.
14154         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
14155         Likewise.
14156
14157 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14158
14159         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
14160
14161 2011-06-06  Roland McGrath  <roland@hack.frob.com>
14162
14163         [BZ #12849]
14164         * manual/fdl-1.1.texi: New file, verbatim from:
14165         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
14166         * manual/lgpl-2.1.texi: New file, verbatim from:
14167         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
14168         * manual/Makefile (licenses): New variable, list those new file names.
14169         (texis): Use it.
14170         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
14171
14172         * manual/fdl.texi: File removed.
14173         * manual/lesser.texi: File removed.
14174         * manual/libc.texinfo (Copying, Documentation License):
14175         Use new @include file names, put @appendix directive before @include.
14176
14177 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
14178
14179         [BZ #12841]
14180         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
14181         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
14182         (mq_open): Add __NTH.
14183
14184 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
14185
14186         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14187         Assume Intel Core i3/i5/i7 processor if AVX is available.
14188
14189 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
14190
14191         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
14192         typo.
14193
14194 2011-05-31  Andreas Schwab  <schwab@redhat.com>
14195
14196         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
14197         memory.  Use alloca_account.  Fix memory leak when retrying.
14198
14199 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
14200
14201         * version.h (RELEASE): Bump for 2.14 release.
14202         * include/features.h (__GLIBC_MINOR__): Bump to 14.
14203
14204         * config.make.in (RANLIB): Remove entry.
14205
14206 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
14207
14208         * po/Makefile (po-sed-cmd): Add ksh to extensions.
14209         (libc.pot): Work around missing support for .ksh extension in xgettext.
14210
14211         [BZ #12684]
14212         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
14213         if both request failed.
14214         (send_dg): In case of server errors clear resplen or *resplen2.
14215
14216         [BZ #12454]
14217         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
14218         when there are multiple maps.
14219         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
14220         (_dl_fini): Remove test here.
14221
14222         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
14223
14224 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
14225
14226         [BZ #12350]
14227         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
14228         bit from old_res_options.
14229         (gaih_inet): Likewise.
14230
14231         [BZ #11099]
14232         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
14233         as signed.
14234
14235         * resolv/res_init.c (res_setoptions): Make the code more compact.
14236
14237         [BZ #11558]
14238         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
14239         set RES_USEVC.
14240
14241         [BZ #11634]
14242         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
14243
14244         * malloc/malloc.h: Mark malloc hook variables as deprecated.
14245
14246         [BZ #11781]
14247         * malloc/malloc.h: Declare malloc hook variables as volatile.
14248
14249         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
14250         in last patch.
14251
14252         [BZ #11799]
14253         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
14254         raise in the comment.
14255         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
14256         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
14257         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
14258
14259 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
14260
14261         [BZ #12811]
14262         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
14263         grow the buffers more if it already has to be sufficient.
14264         (build_wcs_upper_buffer): Likewise.
14265         * posix/regexec.c (check_matching): Likewise.
14266         (clean_state_log_if_needed): Likewise.
14267         (extend_buffers): Don't enlarge buffers beyond size of the input
14268         buffer.
14269         Patches mostly by Emil Wojak <emil@wojak.eu>.
14270         * posix/bug-regex32.c: New file.
14271         * posix/Makefile (tests): Add bug-regex32.
14272
14273         * locale/findlocale.c (_nl_find_locale): Return right away if
14274         _nl_explode_name failed.
14275         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
14276
14277         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
14278
14279         * debug/xtrace.sh: Unify messages.
14280         * malloc/memusage.sh: Likewise.
14281
14282         [BZ #12813]
14283         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
14284         time symbol from vDSO.  Substitute with vsyscall if not available.
14285         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
14286         __vdso_time.
14287
14288         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
14289         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
14290         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
14291         Add sendmmsg and internal_sendmmsg.
14292         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
14293         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
14294         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
14295
14296         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
14297         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
14298         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
14299
14300 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
14301
14302         [BZ #12813]
14303         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
14304         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
14305         available.
14306         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
14307         __vdso_getcpu.
14308
14309         [BZ #12814]
14310         * iconvdata/Makefile (tests): Add bug-iconv9.
14311         * iconvdata/bug-iconv9.c: New file.
14312
14313 2011-05-27  Andreas Schwab  <schwab@redhat.com>
14314
14315         [BZ #12814]
14316         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
14317
14318 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
14319
14320         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
14321         (struct user_regs_struct): Change intcs field back to cs.
14322
14323 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
14324
14325         * po/ja.po: Update from translation team.
14326
14327 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
14328
14329         [BZ #12795]
14330         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
14331         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
14332
14333 2011-05-20  Andreas Schwab  <schwab@redhat.com>
14334
14335         * stdlib/longlong.h: Update from GCC.
14336
14337 2011-05-23  Andreas Schwab  <schwab@redhat.com>
14338
14339         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
14340         parameter name.
14341         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
14342         Add parameter name.
14343         (__sysconf): Pass it down.
14344
14345 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
14346
14347         [BZ #12671]
14348         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
14349         some situations.
14350         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
14351         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
14352         add in in __libc_use_alloca calls.  Adjust callers.
14353         (glob): Use malloc in some situations.
14354
14355         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
14356         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
14357         pltexit.
14358
14359 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
14360
14361         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
14362         and CLOCK_BOOTTIME_ALARM.
14363
14364         [BZ #12782]
14365         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
14366         is returned.
14367
14368         * string/_strerror.c (__strerror_r): Print negative errors as signed
14369         numbers.
14370
14371         [BZ #12777]
14372         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
14373         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
14374         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
14375
14376         * configure.in: Fix typo in redirection and correct removal of test
14377         files in two cases.
14378
14379         [BZ #12788]
14380         * locale/setlocale.c (new_composite_name): Fix test to check for
14381         identical name of all categories.
14382
14383         [BZ #12792]
14384         * libio/filedoalloc.c (local_isatty): New function.
14385         (_IO_file_doallocate): Use local_isatty.
14386         * stdio-common/perror.c (perror): In case a new stream is used
14387         forward the stream error.
14388         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
14389         error flag.
14390
14391 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
14392
14393         [BZ #11869]
14394         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
14395         alloca.
14396         * include/alloca.h (extend_alloca_account): Define.
14397
14398         [BZ #11857]
14399         * posix/regex.h: Fix comments with documentation of user-accessible
14400         fields after compilation and describe correct free'ing of pattern
14401         after re_compile_pattern.
14402         Patch by Reuben Thomas <rrt@sc3d.org>.
14403
14404 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
14405
14406         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
14407         and -mno-altivec to prevent the compiler from using Altivec and/or
14408         VSX instructions when the corresponding registers are not available.
14409
14410 2011-05-19  Andreas Schwab  <schwab@redhat.com>
14411
14412         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
14413
14414 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
14415
14416         * libio/freopen.c (freopen): Use __dup2, not dup2.
14417         * libio/freopen64.c (freopen64): Likewise.
14418
14419 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14420
14421         [BZ #12775]
14422         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
14423         * math/Makefile (tests): Add test-powl.
14424         (CFLAGS-test-powl.c): Define.
14425         * math/test-powl.c: New file.
14426
14427 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14428
14429         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
14430
14431 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
14432
14433         [BZ #11837]
14434         * iconvdata/gb18030.c: Update to GB18020-2005.
14435
14436 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
14437
14438         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
14439         RE_SYNTAX_POSIX_AWK): Update to match recent development.
14440         Patch by Aharon Robbins <arnold@skeeve.com>.
14441
14442         [BZ #11892]
14443         * stdlib/putenv.c (putenv): Don't always create copy of the variable
14444         on the stack.
14445
14446         [BZ #11895]
14447         * misc/pselect.c (__pselect): Handle timeout value errors hidden
14448         through underflows.
14449
14450         [BZ #12766]
14451         * misc/error.c (error_at_line): Ensure file_name and old_file_name
14452         point to strings before performing equality test for error_one_per_line
14453         mode.
14454
14455         [BZ #11697]
14456         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
14457
14458         [BZ #11820]
14459         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
14460         (struct user_fpregs_struct): Avoid __uint*_t types.
14461
14462         [BZ #6420]
14463         * malloc/mtrace.c (tr_where): Add additional parameter to point to
14464         symbol info.  Use it instead of calling _dl_addr locally.
14465         (lock_and_info): New function.
14466         (tr_freehook): Call lock_and_info and pass symbol info as additional
14467         parameter to tr_where.
14468         (tr_mallochook): Likewise.
14469         (tr_reallochook): Likewise.
14470         (tr_memalignhook): Likewise.
14471
14472         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
14473         used and couldn't be at all thread-safe.
14474
14475 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
14476
14477         * libio/freopen.c (freopen): Don't close old file descriptor
14478         before the new one is opened.  Instead dup the new file descriptor
14479         to the old one after the new stream is created.
14480         * libio/freopen64.c (freopen64): Likewise.
14481         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
14482         * libio/fileops.c (_IO_new_file_close_it): Handle new
14483         _IO_FLAGS2_NOCLOSE flag.
14484         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
14485         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
14486         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
14487         _IO_FLAGS2_NOCLOSE flag.
14488         * include/unistd.h: Add hidden_proto for dup3.
14489         Define __have_dup3.
14490         * io/dup3.c: Define hidden symbol.
14491         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
14492
14493         [BZ #7101]
14494         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
14495         when an incomplete long option is used.
14496         * posix/tst-getopt_long1.c: New file.
14497         * posix/Makefile (tests): Add tst-getopt_long1.
14498
14499         [BZ #10138]
14500         * scripts/config.guess: Update from autoconf-2.68.
14501         * scripts/config.sub: Likewise.
14502
14503         [BZ #10157]
14504         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
14505         tests into ...
14506         (has_cpuclock): ...this.  New function.
14507         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
14508         macro here based on has_cpuclock code.
14509
14510         [BZ #10149]
14511         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
14512         First byte (not low byte) is now always NUL.
14513         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
14514
14515         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
14516         Use non-cancelable interfaces.
14517
14518         [BZ #9809]
14519         * locale/iso-639.def: Add entry for Sorani.
14520
14521         [BZ #11901]
14522         * include/stdlib.h: Move include protection to the right place.
14523         Define abort_msg_s.  Declare __abort_msg with it.
14524         * stdlib/abort.c (__abort_msg): Adjust type.
14525         * assert/assert.c (__assert_fail_base): New function.  Majority
14526         of code from __assert_fail.  Allocate memory for __abort_msg with
14527         mmap.
14528         (__assert_fail): Now call __assert_fail_base.
14529         * assert/assert-perr.c: Remove bulk of implementation.  Use
14530         __assert_fail_base.
14531         * include/assert.hL Declare __assert_fail_base.
14532         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
14533         mmap.
14534         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
14535
14536 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
14537
14538         [BZ #11952]
14539         [BZ #12453]
14540         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
14541         until all modules are registered in the DTV.
14542         * elf/Makefile: Add rules to build and run tst-tls19.
14543         * elf/tst-tls19.c: New file.
14544         * elf/tst-tls19mod1.c: New file.
14545         * elf/tst-tls19mod2.c: New file.
14546         * elf/tst-tls19mod3.c: New file.
14547         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
14548
14549         [BZ #12083]
14550         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
14551         correctly.
14552
14553         [BZ #12601]
14554         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
14555         two-byte sequence errors.
14556         * iconvdata/Makefile (tests): Add bug-iconv8.
14557         * iconvdata/bug-iconv8.c: New file.
14558
14559         [BZ #12626]
14560         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
14561         buf2 definition.
14562
14563         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
14564
14565         [BZ #12432]
14566         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
14567         (dummy_getcfa): New function.
14568         (init): Get _Unwind_GetCFA address, use dummy if not found.
14569         (backtrace_helper): In recursion check, also check whether CFA changes.
14570         (__backtrace): Completely initialize arg.
14571
14572         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
14573         storing incomplete byte sequence in state object.  Avoid testing for
14574         guaranteed too small input if we know there is enough data available.
14575
14576 2011-05-11  Andreas Schwab  <schwab@redhat.com>
14577
14578         * Makeconfig (+link-pie): Indent.
14579         * Rules (binaries-pie): Define if $(have-fpie) and
14580         $(build-shared).
14581         (binaries-shared): Also filter out $(binaries-pie).
14582         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
14583         * nscd/Makefile (others-pie): Add nscd.
14584         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
14585         ($(objpfx)nscd): Remove command override.
14586         * login/Makefile (others-pie): Add pt_chown.
14587         ($(objpfx)pt_chown): Remove command override.
14588         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
14589         remove command overrides.
14590
14591 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
14592
14593         * libio/tst_putwc.c: Fix error messages.
14594
14595         [BZ #12724]
14596         * libio/fileops.c (_IO_new_file_close_it): Always flush when
14597         currently writing and seek to current position when not.
14598         * libio/Makefile (tests): Add bug-fclose1.
14599         * libio/bug-fclose1.c: New file.
14600
14601 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
14602
14603         [BZ #12511]
14604         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
14605         don't set DF_1_NODELETE here.
14606         (do_lookup_x): When entering new entry test for copy relocation
14607         and if necessary set DF_1_NODELETE flag.
14608         * elf/tst-unique4.cc: New file.
14609         * elf/tst-unique4.h: New file.
14610         * elf/tst-unique4lib.cc: New file.
14611         * elf/Makefile: Add rules to build and run tst-unique4.
14612         Patch by Piotr Bury <pbury@goahead.com>.
14613
14614 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
14615
14616         [BZ #12052]
14617         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
14618
14619         [BZ #12625]
14620         * misc/mntent_r.c (addmntent): Flush the stream after the output
14621
14622         [BZ #12393]
14623         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
14624         (is_trusted_path_normalize): Skip initial colon.  Append slash
14625         to empty buffer.  Duplicate is_trusted_path code but allow
14626         constructed patch to be prefix.
14627         (is_dst): Allow $ORIGIN followed by /.
14628         (_dl_dst_substitute): Correct clearing of check_for_trusted.
14629         Correct testing of result of is_trusted_path_normalize
14630         (decompose_rpath): Fix warning.
14631
14632 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
14633
14634         [BZ #11257]
14635         * grp/initgroups.c (internal_getgrouplist): When we found the service
14636         list through the initgroups entry in nsswitch.conf do not always
14637         continue on a successful lookup.  Don't always use the
14638         __nss_group_database value if it is set.
14639         * nss/nsswitch.conf (initgroups): Change action for successful db
14640         lookup to continue for compatibility.
14641
14642 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
14643
14644         [BZ #11532]
14645         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
14646         and CP774 modules.
14647         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
14648         and CP774 modules.
14649         * iconvdata/tst-tables.sh: Likewise.
14650         * iconvdata/cp770.c: New file.
14651         * iconvdata/cp771.c: New file.
14652         * iconvdata/cp772.c: New file.
14653         * iconvdata/cp773.c: New file.
14654         * iconvdata/cp774.c: New file.
14655         * iconvdata/testdata/CP770: New file.
14656         * iconvdata/testdata/CP770..UTF8: New file.
14657         * iconvdata/testdata/CP771: New file.
14658         * iconvdata/testdata/CP771..UTF8: New file.
14659         * iconvdata/testdata/CP772: New file.
14660         * iconvdata/testdata/CP772..UTF8: New file.
14661         * iconvdata/testdata/CP773: New file.
14662         * iconvdata/testdata/CP773..UTF8: New file.
14663         * iconvdata/testdata/CP774: New file.
14664         * iconvdata/testdata/CP774..UTF8: New file.
14665
14666         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
14667         END CHARMAP line.
14668         * iconvdata/gen-8bit-gap.sh: Likewise.
14669         * iconvdata/gen-8bit.sh: Likewise.
14670
14671         * locale/iso-639.def: Add ary entry.
14672
14673         [BZ #11258]
14674         * locale/C-translit.h.in: Add U20A1 transliteration.
14675
14676         [BZ #12178]
14677         * locale/iso-639.def: Add wae entry.
14678         Patch by Kevin Bortis <bortis@translate-wae.ch>.
14679
14680         [BZ #12545]
14681         * locale/programs/localedef.c (construct_output_path): Use ssize_t
14682         for n.
14683
14684         [BZ #12711]
14685         * locale/C-translit.h.in: Add entry for U20B9.
14686         Patch by pravin.d.s@gmail.com.
14687
14688 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
14689
14690         [BZ #12713]
14691         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
14692         ENAMETOOLONG use generic getcwd.
14693         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
14694         in rtld.  Use *stat64.
14695         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
14696         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
14697         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
14698         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
14699         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
14700         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
14701         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
14702         __fstatat64 macros.
14703         * include/dirent.h: Add libc_hidden_proto for rewinddir.
14704         * dirent/rewinddir.c: Add libc_hidden_def.
14705         * sysdeps/mach/hurd/rewinddir.c: Likewise.
14706         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
14707
14708         * include/dirent.h (__alloc_dir): Add flags parameter.
14709         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
14710         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
14711         __alloc_dir.
14712         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
14713         from fdopendir if O_CLOEXEC is already set.
14714
14715 2011-03-15  Alan Modra  <amodra@gmail.com>
14716
14717         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
14718         l_tls_firstbyte_offset non-zero.  Save padding offset in
14719         l_tls_firstbyte_offset for later use.
14720         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
14721         freeing static tls block.
14722
14723 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
14724
14725         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
14726         where #ifdef was intended.  The intent is to prevent ARG_MAX from
14727         being defined by the kernel headers.
14728
14729 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
14730
14731         [BZ #12734]
14732         * resolv/resolv.h: Define RES_NOTLDQUERY.
14733         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
14734         no-tld-query and set RES_NOTLDQUERY.
14735         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
14736         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
14737         modern BIND to search name as TLD unless forbidden.
14738
14739 2011-05-07  Petr Baudis  <pasky@suse.cz>
14740             Ulrich Drepper  <drepper@gmail.com>
14741
14742         [BZ #12393]
14743         * elf/dl-load.c (fillin_rpath): Move trusted path check...
14744         (is_trusted_path): ...to here.
14745         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
14746         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
14747         using is_trusted_path_normalize() in setuid scripts.
14748
14749 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14750
14751         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
14752         __BEGIN/__END_DECLS.
14753
14754 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
14755
14756         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
14757         NSS_STATUS_NOTFOUND if no record was found.
14758
14759 2011-05-05  Andreas Schwab  <schwab@redhat.com>
14760
14761         * sunrpc/Makefile (headers): Add rpc/netdb.h.
14762         (headers-not-in-tirpc): Remove rpc/netdb.h
14763         * resolv/netdb.h: Revert last change.
14764
14765 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14766
14767         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
14768         circular dependency between libgcc.a and libc.a.
14769
14770 2011-05-05  Andreas Schwab  <schwab@redhat.com>
14771
14772         * resolv/netdb.h: Don't include <rpc/netdb.h>.
14773         * nis/Makefile: Don't install rpcsvc/*.
14774         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
14775         instead of <rpc/types.h>.
14776         (MAXHOSTNAMELEN): Define.
14777
14778 2011-05-03  Andreas Schwab  <schwab@redhat.com>
14779
14780         * elf/ldconfig.c (add_dir): Don't crash on empty path.
14781
14782 2011-04-28  Maciej Babinski  <mbabinski@google.com>
14783
14784         [BZ #12714]
14785         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
14786         gethostbyname4_r when IPv6 results are possible.
14787
14788 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
14789
14790         [BZ #12723]
14791         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
14792         _PC_PIPE_BUF handling.
14793
14794 2011-04-30  Bruno Haible  <bruno@clisp.org>
14795
14796         [BZ #12717]
14797         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
14798         * resolv/netdb.h (getnameinfo): Change type of flags parameter
14799         to 'int'.
14800         * inet/getnameinfo.c (getnameinfo): Likewise.
14801
14802 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
14803
14804         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
14805         to groups setting in database lookup.
14806         * nss/nsswitch.conf: Add initgroups entry.
14807
14808 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
14809
14810         [BZ #12685]
14811         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
14812         mode string.
14813         Patch by Eric Blake <eblake@redhat.com>.
14814
14815 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
14816
14817         * sunrpc/Makefile (need-export-routines): Add svc_run.
14818         (routines): Remove svc_run.
14819         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
14820         * sunrpc/clnt_perr.c (clnt_perrno): Export.
14821         * sunrpc/svc_run.c (svc_run): Likewise.
14822         * sunrpc/svc_udp.c (svcudp_create): Likewise.
14823
14824 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
14825
14826         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
14827         problem in reallocation in last patch.
14828
14829 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
14830
14831         * sunrpc/Makefile: Move inclusion of Rules.
14832
14833 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
14834
14835         * nss/nss_files/files-initgroups.c: New file.
14836         * nss/Makefile (libnss_files-routines): Add files-initgroups.
14837         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
14838         _nss_files_initgroups_dyn.
14839
14840 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
14841
14842         * elf/elf.h (R_ARM_IRELATIVE): Define.
14843
14844 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
14845
14846         * po/ru.po: Update from translation team.
14847
14848 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
14849
14850         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
14851         dependencies.
14852
14853 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
14854
14855         [BZ #12653]
14856         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
14857         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
14858         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14859         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
14860         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
14861
14862 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
14863
14864         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
14865         differing bytes.
14866         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
14867         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
14868         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14869
14870 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
14871
14872         [BZ #12420]
14873         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
14874         storing it.
14875         * stdlib/bug-getcontext.c: New file.
14876         * stdlib/Makefile: Add rules to build and run bug-getcontext.
14877
14878 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14879
14880         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
14881         instructions into .machine "z9-109".
14882         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
14883         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
14884
14885 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14886
14887         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
14888         between environment variables and auxiliary vector.
14889
14890 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
14891
14892         * Makefile: Add rules to build linkobj/libc.so.
14893         * include/libc-symbols.h: Define libc_hidden_nolink.
14894         * include/rpc/auth.h: Mark functions which are to be hidden.
14895         * include/rpc/auth_des.h: Likewise.
14896         * include/rpc/auth_unix.h: Likewise.
14897         * include/rpc/clnt.h: Likewise.
14898         * include/rpc/des_crypt.h: Likewise.
14899         * include/rpc/key_prot.h: Likewise.
14900         * include/rpc/pmap_clnt.h: Likewise.
14901         * include/rpc/pmap_prot.h: Likewise.
14902         * include/rpc/pmap_rmt.h: Likewise.
14903         * include/rpc/rpc_msg.h: Likewise.
14904         * include/rpc/svc.h: Likewise.
14905         * include/rpc/svc_auth.h: Likewise.
14906         * include/rpc/xdr.h: Likewise.
14907         * nis/Makefile: Link all DSOs against linkobj/libc.so.
14908         * nss/Makefile: Likewise.
14909         * sunrpc/Makefile: Don't install headers.  Build library with normal
14910         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
14911         * sunrpc/auth_des.c: Hide exported symbols by default, export some
14912         for the compat linking library.  Remove use of INTDEF/INTUSE.
14913         * sunrpc/auth_none.c: Likewise.
14914         * sunrpc/auth_unix.c: Likewise.
14915         * sunrpc/authdes_prot.c: Likewise.
14916         * sunrpc/authuxprot.c: Likewise.
14917         * sunrpc/clnt_gen.c: Likewise.
14918         * sunrpc/clnt_perr.c: Likewise.
14919         * sunrpc/clnt_raw.c: Likewise.
14920         * sunrpc/clnt_simp.c: Likewise.
14921         * sunrpc/clnt_tcp.c: Likewise.
14922         * sunrpc/clnt_udp.c: Likewise.
14923         * sunrpc/clnt_unix.c: Likewise.
14924         * sunrpc/des_crypt.c: Likewise.
14925         * sunrpc/des_soft.c: Likewise.
14926         * sunrpc/get_myaddr.c: Likewise.
14927         * sunrpc/key_call.c: Likewise.
14928         * sunrpc/key_prot.c: Likewise.
14929         * sunrpc/netname.c: Likewise.
14930         * sunrpc/pm_getmaps.c: Likewise.
14931         * sunrpc/pm_getport.c: Likewise.
14932         * sunrpc/pmap_clnt.c: Likewise.
14933         * sunrpc/pmap_prot.c: Likewise.
14934         * sunrpc/pmap_prot2.c: Likewise.
14935         * sunrpc/pmap_rmt.c: Likewise.
14936         * sunrpc/publickey.c: Likewise.
14937         * sunrpc/rpc_cmsg.c: Likewise.
14938         * sunrpc/rpc_common.c: Likewise.
14939         * sunrpc/rpc_dtable.c: Likewise.
14940         * sunrpc/rpc_prot.c: Likewise.
14941         * sunrpc/rpc_thread.c: Likewise.
14942         * sunrpc/rtime.c: Likewise.
14943         * sunrpc/svc.c: Likewise.
14944         * sunrpc/svc_auth.c: Likewise.
14945         * sunrpc/svc_authux.c: Likewise.
14946         * sunrpc/svc_raw.c: Likewise.
14947         * sunrpc/svc_run.c: Likewise.
14948         * sunrpc/svc_simple.c: Likewise.
14949         * sunrpc/svc_tcp.c: Likewise.
14950         * sunrpc/svc_udp.c: Likewise.
14951         * sunrpc/svc_unix.c: Likewise.
14952         * sunrpc/svcauth_des.c: Likewise.
14953         * sunrpc/xcrypt.c: Likewise.
14954         * sunrpc/xdr.c: Likewise.
14955         * sunrpc/xdr_array.c: Likewise.
14956         * sunrpc/xdr_float.c: Likewise.
14957         * sunrpc/xdr_intXX_t.c: Likewise.
14958         * sunrpc/xdr_mem.c: Likewise.
14959         * sunrpc/xdr_rec.c: Likewise.
14960         * sunrpc/xdr_ref.c: Likewise.
14961         * sunrpc/xdr_sizeof.c: Likewise.
14962         * sunrpc/xdr_stdio.c: Likewise.
14963
14964 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
14965
14966         [BZ #12650]
14967         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
14968         * sysdeps/ia64/dl-tls.h: Likewise.
14969         * sysdeps/powerpc/dl-tls.h: Likewise.
14970         * sysdeps/s390/dl-tls.h: Likewise.
14971         * sysdeps/sh/dl-tls.h: Likewise.
14972         * sysdeps/sparc/dl-tls.h: Likewise.
14973         * sysdeps/x86_64/dl-tls.h: Likewise.
14974         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
14975
14976 2011-03-14  Andreas Schwab  <schwab@redhat.com>
14977
14978         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
14979         rpath element also skip the following colon.
14980         (expand_dynamic_string_token): Add is_path parameter and pass
14981         down to DL_DST_REQUIRED and _dl_dst_substitute.
14982         (decompose_rpath): Call expand_dynamic_string_token with
14983         non-zero is_path.  Ignore empty rpaths.
14984         (_dl_map_object_from_fd): Call expand_dynamic_string_token
14985         with zero is_path.
14986
14987 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
14988
14989         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
14990         Make cancelable.
14991
14992 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
14993
14994         [BZ #12655]
14995         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
14996         Patch by Filipe David Manana <fdmanana@apache.org>.
14997
14998 2011-04-07  Andreas Schwab  <schwab@redhat.com>
14999
15000         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
15001         Maintain aligned stack.
15002         (CHECK_RSP): Remove unused macro.
15003
15004 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
15005
15006         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
15007         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
15008
15009 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
15010
15011         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
15012
15013         * include/features.h: Mention __USE_XOPEN2K8 in comment.
15014
15015 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
15016
15017         [BZ #12518]
15018         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
15019         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
15020         * sysdeps/x86_64/memmove.c: New file.
15021         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
15022         (memcpy): Renamed to ...
15023         (__new_memcpy): This.
15024         (memcpy): Provide GLIBC_2_14 memcpy.
15025         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
15026         (memcpy): Provide GLIBC_2_2_5 memcpy.
15027
15028 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
15029
15030         [BZ #12631]
15031         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
15032
15033 2011-03-30  Andreas Schwab  <schwab@redhat.com>
15034
15035         * misc/syncfs.c: New file.
15036         * misc/Makefile (routines): Add syncfs.
15037         * posix/unistd.h: Declare syncfs.
15038         * sysdeps/unix/syscalls.list: Add syncfs.
15039
15040 2011-04-01  Andreas Schwab  <schwab@redhat.com>
15041
15042         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
15043         open_by_handle_at.
15044         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
15045         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
15046         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
15047         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
15048         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
15049         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
15050         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
15051
15052 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
15053
15054         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
15055         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
15056         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
15057         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
15058         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
15059         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
15060         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
15061
15062         * io/Makefile: Compile fallocate.c, fallocate64.c, and
15063         sync_file_range.c with -fexceptions.
15064         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
15065         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
15066         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
15067         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
15068         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
15069         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
15070         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
15071         sync_file_range as cancellation point
15072         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
15073         now a wrapper around __call_sync_file_range with cancellation handling.
15074         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
15075         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
15076         function name to __call_sync_file_range.
15077         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
15078         Add call_sync_file_range.
15079
15080 2011-04-01  Andreas Schwab  <schwab@redhat.com>
15081
15082         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
15083         bits/timex.h.
15084
15085 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
15086
15087         * iconv/iconv.h: Fix typo in comment.
15088         * io/fcntl.h: Likewise.
15089         * libio/stdio.h: Likewise.
15090         * posix/spawn.h: Likewise.
15091         * posix/unistd.h: Likewise.
15092         * stdlib/stdlib.h: Likewise.
15093         * time/time.h: Likewise.
15094         * wcsmbs/wchar.h: Likewise.
15095
15096         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
15097         open_by_handle): Add.
15098         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
15099         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
15100         Augment a few comments.
15101         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
15102         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
15103         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
15104         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
15105         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
15106         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
15107         open_by_handle.
15108
15109         * io/fcntl.h (AT_EMPTY_PATH): Define.
15110
15111 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
15112
15113         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
15114         * sysdeps/unix/sysv/linux/bits/time.h: New file.
15115         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
15116         to...
15117         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
15118         * Versions.def: Add GLIBC_2.14.
15119         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
15120         Export.
15121
15122 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
15123
15124         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
15125         round counter.
15126         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
15127
15128 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
15129
15130         [BZ #12597]
15131         * string/test-strncmp.c (do_page_test): New function.
15132         (check2): Likewise.
15133         (test_main): Call check2.
15134         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
15135
15136 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
15137
15138         [BZ #12587]
15139         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
15140         Handle cache information in CPU leaf 4.
15141         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
15142
15143 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
15144
15145         [BZ #12583]
15146         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
15147         character representation.
15148         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
15149
15150 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
15151
15152         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
15153         END(__isnan) to END(__isnanf) to match function entry point/label
15154         EALIGN(__isnanf,...).
15155
15156 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
15157
15158         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
15159
15160 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
15161
15162         [BZ #12510]
15163         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
15164         copy from the symbol referenced in the relocation to initialize the
15165         used variable.
15166         Patch by Piotr Bury <pbury@goahead.com>.
15167         * elf/Makefile: Add rules to build and tst-unique3.
15168         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
15169         * elf/tst-unique3.cc: New file.
15170         * elf/tst-unique3.h: New file.
15171         * elf/tst-unique3lib.cc: New file.
15172         * elf/tst-unique3lib2.cc: New file.
15173
15174         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
15175
15176 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
15177
15178         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
15179         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
15180         to _start.
15181
15182 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
15183
15184         * elf/dl-load.c (_dl_map_object): If we are looking for the first
15185         to-be-loaded object along a path to loader is ld.so.
15186
15187 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
15188             Ulrich Drepper  <drepper@gmail.com>
15189
15190         * sysdeps/x86_64/memset.S: After aligning destination, code
15191         branches to different locations depending on the value of
15192         misalignment, when multiarch is enabled. Fix this.
15193
15194 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
15195
15196         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
15197         Set _x86_64_preferred_memory_instruction for AMD processsors.
15198         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15199         Set bit_Prefer_SSE_for_memop for AMD processors.
15200
15201 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
15202
15203         * libio/fmemopen.c (fmemopen): Optimize a bit.
15204
15205 2011-03-03  Andreas Schwab  <schwab@redhat.com>
15206
15207         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
15208
15209 2011-03-03  Roland McGrath  <roland@redhat.com>
15210
15211         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
15212
15213 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
15214
15215         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
15216         __bzero_ultra1 instead of __memset_ultra1.
15217
15218 2011-02-23  Andreas Schwab  <schwab@redhat.com>
15219             Ulrich Drepper  <drepper@gmail.com>
15220
15221         [BZ #12509]
15222         * include/link.h (struct link_map): Add l_orig_initfini.
15223         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
15224         returning unsuccessfully.
15225         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
15226         close of a file loaded at startup, restore the original l_initfini
15227         list.
15228         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
15229         list, store the pointer.
15230         * elf/Makefile ($(objpfx)noload-mem): New rule.
15231         (noload-ENV): Define.
15232         (tests): Add $(objpfx)noload-mem.
15233         * elf/noload.c: Include <memcheck.h>.
15234         (main): Call mtrace.  Close all opened handles.
15235
15236 2011-02-17  Andreas Schwab  <schwab@redhat.com>
15237
15238         [BZ #12454]
15239         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
15240         dependencies are missing.
15241
15242 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15243
15244         Fix __if_freereq crash: Unlike the generic version which uses free,
15245         Hurd needs munmap.
15246         * sysdeps/mach/hurd/ifreq.h: New file.
15247
15248 2011-01-27  Petr Baudis  <pasky@suse.cz>
15249             Ulrich Drepper  <drepper@gmail.com>
15250
15251         [BZ 12445]#
15252         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
15253         to extend_alloca().
15254         * stdio-common/bug23.c: New file.
15255         * stdio-common/Makefile (tests): Add bug23.
15256
15257 2010-09-28  Andreas Schwab  <schwab@redhat.com>
15258             Ulrich Drepper  <drepper@gmail.com>
15259
15260         [BZ #12489]
15261         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
15262         before performing relro protection.  At old place add assertion
15263         to make sure nothing changed.
15264
15265 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
15266             Glauber de Oliveira Costa  <glommer@gmail.com>
15267
15268         * elf/elf.h: Add new ARM TLS relocs.
15269
15270 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
15271
15272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
15273         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
15274         cast from r3.
15275         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
15276         'tests' variable.
15277         * sysdeps/wordsize-64/tst-writev.c: New file.
15278
15279 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
15280
15281         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
15282         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
15283         insns in _dl_start to prevent a TOC reference before relocs are
15284         resolved.
15285
15286 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
15287
15288         [BZ #12469]
15289         * Makeconfig: Remove RANLIB definition.
15290         * Makerules: Don't use RANLIB.
15291         * aclocal.m4: Remove ranlib test.
15292         * configure.in: No need to check for ranlib.
15293         * elf/rtld-Rules: Don't use RANLIB.
15294
15295 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15296
15297         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
15298         protection macro.
15299         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
15300         inclusion protection macro.
15301
15302         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
15303         SIGRTMIN and SIGRTMAX and print information in that case only when
15304         SIGRTMIN is defined.
15305
15306 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
15307
15308         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
15309         arginfo fn returning -1.
15310
15311         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
15312         and thousands string is zero terminated.
15313
15314 2011-02-03  Andreas Schwab  <schwab@redhat.com>
15315
15316         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
15317         sysdeps/unix/sysv/linux/bits/socket.h.
15318
15319 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15320
15321         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
15322         (__CPU_COUNT): Remove old macros.
15323         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
15324         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
15325         (__CPU_ALLOC, __CPU_FREE): Add macros.
15326         (__sched_cpualloc, __sched_cpufree): Add declarations.
15327
15328 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
15329
15330         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
15331         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
15332         * nscd/aicache.c (addhstaiX): Return timeout of added value.
15333         (readdhstai): Return value of addhstaiX call.
15334         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
15335         (addgrbyX): Return value returned by cache_addgr.
15336         (readdgrbyname): Return value returned by addgrbyX.
15337         (readdgrbygid): Likewise.
15338         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
15339         (addpwbyX): Return value returned by cache_addpw.
15340         (readdpwbyname): Return value returned by addhstbyX.
15341         (readdpwbyuid): Likewise.
15342         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
15343         (addservbyX): Return value returned by cache_addserv.
15344         (readdservbyname): Return value returned by addservbyX:
15345         (readdservbyport): Likewise.
15346         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
15347         (addhstbyX): Return value returned by cache_addhst.
15348         (readdhstbyname): Return value returned by addhstbyX.
15349         (readdhstbyaddr): Likewise.
15350         (readdhstbynamev6): Likewise.
15351         (readdhstbyaddrv6): Likewise.
15352         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
15353         (readdinitgroups): Return value returned by addinitgroupsX.
15354         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
15355         (prune_cache): Keep track of timeout value of re-added entries.
15356         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
15357         * nscd/nscd.h: Adjust prototypes of readd* functions.
15358
15359 2011-02-04  Roland McGrath  <roland@redhat.com>
15360
15361         * nis/nis_server.c (nis_servstate): Use the right name for 0.
15362         (nis_stats): Likewise.
15363         * nis/nis_modify.c (nis_modify): Likewise.
15364         * nis/nis_remove.c (nis_remove): Likewise.
15365         * nis/nis_add.c (nis_add): Likewise.
15366
15367         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
15368
15369         * posix/fnmatch_loop.c: Add some consts.
15370
15371         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
15372
15373 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
15374
15375         [BZ #12460]
15376         * config.make.in (config-cflags-novzeroupper): Define.
15377         * configure.in: Substitute libc_cv_cc_novzeroupper.
15378         * elf/Makefile (AVX-CFLAGS): Define.
15379         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
15380         (CFLAGS-tst-auditmod4a.c): Likewise.
15381         (CFLAGS-tst-auditmod4b.c): Likewise.
15382         (CFLAGS-tst-auditmod6b.c): Likewise.
15383         (CFLAGS-tst-auditmod6c.c): Likewise.
15384         (CFLAGS-tst-auditmod7b.c): Likewise.
15385         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
15386
15387 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
15388
15389         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
15390         function to the callback.
15391         Patch partly by Jiri Olsa <jolsa@redhat.com>.
15392
15393 2011-02-02  Andreas Schwab  <schwab@redhat.com>
15394
15395         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
15396         of errno.
15397
15398 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
15399
15400         [BZ #11724]
15401         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
15402         of constructors.
15403         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
15404         of destructors.
15405         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
15406
15407         [BZ #11724]
15408         * elf/Makefile: Add rules to build and run new test.
15409         * elf/tst-initorder.c: New file.
15410         * elf/tst-initorder.exp: New file.
15411         * elf/tst-initordera1.c: New file.
15412         * elf/tst-initordera2.c: New file.
15413         * elf/tst-initordera3.c: New file.
15414         * elf/tst-initordera4.c: New file.
15415         * elf/tst-initorderb1.c: New file.
15416         * elf/tst-initorderb2.c: New file.
15417         * elf/tst-order-a1.c: New file.
15418         * elf/tst-order-a2.c: New file.
15419         * elf/tst-order-a3.c: New file.
15420         * elf/tst-order-a4.c: New file.
15421         * elf/tst-order-b1.c: New file.
15422         * elf/tst-order-b2.c: New file.
15423         * elf/tst-order-main.c: New file.
15424         New test case by George Gensure <werkt0@gmail.com>.
15425
15426 2010-10-01  Andreas Schwab  <schwab@redhat.com>
15427
15428         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
15429         decoding ACE if AI_CANONIDN.
15430
15431 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
15432
15433         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
15434
15435 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
15436
15437         * version.h (RELEASE): Bump for 2.13 release.
15438         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
15439
15440         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
15441
15442         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
15443         MADV_NOHUGEPAGE.
15444         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
15445         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
15446         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
15447         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
15448         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
15449         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
15450
15451         * posix/getconf.c: Update copyright year.
15452         * catgets/gencat.c: Likewise.
15453         * csu/version.c: Likewise.
15454         * debug/catchsegv.sh: Likewise.
15455         * debug/xtrace.sh: Likewise.
15456         * elf/ldconfig.c: Likewise.
15457         * elf/ldd.bash.in: Likewise.
15458         * elf/sprof.c (print_version): Likewise.
15459         * iconv/iconv_prog.c: Likewise.
15460         * iconv/iconvconfig.c: Likewise.
15461         * locale/programs/locale.c: Likewise.
15462         * locale/programs/localedef.c: Likewise.
15463         * malloc/memusage.sh: Likewise.
15464         * malloc/mtrace.pl: Likewise.
15465         * nscd/nscd.c (print_version): Likewise.
15466         * nss/getent.c: Likewise.
15467
15468         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
15469         PF_CAIF, and PF_ALG.
15470         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15471
15472 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
15473
15474         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
15475         (modules-names): Use them.
15476         (ifunc-test-modules, ifunc-pie-tests): Define.
15477         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
15478         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
15479         (test-extras): Likewise.
15480         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
15481         $(compile-command.c).
15482         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
15483         (all-built-dso): Define.
15484         (check-textrel.out, check-execstack.out): Depend on it.
15485
15486         * configure.in: Don't override --enable-multi-arch.
15487
15488 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
15489
15490         [BZ #6812]
15491         * nscd/hstcache.c (tryagain): Define.
15492         (cache_addhst): Return tryagain not notfound for temporary errors.
15493         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
15494         failed.
15495
15496 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
15497
15498         [BZ #10563]
15499         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
15500         to make the syscall.
15501         * sysdeps/unix/sysv/linux/setgroups.c: New file.
15502
15503         [BZ #12378]
15504         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
15505         and fall back to matching as normal character if the string ends before
15506         the matching ']' is found.  This is what POSIX requires.
15507         * posix/testfnm.c: Adjust test result.
15508         * posix/globtest.sh: Adjust test result.  Add new test.
15509         * posix/tst-fnmatch.input: Likewise.
15510         * posix/tst-fnmatch2.c: Add new test.
15511
15512 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
15513
15514         * elf/Makefile (check-execstack): Revert last change.  Depend on
15515         check-execstack.h.
15516         (check-execstack.h): New target.
15517         (generated): Add check-execstack.h.
15518         * elf/check-execstack.c: Include "check-execstack.h".
15519         (main): Revert last change.
15520         (handle_file): Return zero if GNU_STACK is absent and
15521         DEFAULT_STACK_PERMS doesn't include PF_X.
15522
15523 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
15524
15525         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
15526         in child fails because the descriptor is already closed.
15527         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
15528         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
15529         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
15530
15531         [BZ #12397]
15532         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
15533         syscall.
15534
15535         [BZ #10484]
15536         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
15537         temporary buffer used to handle multi lookups locally.
15538         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
15539
15540 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
15541
15542         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
15543         loader is ld.so.
15544
15545 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
15546
15547         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
15548         alignment for SSE2.
15549
15550 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
15551
15552         [BZ #12394]
15553         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
15554         characters.  When rounding increased number of integer digits recompute
15555         number of groups.
15556         * stdio-common/tst-grouping.c: New file.
15557         * stdio-common/Makefile: Add rules to build and run tst-grouping.
15558
15559 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
15560
15561         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
15562         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
15563
15564         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
15565         void.
15566         * bits/select.h: Likewise.
15567
15568 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
15569
15570         * po/ja.po: Update from translation team.
15571
15572 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
15573
15574         [BZ #11155]
15575         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
15576         implementation just like for lxstat, fxstatat, et al.
15577
15578 2010-12-27  Jim Meyering  <meyering@redhat.com>
15579
15580         [BZ #12348]
15581         * posix/regexec.c (build_trtable): Return failure indication upon
15582         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
15583
15584 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
15585
15586         [BZ #12201]
15587         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
15588         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
15589         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
15590         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
15591
15592         [BZ #12207]
15593         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
15594
15595         [BZ #12204]
15596         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
15597         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
15598
15599 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
15600
15601         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
15602         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
15603         script has SORT_BY_INIT_PRIORITY.
15604         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
15605         NO_CTORS_DTORS_SECTIONS is defined.
15606         * elf/soinit.c: Likewise.
15607         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
15608         NO_CTORS_DTORS_SECTIONS is defined.
15609         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
15610         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
15611         * sysdeps/sh/init-first.c: Likewise.
15612         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
15613
15614 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
15615
15616         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
15617         always use the slow path.
15618
15619 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
15620
15621         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
15622         similar rule which adds the sysdep directories to the header search in
15623         order to pick up the correct platform stackinfo.h.
15624         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
15625         perform test if it is, otherwise return successfully without testing.
15626         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
15627         DEFAULT_STACK_PERMS define in stackinfo.h.
15628         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
15629         defined in stackinfo.h.
15630         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
15631         DEFAULT_STACK_PERMS defined in stackinfo.h.
15632         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
15633         * sysdeps/ia64/stackinfo.h: Likewise.
15634         * sysdeps/s390/stackinfo.h: Likewise.
15635         * sysdeps/sh/stackinfo.h: Likewise.
15636         * sysdeps/sparc/stackinfo.h: Likewise.
15637         * sysdeps/x86_64/stackinfo.h: Likewise.
15638         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
15639         PF_X for powerpc64.  Retain PF_X for powerpc32.
15640
15641 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
15642
15643         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
15644         accurately.
15645         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
15646         GETDENTS_64BIT_ALIGNED.
15647
15648 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
15649
15650         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
15651
15652 2010-12-10  Andreas Schwab  <schwab@redhat.com>
15653
15654         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
15655         _GNU_SOURCE.
15656
15657         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
15658         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
15659         Remove __restrict.
15660         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
15661         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
15662
15663 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
15664
15665         [BZ #11655]
15666         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
15667         are initialized.
15668
15669 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
15670
15671         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
15672
15673 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
15674
15675         * po/it.po: Update from translation team.
15676
15677 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
15678
15679         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
15680         unused codes.
15681
15682 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
15683
15684         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
15685
15686 2010-11-24  Andreas Schwab  <schwab@redhat.com>
15687
15688         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
15689         specially.
15690         (gaih_getanswer_slice): Likewise.
15691
15692 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
15693
15694         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
15695
15696 2010-05-31  Petr Baudis  <pasky@suse.cz>
15697
15698         [BZ #11149]
15699         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
15700         silently even in the chroot mode.
15701
15702 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
15703
15704         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
15705         last patch a bit.  Pretty printing
15706
15707 2010-05-31  Petr Baudis <pasky@suse.cz>
15708
15709         [BZ #10085]
15710         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
15711         initialization of skip_initgroups_dyn.
15712
15713 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
15714
15715         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
15716         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
15717
15718 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
15719
15720         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
15721
15722 2010-11-11  Andreas Schwab  <schwab@redhat.com>
15723
15724         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
15725         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
15726         (tst-fnmatch-ENV): Set MALLOC_TRACE.
15727         ($(objpfx)tst-fnmatch-mem): New rule.
15728         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
15729         * posix/tst-fnmatch.c (main): Call mtrace.
15730
15731 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
15732
15733         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15734         Support Intel processor model 6 and model 0x2c.
15735
15736 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
15737
15738         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
15739           signed comparison.
15740
15741 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
15742
15743         [BZ #12205]
15744         * string/test-strncasecmp.c (check_result): New function.
15745         (do_one_test): Use it.
15746         (check1): New function.
15747         (test_main): Use it.
15748         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
15749         Support strcasecmp and strncasecmp.
15750
15751 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
15752
15753         [BZ #12194]
15754         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
15755         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15756
15757 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
15758
15759         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
15760         IFUNC support.
15761         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15762         memset-x86-64.
15763         * sysdeps/x86_64/multiarch/bzero.S: New file.
15764         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
15765         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
15766         * sysdeps/x86_64/multiarch/memset.S: New file.
15767         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
15768         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15769         Set bit_Prefer_SSE_for_memop for Intel processors.
15770         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
15771         Define.
15772         (index_Prefer_SSE_for_memop): Define.
15773         (HAS_PREFER_SSE_FOR_MEMOP): Define.
15774
15775 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
15776
15777         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
15778         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
15779
15780 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
15781
15782         [BZ #12191]
15783         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
15784         (__x86_64_raw_data_cache_size_half): Likewise.
15785         (__x86_64_raw_shared_cache_size): Likewise.
15786         (__x86_64_raw_shared_cache_size_half): Likewise.
15787
15788         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
15789         (__x86_64_raw_data_cache_size_half): Likewise.
15790         (__x86_64_raw_shared_cache_size): Likewise.
15791         (__x86_64_raw_shared_cache_size_half): Likewise.
15792         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
15793         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
15794         and __x86_64_raw_shared_cache_size_half.  Round
15795         __x86_64_data_cache_size_half, __x86_64_data_cache_size
15796         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
15797         to multiple of 256 bytes.
15798
15799 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
15800
15801         [BZ #12167]
15802         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
15803         of inacessible symlinks.  Verify result of symlink before returning it.
15804         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
15805         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
15806
15807 2010-10-28  Erich Ritz  <erichritz@gmail.com>
15808
15809         * math/math.h (isinf): Fix typo in comment.
15810
15811 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
15812
15813         * po/da.po: Update from translation team.
15814
15815 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
15816
15817         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
15818         is added to the list.
15819
15820 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15821             Ulrich Drepper  <drepper@gmail.com>
15822
15823         * elf/dl-object.c (_dl_new_object): Don't append the new object to
15824         the global list here.  Move code to...
15825         (_dl_add_to_namespace_list): ...here.  New function.
15826         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
15827         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
15828         * elf/dl-load.c (lose): Don't remove the element from the list.
15829         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
15830         (_dl_map_object): Likewise.
15831
15832 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
15833
15834         [BZ #12159]
15835         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
15836         into all bytes of SSE register.
15837         Patch by Richard Li <richardpku@gmail.com>.
15838
15839 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
15840
15841         [BZ #12140]
15842         * malloc/malloc.c (_int_free): Fill correct number of bytes when
15843         perturbing.
15844
15845 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
15846
15847         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
15848         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
15849         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
15850         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
15851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
15852         submachine.
15853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
15854
15855 2010-10-22  Andreas Schwab  <schwab@redhat.com>
15856
15857         * include/dlfcn.h (__RTLD_SECURE): Define.
15858         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
15859         mode & __RTLD_SECURE instead.
15860         (open_path): Rename preloaded parameter to secure.
15861         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
15862         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
15863         * elf/dl-deps.c (openaux): Likewise.
15864         * elf/rtld.c (struct map_args): Remove is_preloaded.
15865         (map_doit): Don't use it.
15866         (dl_main): Likewise.
15867         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
15868         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
15869
15870 2010-09-09  Andreas Schwab  <schwab@redhat.com>
15871
15872         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
15873         (sysd-rules-targets): Remove duplicates.
15874         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
15875         rtld-%.$o dependency.
15876
15877 2010-10-18  Andreas Schwab  <schwab@redhat.com>
15878
15879         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
15880         _dl_map_object do it.
15881
15882 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
15883
15884         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
15885         fast fma builtins, define the macros in the C99 standard.
15886         (FP_FAST_FMAF): Likewise.
15887         (FP_FAST_FMAL): Likewise.
15888         * sysdeps/x86_64/bits/mathdef.h: Likewise.
15889
15890         * bits/mathdef.h: Update copyright year.
15891         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15892
15893 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
15894
15895         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
15896         builtins, define the macros in the C99 standard.
15897         (FP_FAST_FMAF): Likewise.
15898         (FP_FAST_FMAL): Likewise.
15899         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
15900         multiply/add.
15901         (FP_FAST_FMAF): Likewise.
15902
15903 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
15904
15905         [BZ #3268]
15906         * math/libm-test.inc (fma_test): Some new testcases.
15907         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
15908         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
15909         y and infinite z.  Do multiplication by C already in long double.
15910         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
15911         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
15912         y and infinite z.  Do bitwise or of inexact bit into u.d.
15913         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
15914         * sysdeps/i386/fpu/s_fmaf.S: Removed.
15915         * sysdeps/i386/fpu/s_fma.S: Removed.
15916         * sysdeps/i386/fpu/s_fmal.S: Removed.
15917
15918 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
15919
15920         [BZ #3268]
15921         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
15922         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
15923         computation is not scheduled after fetestexcept.  Fix value
15924         of minimum denormal long double.
15925
15926 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
15927
15928         [BZ #3268]
15929         * math/libm-test.inc (fma_test): Add some more tests.
15930         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
15931         correctly.
15932
15933 2010-10-15  Andreas Schwab  <schwab@redhat.com>
15934
15935         * scripts/data/localplt-s390-linux-gnu.data: New file.
15936         * scripts/data/localplt-s390x-linux-gnu.data: New file.
15937
15938 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
15939
15940         [BZ #3268]
15941         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
15942         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
15943         instead of dbl-64.
15944         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
15945         inlines.
15946         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
15947         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
15948         if one of x and y is very large and the other is subnormal.
15949         * sysdeps/s390/fpu/s_fmaf.c: New file.
15950         * sysdeps/s390/fpu/s_fma.c: New file.
15951         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
15952         * sysdeps/powerpc/fpu/s_fma.S: New file.
15953         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
15954         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
15955         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
15956
15957 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
15958
15959         [BZ #3268]
15960         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
15961         fma tests.
15962         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
15963         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
15964         * sysdeps/i386/i686/multiarch/s_fma.c: Include
15965         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
15966         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
15967         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
15968         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
15969
15970 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
15971
15972         [BZ #12078]
15973         * posix/regcomp.c (parse_branch): One more memory leak plugged.
15974         * posix/bug-regex31.input: Add test case.
15975
15976 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
15977
15978         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
15979         * posix/bug-regex31.input: New file.
15980
15981         [BZ #12078]
15982         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
15983         (parse_sub_exp): Fix last change, use postorder.
15984
15985         * posix/bug-regex31.c: New file.
15986         * posix/Makefile: Add rules to build and run bug-regex31.
15987
15988         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
15989
15990         [BZ #12078]
15991         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
15992
15993         [BZ #12108]
15994         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
15995         to have entries in sys_siglist.
15996
15997         [BZ #12093]
15998         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
15999         be NULL.
16000
16001 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
16002
16003         [BZ #3268]
16004         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
16005         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
16006         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
16007         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
16008         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16009         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
16010         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
16011         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
16012         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
16013         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
16014         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
16015         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
16016         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
16017         * math/ftestexcept.c (fetestexcept): Likewise.
16018         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
16019         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
16020         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
16021         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
16022         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
16023         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
16024         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
16025
16026 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
16027
16028         [BZ #12107]
16029         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
16030         newline.
16031
16032 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
16033
16034         * string/bug-strstr1.c: New file.
16035         * string/Makefile: Add rules to build and run bug-strstr1.
16036
16037 2010-10-05  Eric Blake  <eblake@redhat.com>
16038
16039         [BZ #12092]
16040         * string/str-two-way.h (two_way_long_needle): Always clear memory
16041         when skipping input due to the shift table.
16042
16043 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
16044
16045         [BZ #12005]
16046         * malloc/mcheck.c: Handle large requests.
16047
16048         [BZ #12077]
16049         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
16050         for strncmp and strncasecmp.
16051         * string/stratcliff.c: Add tests for strcmp and strncmp.
16052         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
16053
16054 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
16055
16056         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
16057         __set_fpscr.
16058
16059 2010-09-30  Andreas Jaeger  <aj@suse.de>
16060
16061         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
16062         (CGROUP_SUPER_MAGIC): Define.
16063         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16064         Handle btrfs and cgroup file systems.
16065         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
16066         Likewise.
16067
16068 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
16069
16070         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
16071         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
16072
16073 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16074
16075         [BZ #12067]
16076         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
16077         trying to locate the ELF header.
16078
16079 2010-09-27  Andreas Schwab  <schwab@redhat.com>
16080
16081         [BZ #11611]
16082         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
16083         Mask out sign-bit copies when constructing f_fsid.
16084
16085 2010-09-24  Petr Baudis <pasky@suse.cz>
16086
16087         * debug/stack_chk_fail_local.c: Add missing licence exception.
16088         * debug/warning-nop.c: Likewise.
16089
16090 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
16091
16092         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
16093         implementing getdents64 using getdents syscall, set d_type if
16094         __ASSUME_GETDENTS32_D_TYPE.
16095
16096 2010-09-16  Andreas Schwab  <schwab@redhat.com>
16097
16098         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
16099         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
16100
16101 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
16102
16103         [BZ #12037]
16104         * posix/unistd.h: Undo change of feature selection for ftruncate from
16105         2010-01-11.
16106
16107 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
16108
16109         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
16110         detection.
16111
16112 2010-09-20  Andreas Schwab  <schwab@redhat.com>
16113
16114         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
16115         fanotify_mark.
16116         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
16117
16118 2010-09-14  Andreas Schwab  <schwab@redhat.com>
16119
16120         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
16121         variables after CHECK_SP call.
16122         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
16123
16124 2010-09-13  Andreas Schwab  <schwab@redhat.com>
16125             Ulrich Drepper  <drepper@redhat.com>
16126
16127         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
16128         re-relocationg ld.so.
16129         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
16130         _dl_init_paths call.
16131         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
16132         here anymore.
16133
16134 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
16135
16136         * resolv/res_init.c (__res_vinit): Count the default server we added.
16137
16138 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
16139             Ulrich Drepper  <drepper@redhat.com>
16140
16141         [BZ #11968]
16142         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
16143         (____longjmp_chk): Use %ebx for saving value across system call.
16144         Add unwind info.
16145
16146 2010-09-06  Andreas Schwab  <schwab@redhat.com>
16147
16148         * manual/Makefile: Don't mix pattern rules with normal rules.
16149
16150 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
16151
16152         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
16153         operation.
16154         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
16155         * libio/iofopncook.c (_IO_cookie_init): Likewise.
16156         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
16157         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
16158         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16159         Likewise.
16160
16161 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
16162
16163         [BZ #11979]
16164         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
16165         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
16166
16167 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
16168
16169         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
16170         * sysdeps/x86_64/addmul_1.S: Likewise.
16171         * sysdeps/x86_64/lshift.S: Likewise.
16172         * sysdeps/x86_64/mul_1.S: Likewise.
16173         * sysdeps/x86_64/rshift.S: Likewise.
16174         * sysdeps/x86_64/sub_n.S: Likewise.
16175         * sysdeps/x86_64/submul_1.S: Likewise.
16176
16177 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16178
16179         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
16180         Define __sched_param instead of SCHED_* and sched_param when
16181         <bits/sched.h> is included with __need_schedparam defined.
16182         * bits/sched.h [__need_schedparam]
16183         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
16184         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
16185         (__defined_schedparam): Define to 1.
16186         (__sched_param): New structure, identical to sched_param.
16187         (__need_schedparam): Undefine.
16188
16189 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
16190
16191         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
16192         (epoll_create1): Declare.
16193
16194         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
16195
16196 2010-08-31  Andreas Schwab  <schwab@redhat.com>
16197
16198         [BZ #7066]
16199         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
16200         shifting retval into place.
16201
16202 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
16203
16204         * nis/rpcsvc/nis.h: Update copyright notice.
16205         * nis/rpcsvc/nis.x: Likewise.
16206         * nis/rpcsvc/nis_callback.h: Likewise.
16207         * nis/rpcsvc/nis_callback.x: Likewise.
16208         * nis/rpcsvc/nis_object.x: Likewise.
16209         * nis/rpcsvc/nis_tags.h: Likewise.
16210         * nis/rpcsvc/yp.h: Likewise.
16211         * nis/rpcsvc/yp.x: Likewise.
16212         * nis/rpcsvc/ypupd.h: Likewise.
16213         * nis/yp_xdr.c: Likewise.
16214         * nis/ypupdate_xdr.c: Likewise.
16215
16216         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
16217         mainly the body of pmap_getport.  Add parameters to specify timeouts.
16218         (pmap_getport): Use __libc_rpc_getport.
16219         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
16220         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
16221         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
16222
16223 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
16224
16225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
16226         fanotify_mark.
16227
16228 2010-08-27  Roland McGrath  <roland@redhat.com>
16229
16230         * sysdeps/i386/i686/multiarch/Makefile
16231         (CFLAGS-varshift.c): New variable.
16232
16233 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
16234
16235         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
16236         * sysdeps/i386/i686/multiarch/varshift.c: New file.
16237
16238         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
16239
16240         * sysdeps/x86_64/strlen.S: Minimal code improvement.
16241
16242 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
16243
16244         * sysdeps/x86_64/strlen.S: Unroll the loop.
16245         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16246         strlen-sse2 strlen-sse2-bsf.
16247         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
16248         __strlen_no_bsf if bit_Slow_BSF is set.
16249         (__strlen_sse42): Removed.
16250         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
16251         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
16252
16253 2010-08-25  Roland McGrath  <roland@redhat.com>
16254
16255         * sysdeps/x86_64/multiarch/varshift.S: File removed.
16256         * sysdeps/x86_64/multiarch/varshift.c: New file.
16257         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
16258         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
16259         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
16260         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
16261
16262 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
16263
16264         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16265         strlen-sse2 strlen-sse2-bsf.
16266         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
16267         __strlen_sse2_bsf if bit_Slow_BSF is unset.
16268         (__strlen_sse2): Removed.
16269         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
16270         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
16271         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
16272         bit_Slow_BSF for Atom.
16273         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
16274         (index_Slow_BSF): Define.
16275         (HAS_SLOW_BSF): Define.
16276
16277 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
16278
16279         [BZ #10851]
16280         * resolv/res_init.c (__res_vinit): When no server address at all
16281         is given default to loopback.
16282
16283 2010-08-24  Roland McGrath  <roland@redhat.com>
16284
16285         * configure.in: Remove config-name.h generation.
16286         * configure: Regenerated.
16287         * config-name.in: File removed.
16288         * scripts/config-uname.sh: New file.
16289         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
16290         ($(objdir)config-name.h): New target.
16291
16292         * sunrpc/rpc_parse.h: Avoid nested comment.
16293
16294 2010-08-24  Richard Henderson  <rth@redhat.com>
16295             Ulrich Drepper  <drepper@redhat.com>
16296             H.J. Lu  <hongjiu.lu@intel.com>
16297
16298         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
16299         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
16300         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
16301         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
16302         _mm_alignr_epi8 with _mm_loadu_si128.
16303         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
16304         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
16305         (__m128i_shift_right): Removed.
16306         * sysdeps/i386/i686/multiarch/varshift.h: New file.
16307         * sysdeps/i386/i686/multiarch/varshift.S: New file.
16308         * sysdeps/x86_64/multiarch/varshift.h: New file.
16309         * sysdeps/x86_64/multiarch/varshift.S: New file.
16310
16311 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
16312
16313         * configure.in: Move assembler checks to before sysdep dir checking.
16314
16315 2010-08-20  Petr Baudis  <pasky@suse.cz>
16316
16317         * LICENSES: Sync the sunrpc license.
16318
16319 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
16320
16321         * sunrpc/auth_des.c: Update copyright notice once again.
16322         * sunrpc/auth_none.c: Likewise.
16323         * sunrpc/auth_unix.c: Likewise.
16324         * sunrpc/authdes_prot.c: Likewise.
16325         * sunrpc/authuxprot.c: Likewise.
16326         * sunrpc/bindrsvprt.c: Likewise.
16327         * sunrpc/clnt_gen.c: Likewise.
16328         * sunrpc/clnt_perr.c: Likewise.
16329         * sunrpc/clnt_raw.c: Likewise.
16330         * sunrpc/clnt_simp.c: Likewise.
16331         * sunrpc/clnt_tcp.c: Likewise.
16332         * sunrpc/clnt_udp.c: Likewise.
16333         * sunrpc/clnt_unix.c: Likewise.
16334         * sunrpc/des_crypt.c: Likewise.
16335         * sunrpc/des_soft.c: Likewise.
16336         * sunrpc/get_myaddr.c: Likewise.
16337         * sunrpc/getrpcport.c: Likewise.
16338         * sunrpc/key_call.c: Likewise.
16339         * sunrpc/key_prot.c: Likewise.
16340         * sunrpc/openchild.c: Likewise.
16341         * sunrpc/pm_getmaps.c: Likewise.
16342         * sunrpc/pm_getport.c: Likewise.
16343         * sunrpc/pmap_clnt.c: Likewise.
16344         * sunrpc/pmap_prot.c: Likewise.
16345         * sunrpc/pmap_prot2.c: Likewise.
16346         * sunrpc/pmap_rmt.c: Likewise.
16347         * sunrpc/rpc/auth.h: Likewise.
16348         * sunrpc/rpc/auth_unix.h: Likewise.
16349         * sunrpc/rpc/clnt.h: Likewise.
16350         * sunrpc/rpc/des_crypt.h: Likewise.
16351         * sunrpc/rpc/key_prot.h: Likewise.
16352         * sunrpc/rpc/netdb.h: Likewise.
16353         * sunrpc/rpc/pmap_clnt.h: Likewise.
16354         * sunrpc/rpc/pmap_prot.h: Likewise.
16355         * sunrpc/rpc/pmap_rmt.h: Likewise.
16356         * sunrpc/rpc/rpc.h: Likewise.
16357         * sunrpc/rpc/rpc_des.h: Likewise.
16358         * sunrpc/rpc/rpc_msg.h: Likewise.
16359         * sunrpc/rpc/svc.h: Likewise.
16360         * sunrpc/rpc/svc_auth.h: Likewise.
16361         * sunrpc/rpc/types.h: Likewise.
16362         * sunrpc/rpc/xdr.h: Likewise.
16363         * sunrpc/rpc_clntout.c: Likewise.
16364         * sunrpc/rpc_cmsg.c: Likewise.
16365         * sunrpc/rpc_common.c: Likewise.
16366         * sunrpc/rpc_cout.c: Likewise.
16367         * sunrpc/rpc_dtable.c: Likewise.
16368         * sunrpc/rpc_hout.c: Likewise.
16369         * sunrpc/rpc_main.c: Likewise.
16370         * sunrpc/rpc_parse.c: Likewise.
16371         * sunrpc/rpc_parse.h: Likewise.
16372         * sunrpc/rpc_prot.c: Likewise.
16373         * sunrpc/rpc_sample.c: Likewise.
16374         * sunrpc/rpc_scan.c: Likewise.
16375         * sunrpc/rpc_scan.h: Likewise.
16376         * sunrpc/rpc_svcout.c: Likewise.
16377         * sunrpc/rpc_tblout.c: Likewise.
16378         * sunrpc/rpc_util.c: Likewise.
16379         * sunrpc/rpc_util.h: Likewise.
16380         * sunrpc/rpcinfo.c: Likewise.
16381         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
16382         * sunrpc/rpcsvc/key_prot.x: Likewise.
16383         * sunrpc/rpcsvc/klm_prot.x: Likewise.
16384         * sunrpc/rpcsvc/mount.x: Likewise.
16385         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
16386         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
16387         * sunrpc/rpcsvc/rex.x: Likewise.
16388         * sunrpc/rpcsvc/rstat.x: Likewise.
16389         * sunrpc/rpcsvc/rusers.x: Likewise.
16390         * sunrpc/rpcsvc/sm_inter.x: Likewise.
16391         * sunrpc/rpcsvc/spray.x: Likewise.
16392         * sunrpc/rpcsvc/yppasswd.x: Likewise.
16393         * sunrpc/rtime.c: Likewise.
16394         * sunrpc/svc.c: Likewise.
16395         * sunrpc/svc_auth.c: Likewise.
16396         * sunrpc/svc_authux.c: Likewise.
16397         * sunrpc/svc_raw.c: Likewise.
16398         * sunrpc/svc_run.c: Likewise.
16399         * sunrpc/svc_simple.c: Likewise.
16400         * sunrpc/svc_tcp.c: Likewise.
16401         * sunrpc/svc_udp.c: Likewise.
16402         * sunrpc/svc_unix.c: Likewise.
16403         * sunrpc/svcauth_des.c: Likewise.
16404         * sunrpc/xcrypt.c: Likewise.
16405         * sunrpc/xdr.c: Likewise.
16406         * sunrpc/xdr_array.c: Likewise.
16407         * sunrpc/xdr_float.c: Likewise.
16408         * sunrpc/xdr_mem.c: Likewise.
16409         * sunrpc/xdr_rec.c: Likewise.
16410         * sunrpc/xdr_ref.c: Likewise.
16411         * sunrpc/xdr_sizeof.c: Likewise.
16412         * sunrpc/xdr_stdio.c: Likewise.
16413
16414         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
16415         handling.
16416
16417 2010-08-19  Andreas Schwab  <schwab@redhat.com>
16418
16419         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
16420
16421 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
16422
16423         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
16424         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
16425         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
16426         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
16427         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
16428         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
16429         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
16430         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
16431         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
16432         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
16433         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
16434         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
16435         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
16436         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
16437
16438 2010-07-26  Anton Blanchard  <anton@samba.org>
16439
16440         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
16441         * malloc/arena.c (heap_trim): Likewise.
16442
16443 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
16444
16445         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
16446         here.  Not...
16447         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
16448         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
16449
16450 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
16451
16452         * sysdeps/i386/elf/Makefile: New file.
16453
16454 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
16455
16456         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
16457         from fanotify_init.
16458         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
16459         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
16460
16461 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
16462
16463         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
16464         of strncasecmp_l.
16465         * sysdeps/multiarch/strcmp.S: Likewise.
16466
16467 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
16468
16469         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
16470         strncase_l-nonascii.
16471         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
16472         Add strncase_l-ssse3.
16473         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
16474         * sysdeps/x86_64/strcmp.S: Likewise.
16475         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
16476         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
16477         * sysdeps/x86_64/strncase.S: New file.
16478         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
16479         * sysdeps/x86_64/strncase_l.S: New file.
16480         * string/Makefile (strop-tests): Add strncasecmp.
16481         * string/test-strncasecmp.c: New file.
16482
16483         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
16484         warning.
16485
16486         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
16487         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
16488
16489 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
16490
16491         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
16492
16493 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
16494
16495         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
16496         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
16497         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
16498
16499 2010-05-01  Alan Modra  <amodra@gmail.com>
16500
16501         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
16502         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
16503         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
16504         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
16505         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
16506         tidying.  Don't tail-call __sigjmp_save for static lib.
16507         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
16508         save location.
16509         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
16510         (CALL_MCOUNT): Add eh info, and nop after bl.
16511         (TAIL_CALL_SYSCALL_ERROR): New macro.
16512         (PSEUDO_RET): Use it.
16513         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
16514         Correct save location of integer regs and cr.
16515         (_dl_profile_resolve): Correct cr save location.  Delete nops
16516         after bl when SHARED.  Reduce cfi size a little by better
16517         placement of cfi directives.
16518         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
16519         make a stack frame.  Instead use parm save area as a temp.
16520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
16521         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
16522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
16523         Don't make a stack frame for parent, use parm save area.
16524         Increase child stack frame to 112 bytes.  Don't save unused reg,
16525         and adjust reg usage.  Set up cfi on error recovery and
16526         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
16527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
16528         (__makecontext): Add dummy nop after jump to exit.
16529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
16530         Use correct parm save area and cr save, reduce stack frame.
16531         Correct cfi for possible PSEUDO_RET frame setup.
16532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
16533         Branch to local label emitted by PSEUDO_RET rather than
16534         __syscall_error.
16535
16536 2010-08-12  Andreas Schwab  <schwab@redhat.com>
16537
16538         [BZ #11904]
16539         * locale/programs/locale.c (print_assignment): New function.
16540         (show_locale_vars): Use it.
16541
16542 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
16543
16544         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
16545         field.
16546         (struct statfs64): Likewise.
16547         (_STATFS_F_FLAGS): Define.
16548         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
16549         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16550         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
16551         (ST_VALID): Define locally.
16552         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
16553         __statvfs_getflags, use the provided value.
16554         * sysdeps/unix/sysv/linux/kernel-features.h: Define
16555         __ASSUME_STATFS_F_FLAGS.
16556
16557         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
16558
16559         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
16560         Add sys/fanotify.h.
16561         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
16562         fanotify_mask for GLIBC_2.13.
16563         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
16564         fanotify_init and fanotify_mark.
16565         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
16566         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
16567
16568         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
16569         Add prlimit.
16570         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
16571         prlimit64 for GLIBC_2.13.
16572         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
16573         prlimit64.
16574         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
16575         syscall.
16576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
16577         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
16578         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
16579         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
16580         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
16581         add prlimit alias.
16582         * sysdeps/unix/sysv/linux/prlimit.c: New file.
16583
16584         [BZ #11903]
16585         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
16586         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
16587
16588         * nss/Makefile: Add rules to build and run tst-nss-test1.
16589         * shlib-versions: Add entry for libnss_test1.
16590         * nss/nss_test1.c: New file.
16591         * nss/tst-nss-test1.c: New file.
16592
16593         * nss/nsswitch.c (__nss_database_custom): Define new variable.
16594         (__nss_configure_lookup): Set appropriate entry in
16595         __nss_configure_lookup to true.
16596         * nss/nsswitch.h: Define enum with indeces of databases in
16597         databases and __nss_database_custom arrays.  Declare
16598         __nss_database_custom.
16599         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
16600         to avoid using nscd when custom rules are installed.
16601         * nss/getXXbyYY_r.c: Likewise.
16602         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
16603
16604         * nss/nss_files/files-parse.c: Whitespace fixes.
16605
16606 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
16607
16608         [BZ #11883]
16609         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
16610         * posix/fnmatch_loop.c: Likewise.
16611
16612 2010-07-17  Andi Kleen  <ak@linux.intel.com>
16613
16614         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
16615         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
16616         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
16617         * Versions.def [GLIBC_2.13]: Add.
16618
16619 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
16620
16621         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16622         Also fail if tpwd after pwuid call is NULL.
16623
16624 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16625
16626         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
16627         when converting to ms.
16628
16629 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16630
16631         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
16632         EOPNOTSUPP errors with ENOTTY.
16633         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
16634         EOPNOTSUPP errors with ENOTTY.
16635
16636 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
16637
16638         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
16639         Add strcasecmp_l-ssse3.
16640         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
16641         strcasecmp.
16642         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
16643         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
16644         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
16645
16646 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
16647
16648         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
16649
16650         * string/Makefile (strop-tests): Add strcasecmp.
16651         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
16652         strcasecmp_l-nonascii.
16653         (gen-as-const-headers): Add locale-defines.sym.
16654         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
16655         * sysdeps/x86_64/strcasecmp.S: New file.
16656         * sysdeps/x86_64/strcasecmp_l.S: New file.
16657         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
16658         * sysdeps/x86_64/locale-defines.sym: New file.
16659         * string/test-strcasecmp.c: New file.
16660
16661         * string/test-strcasestr.c: Test both ends of the range of characters.
16662         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
16663
16664 2010-07-29  Roland McGrath  <roland@redhat.com>
16665
16666         [BZ #11856]
16667         * manual/locale.texi (Yes-or-No Questions): Fix example code.
16668
16669 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
16670
16671         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
16672         for ld.so.
16673
16674 2010-07-27  Andreas Schwab  <schwab@redhat.com>
16675
16676         * manual/memory.texi (Malloc Tunable Parameters): Document
16677         M_PERTURB.
16678
16679 2010-07-26  Roland McGrath  <roland@redhat.com>
16680
16681         [BZ #11840]
16682         * configure.in (-fgnu89-inline check): Set and substitute
16683         gnu89_inline, not libc_cv_gnu89_inline.
16684         * configure: Regenerated.
16685         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
16686
16687 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
16688
16689         * string/test-strnlen.c: New file.
16690         * string/Makefile (strop-tests): Add strnlen.
16691         * string/tester.c (test_strnlen): Add a few more test cases.
16692         * string/tst-strlen.c: Better error reporting.
16693
16694         * sysdeps/x86_64/strnlen.S: New file.
16695
16696 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
16697
16698         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
16699         lower-latency instructions.
16700
16701 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
16702
16703         * string/test-strcasestr.c: New file.
16704         * string/test-strstr.c: New file.
16705         * string/Makefile (strop-tests): Add strstr and strcasestr.
16706         * string/str-two-way.h: Don't undefine MAX.
16707         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
16708
16709 2010-07-21  Andreas Schwab  <schwab@redhat.com>
16710
16711         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16712         strcasestr-nonascii.
16713         (CFLAGS-strcasestr-nonascii.c): Define.
16714         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
16715         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
16716         Remove unused attribute.
16717
16718 2010-07-20  Roland McGrath  <roland@redhat.com>
16719
16720         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
16721         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
16722         ld.so.cache was broken.  With it, there is no way to disable dsocaps
16723         like LD_HWCAP_MASK can disable hwcaps.
16724
16725 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
16726
16727         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
16728
16729 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
16730
16731         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
16732         call in strcasestr.
16733         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
16734         __strcasestr_sse42_nonascii.
16735         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
16736         strcasestr-nonascii.c.
16737         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
16738
16739 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
16740
16741         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
16742         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
16743         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
16744         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
16745
16746 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
16747
16748         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
16749         fcntl.
16750
16751 2010-07-06  Andreas Schwab  <schwab@redhat.com>
16752
16753         [BZ #11577]
16754         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
16755         dl_signal_cerror.
16756
16757 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
16758
16759         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
16760         _PC_PIPE_BUF using F_GETPIPE_SZ.
16761
16762 2010-07-05  Roland McGrath  <roland@redhat.com>
16763
16764         * manual/arith.texi (Rounding Functions): Fix rint description
16765         implicit in round description.
16766
16767 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
16768
16769         * elf/Makefile: Fix linking for a few tests to make recent linker
16770         happy.
16771
16772 2010-06-30  Andreas Schwab  <schwab@redhat.com>
16773
16774         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16775         $(common-objpfx)libc_nonshared.a.
16776
16777 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
16778
16779         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
16780         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
16781         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
16782         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
16783         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
16784         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
16785         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
16786         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
16787         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
16788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
16789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
16790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
16791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
16792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
16793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
16794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
16795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
16796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
16797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
16798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
16799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
16800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
16801         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
16802         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
16803         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
16804         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
16805         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
16806         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
16807         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
16808         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
16809         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
16810         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
16811         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
16812         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
16813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
16814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
16815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
16816         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
16817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
16818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
16819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
16820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
16821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
16822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
16823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
16824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
16825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
16826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
16827
16828 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
16829
16830         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
16831         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
16832         * string/memmove.c (memmove): Renamed to ...
16833         (MEMMOVE): ...this.  Default to memmove.
16834         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
16835         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
16836         (END_CHK): Define.
16837         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16838         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
16839         mempcpy-ssse3-back memmove-ssse3-back.
16840         * sysdeps/x86_64/multiarch/bcopy.S: New file .
16841         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
16842         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
16843         * sysdeps/x86_64/multiarch/memcpy.S: New file.
16844         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
16845         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
16846         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
16847         * sysdeps/x86_64/multiarch/memmove.c: New file.
16848         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
16849         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
16850         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
16851         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
16852         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
16853         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
16854         Define.
16855         (index_Fast_Copy_Backward): Define.
16856         (HAS_ARCH_FEATURE): Define.
16857         (HAS_FAST_REP_STRING): Define.
16858         (HAS_FAST_COPY_BACKWARD): Define.
16859
16860 2010-06-21  Andreas Schwab  <schwab@redhat.com>
16861
16862         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16863         Restore proper fallback handling.
16864
16865 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
16866
16867         [BZ #11701]
16868         * posix/group_member.c (__group_member): Correct checking loop.
16869
16870         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
16871         OOM in getpwuid_r correctly.  Return error number when the caller
16872         should return, otherwise -1.
16873         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
16874         call returning > 0 value.
16875         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
16876
16877 2010-06-07  Andreas Schwab  <schwab@redhat.com>
16878
16879         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
16880         libc_nonshared.a from targets in modules-names.
16881
16882 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
16883
16884         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
16885         requires it.
16886
16887 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
16888
16889         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
16890         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
16891         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
16892         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
16893
16894 2010-06-02  Andreas Schwab  <schwab@redhat.com>
16895
16896         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
16897
16898 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
16899
16900         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
16901         and F_GETPIPE_SZ.
16902         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
16903         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16904         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16905         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16906         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16907         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
16908
16909 2010-06-14  Roland McGrath  <roland@redhat.com>
16910
16911         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
16912
16913 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
16914
16915         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
16916         __REDIRECT followed by __THROW.
16917         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
16918         * posix/getopt.h (getopt): Likewise.
16919
16920 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
16921
16922         * hurd/lookup-at.c (__file_name_lookup_at): Accept
16923         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
16924         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
16925         in AT_FLAGS.
16926         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
16927         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
16928
16929 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
16930
16931         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
16932
16933 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
16934
16935         [BZ #11640]
16936         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16937         Properly check family and model.
16938
16939 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
16940
16941         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
16942
16943 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
16944
16945         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
16946
16947 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
16948
16949         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
16950         symbol reference.
16951
16952 2010-05-19  Andreas Schwab  <schwab@redhat.com>
16953
16954         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
16955         symbol reference.
16956
16957 2010-05-21  Andreas Schwab  <schwab@redhat.com>
16958
16959         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
16960         and internal_recvmmsg.
16961         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
16962         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
16963         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
16964         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
16965
16966         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
16967         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
16968         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
16969
16970 2010-05-20  Andreas Schwab  <schwab@redhat.com>
16971
16972         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
16973
16974 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
16975
16976         POWER7 optimizations.
16977         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
16978         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
16979
16980 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
16981
16982         * version.h: Update for 2.13 development version.
16983
16984 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
16985
16986         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
16987         exceptions.  Return 0.
16988
16989 2010-05-07  Roland McGrath  <roland@redhat.com>
16990
16991         * elf/ldconfig.c (main): Add a const.
16992
16993 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
16994
16995         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
16996         (args_options): Add no-idn option.
16997         (ahosts_keys_int): Add idn_flags to ai_flags.
16998         (parse_option): Handle 'i' option to clear idn_flags.
16999
17000         * malloc/malloc.c (_int_free): Possible race in the most recently
17001         added check.  Only act on the data if no current modification
17002         happened.
17003
17004 See ChangeLog.17 for earlier changes.