Fix ynl return value with LDBL_MIN.
[platform/upstream/glibc.git] / ChangeLog
1 2012-07-12  Marek Polacek  <polacek@redhat.com>
2
3         [BZ #14173]
4         * math/libm-test.inc (yn_test): Add test for BZ #14173.
5         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
6         loop condition.
7
8 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
9
10         [BZ #13717]
11         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
12         Change to 2.4.1 where previously 2.4.0.
13         * sysdeps/unix/sysv/linux/configure: Regenerated.
14         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
15         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
16         version.
17         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
18         (__ASSUME_AT_CLKTCK): Remove.
19         (__ASSUME_AT_PAGESIZE): Likewise.
20         (__ASSUME_AT_XID): Likewise.
21         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
22         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
23         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
24         unconditionally.
25         (HAVE_AUX_PAGESIZE): Likewise.
26         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
27         [__ASSUME_AT_CLKTCK]: Make code unconditional.
28         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
29
30 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
31
32         [BZ #14307]
33         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
34         the temporary buffer used to invoke __gethostbyname2_r,
35         __gethostbyaddr_r and gethostbyname4_r to make room for struct
36         host_data / struct gaih_addrtuple.
37         * resolv/nss_dns/dns-host.c (global scope): Move definition of
38         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
39         header file nss/nsswitch.h.
40         * nss/nsswitch.h (global scope): Add definition of implementation
41         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
42         resolv/nss_dns/dns-host.c).
43
44 2012-07-11  Andreas Jaeger  <aj@suse.de>
45
46         * po/fr.po: Update from translation team.
47
48         * po/sv.po: Update from translation team
49         * po/fr.po: Another update from translation team.
50
51 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52
53         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
54         for subnormals or multiply small sinh result by itself.
55         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
56         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
57
58 2012-07-11  David S. Miller  <davem@davemloft.net>
59
60         * sysdeps/sparc/fpu/libm-test-ulps: Update.
61
62 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
63
64         [BZ #14347]
65         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
66         (INTERNAL_MARK): Shift it here.
67
68 2012-07-10  Marek Polacek  <polacek@redhat.com>
69
70         [BZ #14151]
71         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
72         libc_cv_asm_global_directive with .globl.
73         * configure: Regenerated.
74         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
75         with .globl.
76         * sysdeps/i386/configure: Regenerated.
77         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
78         with .globl.
79         * sysdeps/x86_64/configure: Regenerated.
80         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
81         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
82         * elf/tst-unique2mod2.c: Likewise.
83         * elf/tst-unique2mod1.c: Likewise.
84         * elf/tst-unique1mod2.c: Likewise.
85         * elf/tst-unique1mod1.c: Likewise.
86         * sysdeps/s390/s390-32/sysdep.h: Likewise.
87         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
88         * sysdeps/s390/s390-64/sysdep.h: Likewise.
89         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
90         * sysdeps/mach/sysdep.h: Likewise.
91         * sysdeps/i386/sysdep.h: Likewise.
92         * sysdeps/i386/i386-mcount.S: Likewise.
93         * sysdeps/x86_64/_mcount.S: Likewise.
94         * sysdeps/x86_64/sysdep.h: Likewise.
95         * sysdeps/sh/_mcount.S: Likewise.
96         * sysdeps/sh/sysdep.h: Likewise.
97         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
98         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
99         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
100         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
101         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
102         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
103         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
104         * locale/localeinfo.h: Likewise.
105         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
106         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
107
108 2012-07-09  Roland McGrath  <roland@hack.frob.com>
109
110         [BZ #14336]
111         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
112         system".
113         * manual/message.texi (The Uniforum approach): Likewise.
114         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
115         (glibc iconv Implementation): Likewise.
116
117 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
118
119         [BZ #14337]
120         * math/s_clog.c (__clog): Avoid scaling a value down where that
121         could result in underflow.
122         * math/s_clog10.c (__clog10): Likewise.
123         * math/s_clog10f.c (__clog10f): Likewise.
124         * math/s_clog10l.c (__clog10l): Likewise.
125         * math/s_clogf.c (__clogf): Likewise.
126         * math/s_clogl.c (__clogl): Likewise.
127         * math/libm-test.inc (clog_test): Add more tests.
128         (clog10_test): Likewise.
129         * sysdeps/i386/fpu/libm-test-ulps: Update.
130         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
131
132 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
133
134         [BZ #14283]
135         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
136         by 7 not 8 to examine high bit of fractional part.
137
138         [BZ #14042]
139         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
140         for call to __mcount_internal.
141         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
142         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
143         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
144
145 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
146
147         [BZ #14154]
148         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
149         approximation for values within 0x1p-13f of an odd multiple of
150         pi/4.
151         * math/libm-test.inc (tan_test): Do not allow spurious underflow
152         exception.  Add more tests.
153         * sysdeps/i386/fpu/libm-test-ulps: Update.
154
155         [BZ #6778]
156         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
157         inputs and return -1 for them.  Do not check for +Inf in case not
158         reachable for +Inf.
159         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
160         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
161         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
162         and return -1 for them.  Do not check for +Inf in case not
163         reachable for +Inf.
164         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
165         define.
166         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
167         and return -1 for them.  Do not check for +Inf in case not
168         reachable for +Inf.
169         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
170         spurious underflow.
171         * sysdeps/i386/fpu/libm-test-ulps: Update.
172         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
173
174 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
175
176         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
177
178 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
179
180         [BZ #14157]
181         [BZ #14331]
182         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
183         could result in spurious underflow.  Scale down values above
184         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
185         * math/s_csqrtf.c (__csqrtf): Likewise.
186         * math/s_csqrtl.c (__csqrtl): Likewise.
187         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
188         spurious underflow.
189         * sysdeps/i386/fpu/libm-test-ulps: Update.
190         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
191
192 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
193
194         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
195         xopen-msg.sed.
196         * catgets/xopen-msg.awk: New file.
197         * catgets/xopen-msg.sed: Removed.
198
199         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
200         po2text.sed.
201         * intl/po2test.awk: New file.
202         * intl/po2test.sed: Removed.
203
204 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
205
206         [BZ #14328]
207         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
208         or multiply small sinh result by itself.
209         * math/s_ctanf.c (__ctanf): Likewise.
210         * math/s_ctanh.c (__ctanh): Likewise.
211         * math/s_ctanhf.c (__ctanhf): Likewise.
212         * math/s_ctanhl.c (__ctanhl): Likewise.
213         * math/s_ctanl.c (__ctanl): Likewise.
214         * math/libm-test.inc (ctan_test_tonearest): New function.
215         (ctan_test_towardzero): Likewise.
216         (ctan_test_downward): Likewise.
217         (ctan_test_upward): Likewise.
218         (ctanh_test_tonearest): Likewise.
219         (ctanh_test_towardzero): Likewise.
220         (ctanh_test_downward): Likewise.
221         (ctanh_test_upward): Likewise.
222         (main): Call these new functions.
223         * sysdeps/i386/fpu/libm-test-ulps: Update.
224         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
225
226 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
227
228         * .gitignore: Delete /ports entry.
229
230 2012-07-03  Andreas Jaeger  <aj@suse.de>
231
232         * po/bg.po: Update from translation team.
233         * po/cs.po: Likewise.
234         * po/de.po: Likewise.
235         * po/hr.po: Likewise.
236         * po/nl.pl: Likewise.
237         * po/pl.po: Likewise.
238         * po/vi.po: Likewise.
239
240 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
241
242         * Makeconfig [!+link] (+link-before-libc): New variable.
243         [!+link] (+link-after-libc): Likewise.
244         [!+link] (+link-tests): Likewise.
245         [!+link] (+link): Define in terms of $(+link-before-libc) and
246         $(+link-after-libc).
247         [!+link-static] (+link-static-before-libc): New variable.
248         [!+link-static] (+link-static-after-libc): Likewise.
249         [!+link-static] (+link-static-tests): Likewise.
250         [!+link-static] (+link-static): Define in terms of
251         $(+link-static-before-libc) and $(+link-static-after-libc).
252         [build-shared] (link-libc-before-gnulib): New variable.
253         [build-shared] (link-libc-tests): Likewise.
254         [build-shared] (link-libc): Define in terms of
255         $(link-libc-before-gnulib).
256         [!build-shared] (link-libc-tests): New variable.
257         (link-libc-static-tests): New variable.
258         [!gnulib] (gnulib-arch): New variable.
259         [!gnulib] (gnulib-tests): Likewise.
260         [!gnulib] (static-gnulib-arch): Likewise.
261         [!gnulib] (static-gnulib-tests): Likewise.
262         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
263         Define with "=" instead of ":=".
264         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
265         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
266         * Rules (binaries-all-notests): New variable.
267         (binaries-all-tests): Likewise.
268         (binaries-static-notests): Likewise.
269         (binaries-static-tests): Likewise.
270         (binaries-all): Define using $(binaries-all-notests) and
271         $(binaries-all-tests).
272         (binaries-static): Define using $(binaries-static-notests) and
273         $(binaries-static-tests).
274         (binaries-shared-tests): New variable.
275         (binaries-shared-notests): Likewise.
276         (binaries-shared): Remove variable.
277         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
278         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
279         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
280         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
281         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
282         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
283         * elf/Makefile (sln-modules): New variable.
284         (extra-objs): Add $(sln-modules:=.o).
285         (ldconfig-modules): Add static-stubs.
286         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
287         * elf/static-stubs.c: New file.
288
289         [BZ #14283]
290         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
291         by 7 not 8 to examine high bit of fractional part.  Use volatile
292         variables when splitting into final array of floats if
293         __FLT_EVAL_METHOD__ != 0.
294         * math/libm-test.inc (cos_test): Add another test.
295         (sin_test): Likewise.
296         * sysdeps/i386/fpu/libm-test-ulps: Update.
297
298         [BZ #14273]
299         * math/libm-test.inc (cosh_test): Add more tests.
300
301         * version.h (RELEASE): Set to "development".
302         (VERSION): Set to "2.16.90".
303
304 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
305
306         * NEWS: Update copyright. Remove last-updated date.
307         Mention math library bug fixes and timezone data changes.
308         * README: Mention GNU/Hurd, x32, and HPPA support status.
309
310 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
311
312         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
313
314 2012-06-27  Andreas Jaeger  <aj@suse.de>
315
316         * manual/contrib.texi (Contributors): Add Samuel Thibault.
317
318 2012-06-25  Andreas Jaeger  <aj@suse.de>
319
320         * sysdeps/s390/fpu/libm-test-ulps: Update.
321
322 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
323             Thomas Schwinge  <thomas@codesourcery.com>
324
325         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
326         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
327         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
328         fanotify_mark.
329
330 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
331
332         * sysdeps/mach/start.c: Remove file.
333         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
334         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
335         * sysdeps/sh/init-first.c: Likewise.
336
337         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
338         registers for frame unwinding purposes, add CFI directives.
339         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
340         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
341         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
342         Likewise.
343
344         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
345         __fortify_fail returning.
346         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
347
348         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
349         sysdeps/sh/____longjmp_chk.S.
350         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
351         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
352         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
353         (gen-as-const-headers): Append sigaltstack-offsets.sym.
354
355         * sysdeps/sh/abort-instr.h: New file.
356         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
357         process in case exit returns.
358
359         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
360         initialize the GOT register before use.
361
362         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
363         calculation of ARGC > 4.
364
365         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
366         meaningful names to some local labels.
367
368 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
369             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
370
371         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
372         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
373         (__arch_compare_and_exchange_val_16_acq): Likewise.
374         (__arch_compare_and_exchange_val_32_acq): Likewise.
375         (atomic_exchange_and_add): Fix gUSA sequence.
376         (atomic_add): Likewise.
377         (atomic_add_negative): Likewise.
378         (atomic_add_zero): Likewise.
379         (atomic_bit_test_set): Likewise.
380
381 2012-06-22  Andreas Schwab  <schwab@redhat.com>
382
383         [BZ #13579]
384         * include/link.h (struct link_map): Add l_free_initfini.
385         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
386         l_initfini.
387         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
388         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
389         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
390         set.
391
392 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
393
394         * configure.in: Use AC_LANG_SOURCE.
395         * configure: Regenerate.
396
397 2012-06-22  Roland McGrath  <roland@hack.frob.com>
398
399         * configure.in (libc_cv_localstatedir): New substituted variable.
400         * configure: Regenerated.
401         * config.make.in (localstatedir): New variable, substituted from
402         libc_cv_localstatedir.
403         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
404         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
405         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
406         * sysdeps/gnu/configure: Regenerated.
407
408 2012-06-21  Jeff Law  <law@redhat.com>
409
410         [BZ #14277]
411         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
412         free.  Simplify list management for _LIBC case.
413
414 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
415
416         [BZ #14273]
417         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
418         Clear sign bit of 64-bit integer value before comparing against
419         overflow value.
420
421         * sysdeps/mach/configure: Regenerated.
422
423 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
424
425         [BZ #14278]
426         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
427
428 2012-06-21  Jeff Law  <law@redhat.com>
429
430         [BZ #13882]
431         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
432         uint16_t for elements in the "seen" array to avoid char overflows.
433         * elf/dl-fini.c (_dl_sort_fini): Likewise.
434         * elf/dl-open.c (dl_open_worker): Likewise.
435
436 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
437
438         * scripts/list-sources.sh: Scan PORTS for translations.
439         * po/libc.pot: Regenerated.
440
441 2012-06-21  Andreas Jaeger  <aj@suse.de>
442
443         [BZ #12194]
444         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
445         warning.
446         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
447         * bits/byteswap-16.h (__bswap_16): Likewise.
448         * bits/byteswap.h (__bswap_constant_16): Likewise.
449
450 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
451
452         [BZ #14117]
453         * sysdeps/i386/fpu_control.h: Removed.
454         * sysdeps/x86_64/fpu_control.h: Moved to ...
455         * sysdeps/x86/fpu_control.h: Here.
456
457         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
458         (_FPU_SETCW): Likewise.
459
460 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
461
462         [BZ #14117]
463         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
464         * sysdeps/x86/fpu/bits/mathinline.h: This.
465         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
466
467         [BZ #14050]
468         [BZ #14117]
469         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
470         functions if __x86_64__ is defined.
471
472 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
473
474         * string/endian.h: Add !__ASSEMBLER__ condition for including
475         conversion interfaces.
476
477 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
478
479         [BZ #14241]
480         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
481         of ABS(x) in calculating zero to negative powers other than odd
482         integers.
483         * math/libm-test.inc (pow_test): Add more tests.
484
485 2012-06-15  Andreas Jaeger  <aj@suse.de>
486
487         * manual/contrib.texi (Contributors): Update entry of Liubov
488         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
489         Machado Filho.
490
491 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
492
493         * string/string.h: Add __wur to GNU version of strerror_r.
494
495 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
496
497         [BZ #14229]
498         * string/Makefile (tests): Add tst-strtok_r.
499         * string/tst-strtok_r.c: New file.
500         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
501         RAX_LP/RDX_LP on SAVE_PTR.
502
503 2012-06-14  Roland McGrath  <roland@hack.frob.com>
504
505         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
506
507 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
508
509         * libm_test.inc (csqrt_test): Allow more spurious underflow
510         exceptions.
511         (j0_test): Likewise.
512         (j1_test): Likewise.
513         (y0_test): Likewise.
514         (y1_test): Likewise.
515
516 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
517
518         * po/Makefile (libc.pot): Use UTF-8 charset.
519
520 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
521
522         [BZ #14210]
523         Suppress sign-conversion warning from FD_SET.
524         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
525         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
526         not unsigned long int.
527         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
528
529 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
530
531         [BZ #14050]
532         [BZ #14117]
533         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
534         __extern_always_inline instead of __extern_inline.
535         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
536         (__signbit): Likewise.
537         (__signbitl): Support C++ namespace.
538         (lrintf): New inline function.
539         (lrint): Likewise.
540         (llrintf): Likewise.
541         (llrint): Likewise.
542         (fmaxf): Likewise.
543         (fmax): Likewise.
544         (fminf): Likewise.
545         (fmin): Likewise.
546         (rint): Likewise.
547         (rintf): Likewise.
548         (ceil): Likewise.
549         (ceilf): Likewise.
550         (floor): Likewise.
551         (floorf): Likewise.
552         (nearbyint): Likewise.
553         (nearbyintf): Likewise.
554
555 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
556
557         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
558         non-default versions.
559
560 2012-06-11  Roland McGrath  <roland@hack.frob.com>
561
562         [BZ #14218]
563         * manual/argp.texi (Argp): Reword argp_parse description slightly.
564
565 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
566
567         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
568         (FE_UPWARD, FE_DOWNWARD): Don't define.
569         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
570         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
571
572         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
573         reading it.
574         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
575         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
576
577 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
578
579         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
580         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
581         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
582         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
583
584 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
585
586         [BZ #14117]
587         * sysdeps/i386/fpu/bits/fenv.h: Removed.
588         * sysdeps/i386/fpu/Implies: New file.
589         * sysdeps/x86_64/fpu/Implies: Likewise.
590         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
591         * sysdeps/x86/fpu/bits/fenv.h: This.
592
593         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
594         __SSE_MATH__.
595
596 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
597
598         [BZ #14134]
599         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
600         character 0xffff that matches the last element of the
601         conversion table.
602
603 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
604
605         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
606         fmodl commit.
607
608 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
609
610         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
611         values higher than 25.6283.
612
613 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
614
615         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
616         subnormal exponent extraction and add some __builtin_expect.
617         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
618         Fix for subnormal mantissa calculation.
619
620 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
621
622         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
623         cpu2 is -1 and errno is not ENOSYS.
624
625 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
626
627         [BZ #14117]
628         * sysdeps/i386/i486/bits/string.h: Renamed to ...
629         * sysdeps/x86/bits/string.h: This.
630         * sysdeps/x86_64/bits/string.h: Removed.
631
632         * sysdeps/i386/i486/bits/string.h: Define inline functions only
633         if not compiling for x86-64, but compiling for >= i486.
634
635         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
636         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
637
638         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
639         New macro from Linux kernel 3.4.0.
640         (FP_XSTATE_MAGIC2): Likewise.
641         (FP_XSTATE_MAGIC2_SIZE): Likewise.
642         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
643         (struct _fpx_sw_bytes): New struct.
644         (struct _xsave_hdr): Likewise.
645         (struct _ymmh_state): Likewise.
646         (struct _xstate): Likewise.
647
648         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
649         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
650         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
651         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
652         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
653         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
654
655         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
656         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
657         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
658         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
659         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
660         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
661
662 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
663
664         [BZ #13743]
665         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
666         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
667         (sysdep_headers): Include sys/platform/ppc.h.
668         * sysdeps/powerpc/test-gettimebase.c: Test for
669         __ppc_get_timebase() to catch future ISA opcode/insn changes.
670         * manual/Makefile (appendices): Include platform.texi.
671         * manual/contrib.texi (Contributors): Update @node pointers.
672         * manual/maint.texi (Maintenance): Likewise.
673         (Platform): New node.
674         * manual/platform.texi: New file.  Document the new features.
675
676 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
677             Jakub Jelinek  <jakub@redhat.com>
678
679         [BZ #14188]
680         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
681         where __builtin_expect is unavailable.
682
683 2012-06-03  David S. Miller  <davem@davemloft.net>
684
685         * stdlib/longlong.h: Updated from GCC.
686
687 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
688
689         [BZ #14042]
690         * sysdeps/powerpc/powerpc32/mcount.c: New file.
691         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
692         __mcount_internal.
693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
694         (GLIBC_2.16): Likewise.
695
696 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
697
698         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
699
700 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
701
702         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
703         (default-abi): New variable.
704         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
705         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
706         variable.
707         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
708         Likewise.
709         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
710         Likewise.
711         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
712         Likewise.
713
714         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
715         definition.  Document in comment.
716
717 2012-06-01  David S. Miller  <davem@davemloft.net>
718
719         * stdlib/longlong.h: Updated from GCC.
720
721 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
722
723         [BZ #14117]
724         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
725         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
726         sys/debugreg.h sys/io.h here.
727         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
728         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
729         sys/io.h.
730         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
731         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
732         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
733         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
734         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
735         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
736
737         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
738         Define only if __x86_64__ is defined.
739
740 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
741
742         [BZ #14048]
743         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
744         Use int64_t for variable i.
745         * math/libm-test.inc (fmod_test): Add more tests.
746
747         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
748         z computation is not scheduled after fetestexcept.
749         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
750         Use math_force_eval instead of asm to ensure calculation scheduled
751         before exception test.
752         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
753         Ensure a1 + u.d computation is not scheduled after fetestexcept.
754
755 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
756
757         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
758         computation is not scheduled after fetestexcept.
759
760 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
761
762         [BZ #14117]
763         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
764         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
765
766 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
767
768         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
769         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
770
771 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
772
773         [BZ #14117]
774         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
775         <bits/wordsize.h>.
776         (__WCHAR_MIN): Support __WORDSIZE == 64.
777         (__WCHAR_MAX): Likewise.
778
779         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
780         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
781
782         [BZ #14183]
783         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
784         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
785
786         [BZ #14117]
787         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
788         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
789
790         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
791         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
792
793         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
794         Defined to 1 if __x86_64__ isn't defined.
795         (_STAT_VER_LINUX_OLD): New.
796         (st_atime): Remove duplicate.
797         (st_mtime): Likewise.
798         (st_ctime): Likewise.
799
800 2012-05-31  David S. Miller  <davem@davemloft.net>
801
802         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
803         entries.
804
805 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
806
807         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
808         gen-libm-test.pl.
809
810         [BZ #14132]
811         * elf/dl-reloc.c: Include <_itoa.h>.
812         (_dl_reloc_bad_type): Remove use of INTUSE.
813         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
814         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
815         * stdio-common/psiginfo.c (psiginfo): Likewise.
816         * stdio-common/psignal.c (psignal): Likewise.
817         * string/strsignal.c (strsignal): Likewise.
818         * include/signal.h (_sys_siglist): Declare hidden proto.
819         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
820         INTVARDEF with libc_hidden_data_def.
821         * stdio-common/itoa-udigits.c: Likewise.
822         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
823         (_itoa_lower_digits_internal): Remove declaration.
824         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
825         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
826         (_sys_sigabbrev_internal): Remove aliases.
827         (_sys_siglist): Define hidden alias.
828
829 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
830
831         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
832         bits/sysctl.h.
833
834 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
835
836         [BZ #14117]
837         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
838         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
839
840         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
841         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
842         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
843         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
844         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
845         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
846
847         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
848         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
849         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
850
851         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
852         with __addr.
853         (insw): Likewise.
854         (insl): Likewise.
855         (outsb): Likewise.
856         (outsw): Likewise.
857         (outsl): Likewise.
858
859         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
860         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
861         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
862
863         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
864         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
865         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
866         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
867         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
868         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
869
870         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
871         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
872
873         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
874         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
875
876         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
877         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
878         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
879
880         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
881         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
882         to ...
883         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
884
885         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
886         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
887         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
888
889         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
890         for x86-64.
891         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
892
893 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
894
895         * math/math.h (M_El): Use two more decimal places.
896         (M_LOG2El): Likewise.
897         (M_LOG10El): Likewise.
898         (M_LN2l): Likewise.
899         (M_LN10l): Likewise.
900         (M_PIl): Likewise.
901         (M_PI_2l): Likewise.
902         (M_PI_4l): Likewise.
903         (M_1_PIl): Likewise.
904         (M_2_PIl): Likewise.
905         (M_2_SQRTPIl): Likewise.
906         (M_SQRT2l): Likewise.
907         (M_SQRT1_2l): Likewise.
908
909 2012-05-31  David S. Miller  <davem@davemloft.net>
910
911         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
912         values between float registers.
913         * sysdeps/sparc/sparc64/memset.S: Likewise.
914         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
915
916 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
917
918         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
919         -D_FORTIFY_SOURCE=1.
920         (CPPFLAGS-tst-longjmp_chk.c): Define.
921         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
922         (CPPFLAGS-tst-longjmp_chk2.c): Define.
923         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
924         CFLAGS-tst-wchar-h.c.
925
926 2012-05-31  Marek Polacek  <polacek@redhat.com>
927
928         [BZ #14132]
929         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
930         __endmntent_internal): Remove declaration.
931         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
932         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
933         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
934
935 2012-05-30  David S. Miller  <davem@davemloft.net>
936
937         * sysdeps/sparc/sparc32/soft-fp/q_util.c
938         (___Q_simulate_exceptions): Use real FP ops rather than writing
939         into the %fsr.
940         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
941         Likewise.
942
943 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
944
945         [BZ #14117]
946         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
947         * sysdeps/x86/bits/xtitypes.h: This.
948
949         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
950         * sysdeps/x86/bits/wordsize.h: This.
951
952         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
953         * sysdeps/x86/bits/huge_vall.h: This.
954
955         * sysdeps/i386/bits/select.h: Removed.
956         * sysdeps/x86_64/bits/select.h: Renamed to ...
957         * sysdeps/x86/bits/select.h: This.
958
959         * sysdeps/i386/bits/setjmp.h: Removed.
960         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
961         * sysdeps/x86/bits/setjmp.h: This.
962
963         * sysdeps/i386/bits/mathdef.h: Removed.
964         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
965         * sysdeps/x86/bits/mathdef.h: This.
966
967 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
968
969         [BZ #14132]
970         * include/sys/socket.h (__connect_internal)
971         (__libc_sa_len_internal): Remove declaration.
972         (__connect, __libc_sa_len): Declare hidden_proto.
973         (SA_LEN): Remove use of INTUSE.
974         * socket/connect.c: Add libc_hidden_def.
975         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
976         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
977         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
978         alias.
979         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
980         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
981         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
982         of adding _internal alias.
983
984 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
985
986         [BZ #14117]
987         * sysdeps/i386/bits/link.h: Removed.
988         * sysdeps/i386/bits/linkmap.h: Likewise.
989         * sysdeps/x86_64/bits/link.h: Renamed to ...
990         * sysdeps/x86/bits/link.h: This.
991         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
992         * sysdeps/x86/bits/linkmap.h: This.
993
994         * sysdeps/i386/bits/endian.h: Removed.
995         * sysdeps/x86_64/bits/endian.h: Renamed to ...
996         * sysdeps/x86/bits/endian.h: This.
997
998         * sysdeps/i386/bits/byteswap.h: Removed.
999         * sysdeps/i386/bits/byteswap-16.h: Likewise.
1000         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
1001         * sysdeps/x86/bits/byteswap.h: This.
1002         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
1003         * sysdeps/x86/bits/byteswap-16.h: This.
1004         * sysdeps/i386/Implies: Add x86.
1005         * sysdeps/x86_64/Implies: Likewise.
1006
1007 2012-05-30  David S. Miller  <davem@davemloft.net>
1008
1009         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
1010         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
1011         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
1012         (FP_TRAPPING_EXCEPTIONS): Define.
1013         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
1014         (FP_TRAPPING_EXCEPTIONS): Define.
1015         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
1016         subnormals only when inexact has been signalled or underflow
1017         exceptions are enabled.
1018         (_FP_PACK_CANONICAL): Likewise.
1019
1020 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
1021
1022         [BZ #14183]
1023         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
1024         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
1025
1026 2012-05-30  Richard Henderson  <rth@twiddle.net>
1027
1028         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
1029         with #ifndef NOT_IN_libc.
1030
1031         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
1032         marked to avoid plt entry.
1033
1034 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
1035
1036         [BZ #14112]
1037         * Makeconfig (default-abi): New macro.
1038         (abi-includes): Likewise.
1039         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
1040         $(abi-$(default-abi)-lib-soname) for soname if defined.
1041         ($(common-objpfx)gnu/lib-names.stmp): Generate from
1042         abi-variants.
1043         * Makefile (installed-stubs): Likewise.
1044         * include/stubs-biarch.h: Removed.
1045         * scripts/lib-names.awk: Only handle one library at a time.
1046         * scripts/soversions.awk: Remove WORDSIZE support.
1047         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
1048         entries.
1049         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
1050         Removed.
1051         (syscall-list-default-condition): Likewise.
1052         (syscall-list-default-condition): Likewise.
1053         (syscall-list-includes): Likewise.
1054         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
1055         syscall-list-* with abi-*.  Handle undefined abi-variants.
1056         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
1057         * sysdeps/unix/sysv/linux/i386/Implies: New file.
1058         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
1059         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
1060         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
1061         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
1062         Removed.
1063         (syscall-list-32-options): Likewise.
1064         (syscall-list-32-condition): Likewise.
1065         (syscall-list-64-options): Likewise.
1066         (syscall-list-64-condition): Likewise.
1067         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
1068         macro.
1069         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
1070         Renamed to ...
1071         (abi-*): This.
1072         (abi-64-ld-soname): New macro.
1073         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
1074         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
1075         Renamed to ...
1076         (abi-*): This.
1077         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
1078         * sysdeps/x86_64/x32/shlib-versions: Likewise.
1079
1080 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
1081
1082         * sysdeps/unix/sysv/linux/kernel-features.h
1083         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
1084         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
1085         include <kernel-features.h>.
1086         [!__NR_ftruncate64]: Remove conditional code.
1087         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1088         [__NR_ftruncate64]: Make code unconditional.
1089         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1090         * sysdeps/unix/sysv/linux/truncate64.c: Do not
1091         include <kernel-features.h>.
1092         [!__NR_ftruncate64]: Remove conditional code.
1093         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1094         [__NR_ftruncate64]: Make code unconditional.
1095         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1096         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
1097         include <kernel-features.h>.
1098         [!__NR_ftruncate64]: Remove conditional code.
1099         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1100         [__NR_ftruncate64]: Make code unconditional.
1101         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
1103         include <kernel-features.h>.
1104         [!__NR_ftruncate64]: Remove conditional code.
1105         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1106         [__NR_ftruncate64]: Make code unconditional.
1107         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
1108
1109         * configure.in (libc_cv_fpie): Weaken to a compile test using
1110         LIBC_TRY_CC_OPTION.
1111         * configure: Regenerated.
1112
1113 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1114
1115         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
1116         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
1117         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
1118         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
1119         Refreshed.
1120         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
1121         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
1122         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
1123         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
1124         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
1125         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
1126         Refreshed.
1127
1128 2012-05-27  David S. Miller  <davem@davemloft.net>
1129
1130         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
1131         (___Q_zero): New.
1132         (__Q_simulate_exceptions): Return void.  Change to simulate
1133         exceptions by writing into the %fsr.
1134         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
1135         (__Qp_handle_exceptions): Likewise.
1136         (numbers): Delete.
1137         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
1138         __Qp_handle_exceptions.
1139         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
1140         __Qp_handle_exceptions.
1141         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
1142         as unused and give dummy FP_RND_NEAREST initializer.
1143         (FP_INHIBIT_RESULTS): Define.
1144         (___Q_simulate_exceptions): Update declaration.
1145         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
1146         formatting.
1147         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
1148         as unused and give dummy FP_RND_NEAREST initializer.
1149         (__Qp_handle_exceptions): Update declaration.
1150         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
1151         formatting.
1152
1153 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
1154
1155         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
1156         the temporary FPU control word.
1157         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1158         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
1159         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
1160         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
1161         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
1162         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
1163         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
1164         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
1165         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
1166         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
1167         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
1168
1169 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1170
1171         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
1172         fields.
1173
1174 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
1175
1176         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
1177         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
1178         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
1179         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
1180         Likewise.
1181         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
1182         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
1183         Likewise.
1184
1185 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
1186
1187         * po/h.po: Update from translation team.
1188
1189 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
1190
1191         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
1192
1193         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
1194         handling of denormals.
1195         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
1196         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
1197         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
1198         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
1199         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
1200         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
1201         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
1202         Likewise.
1203
1204 2012-05-26  Marek Polacek  <polacek@redhat.com>
1205
1206         [BZ #14152]
1207         * math/libm-test.inc (fma_test): Don't always expect underflow
1208         exception.
1209
1210 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1211
1212         [BZ #12416]
1213         * elf/tst-execstack.c: Include stackinfo.h.
1214         (do_test): Adjust test case to ensure that pthread_getattr_np
1215         behaviour remains the same after marking stack executable.
1216
1217 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
1218
1219         * sysdeps/unix/sysv/linux/kernel-features.h
1220         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
1221         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
1222         kernel-features.h.
1223         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
1224         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
1225         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
1226         kernel-features.h.
1227         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
1228         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
1229
1230 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1231
1232         * configure.in: Define the default includes to being none.
1233         * configure: Regenerated.
1234
1235 2012-05-25  Roland McGrath  <roland@hack.frob.com>
1236
1237         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
1238         * sysdeps/x86_64/setjmp.S: Likewise.
1239         * sysdeps/i386/bsd-setjmp.S: Likewise.
1240         * sysdeps/i386/bsd-_setjmp.S: Likewise.
1241         * sysdeps/i386/setjmp.S: Likewise.
1242         * sysdeps/i386/__longjmp.S: Likewise.
1243         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
1244         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1245
1246         * include/stap-probe.h: New file.
1247         * configure.in: Handle --enable-systemtap.
1248         * configure: Regenerated.
1249         * config.h.in (USE_STAP_PROBE): New #undef.
1250         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
1251         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
1252         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
1253
1254 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
1255
1256         [BZ #13717]
1257         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
1258         to 2.4.0 where earlier.
1259         * sysdeps/unix/sysv/linux/configure: Regenerated.
1260         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
1261         <kernel-features.h>.
1262         [__ASSUME_32BITUIDS]: Make code unconditional.
1263         [!__ASSUME_32BITUIDS]: Remove conditional code.
1264         * sysdeps/unix/sysv/linux/i386/fchown.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/fchownat.c (fchownat)
1269         [__ASSUME_32BITUIDS]: Make code unconditional.
1270         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
1271         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
1272         <kernel-features.h>.
1273         [__ASSUME_32BITUIDS]: Make code unconditional.
1274         [!__ASSUME_32BITUIDS]: Remove conditional code.
1275         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
1276         <kernel-features.h>.
1277         [__ASSUME_32BITUIDS]: Make code unconditional.
1278         [!__ASSUME_32BITUIDS]: Remove conditional code.
1279         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
1280         <kernel-features.h>.
1281         [__ASSUME_32BITUIDS]: Make code unconditional.
1282         [!__ASSUME_32BITUIDS]: Remove conditional code.
1283         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
1284         <kernel-features.h>.
1285         [__ASSUME_32BITUIDS]: Make code unconditional.
1286         [!__ASSUME_32BITUIDS]: Remove conditional code.
1287         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
1288         <kernel-features.h>.
1289         [__ASSUME_32BITUIDS]: Make code unconditional.
1290         [!__ASSUME_32BITUIDS]: Remove conditional code.
1291         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
1292         <kernel-features.h>.
1293         [__ASSUME_32BITUIDS]: Make code unconditional.
1294         [!__ASSUME_32BITUIDS]: Remove conditional code.
1295         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
1296         <kernel-features.h>.
1297         [__ASSUME_32BITUIDS]: Make code unconditional.
1298         [!__ASSUME_32BITUIDS]: Remove conditional code.
1299         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
1300         <kernel-features.h>.
1301         [__ASSUME_32BITUIDS]: Make code unconditional.
1302         [!__ASSUME_32BITUIDS]: Remove conditional code.
1303         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
1304         <kernel-features.h>.
1305         [__ASSUME_32BITUIDS]: Make code unconditional.
1306         [!__ASSUME_32BITUIDS]: Remove conditional code.
1307         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
1308         <kernel-features.h>.
1309         [__ASSUME_32BITUIDS]: Make code unconditional.
1310         [!__ASSUME_32BITUIDS]: Remove conditional code.
1311         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
1312         <kernel-features.h>.
1313         [__NR_setresgid] (__setresgid): Do not declare.
1314         [__ASSUME_32BITUIDS]: Make code unconditional.
1315         [!__ASSUME_32BITUIDS]: Remove conditional code.
1316         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
1317         <kernel-features.h>.
1318         [__NR_setresuid] (__setresuid): Do not declare.
1319         [__ASSUME_32BITUIDS]: Make code unconditional.
1320         [!__ASSUME_32BITUIDS]: Remove conditional code.
1321         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
1322         <kernel-features.h>.
1323         [__ASSUME_32BITUIDS]: Make code unconditional.
1324         [!__ASSUME_32BITUIDS]: Remove conditional code.
1325         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
1326         <kernel-features.h>.
1327         [__ASSUME_32BITUIDS]: Make code unconditional.
1328         [!__ASSUME_32BITUIDS]: Remove conditional code.
1329         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
1330         <kernel-features.h>.
1331         [__ASSUME_32BITUIDS]: Make code unconditional.
1332         [!__ASSUME_32BITUIDS]: Remove conditional code.
1333         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
1334         <kernel-features.h>.
1335         [__ASSUME_32BITUIDS]: Make code unconditional.
1336         [!__ASSUME_32BITUIDS]: Remove conditional code.
1337         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
1338         <kernel-features.h>.
1339         [__ASSUME_32BITUIDS]: Make code unconditional.
1340         [!__ASSUME_32BITUIDS]: Remove conditional code.
1341         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
1342         <kernel-features.h>.
1343         [__ASSUME_32BITUIDS]: Make code unconditional.
1344         [!__ASSUME_32BITUIDS]: Remove conditional code.
1345         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
1346         <kernel-features.h>.
1347         [__ASSUME_32BITUIDS]: Make code unconditional.
1348         [!__ASSUME_32BITUIDS]: Remove conditional code.
1349         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
1350         <kernel-features.h>.
1351         [__ASSUME_32BITUIDS]: Make code unconditional.
1352         [!__ASSUME_32BITUIDS]: Remove conditional code.
1353         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
1354         <kernel-features.h>.
1355         [__ASSUME_32BITUIDS]: Make code unconditional.
1356         [!__ASSUME_32BITUIDS]: Remove conditional code.
1357         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
1358         <kernel-features.h>.
1359         [__ASSUME_32BITUIDS]: Make code unconditional.
1360         [!__ASSUME_32BITUIDS]: Remove conditional code.
1361         * sysdeps/unix/sysv/linux/kernel-features.h
1362         (__ASSUME_SETRESUID_SYSCALL): Remove.
1363         (__ASSUME_SETRESGID_SYSCALL): Likewise.
1364         (__ASSUME_32BITUIDS): Likewise.
1365         (__ASSUME_LDT_WORKS): Likewise.
1366         (__ASSUME_O_DIRECTORY): Likewise.
1367         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
1368         architecture but not kernel version.
1369         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
1370         (__ASSUME_MMAP2_SYSCALL): Likewise.
1371         (__ASSUME_STAT64_SYSCALL): Likewise.
1372         (__ASSUME_IPC64): Likewise.
1373         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
1374         <kernel-features.h>.
1375         [__ASSUME_32BITUIDS]: Make code unconditional.
1376         [!__ASSUME_32BITUIDS]: Remove conditional code.
1377         * sysdeps/unix/sysv/linux/opendir.c: Do not include
1378         <kernel-features.h>.
1379         [__ASSUME_O_DIRECTORY]: Make code unconditional.
1380         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
1381         132096]: Remove conditional code.
1382         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
1383         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
1384         <kernel-features.h>.
1385         [__ASSUME_32BITUIDS]: Make code unconditional.
1386         [!__ASSUME_32BITUIDS]: Remove conditional code.
1387         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
1388         <kernel-features.h>.
1389         [__ASSUME_32BITUIDS]: Make code unconditional.
1390         [!__ASSUME_32BITUIDS]: Remove conditional code.
1391         * sysdeps/unix/sysv/linux/setegid.c: Do not include
1392         <kernel-features.h>.
1393         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
1394         unconditional.
1395         (__setresgid): Do not declare.
1396         [__ASSUME_32BITUIDS]: Make code unconditional.
1397         [!__ASSUME_32BITUIDS]: Remove conditional code.
1398         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
1399         <kernel-features.h>.
1400         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
1401         unconditional.
1402         (__setresuid): Do not declare.
1403         [__ASSUME_32BITUIDS]: Make code unconditional.
1404         [!__ASSUME_32BITUIDS]: Remove conditional code.
1405         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
1406         <kernel-features.h>.
1407         [__ASSUME_32BITUIDS]: Make code unconditional.
1408         [!__ASSUME_32BITUIDS]: Remove conditional code.
1409         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
1410         <kernel-features.h>.
1411         [__ASSUME_32BITUIDS]: Make code unconditional.
1412         [!__ASSUME_32BITUIDS]: Remove conditional code.
1413
1414 2012-05-25  Richard Henderson  <rth@twiddle.net>
1415
1416         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
1417         dl_hwcap to ifunc resolver.
1418         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
1419         elf_ifunc_invoke.
1420         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
1421         dl_hwcap to ifunc resolver.
1422         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
1423
1424 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
1425
1426         [BZ #14153]
1427         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
1428         for |x| <= 2**-26, not 2**-57.
1429         * math/libm-test.inc (acos_test): Do not allow spurious underflow
1430         exception.
1431
1432 2012-05-24  Jeff Law  <law@redhat.com>
1433
1434         * stdio-common/Makefile (tests): Add bug25.
1435         * stdio-common/bug25.c: New test.
1436
1437 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1438
1439         [BZ #13576]
1440         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
1441         multiple of MALLOC_ALIGNMENT in size.
1442         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
1443
1444 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
1445
1446         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
1447         Require >= 256.
1448         (FILENAME_MAX): Use macro-int-constant.
1449         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
1450         (_IOFBF): Use macro-int-constant.
1451         (_IOLBF): Likewise.
1452         (_IONBF): Likewise.
1453         (SEEK_CUR): Likewise.
1454         (SEEK_END): Likewise.
1455         (SEEK_SET): Likewise.
1456         (TMP_MAX): Likewise.
1457         (EOF): Use macro-int-constant.  Require < 0.
1458         (NULL): Use macro-constant.  Require == 0.
1459         (stdin): Require type to be FILE *.
1460         (stdout): Likewise.
1461         (stderr): Likewise.
1462         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
1463         macro-int-constant.
1464         (EXIT_SUCCESS): Likewise.
1465         (NULL): Use macro-constant.  Require == 0.
1466         (RAND_MAX): Use macro-int-constant.
1467         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
1468         [C99-based standards] (strtof): Require function.
1469         [C99-based standards] (strtold): Likewise.
1470         [C99-based standards] (strtoll): Likewise.
1471         [C99-based standards] (strtoull): Likewise.
1472         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
1473         [ISO || ISO99 || ISO11] (limits.h): Likewise.
1474         [ISO || ISO99 || ISO11] (math.h): Likewise.
1475         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
1476         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
1477         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1478
1479 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
1480
1481         [BZ #14132]
1482         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
1483         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
1484         * intl/dgettext.c (DCGETTEXT): Likewise.
1485         * intl/gettext.c (DCGETTEXT): Likewise.
1486         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
1487         * posix/regex_internal.h (gettext): Likewise.
1488         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
1489         Remove declaration.
1490         * include/argz.h (__argz_count_internal)
1491         (__argz_stringify_internal): Remove declaration.
1492         (__argz_count, __argz_stringify): Declare hidden proto.
1493         * intl/dcgettext.c: Remove use of INTDEF.
1494         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
1495         * string/argz-stringify.c: Likewise.
1496         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
1497         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
1498         Declare hidden proto.
1499         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
1500         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
1501         Declare hidden proto.
1502         * include/stdio.h (__asprintf_internal): Don't declare.
1503         (__asprintf): Don't define as macro.  Declare hidden proto.
1504         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
1505         (__fsetlocking): Declare hidden proto.
1506         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
1507         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
1508         hidden proto.
1509         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
1510         (_IO_setlinebuf): Remove use of INTUSE.
1511         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
1512         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
1513         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
1514         Remove declaration.
1515         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
1516         (_IO_do_flush): Remove use of INTUSE.
1517         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
1518         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
1519         (_IO_adjust_column, _IO_least_wmarker)
1520         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
1521         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
1522         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
1523         (_IO_default_doallocate, _IO_wdefault_doallocate)
1524         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
1525         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
1526         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
1527         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
1528         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
1529         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
1530         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
1531         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
1532         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
1533         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
1534         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
1535         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
1536         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
1537         proto.
1538         (_IO_flush_all_internal, _IO_adjust_column_internal)
1539         (_IO_default_uflow_internal, _IO_default_finish_internal)
1540         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
1541         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
1542         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
1543         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
1544         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
1545         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
1546         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
1547         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
1548         (_IO_file_close_internal, _IO_file_close_it_internal)
1549         (_IO_file_underflow_internal, _IO_file_overflow_internal)
1550         (_IO_file_init_internal, _IO_file_attach_internal)
1551         (_IO_file_fopen_internal, _IO_file_read_internal)
1552         (_IO_file_sync_internal, _IO_file_seek_internal)
1553         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
1554         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
1555         (_IO_str_underflow_internal, _IO_str_overflow_internal)
1556         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
1557         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
1558         (_IO_list_all_internal, _IO_link_in_internal)
1559         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
1560         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
1561         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
1562         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
1563         (_IO_do_write_internal, _IO_padn_internal)
1564         (_IO_getline_info_internal, _IO_getline_internal)
1565         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
1566         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
1567         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
1568         (_IO_vfscanf_internal, _IO_vfprintf_internal)
1569         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
1570         (_IO_init_internal, _IO_un_link_internal): Don't declare.
1571         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
1572         with libc_hidden_ver, remove use of INTUSE.
1573         * libio/genops.c: Likewise.
1574         * libio/freopen.c: Likewise.
1575         * libio/freopen64.c: Likewise.
1576         * libio/iofclose.c: Likewise.
1577         * libio/iofdopen.c: Likewise.
1578         * libio/iofflush.c: Likewise.
1579         * libio/iofflush_u.c: Likewise.
1580         * libio/iofgets.c: Likewise.
1581         * libio/iofgets_u.c: Likewise.
1582         * libio/iofopen.c: Likewise.
1583         * libio/iofopncook.c: Likewise.
1584         * libio/iofread.c: Likewise.
1585         * libio/iofread_u.c: Likewise.
1586         * libio/ioftell.c: Likewise.
1587         * libio/iofwrite.c: Likewise.
1588         * libio/iogetline.c: Likewise.
1589         * libio/iogets.c: Likewise.
1590         * libio/iogetwline.c: Likewise.
1591         * libio/iopadn.c: Likewise.
1592         * libio/iopopen.c: Likewise.
1593         * libio/ioseekoff.c: Likewise.
1594         * libio/ioseekpos.c: Likewise.
1595         * libio/iosetbuffer.c: Likewise.
1596         * libio/iosetvbuf.c: Likewise.
1597         * libio/ioungetc.c: Likewise.
1598         * libio/ioungetwc.c: Likewise.
1599         * libio/iovdprintf.c: Likewise.
1600         * libio/iovsprintf.c: Likewise.
1601         * libio/iovsscanf.c: Likewise.
1602         * libio/memstream.c: Likewise.
1603         * libio/obprintf.c: Likewise.
1604         * libio/oldfileops.c: Likewise.
1605         * libio/oldiofclose.c: Likewise.
1606         * libio/oldiofdopen.c: Likewise.
1607         * libio/oldiofopen.c: Likewise.
1608         * libio/oldiopopen.c: Likewise.
1609         * libio/oldstdfiles.c: Likewise.
1610         * libio/putc.c: Likewise.
1611         * libio/setbuf.c: Likewise.
1612         * libio/setlinebuf.c: Likewise.
1613         * libio/stdfiles.c: Likewise.
1614         * libio/strops.c: Likewise.
1615         * libio/vasprintf.c: Likewise.
1616         * libio/vscanf.c: Likewise.
1617         * libio/vsnprintf.c: Likewise.
1618         * libio/vswprintf.c: Likewise.
1619         * libio/wfiledoalloc.c: Likewise.
1620         * libio/wfileops.c: Likewise.
1621         * libio/wgenops.c: Likewise.
1622         * libio/wmemstream.c: Likewise.
1623         * libio/wstrops.c: Likewise.
1624         * libio/__fpurge.c: Likewise.
1625         * libio/__fsetlocking.c: Likewise.
1626         * assert/assert.c: Likewise.
1627         * debug/fgets_chk.c: Likewise.
1628         * debug/fgets_u_chk.c: Likewise.
1629         * debug/fread_chk.c: Likewise.
1630         * debug/fread_u_chk.c: Likewise.
1631         * debug/gets_chk.c: Likewise.
1632         * debug/obprintf_chk.c: Likewise.
1633         * debug/vasprintf_chk.c: Likewise.
1634         * debug/vdprintf_chk.c: Likewise.
1635         * debug/vsnprintf_chk.c: Likewise.
1636         * debug/vsprintf_chk.c: Likewise.
1637         * malloc/mtrace.c: Likewise.
1638         * misc/error.c: Likewise.
1639         * misc/syslog.c: Likewise.
1640         * stdio-common/asprintf.c: Likewise.
1641         * stdio-common/fxprintf.c: Likewise.
1642         * stdio-common/getw.c: Likewise.
1643         * stdio-common/isoc99_fscanf.c: Likewise.
1644         * stdio-common/isoc99_scanf.c: Likewise.
1645         * stdio-common/isoc99_vfscanf.c: Likewise.
1646         * stdio-common/isoc99_vscanf.c: Likewise.
1647         * stdio-common/isoc99_vsscanf.c: Likewise.
1648         * stdio-common/printf-prs.c: Likewise.
1649         * stdio-common/printf_fp.c: Likewise.
1650         * stdio-common/printf_fphex.c: Likewise.
1651         * stdio-common/printf_size.c: Likewise.
1652         * stdio-common/putw.c: Likewise.
1653         * stdio-common/scanf.c: Likewise.
1654         * stdio-common/sprintf.c: Likewise.
1655         * stdio-common/tmpfile.c: Likewise.
1656         * stdio-common/vfprintf.c: Likewise.
1657         * stdio-common/vfscanf.c: Likewise.
1658         * stdlib/strfmon_l.c: Likewise.
1659         * sunrpc/openchild.c: Likewise.
1660         * sunrpc/xdr_stdio.c: Likewise.
1661         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
1662         * sysdeps/mach/hurd/tmpfile.c: Likewise.
1663
1664 2012-05-24  Roland McGrath  <roland@hack.frob.com>
1665
1666         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
1667
1668         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
1669         in the third column, to generate for the shared library an IFUNC
1670         that uses _dl_vdso_vsym.
1671         * Makerules (COMPILE.c, compile-stdin.c): New variables.
1672         * Makeconfig (object-suffixes-noshared): New variable.
1673
1674         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
1675         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
1676         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
1677         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
1678
1679         [BZ #14132]
1680         * include/sys/time.h (__gettimeofday): Remove macro.
1681         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
1682         * time/gettimeofday.c (__gettimeofday): Remove #undef.
1683         Remove INTDEF.
1684         (__gettimeofday): Add libc_hidden_def.
1685         (gettimeofday): Add libc_hidden_weak.
1686         * sysdeps/mach/gettimeofday.c: Likewise.
1687         * sysdeps/posix/gettimeofday.c: Likewise.
1688         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
1689         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
1690         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
1691         (__gettimeofday_internal): Remove strong_alias.
1692         (__gettimeofday): Add libc_hidden_def.
1693         (gettimeofday): Add libc_hidden_weak.
1694         * sysdeps/unix/syscalls.list (gettimeofday):
1695         Remove __gettimeofday_internal alias.
1696
1697 2012-05-24  Daniel Jacobowitz  <drow@false.org>
1698             H.J. Lu  <hongjiu.lu@intel.com>
1699
1700         [BZ #12495]
1701         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
1702         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
1703         (largebin_index_32_big): New.
1704         (largebin_index): Use it for 16-byte alignment.
1705         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
1706         correction with front_misalign.
1707
1708 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1709
1710         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
1711         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
1712         Likewise.
1713         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
1714         Likewise.
1715         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
1716         Likewise.
1717         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
1718         Likewise.
1719         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
1720         Likewise.
1721         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
1722         Likewise.
1723         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
1724         Likewise.
1725         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
1726         Likewise.
1727         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
1728         Likewise.
1729         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
1730         Likewise.
1731         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
1732         Likewise.
1733         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
1734         Likewise.
1735
1736         * scripts/data/c++-types-x32-linux-gnu.data: New file.
1737         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
1738
1739 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
1740
1741         [BZ #10846]
1742         [BZ #14036]
1743         * math/libm-test.inc (exp_test): Add test from bug 14036.
1744         (pow_test): Add test from bug 10846.
1745
1746         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
1747         and other flags.
1748         (special_function): Do not include flags in test name.
1749         (parse_args): Likewise.
1750         * sysdeps/i386/fpu/libm-test-ulps: Update.
1751         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
1752         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
1753         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
1754         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1755
1756         * math/gen-libm-test.pl (%beautify): Add entries for underflow
1757         exceptions.
1758         * math/libm-test.inc ("Philosophy"): Update comment about
1759         exception testing.
1760         (UNDERFLOW_EXCEPTION): New macro.
1761         (UNDERFLOW_EXCEPTION_OK): Likewise.
1762         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
1763         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
1764         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
1765         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
1766         (INVALID_EXCEPTION_OK): Update value.
1767         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
1768         (OVERFLOW_EXCEPTION_OK): Likewise.
1769         (IGNORE_ZERO_INF_SIGN): Likewise.
1770         (test_exceptions): Handle underflow exceptions.
1771         (acos_test): Update for underflow exception expectations.
1772         (cexp_test): Likewise.
1773         (clog_test): Likewise.
1774         (clog10_test): Likewise.
1775         (csqrt_test): Likewise.
1776         (ctan_test): Likewise.
1777         (ctanh_test): Likewise.
1778         (exp_test): Likewise.
1779         (exp10_test): Likewise.
1780         (exp2_test): Likewise.
1781         (expm1_test): Likewise.
1782         (fma_test): Likewise.
1783         (j0_test): Likewise.
1784         (jn_test): Likewise.
1785         (nexttoward_test): Likewise.
1786         (pow_test): Likewise.
1787         (scalbn_test): Likewise.
1788         (scalbln_test): Likewise.
1789         (tan_test): Likewise.
1790         (y1_test): Likewise.
1791         * sysdeps/i386/fpu/libm-test-ulps: Update.
1792         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1793
1794 2012-05-23  David S. Miller  <davem@davemloft.net>
1795
1796         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
1797         (__libc_sigaction): Remove unused local variables.
1798
1799 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1800
1801         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
1802
1803 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1804
1805         mktime: avoid signed integer overflow
1806         * time/mktime.c (__mktime_internal): Do not mishandle the case
1807         where diff == INT_MIN.
1808
1809         mktime: simplify computation of average
1810         * time/mktime.c (ranged_convert): Use new time_t_avg function
1811         instead of rolling our own (probably-slower) code.
1812
1813         mktime: do not assume signed right shift propagates sign bit
1814         * time/mktime.c (isdst_differ): New static function.
1815         (__mktime_internal): No need to normalize tm_isdst now.
1816         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
1817         tm_isdst values.
1818
1819         mktime: merge another wrapv change from gnulib
1820         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
1821         from some compilers.
1822
1823         mktime: remove incorrect attempt at unusual arithmetics
1824         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
1825         The code didn't really work on such machines anyway.
1826         (TYPE_MINIMUM): Assume two's complement.
1827         (twos_complement_arithmetic): Verify that long_int and time_t
1828         are two's complement (or unsigned, in the latter case).
1829
1830         mktime: check signed shifts on long_int and time_t, too
1831         * time/mktime.c (SHR): Check that shifts work as desired
1832         on the types long_int and time_t too, as SHR is used on
1833         such types.
1834
1835         mktime: do not assume 'long' is wide enough
1836         * time/mktime.c (verify): Move decl up.
1837         (long_int): New type.
1838         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
1839         to remove assumption in the code that 'long' is wide enough to
1840         store year values.  This assumption is not true on x32 and on
1841         some non-glibc platforms.
1842
1843         mktime: merge wrapv change from gnulib
1844         * time/mktime.c (WRAPV): New macro.
1845         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
1846         (guess_time_tm, __mktime_internal): Do not assume that signed
1847         integer overflow wraps around; modern compilers generate code
1848         where this assumption is no longer valid.
1849
1850 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1851
1852         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1853         Replace "jmp L(pseudo_end)" with "ret".
1854         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1855         Likewise.
1856
1857 2012-05-23  Andreas Jaeger  <aj@suse.de>
1858
1859         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
1860         * sysdeps/unix/sysv/linux/poll.c: Remove file.
1861
1862 2012-05-23  Andreas Jaeger  <aj@suse.de>
1863             Maximilian Attems  <max@stro.at>
1864
1865         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
1866         New macros.
1867
1868 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1869
1870         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
1871         code so that pseudo_end is just ret and the stack pointer is
1872         correct also for static library in error case.
1873
1874 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
1875
1876         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
1877         move to syscalls.list.
1878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
1879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
1880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
1881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
1882
1883         * manual/install.texi (Running make install): Do not mention Linux
1884         kernel version for which pt_chown is not needed.
1885         (Linux): Do not mention problems with nscd with 2.0 kernels.
1886         * INSTALL: Regenerated.
1887
1888 2012-05-23  Andreas Jaeger  <aj@suse.de>
1889
1890         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
1891         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
1892         macro.
1893         * sysdeps/unix/sysv/linux/s390/bits/mman.h
1894         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1895         * sysdeps/unix/sysv/linux/sh/bits/mman.h
1896         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1897         * sysdeps/unix/sysv/linux/i386/bits/mman.h
1898         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1899         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
1900         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1901         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
1902         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1903         * sysdeps/unix/sysv/linux/bits/in.h
1904         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
1905
1906 2012-05-22  Roland McGrath  <roland@hack.frob.com>
1907
1908         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
1909         (PREPARE_VERSION): Just use assert instead, it will be elided
1910         under [NDEBUG] anyway.
1911
1912 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1913
1914         * sysdeps/unix/sysv/linux/Makefile: Include
1915         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
1916         (sysdep_routines): Remove sysctl.
1917         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
1918         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
1919         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
1920         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
1921         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
1922
1923 2012-05-22  Andreas Jaeger  <aj@suse.de>
1924
1925         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
1926         that pseudo_end is just ret and the stack pointer is correct also
1927         for static library in error case.
1928
1929 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
1930
1931         [BZ #14122]
1932         * nss/nsswitch.c (defconfig_entries): New variable.
1933         (__nss_database_lookup): Don't leak defconfig entries.
1934         (nss_parse_service_list): Don't leak on error paths.
1935         (free_database_entries): New function.
1936         (free_defconfig): New function.
1937         (free_mem): Move common code to free_database_entries.
1938
1939 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1940
1941         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
1942         Add arch_prctl.
1943         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
1944
1945         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
1946         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
1947         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
1948         New macro.
1949         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
1950         (INTERNAL_SYSCALL_TYPES): Likewise.
1951         (LOAD_ARGS_TYPES_[1-6]): Likewise.
1952         (LOAD_REGS_TYPES_[1-6]): Likewise.
1953         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
1954         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
1955
1956 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1957
1958         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
1959         copysignl for GLIBC_2_0.
1960         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
1961         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
1962         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
1963         logbl for GLIBC_2_0.
1964         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
1965         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
1966
1967 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1968
1969         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
1970         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
1971
1972         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1973         Use "neg %eax".
1974
1975         * time/mktime.c: Update copyright years.
1976
1977 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1978
1979         mktime: merge comment-quoting-style change from gnulib
1980         * time/mktime.c: Quote 'like this' in comments.
1981         The GNU coding standards suggest that we no longer quote `like this',
1982         as "`" and "'" are typically rendered asymmetrically nowadays.
1983         The typical gnulib style is to quote 'like this' when quoting
1984         code, and "like this" when quoting English.
1985
1986         * time/mktime.c (compile-command): Add "-I.".
1987
1988         mktime: merge mktime-internal.h change from gnulib
1989         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
1990
1991         mktime: merge time_r change from gnulib
1992         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
1993
1994         mktime: merge DEBUG change from gnulib
1995         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
1996         case system <time.h> has a #define.
1997
1998         mktime: merge <sys/types.h> change from gnulib
1999         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
2000         since <time.t> is now guaranteed to define time_t.
2001
2002         mktime: merge HAVE_CONFIG_H change from gnulib
2003         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
2004
2005 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
2006
2007         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
2008         Use "neg %eax".
2009
2010         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
2011         __rlim_t cast.
2012         (struct rusage): Use anonymous union to pad each field to
2013         __syscall_slong_t.
2014
2015 2012-05-21  David S. Miller  <davem@davemloft.net>
2016
2017         * Makefules (o-iterator): Remove .s cases.
2018         (compile-command.s): Delete.
2019         (COMPILE.s): Delete.
2020         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
2021
2022 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
2023
2024         * configure.in (libc_cv_predef_stack_protector): Only consider
2025         "foobar" and "__stack_chk_fail" lines in libc_undefs.
2026         * configure: Regenerated.
2027
2028 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2029
2030         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
2031         New macro.  Use R*LP on int and pointer.
2032         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
2033         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
2034         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
2035         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
2036
2037         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
2038         [__WORDSIZE_TIME64_COMPAT32] instead of
2039         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
2040         (struct utmp): Likewise.
2041         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
2042         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
2043         Renamed to ...
2044         (__WORDSIZE_TIME64_COMPAT32): This.
2045         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
2046         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
2047         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
2048         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
2049         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
2050         (__WORDSIZE_TIME64_COMPAT32): New macro.
2051
2052 2012-05-21  Andreas Jaeger  <aj@suse.de>
2053
2054         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
2055         only if [SHARED]. Add prototype for __wcschr_ia32.
2056
2057 2012-05-21  Roland McGrath  <roland@hack.frob.com>
2058
2059         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
2060         of %rbp unmolested in the jmp_buf while mangling the low bits.
2061         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
2062         unmolested high bits of %rbp while demangling the low bits.
2063         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
2064
2065 2012-05-21  Andreas Jaeger  <aj@suse.de>
2066
2067         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
2068         * sunrpc/svc_simple.c: Use it for registerrpc.
2069         * sunrpc/xcrypt.c: Use it for passwd2des.
2070
2071         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
2072
2073 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2074
2075         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
2076         Don't define if [__SYSCALL_WORDSIZE != 32].
2077         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
2078         New macro.
2079
2080 2012-05-21  Bruno Haible  <bruno@clisp.org>
2081             Andreas Jaeger  <aj@suse.de>
2082
2083         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
2084         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
2085         inptr and inend for must_buffer_ch.
2086         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
2087         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
2088         * stdio-common/Makefile (tests): Remove bug15.
2089         (bug15-ENV): Remove macro.
2090         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
2091         anymore.
2092
2093 2012-05-19  Andreas Jaeger  <aj@suse.de>
2094             Roland McGrath  <roland@hack.frob.com>
2095
2096         * manual/contrib.texi: Completely rewritten. It contains now an
2097         alphabetical list of contributors and their contributions.
2098
2099 2012-05-21  Richard Henderson  <rth@twiddle.net>
2100
2101         * misc/getauxval.c (__getauxval): Use unsigned long int.
2102         * misc/sys/auxv.h: Include <sys/cdefs.h>.
2103         (getauxval): Use unsigned long int.
2104
2105 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2106
2107         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
2108
2109 2012-05-21  Roland McGrath  <roland@hack.frob.com>
2110
2111         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
2112         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
2113         __alignof__ (long double).
2114
2115 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2116
2117         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2118
2119 2012-05-20  Richard Henderson  <rth@twiddle.net>
2120
2121         * misc/getauxval.c: New file.
2122         * misc/sys/auxv.h: New file.
2123         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
2124         (routines): Add getauxval.
2125         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
2126         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
2127         * elf/dl-sysdep.c (_dl_auxv): Remove.
2128         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
2129         * elf/dl-support.c (_dl_auxv): New variable.
2130         (_dl_aux_init): Initialize it.
2131         * manual/startup.texi (Auxiliary Vector): New node.
2132         * sysdeps/generic/bits/hwcap.h: New file.
2133         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
2134         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
2135         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
2136         * sysdeps/sparc/sysdep.h: ... here.  Include it.
2137         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
2138         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
2139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2140         Update.
2141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
2142         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
2143         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
2144         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
2145         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
2146         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
2147         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
2148         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
2149
2150 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2151
2152         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2153
2154 2012-05-19  David S. Miller  <davem@davemloft.net>
2155
2156         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2157
2158 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
2159
2160         [BZ #14123]
2161         * math/s_ccosh.c: Include <float.h>
2162         (__ccosh): Avoid internal overflow calculating sinh and cosh
2163         values before multiplying by sin and cos values.
2164         * math/s_ccoshf.c: Likewise.
2165         * math/s_ccoshl.c: Likewise.
2166         * math/s_csin.c: Likewise.
2167         * math/s_csinf.c: Likewise.
2168         * math/s_csinl.c: Likewise.
2169         * math/s_csinh.c: Likewise.
2170         * math/s_csinhf.c: Likewise.
2171         * math/s_csinhl.c: Likewise.
2172         * math/libm-test.inc (ccos_test): Add more tests.
2173         (ccosh_test): Likewise.
2174         (csin_test): Likewise.
2175         (csinh_test): Likewise.
2176         * sysdeps/i386/fpu/libm-test-ulps: Update.
2177         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2178
2179 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2180
2181         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
2182         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
2183
2184         * sysdeps/x86_64/x32/_itoa.h: Add comment.
2185
2186 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
2187
2188         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
2189         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
2190         * sysdeps/powerpc/soft-fp/Versions: Likewise.
2191         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
2192         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
2193         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
2194         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
2195         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
2196         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
2197         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
2198         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
2199         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
2200         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
2201         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
2202         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
2203         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
2204         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
2205         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
2206         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
2207         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
2208         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
2209         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
2210         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
2211         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
2212         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
2213         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
2214         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
2215         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
2216         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
2217         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
2218         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
2219
2220 2012-05-18  Andreas Jaeger  <aj@suse.de>
2221
2222         * csu/.gitignore: Delete.
2223
2224 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2225
2226         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
2227         (timex): Use __syscall_slong_t.
2228
2229 2012-05-18  Andreas Jaeger  <aj@suse.de>
2230             Carlos O'Donell  <carlos_odonell@mentor.com>
2231
2232         * manual/install.texi (Configuring and compiling): Update
2233         description about files modified in the source directory.
2234         * INSTALL: Regenerated.
2235
2236 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2237
2238         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
2239         value.  Use "or" to set return value to -1.
2240         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
2241         negate return value.
2242
2243 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2244
2245         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
2246         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
2247         failure if the compiler has Graphite support disabled.
2248         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
2249         Likewise.
2250         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
2251         CFLAGS-memmove.c): Likewise.
2252         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
2253         Likewise.
2254
2255 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2256
2257         * sysdeps/x86_64/x32/_itoa.h: New file.
2258
2259         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
2260         getdents system call only if kernel and user dirents have the
2261         same d_ino and d_off.
2262
2263         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
2264         LLONG_MAX != LONG_MAX.
2265         (_itoa_word): Use _ITOA_WORD_TYPE on value.
2266         (_fitoa_word): Likewise.
2267
2268         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
2269         years.
2270         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
2271         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
2272         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
2273
2274         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
2275         include <bits/wordsize.h>.  Check __x86_64__ instead of
2276         __WORDSIZE.
2277         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
2278         if __x86_64__ is defined.  Use anonymous union on fpstate.
2279
2280         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
2281         anonymous union.
2282
2283 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
2284
2285         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
2286         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
2287         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
2288         Refer to _rtld_local_ro instead of _rtld_global_ro.
2289         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
2290         Likewise.
2291         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
2292         Likewise.
2293         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
2294         Likewise.
2295         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
2296         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
2297         of _rtld_global, and rtld_progname instead of _dl_argv[0].
2298
2299         * sysdeps/powerpc/powerpc32/dl-machine.c
2300         (__elf_machine_runtime_setup) [PROF]: Don't reference
2301         _dl_prof_resolve.
2302
2303 2012-05-18  Andreas Jaeger  <aj@suse.de>
2304
2305         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
2306         function only available for GCCs before 3.4 since GCC 3.4
2307         introduced a builtin.
2308         (lrint): Likewise.
2309         (llrintf): Likewise.
2310         (llrint): Likewise.
2311         (fmaxf): Likewise.
2312         (fmax): Likewise.
2313         (fminf): Likewise.
2314         (fmin): Likewise.
2315         (rint): Likewise.
2316         (rintf): Likewise.
2317         (nearbyint): Likewise.
2318         (nearbyintf): Likewise.
2319         (ceil): Likewise.
2320         (ceilf): Likewise.
2321         (floor): Likewise.
2322         (floorf): Likewise.
2323
2324 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
2325
2326         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
2327         on both fields and cast pointer to __syscall_ulong_t.
2328
2329         * bits/types.h (__fsword_t): New type.
2330         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
2331         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
2332         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2333         (__FSWORD_T_TYPE): Likewise.
2334         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2335         (__FSWORD_T_TYPE): Likewise.
2336         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2337         (__FSWORD_T_TYPE): Likewise.
2338         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
2339         (__FSWORD_T_TYPE): Likewise.
2340         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
2341         __SWORD_TYPE with __fsword_t.
2342         (statfs64): Likewise.
2343
2344 2012-05-17  David S. Miller  <davem@davemloft.net>
2345
2346         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
2347
2348 2012-05-17  Andreas Jaeger  <aj@suse.de>
2349
2350         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
2351         warning.
2352
2353 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
2354
2355         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
2356
2357 2012-05-17  Andreas Jaeger  <aj@suse.de>
2358
2359         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
2360         when it is used.
2361
2362 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
2363
2364         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
2365
2366 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
2367
2368         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
2369         * sysdeps/x86_64/tst-mallocalign1.c: New file.
2370
2371 2012-05-17  Andreas Jaeger  <aj@suse.de>
2372             Carlos O'Donell  <carlos_odonell@mentor.com>
2373
2374         [BZ #14059]
2375         * sysdeps/x86_64/multiarch/init-arch.h
2376         (bit_YMM_Usable): Rename to...
2377         (bit_AVX_Usable): ... this.
2378         (bit_FMA4_Usable): New macro.
2379         (bit_XMM_state): New macro.
2380         (bit_YMM_state): New macro.
2381         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
2382         [__ASSEMBLER__] (index_AVX_Usable): ... this.
2383         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
2384         (CPUID_OSXSAVE): New macro.
2385         (CPUID_AVX): New macro.
2386         (CPUID_FMA4): New macro.
2387         (index_YMM_Usable): Rename to...
2388         (index_AVX_Usable): ... this.
2389         (HAS_AVX): Use HAS_ARCH_FEATURE.
2390         (HAS_FMA4): Likewise.
2391         (HAS_YMM_USABLE): Remove.
2392         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2393         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
2394         are present.
2395         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
2396         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
2397         * sysdeps/x86_64/multiarch/Makefile: Likewise.
2398         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
2399         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
2400
2401 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
2402
2403         * math/libm-test.c: Support platforms without multiple rounding modes.
2404         * math/bug-nextafter.c: Support platforms without FP exceptions.
2405         * math/bug-nexttoward.c: Likewise.
2406         * math/test-fenv.c: Likewise.
2407         * math/test-misc.c: Likewise.
2408         * stdlib/bug-getcontext.c: Likewise.
2409
2410 2012-05-17  Andreas Jaeger  <aj@suse.de>
2411
2412         * manual/examples/search.c (critter_cmp): Change signature to
2413         avoid warnings.
2414         * manual/string.texi (Collation Functions): Likewise.
2415
2416 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2417
2418         * bits/types.h: Fold copyright years.
2419         * bits/typesizes.h: Likewise.
2420         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
2421         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
2422         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
2423         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
2424         * time/time.h: Likewise.
2425
2426 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
2427
2428         [BZ #208]
2429         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
2430         in instead of returning them.  Return void.
2431         (__libc_mallinfo): Accumulate over all arenas.
2432         (__malloc_stats): Adjust for change in int_mallinfo interface.
2433
2434 2012-05-16  Roland McGrath  <roland@hack.frob.com>
2435
2436         [BZ #10375]
2437         * configure.in (NM): Add AC_CHECK_TOOL for it.
2438         (libc_extra_cflags): New substituted variable.
2439         Check for -fstack-protector being used implicitly.
2440         * configure: Regenerated.
2441         * config.make.in (config-extra-cflags): New variable,
2442         gets @libc_extra_cflags@.
2443         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
2444
2445         [BZ #10375]
2446         * configure.in: Check for _FORTIFY_SOURCE being predefined.
2447         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
2448         * configure: Regenerated.
2449         * config.make.in (CPPUNDEFS): New substituted variable.
2450         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
2451         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
2452         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
2453
2454 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2455
2456         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
2457         (mq_attr): Use __syscall_slong_t.
2458
2459 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2460
2461         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
2462         Check __x86_64__ instead of __WORDSIZE.
2463         (_STAT_VER_LINUX): Likewise.
2464         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
2465         __syscall_ulong_t and __syscall_slong_t.
2466         (stat64): Likewise.
2467
2468 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2469
2470         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
2471
2472 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2473
2474         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
2475
2476 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2477
2478         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
2479         __syscall_ulong_t.
2480
2481         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
2482         include <bits/wordsize.h>.  Check __x86_64__ instead of
2483         __WORDSIZE.
2484         (greg_t): Use "__extension__ long long int" if __x86_64__ is
2485         defined.
2486         (mcontext_t): Replace "unsigned long" with "unsigned long long".
2487
2488         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
2489         include <bits/wordsize.h>.  Check __x86_64__ instead of
2490         __WORDSIZE.
2491         (user_regs_struct): Use "__extension__ unsigned long long"
2492         instead of "unsigned long" if __x86_64__ is defined.
2493         (user): Likewise.  Pad after pointer field if __ILP32__ is
2494         defined.
2495
2496 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
2497
2498         * configure.in (makeinfo): Require version 4.5 or later.  Allow
2499         versions 5 to 9.
2500         * configure: Regenerated.
2501         * manual/install.texi (texinfo): Increase version requirement to
2502         4.5 or later.
2503         * INSTALL: Regenerated.
2504
2505         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
2506
2507 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2508
2509         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
2510
2511         * sysdeps/x86_64/x32/ffs.c: New file.
2512
2513         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
2514         __syscall_ulong_t.
2515         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
2516         defined.  Use __syscall_ulong_t.
2517         (shminfo): Use __syscall_ulong_t.
2518         (shm_info): Likewise.
2519
2520         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
2521         __syscall_ulong_t.
2522
2523         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
2524         <bits/wordsize.h>.
2525         (msgqnum_t): Use __syscall_ulong_t.
2526         (msglen_t): Likewise.
2527         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
2528         __syscall_ulong_t.
2529
2530         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
2531         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
2532
2533         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
2534
2535         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
2536         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
2537
2538         * sysvipc/sys/msg.h (msgbuf): Replace long int with
2539         __syscall_slong_t.
2540
2541         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
2542         include <bits/wordsize.h>.  Check __x86_64__ instead of
2543         __WORDSIZE.
2544
2545         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
2546         "unsigned long long int" if __x86_64__ is defined.
2547         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
2548
2549         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
2550         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
2551         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
2552
2553         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
2554         <stdint.h>.
2555         (GET_PC): Cast to uintptr_t first.
2556         (GET_FRAME): Likewise.
2557         (GET_STACK): Likewise.
2558
2559         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
2560         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
2561         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
2562         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
2563         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
2564         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
2565         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
2566         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
2567         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
2568         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
2569         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
2570         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
2571         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
2572         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
2573         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
2574         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
2575         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
2576         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
2577         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
2578         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
2579         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
2580         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
2581         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
2582         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
2583         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
2584         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
2585         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
2586         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
2587         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
2588
2589 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
2590
2591         * Makerules (+depfiles): Also collect depfiles from .oS in
2592         $(extra-objs).
2593         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
2594         .oS, $(libnldbl-routines)).
2595
2596         * Makerules (native-compile-mkdep-flags): Define.
2597         * sunrpc/Makefile (extra-objs): Add $(addprefix
2598         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
2599         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
2600         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
2601         calling $(make-target-directory).
2602
2603 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2604
2605         * bits/types.h (__snseconds_t): Removed.
2606         * time/time.h (struct timespec): Replace __snseconds_t with
2607         __syscall_slong_t.
2608         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
2609         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
2610         Likewise.
2611         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2612         (__SNSECONDS_T_TYPE): Likewise.
2613         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2614         (__SNSECONDS_T_TYPE): Likewise.
2615         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2616         (__SNSECONDS_T_TYPE): Likewise.
2617
2618 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2619
2620         * sysdeps/mach/hurd/bits/typesizes.h
2621         (__SYSCALL_SLONG_TYPE): New macro.
2622         (__SYSCALL_ULONG_TYPE): Likewise.
2623
2624 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2625
2626         * bits/types.h (__syscall_slong_t): New type.
2627         (__syscall_ulong_t): Likewise.
2628
2629         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
2630         (__SYSCALL_ULONG_TYPE): Likewise.
2631         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2632         (__SYSCALL_SLONG_TYPE): Likewise.
2633         (__SYSCALL_ULONG_TYPE): Likewise.
2634         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2635         (__SYSCALL_SLONG_TYPE): Likewise.
2636         (__SYSCALL_ULONG_TYPE): Likewise.
2637         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2638         (__SYSCALL_SLONG_TYPE): Likewise.
2639         (__SYSCALL_ULONG_TYPE): Likewise.
2640
2641 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2642
2643         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
2644         Add sigaltstack-offsets.sym.
2645         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
2646         <sigaltstack-offsets.h>.
2647         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
2648         longjmp_msg pointer.
2649         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
2650         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
2651         signal stack.
2652         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
2653
2654 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
2655
2656         * elf/stackguard-macros.h: Remove file.
2657         * sysdeps/generic/stackguard-macros.h: New file.
2658         * sysdeps/i386/stackguard-macros.h: Likewise.
2659         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
2660         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
2661         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
2662         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
2663         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
2664         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
2665         * sysdeps/x86_64/stackguard-macros.h: Likewise.
2666         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
2667         <elf/stackguard-macros.h>.
2668
2669         [BZ #14109]
2670         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
2671         __aligned__ in attribute.
2672         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
2673         (gregset_t): Likewise.
2674
2675 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2676
2677         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
2678         * sysdeps/x86_64/64/Implies-after: Here.  New file.
2679         * sysdeps/x86_64/x32/Implies-after: New file.
2680
2681 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2682
2683         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
2684         and access return value for _dl_profile_fixup.  Use R10_LP to
2685         load frame size.
2686
2687 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2688
2689         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
2690
2691 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2692
2693         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
2694         * sysdeps/x86_64/x32/sysdep.h: New file.
2695
2696 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2697
2698         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
2699         * sysdeps/x86_64/setjmp.S: Likewise.
2700
2701 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2702
2703         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
2704         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
2705         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
2706         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
2707         remove unused global constant.
2708
2709 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
2710
2711         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
2712         include of <not-cancel.h>.
2713
2714 2012-05-15  Roland McGrath  <roland@hack.frob.com>
2715
2716         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
2717
2718 2012-05-15  Jeff Law  <law@redhat.com>
2719             Andreas Jaeger  <aj@suse.de>
2720
2721         [BZ #13594]
2722         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
2723         out from...
2724         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
2725         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
2726         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
2727         code changing __hst_map_handle.map.
2728
2729 2012-05-15  Roland McGrath  <roland@hack.frob.com>
2730
2731         * configure.in (sysnames): Look for Implies-before and Implies-after
2732         files.
2733         * configure: Regenerated.
2734
2735 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2736
2737         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
2738         8-byte data alignment with LP_SIZE alignment.
2739
2740 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2741
2742         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
2743         into R10_LP.
2744
2745 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2746
2747         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
2748
2749 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2750
2751         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
2752         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
2753         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
2754         Likewise.
2755         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2756
2757 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2758
2759         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
2760         (stackinfo_sub_sp): Likewise.
2761
2762 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2763
2764         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
2765         RAX_LP.
2766
2767 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2768
2769         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
2770         into R*_LP.
2771
2772 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2773
2774         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
2775         sizes into R*_LP.
2776
2777 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2778
2779         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
2780
2781 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2782
2783         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
2784         into R11_LP and load __x86_64_shared_cache_size_half into
2785         R8_LP.
2786
2787 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2788
2789         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
2790         R8_LP.
2791
2792 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2793
2794         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
2795         logb for POWER7.
2796         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
2797         logbf for POWER7.
2798         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
2799         logbl for POWER7.
2800         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
2801         powerpc32/power7/fpu/s_logb.c via #include.
2802         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
2803         powerpc32/power7/fpu/s_logbf.c via #include.
2804         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
2805         powerpc32/power7/fpu/s_logbl.c via #include.
2806
2807 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
2808
2809         * README.libm: Remove file.
2810
2811 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2812
2813         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
2814         count for x32.  Use R*_LP and omit operand-size suffix.
2815
2816 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2817
2818         * shlib-versions: Move x86_64-.*-linux.* entries to ...
2819         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
2820         * sysdeps/x86_64/x32/shlib-versions: New file.
2821
2822 2012-05-14  Roland McGrath  <roland@hack.frob.com>
2823
2824         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
2825         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
2826         Use _dl_fatal_printf instead.
2827
2828 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
2829
2830         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
2831         set if not set by the user.  Do not allow for being unset.
2832         * sysdeps/unix/sysv/linux/configure: Regenerated.
2833
2834 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2835
2836         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
2837         the `q' suffix from lea and replace .quad with ASM_ADDR.
2838
2839 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2840
2841         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
2842         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
2843         instead of $17.
2844         (PTR_DEMANGLE): Likewise.
2845
2846 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2847
2848         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
2849         (LP_OP): Likewise.
2850         (ASM_ADDR): Likewise.
2851         (RAX_LP): Likewise.
2852         (RBP_LP): Likewise.
2853         (RBX_LP): Likewise.
2854         (RCX_LP): Likewise.
2855         (RDI_LP): Likewise.
2856         (RSI_LP): Likewise.
2857         (RSP_LP): Likewise.
2858         (R8_LP): Likewise.
2859         (R9_LP): Likewise.
2860         (R10_LP): Likewise.
2861         (R10_LP): Likewise.
2862         (R11_LP): Likewise.
2863         (R12_LP): Likewise.
2864         (R13_LP): Likewise.
2865         (R14_LP): Likewise.
2866         (R15_LP): Likewise.
2867
2868 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2869
2870         * sysdeps/x86_64/x32/dl-machine.h: New file.
2871
2872 2012-05-14  Andreas Jaeger  <aj@suse.de>
2873
2874         * manual/Makefile (subdir): Remove export of subdir.
2875         (all): Remove target.
2876         (.PHONY): Remove all from list.
2877         (mkinstalldirs): Remove.
2878         (.PHONY): Remove installdirs from list.
2879         ($(inst_infodir)/libc.info): Use make-target-directory.
2880         (installdirs): Remove.
2881         (subdir_%): Remove.
2882         (glibc-targets): Remove.
2883         (lib): Remove.
2884         (stubs): Remove.
2885         ($(objpfx)stubs ../po/manual.pot): Remove.
2886         ($(objpfx)stamp%): Remove.
2887         (make-target-directory): Remove.
2888         (subdir_install): Remove.
2889         (routines): Remove.
2890         (aux): Remove.
2891         (sources): Remove.
2892         (objects): Remove.
2893         (headers): Remove.
2894
2895         [BZ #13750]
2896         * manual/.gitignore: Remove, it's not needed anymore.
2897         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
2898         all files in it.
2899         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
2900         directory.
2901         (texis): Renamed to $(objpfx)texis.
2902         (texis-path): New, contains path to generated files.
2903         (chapters.%): Use texis-path for complete path, add extra argument
2904         libc-texinfo.sh.
2905         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
2906         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
2907         (summary,texi, stamp-summary): Use complete path of
2908         files. Generate files in build dir.
2909         (dir-add.texi): Build in build dir.
2910         (libm-err.texi,stamp-libm-err): Likewise.
2911         (version.texi, stamp-version): Likewise.
2912         (.%c.texi): Likewise.
2913         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
2914         (mostlyclean): Remove target.
2915         (realclean): Remove target.
2916         (generated): Add new variable with contents from mostlyclean and
2917         realclean, remove entries duplicated in common-mostlyclean, add
2918         stamp-libm-err and stamp-version.
2919         (generated-dirs): Add libc directory.
2920         ($(inst_infodir)/libc.info): Install files from build dir.
2921
2922         * manual/install.texi (Configuring and compiling): Adjust since
2923         the info files are not part of the tar ball anymore.
2924
2925 2012-05-14  Andreas Jaeger  <aj@suse.de>
2926
2927         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
2928         variable.
2929
2930 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
2931
2932         [BZ #13717]
2933         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
2934         to 2.2.0 where earlier.
2935         * sysdeps/unix/sysv/linux/configure: Regenerated.
2936         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
2937         Remove conditional code.
2938         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
2939         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
2940         Remove conditional code.
2941         [!__NR_lchown]: Likewise.
2942         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
2943         [__NR_lchown]: Likewise.
2944         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
2945         comment referencing __ASSUME_LCHOWN_SYSCALL.
2946         * sysdeps/unix/sysv/linux/i386/sigaction.c
2947         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2948         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2949         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
2950         Remove conditional code.
2951         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
2952         (__protocol_available): Remove #if 0 code.
2953         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
2954         conditional code.
2955         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
2956         * sysdeps/unix/sysv/linux/kernel-features.h
2957         (__ASSUME_GETCWD_SYSCALL): Don't define.
2958         (__ASSUME_REALTIME_SIGNALS): Likewise.
2959         (__ASSUME_PREAD_SYSCALL): Likewise.
2960         (__ASSUME_PWRITE_SYSCALL): Likewise.
2961         (__ASSUME_POLL_SYSCALL): Likewise.
2962         (__ASSUME_LCHOWN_SYSCALL): Likewise.
2963         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
2964         non-SPARC.
2965         (__ASSUME_SIOCGIFNAME): Don't define.
2966         (__ASSUME_MSG_NOSIGNAL): Likewise.
2967         (__ASSUME_SENDFILE): Define unconditionally.
2968         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
2969         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
2970         conditional code.
2971         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
2972         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
2973         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
2974         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
2975         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
2976         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
2977         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
2978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
2979         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2980         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
2982         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2983         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
2985         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2986         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
2988         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2989         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
2991         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2992         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2993         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
2994         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2995         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
2997         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2998         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
3000         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
3001         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3002         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
3003         Remove conditional code.
3004         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3005         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
3006         Remove conditional code.
3007         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3008         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
3009         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
3010         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
3011         Remove conditional code.
3012         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3013         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
3014         Remove conditional code.
3015         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3016         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
3017         Remove conditional code.
3018         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3019         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
3020         Remove conditional code.
3021         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
3022         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
3023         Remove conditional code.
3024         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3025         * sysdeps/unix/sysv/linux/sh/pwrite64.c
3026         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
3027         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
3028         * sysdeps/unix/sysv/linux/sigaction.c
3029         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3030         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3031         * sysdeps/unix/sysv/linux/sigpending.c
3032         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3033         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3034         * sysdeps/unix/sysv/linux/sigprocmask.c
3035         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3036         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3037         * sysdeps/unix/sysv/linux/sigsuspend.c
3038         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
3039         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
3040         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
3041         (__libc_missing_rt_sigs): Remove.
3042         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
3043         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
3044         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
3045         Remove conditional code.
3046         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
3047         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
3048         return 1.
3049         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
3050         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
3051         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
3052         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
3053
3054 2012-05-14  Andreas Jaeger  <aj@suse.de>
3055
3056         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
3057         it's not used in glibc.
3058         (__coshm1): Likewise.
3059         (__acosh1p): Likewise.
3060         (__sgn): Likewise.
3061
3062         * manual/string.texi (Copying and Concatenation): Add missing
3063         variable in concat example.
3064         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
3065
3066 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3067
3068         [BZ #14103]
3069         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
3070         __builtin_clzl with __builtin_clzll.
3071
3072 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3073
3074         [BZ #14104]
3075         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
3076         libc_freeres_ptr.
3077
3078 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3079
3080         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
3081         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
3082         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
3083         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
3084
3085 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
3086
3087         * NEWS: Update ia64 info.
3088
3089 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
3090
3091         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
3092         used as bcopy.
3093
3094 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3095
3096         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
3097         * sysdeps/unix/syscalls.list (dup3): Likewise.
3098         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
3099         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
3100
3101 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
3102
3103         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
3104         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
3105
3106 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
3107
3108         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
3109         thread pointer.
3110         (TLS_IE): Use mov/add instead of movq/addq to load thread
3111         pointer.
3112         (TLS_GD_PREFIX): New.
3113         (TLS_GD): Use it.
3114
3115 2012-05-11  David S. Miller  <davem@davemloft.net>
3116
3117         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
3118         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
3119         (_FPU_SETCW): Likewise.
3120
3121 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3122
3123         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
3124         is 32-byte aligned.
3125
3126 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
3127
3128         [BZ #11837]
3129         * iconvdata/gb18030.c: Update tables.
3130         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
3131         characters specially.
3132         (BODY for TO_LOOP): Add encoding of missing ranges.
3133
3134 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3135
3136         [BZ #13673]
3137         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
3138         * sysdeps/mach/hurd/dup3.c: Likewise.
3139         * sysdeps/mach/hurd/readlinkat.c: Likewise.
3140         * sysdeps/powerpc/memmove.c:: Likewise.
3141
3142 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3143
3144         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
3145         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
3146
3147 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3148
3149         * elf/elf.h (R_X86_64_RELATIVE64): New.
3150         (R_X86_64_NUM): Updated.
3151         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
3152         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
3153         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
3154         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
3155         tst-quad1pie tst-quad2pie
3156         (modules-names): Add tst-quadmod1 tst-quadmod2.
3157         ($(objpfx)tst-quad1): New dependency.
3158         ($(objpfx)tst-quad2): Likewise.
3159         ($(objpfx)tst-quad1pie): Likewise.
3160         ($(objpfx)tst-quad2pie): Likewise.
3161         * sysdeps/x86_64/tst-quad1.c: New file.
3162         * sysdeps/x86_64/tst-quad1pie.c: New file.
3163         * sysdeps/x86_64/tst-quad2.c: Likewise.
3164         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
3165         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
3166         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
3167         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
3168         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
3169
3170 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3171
3172         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
3173         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
3174         * streams/stropts.h (t_scalar_t): Define type.
3175
3176         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
3177         (_PATH_PRESERVE): Set to "/var/lib".
3178         (_PATH_RWHODIR): Set to "/var/spool/rwho".
3179
3180         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
3181         instead of int.
3182
3183         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
3184         if __dir_mkfile succeeded.
3185
3186         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
3187         checking for _hurd_dtablesize.  Unlock it right after having
3188         finished _hurd_dtable allocation.
3189
3190 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3191
3192         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
3193         * sysdeps/mach/hurd/configure: Regenerated.
3194         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
3195         special-casing to...
3196         * sysdeps/gnu/configure.in: ... this new file.
3197         * sysdeps/unix/sysv/linux/configure: Regenerated.
3198         * sysdeps/gnu/configure: New generated file.
3199
3200         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
3201         for Linux: use nsec instead of usec, as well as:
3202         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
3203         members of type struct timespec.
3204         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
3205         New macros.
3206         (struct stat64): Likewise.
3207         (_STATBUF_ST_NSEC): New macro.
3208         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
3209
3210         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3211         __strtoul_internal rather than strtoul.
3212
3213 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
3214
3215         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
3216         and reject them.
3217
3218 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3219
3220         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
3221         which preserves existing values.
3222         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
3223
3224 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
3225
3226         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
3227         TIMEOUT values.  Return EINVAL for NFDS values either negative or
3228         greater than FD_SETSIZE.
3229
3230 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3231
3232         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
3233         allocated, call __vm_protect to finish enabling the existing space, and
3234         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
3235         allocate the remainder.
3236
3237 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
3238
3239         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
3240         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
3241
3242 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3243
3244         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
3245         sysdeps/mach/hurd/readlink.c.
3246
3247         * posix/tst-sysconf.c (posix_options): Only use
3248         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
3249         _POSIX_SYNCHRONIZED_IO when they are defined
3250         * sysdeps/mach/hurd/bits/posix_opt.h:
3251         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
3252         (_XOPEN_REALTIME): Undefine macro.
3253         (_XOPEN_REALTIME_THREADS): Undefine macro.
3254         (_XOPEN_SHM): Undefine macro.
3255         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
3256         macro to -1.
3257         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
3258         macro to -1.
3259         (_POSIX_ASYNC_IO): Undefine macro.
3260         (_POSIX_PRIORITIZED_IO): Undefine macro.
3261         (_POSIX_SPIN_LOCKS): Define macro to -1.
3262
3263         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
3264         SA_NODEFER, SA_RESETHAND.
3265         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
3266         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
3267         F_DUPFD_CLOEXEC.
3268
3269 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3270
3271         * elf/Makefile (pldd-modules): Define unconditionally.
3272
3273 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3274
3275         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
3276
3277 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3278
3279         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
3280         Return ENOENT when name is empty.
3281         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
3282
3283 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3284
3285         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
3286
3287         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
3288
3289 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3290
3291         Fix mlock in all cases except non-readable pages.
3292         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
3293         instead of VM_PROT_ALL as parameter to __vm_wire function.
3294
3295         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
3296         (__mkdir): When path is `/', just fail with EEXIST.
3297         * sysdeps/mach/hurd/mkdirat.c: Likewise.
3298
3299 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3300
3301         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
3302         <sys/uio.h> (for writev).
3303         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
3304         and <sys/param.h> (for MIN).
3305
3306 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
3307
3308         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
3309         REQUESTED_TIME.  Properly set the remaining time and return EINTR
3310         if interrupted.
3311
3312 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3313
3314         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
3315         Depend on against $(link-rpcuserlibs).
3316
3317 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3318
3319         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
3320         (__libc_stack_end): Do not use attribute_relro.
3321         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
3322         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
3323         to libthread-provided value.
3324         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
3325         attribute_relro.
3326
3327 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3328
3329         [BZ #3748]
3330         * bits/libc-lock.h (__libc_once_get): New macro.
3331         * sysdeps/mach/bits/libc-lock.h: Likewise.
3332         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
3333         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
3334         instead of using implementation details.
3335
3336         * libio/fileops.c: Unconditionally include <kernel-features.h>.
3337         * libio/freopen.c: Likewise.
3338         * libio/freopen64.c: Likewise.
3339         * misc/syslog.c: Likewise.
3340         * nscd/connections.c: Likewise.
3341         * nscd/netgroupcache.c: Likewise.
3342         * sysdeps/posix/getcwd.c: Likewise.
3343
3344 2012-05-10  Roland McGrath  <roland@hack.frob.com>
3345
3346         * math/w_ilogbf.c: Add #include <limits.h>.
3347
3348 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3349
3350         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
3351         path instead of returning without unlocking.
3352
3353         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
3354         immediate-write ioctls.
3355         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
3356
3357 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3358
3359         * sysdeps/mach/hurd/i386/init-first.c (init): Use
3360         __builtin_frame_address instead of making assumptions about the
3361         location of the return address relative to DATA.  Force early load of
3362         the return address.
3363         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
3364         __builtin_frame_address.
3365
3366         dup3 for GNU Hurd.
3367         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
3368         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
3369         implement dup3 and do some further code clean-ups.
3370         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
3371         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
3372
3373 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3374
3375         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
3376
3377         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
3378         HURD_CRITICAL_END around holding _hurd_dtable_lock.
3379         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
3380         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
3381         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
3382         d->port.lock.
3383
3384         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
3385         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
3386         when handler == SIG_ERR, not when handler != SIG_ERR.
3387
3388 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3389
3390         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
3391         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
3392         definitions.
3393
3394         accept4 for GNU Hurd.
3395         * include/sys/socket.h (__libc_accept4): New prototype.
3396         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
3397         to implement __libc_accept4.
3398         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
3399         __libc_accept4.
3400         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
3401
3402         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
3403         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
3404         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
3405         signal-defines.sym.
3406
3407 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3408
3409         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
3410
3411 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3412
3413         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
3414         assertion on O_CLOEXEC flag.
3415         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
3416         * hurd/intern-fd.c: Likewise.
3417         * hurd/port2fd.c: Likewise.
3418
3419 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3420
3421         [BZ #3906]
3422         * bits/in.h (IPV6_PKTINFO): Define new macro.
3423         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
3424
3425 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3426
3427         [BZ #13954]
3428         [BZ #13955]
3429         [BZ #13956]
3430         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
3431         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3432         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
3433         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3434         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3435         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3436         * math/libm-test.inc (logb_test) : Additional logb tests.
3437
3438 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
3439             Andreas Jaeger  <aj@suse.de>
3440
3441         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
3442         * configure: Regenerated.
3443         * config.h.in (LINK_OBSOLETE_RPC): New macro.
3444         * config.make.in (link-obsolete-rpc): New substituted variable.
3445         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
3446         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
3447         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
3448         (shared-only-routines): Don't set it under [link-obsolete-rpc],
3449         so that libc.a contains the symbols.
3450         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
3451         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
3452         * sunrpc/auth_none.c: Likewise.
3453         * sunrpc/auth_unix.c: Likewise.
3454         * sunrpc/authdes_prot.c: Likewise.
3455         * sunrpc/authuxprot.c: Likewise.
3456         * sunrpc/clnt_gen.c: Likewise.
3457         * sunrpc/clnt_perr.c: Likewise.
3458         * sunrpc/clnt_raw.c: Likewise.
3459         * sunrpc/clnt_simp.c: Likewise.
3460         * sunrpc/clnt_tcp.c: Likewise.
3461         * sunrpc/clnt_udp.c: Likewise.
3462         * sunrpc/clnt_unix.c: Likewise.
3463         * sunrpc/des_crypt.c: Likewise.
3464         * sunrpc/des_soft.c: Likewise.
3465         * sunrpc/get_myaddr.c: Likewise.
3466         * sunrpc/key_call.c: Likewise.
3467         * sunrpc/key_prot.c: Likewise.
3468         * sunrpc/netname.c: Likewise.
3469         * sunrpc/pm_getmaps.c: Likewise.
3470         * sunrpc/pm_getport.c: Likewise.
3471         * sunrpc/pmap_clnt.c: Likewise.
3472         * sunrpc/pmap_prot.c: Likewise.
3473         * sunrpc/pmap_prot2.c: Likewise.
3474         * sunrpc/pmap_rmt.c: Likewise.
3475         * sunrpc/publickey.c: Likewise.
3476         * sunrpc/rpc_cmsg.c: Likewise.
3477         * sunrpc/rpc_common.c: Likewise.
3478         * sunrpc/rpc_dtable.c: Likewise.
3479         * sunrpc/rpc_prot.c: Likewise.
3480         * sunrpc/rpc_thread.c: Likewise.
3481         * sunrpc/rtime.c: Likewise.
3482         * sunrpc/svc.c: Likewise.
3483         * sunrpc/svc_auth.c: Likewise.
3484         * sunrpc/svc_raw.c: Likewise.
3485         * sunrpc/svc_run.c: Likewise.
3486         * sunrpc/svc_tcp.c: Likewise.
3487         * sunrpc/svc_udp.c: Likewise.
3488         * sunrpc/svc_unix.c: Likewise.
3489         * sunrpc/svcauth_des.c: Likewise.
3490         * sunrpc/xcrypt.c: Likewise.
3491         * sunrpc/xdr.c: Likewise.
3492         * sunrpc/xdr_array.c: Likewise.
3493         * sunrpc/xdr_float.c: Likewise.
3494         * sunrpc/xdr_intXX_t.c: Likewise.
3495         * sunrpc/xdr_mem.c: Likewise.
3496         * sunrpc/xdr_rec.c: Likewise.
3497         * sunrpc/xdr_ref.c: Likewise.
3498         * sunrpc/xdr_sizeof.c: Likewise.
3499         * sunrpc/xdr_stdio.c: Likewise.
3500
3501 2012-05-10  Roland McGrath  <roland@hack.frob.com>
3502
3503         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
3504         change.  Update copyright years.
3505
3506 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
3507
3508         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
3509
3510 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
3511             Joseph Myers  <joseph@codesourcery.com>
3512             Paul Pluzhnikov  <ppluzhnikov@google.com>
3513
3514         [BZ #14012]
3515         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
3516         requiring rpcgen.
3517         [cross-compiling] (extra-libs): Likewise.
3518         [cross-compiling] (extra-libs-others): Likewise.
3519         [cross-compiling] (librpcsvc-routines): Likewise.
3520         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
3521         [cross-compiling] (omit-deps): Likewise.
3522         (sunrpc-CPPFLAGS): New variable.
3523         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
3524         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
3525         (cross-rpcgen-objs): New variable.
3526         (extra-objs): Append $(cross-rpcgen-objs).
3527         ($(cross-rpcgen-objs)): New rule.
3528         ($(objpfx)cross-rpcgen): Likewise.
3529         (rpcgen-cmd): Define to use $(built-program-file).  Expand
3530         comment.
3531         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
3532         ($(objpfx)x%.stmp): Likewise.
3533         * sunrpc/proto.h [IS_IN_build] (_): Define.
3534         [IS_IN_build] (_libc_intl_domainname): Likewise.
3535
3536 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3537
3538         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
3539         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
3540         and R_X86_64_TPOFF64.
3541
3542 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
3543
3544         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
3545         sysdeps/unix/sysv/syscalls.list.
3546         (stime): Likewise.
3547         (utime): Likewise.
3548         * sysdeps/unix/sysv/syscalls.list: Remove file.
3549
3550 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3551
3552         [BZ #3440]
3553         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
3554         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
3555         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
3556         (__LC_IDENTIFICATION): Make these macros useful in #if
3557         expressions, as required by C99.
3558
3559 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
3560
3561         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
3562         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
3563         after this.
3564
3565 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
3566
3567         * stdlib/longlong.h: Updated from GCC.
3568
3569 2012-05-09  Andreas Jaeger  <aj@suse.de>
3570
3571         * nscd/nscd.c (run_modes): Make named enum, reorder so that
3572         default is first entry.
3573         (run_mode): Set type.
3574         (main): Remove informal message about syslog.
3575         (options): Fix typo.
3576
3577         [BZ #14053]
3578         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
3579         to asm.
3580         (lrint): Likewise.
3581         (llrintf): Likewise.
3582         (llrint): Likewise.
3583         (rint): Likewise.
3584         (rintf): Likewise.
3585         (nearbyint): Likewise.
3586         (nearbyintf): Likewise.
3587
3588 2012-05-09  Andreas Jaeger  <aj@suse.de>
3589             Pedro Alves  <palves@redhat.com>
3590
3591         * nscd/nscd.c (run_mode): Use enum.
3592         (main): Cleanup coding style issue.
3593
3594 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
3595             Andreas Jaeger  <aj@suse.de>
3596
3597         * nscd/nscd.c (go_background): Replaced with...
3598         (run_mode): ... this.
3599         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
3600         (options): Add -F --foreground.
3601         (main): Implement it.
3602         (parse_opt): Parse it.
3603
3604 2012-05-09  Andreas Jaeger  <aj@suse.de>
3605
3606         [BZ #14083]
3607         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
3608         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
3609         -Wconversion warning.
3610         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
3611         Likewise.
3612
3613 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
3614
3615         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
3616         == 0.
3617         (LC_ALL): Use macro-int-constant.
3618         (LC_COLLATE): Likewise.
3619         (LC_CTYPE): Likewise.
3620         (LC_MESSAGES): Likewise.
3621         (LC_MONETARY): Likewise.
3622         (LC_NUMERIC): Likewise.
3623         (LC_TIME): Likewise.
3624         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
3625         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
3626         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3627         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
3628         Specify type.
3629         [C99-based standards] (float_t): Expect type.
3630         [C99-based standards] (double_t): Expect type.
3631         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
3632         type.
3633         [C99-based standards] (HUGE_VALL): Likewise.
3634         [C99-based standards] (INFINITY): Likewise.
3635         [C99-based standards] (NAN): Likewise.
3636         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
3637         [C99-based standards] (FP_NAN): Likewise.
3638         [C99-based standards] (FP_NORMAL): Likewise.
3639         [C99-based standards] (FP_SUBNORMAL): Likewise.
3640         [C99-based standards] (FP_ZERO): Likewise.
3641         [C99-based standards] (FP_FAST_FMA): Use
3642         optional-macro-int-constant.  Specify type.  Require == 1.
3643         [C99-based standards] (FP_FAST_FMAF): Likewise.
3644         [C99-based standards] (FP_FAST_FMAL): Likewise.
3645         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
3646         [C99-based standards] (FP_ILOGBNAN): Likewise.
3647         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
3648         Specify type.
3649         [C99-based standards] (MATH_ERREXCEPT): Likewise.
3650         [C99-based standards] (math_errhandling): Specify type.
3651         [ISO99 || ISO11] (signgam): Do not allow.
3652         [non-C99-based standards] (copysignf): Do not allow.
3653         [non-C99-based standards] (exp2f): Likewise.
3654         [non-C99-based standards] (log2f): Likewise.
3655         [non-C99-based standards] (modff): Allow.
3656         [non-C99-based standards] (erff): Do not allow.
3657         [non-C99-based standards] (erfcf): Likewise.
3658         [non-C99-based standards] (gammaf): Likewise.
3659         [non-C99-based standards] (hypotf): Likewise.
3660         [non-C99-based standards] (j0f): Likewise.
3661         [non-C99-based standards] (j1f): Likewise.
3662         [non-C99-based standards] (jnf): Likewise.
3663         [non-C99-based standards] (lgammaf): Likewise.
3664         [non-C99-based standards] (tgammaf): Likewise.
3665         [non-C99-based standards] (y0f): Likewise.
3666         [non-C99-based standards] (y1f): Likewise.
3667         [non-C99-based standards] (ynf): Likewise.
3668         [non-C99-based standards] (isnanf): Likewise.
3669         [non-C99-based standards] (acoshf): Likewise.
3670         [non-C99-based standards] (asinhf): Likewise.
3671         [non-C99-based standards] (atanhf): Likewise.
3672         [non-C99-based standards] (cbrtf): Likewise.
3673         [non-C99-based standards] (expm1f): Likewise.
3674         [non-C99-based standards] (ilogbf): Likewise.
3675         [non-C99-based standards] (log1pf): Likewise.
3676         [non-C99-based standards] (logbf): Likewise.
3677         [non-C99-based standards] (nextafterf): Likewise.
3678         [non-C99-based standards] (remainderf): Likewise.
3679         [non-C99-based standards] (rintf): Likewise.
3680         [non-C99-based standards] (scalbf): Likewise.
3681         [non-C99-based standards] (copysignl): Likewise.
3682         [non-C99-based standards] (exp2l): Likewise.
3683         [non-C99-based standards] (log2l): Likewise.
3684         [non-C99-based standards] (modfl): Allow.
3685         [non-C99-based standards] (erfl): Do not allow.
3686         [non-C99-based standards] (erfcl): Likewise.
3687         [non-C99-based standards] (gammal): Likewise.
3688         [non-C99-based standards] (hypotl): Likewise.
3689         [non-C99-based standards] (j0l): Likewise.
3690         [non-C99-based standards] (j1l): Likewise.
3691         [non-C99-based standards] (jnl): Likewise.
3692         [non-C99-based standards] (lgammal): Likewise.
3693         [non-C99-based standards] (tgammal): Likewise.
3694         [non-C99-based standards] (y0l): Likewise.
3695         [non-C99-based standards] (y1l): Likewise.
3696         [non-C99-based standards] (ynl): Likewise.
3697         [non-C99-based standards] (isnanl): Likewise.
3698         [non-C99-based standards] (acoshl): Likewise.
3699         [non-C99-based standards] (asinhl): Likewise.
3700         [non-C99-based standards] (atanhl): Likewise.
3701         [non-C99-based standards] (cbrtl): Likewise.
3702         [non-C99-based standards] (expm1l): Likewise.
3703         [non-C99-based standards] (ilogbl): Likewise.
3704         [non-C99-based standards] (log1pl): Likewise.
3705         [non-C99-based standards] (logbl): Likewise.
3706         [non-C99-based standards] (nextafterl): Likewise.
3707         [non-C99-based standards] (remainderl): Likewise.
3708         [non-C99-based standards] (rintl): Likewise.
3709         [non-C99-based standards] (scalbl): Likewise.
3710         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3711         [non-C99-based standards] (FP_*): Do not allow.
3712         [C99-based standards] (FP_*): Change to
3713         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
3714         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
3715         allow.
3716         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
3717         (SIG_ERR): Likewise.
3718         [X/Open-based standards] (SIG_HOLD): Likewise.
3719         (SIG_IGN): Likewise.
3720         (SIGABRT): Use macro-int-constant.  Specify type.  Require
3721         positive value.
3722         (SIGFPE): Likewise.
3723         (SIGILL): Likewise.
3724         (SIGINT): Likewise.
3725         (SIGSEGV): Likewise.
3726         (SIGTER): Likewise.
3727         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
3728         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
3729         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
3730         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
3731         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
3732         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
3733         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
3734         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
3735         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
3736         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
3737         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
3738         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
3739         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
3740         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
3741         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
3742         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
3743         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
3744         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
3745         [X/Open-based standards] (SIGTRAP): Likewise.
3746         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
3747         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
3748         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
3749         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
3750         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
3751         allow.
3752
3753 2012-05-08  Ian Wienand  <ianw@vmware.com>
3754
3755         [BZ #14080]
3756         * time/tzset.c (__tzset_parse_tz): Update default rules for
3757         daylight time changes in the Energy Policy Act of 2005.
3758
3759 2012-05-09  Andreas Jaeger  <aj@suse.de>
3760
3761         [BZ #13983]
3762         * elf/ldconfig.c (parse_conf): Change string to make clear that
3763         ldconfig only issued a warning if ld.so.conf does not exist.
3764
3765 2012-05-08  David S. Miller  <davem@davemloft.net>
3766
3767         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
3768         movxtod instead of popping the value on the stack.
3769
3770         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3771
3772 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
3773
3774         * config.h.in: Add HAVE_ARM_PCS_VFP.
3775
3776 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
3777
3778         [BZ #13979]
3779         * include/features.h: Warn if user requests __FORTIFY_SOURCE
3780         checking but the checks are disabled for any reason.
3781
3782 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
3783
3784         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
3785         and ELF64_R_TYPE with ELFW(R_TYPE).
3786
3787 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
3788
3789         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
3790         (ulimit): Likewise.
3791
3792         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
3793         (settimeofday): Likewise.
3794
3795 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
3796
3797         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
3798         a struct th_u2 inside the union, and move tu_block/tu_code into
3799         a new th_u3 union of tu_block/tu_code inside of that.  Move
3800         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
3801         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
3802         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
3803         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
3804         (th_stuff): Change to th_u1.tu_stuff.
3805         (th_data): Define.
3806         (th_msg): Change to th_u1.th_u2.tu_data.
3807
3808 2012-05-07  David S. Miller  <davem@davemloft.net>
3809
3810         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3811
3812         [BZ #14074]
3813         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
3814         (SETUP_PIC_REG): Use it.
3815         (SETUP_PIC_REG_LEAF): Use it.
3816
3817 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
3818
3819         [BZ #13885]
3820         [BZ #13923]
3821         * sysdeps/i386/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/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
3827         e_expl.S.
3828         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3829         USE_AS_EXPM1L.
3830         (EXPL_FINITE): Likewise.
3831         (FLDLOG): Likewise.
3832         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
3833         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
3834         e_expl.S.
3835         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
3836         test of -max_value argument for long double.
3837         * sysdeps/i386/fpu/libm-test-ulps: Update.
3838         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3839
3840 2012-05-06  David S. Miller  <davem@davemloft.net>
3841
3842         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
3843         quad soft-float symbols whose references which are compiler
3844         generated.
3845         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
3846
3847 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
3848
3849         [BZ #13884]
3850         [BZ #13914]
3851         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3852         USE_AS_EXP10L.
3853         (EXPL_FINITE): Likewise.
3854         (FLDLOG): Likewise.
3855         (c0): Likewise.
3856         (c1): Likewise.
3857         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
3858         Adjust comments for base varying.
3859         (__expl_finite): Change alias to EXPL_FINITE.
3860         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
3861         e_expl.S.
3862         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
3863         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
3864         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
3865         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
3866         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3867         USE_AS_EXP10L.
3868         (EXPL_FINITE): Likewise.
3869         (FLDLOG): Likewise.
3870         (c0): Likewise.
3871         (c1): Likewise.
3872         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
3873         Adjust comments for base varying.
3874         (__expl_finite): Change alias to EXPL_FINITE.
3875         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
3876         tests for bugs.
3877         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3878
3879         [BZ #14064]
3880         * math/libm-test.inc (check_float_internal): Correct ulp
3881         calculation for subnormal expected results.
3882
3883 2012-05-06  Andreas Jaeger  <aj@suse.de>
3884
3885         * Makeconfig (+math-flags): New, set to -frounding-math.
3886         (+cflags): Add +math-flags so that all of glibc gets compiled with
3887         it.
3888
3889         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
3890
3891 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
3892
3893         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
3894         Disable one test.
3895
3896         [BZ #13787]
3897         [BZ #13922]
3898         [BZ #14036]
3899         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
3900         (__ieee754_expl): Allow for and saturate large arguments.
3901         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
3902         (u_threshold): Likewise.
3903         (__exp): Call __ieee754_exp before checking for overflow and
3904         underflow.
3905         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
3906         (u_threshold): Likewise.
3907         (__expf): Call __ieee754_expf before checking for overflow and
3908         underflow.
3909         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
3910         (u_threshold): Likewise.
3911         (__expl): Call __ieee754_expl before checking for overflow and
3912         underflow.
3913         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
3914         (__ieee754_expl): Allow for and saturate large arguments.
3915         * math/libm-test.inc (exp_test): Add another test.  Do not allow
3916         missing overflow exception on overflow.
3917         (expm1_test): Do not allow missing overflow exception on overflow.
3918
3919         * sysdeps/i386/fpu/e_expl.c: Move to ...
3920         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
3921         rather than using inline asm.
3922         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
3923         * sysdeps/x86_64/fpu/e_expl.S: Copy from
3924         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
3925
3926         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
3927         (nice): Likewise.
3928         (poll): Likewise.
3929         (signal): Likewise.
3930         (time): Likewise.
3931         (times): Likewise.
3932
3933 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
3934
3935         * sysdeps/unix/syscalls.list (adjtime): Add entry from
3936         sysdeps/unix/common/syscalls.list.
3937         (fchmod): Likewise.
3938         (fchown): Likewise.
3939         (ftruncate): Likewise.
3940         (getrusage): Likewise.
3941         (gettimeofday): Likewise.
3942         (setpgid): Likewise.
3943         (setregid): Likewise.
3944         (setreuid): Likewise.
3945         (sigaction): Likewise.
3946         (truncate): Likewise.
3947         (vhangup): Likewise.
3948         * sysdeps/unix/common/syscalls.list: Remove file.
3949         * sysdeps/unix/bsd/Implies: Don't include unix/common.
3950         * sysdeps/unix/sysv/linux/Implies: Likewise.
3951
3952 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
3953
3954         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
3955         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
3956         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
3957         Moved to ...
3958         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
3959         Here.
3960         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
3961         to ...
3962         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
3963         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
3964         to ...
3965         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
3966         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
3967         to ...
3968         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
3969         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
3970         to ...
3971         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
3972         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
3973         to ...
3974         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
3975         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
3976         to ...
3977         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
3978         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
3979         to ...
3980         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
3981         Here.
3982         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
3983         to ...
3984         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
3985         Here.
3986         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
3987         to ...
3988         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
3989         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
3990         Moved to ...
3991         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
3992         Here.
3993         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
3994         to ...
3995         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
3996
3997 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
3998
3999         * sysdeps/unix/common/bits/dirent.h: Remove file.
4000         * sysdeps/unix/common/bits/fcntl.h: Likewise.
4001
4002         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
4003         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
4004         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
4005         * sysdeps/unix/bsd/isatty.c: Likewise.
4006         * sysdeps/unix/bsd/tcdrain.c: Likewise.
4007         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
4008         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
4009
4010 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4011
4012         [BZ #13563]
4013         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
4014         long double comparison inaccuracies.
4015         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
4016         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4017
4018 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
4019
4020         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
4021         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
4022
4023 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
4024
4025         [BZ #14049]
4026         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
4027         nonzero digits before rounding a hex value.
4028         * stdlib/tst-strtod.c (tests): Add another test.
4029
4030 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4031
4032         * sysdeps/s390/fpu/libm-test-ulps: Update.
4033
4034 2012-05-03  Andreas Jaeger  <aj@suse.de>
4035
4036         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
4037         does not get optimized out.
4038         (malloc_opt_barrier): New.
4039
4040 2012-05-03  Andreas Jaeger  <aj@suse.de>
4041             Roland McGrath  <roland@hack.frob.com>
4042
4043         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
4044         intermediate file deletion.
4045         (generated): Add .symlist files.
4046
4047 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
4048
4049         [BZ #13775]
4050         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
4051         Redirect under this condition.
4052         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
4053         [__USE_GNU] (__dprintf_chk): Not under this condition.
4054         [__USE_GNU] (__vdprintf_chk): Likewise.
4055         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
4056         under this condition.
4057         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
4058         [__USE_XOPEN2K8] (dprintf): Define under this condition.
4059         [__USE_XOPEN2K8] (vdprintf): Likewise.
4060         [__USE_GNU] (__dprintf_chk): Not under this condition.
4061         [__USE_GNU] (__vdprintf_chk): Likewise.
4062         [__USE_GNU] (dprintf): Likewise.
4063         [__USE_GNU] (vdprintf): Likewise.
4064
4065 2012-05-03  Roland McGrath  <roland@hack.frob.com>
4066
4067         * elf/Makefile (common-generated): Set this instead of generated for
4068         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
4069         $(all-built-dso)-derived lists.
4070
4071 2012-05-03  Andreas Jaeger  <aj@suse.de>
4072
4073         * sysdeps/i386/fpu/libm-test-ulps: Update.
4074
4075         * FAQ: Removed.
4076         * FAQ.in: Likewise.
4077         * scripts/gen-FAQ.pl: Likewise.
4078         * manual/install.texi (Installation): Point to online location of
4079         FAQ.
4080         * Makefile (files-for-dist): Remove FAQ.
4081         (FAQ): Remove.
4082
4083 2012-05-02  Allan McRae  <allan@archlinux.org>
4084
4085         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
4086         (LDFLAGS-reldepmod5.so): Likewise.
4087         (LDFLAGS-reldep6mod1.so): Likewise.
4088         (LDFLAGS-reldep6mod4.so): Likewise.
4089         (LDFLAGS-reldep8mod3.so): Likewise.
4090         (LDFLAGS-unload4mod1.so): Likewise.
4091         (LDFLAGS-unload4mod2.so): Likewise.
4092         (LDFLAGS-tst-initorder): Likewise.
4093         (LDFLAGS-tst-initordera2.so): Likewise.
4094         (LDFLAGS-tst-initordera3.so): Likewise.
4095         (LDFLAGS-tst-initordera4.so): Likewise.
4096         (LDFLAGS-tst-initorderb2.so): Likewise.
4097         (LDFLAGS-noload): Likewise.
4098         (LDFLAGS-next): Likewise.
4099         (LDFLAGS-order2mod1.so): Likewise.
4100         (LDFLAGS-order2mod2.so): Likewise.
4101         (LDFLAGS-tst-initorder2): Likewise.
4102         (LDFLAGS-tst-initorder2a.so): Likewise.
4103         (LDFLAGS-tst-initorder2b.so): Likewise.
4104         (LDFLAGS-tst-initorder2c.so): Likewise.
4105         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
4106
4107 2012-05-02  David S. Miller  <davem@davemloft.net>
4108
4109         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4110
4111 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
4112
4113         [BZ #14055]
4114         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
4115
4116 2012-05-02  Andreas Jaeger  <aj@suse.de>
4117
4118         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
4119         since we manipulate rounding mode.
4120         (CPPFLAGS-test-idouble.c): Likewise.
4121         (CPPFLAGS-test-ifloat.c): Likewise.
4122         (CFLAGS-test-ldouble.c): Likewise.
4123         (CFLAGS-test-double.c): Likewise.
4124         (CFLAGS-test-float.c): Likewise.
4125         (CFLAGS-test-misc.c): Likewise.
4126         (CFLAGS-test-test-fenv.c): Likewise.
4127
4128 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4129
4130         [BZ #2550]
4131         [BZ #2570]
4132         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
4133         comparisons to determine direction to adjust input.
4134
4135 2012-05-01  Roland McGrath  <roland@hack.frob.com>
4136
4137         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
4138         output to the target.
4139
4140         * scripts/localplt.awk: New file.
4141         * elf/Makefile ($(objpfx)check-localplt): Target removed.
4142         (check-localplt-CFLAGS): Variable removed.
4143         ($(all-built-dso:=.jmprel)): New static pattern rule.
4144         (generated): Add those targets.
4145         (localplt-built-dso): New variable.
4146         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
4147
4148         * elf/check-localplt.c: File removed.
4149
4150         * scripts/check-execstack.awk: New file.
4151         * elf/Makefile ($(objpfx)check-execstack): Target removed.
4152         (check-execstack-CFLAGS): Variable removed.
4153         ($(objpfx)check-execstack.h): Target removed.
4154         ($(objpfx)execstack-default): New target.
4155         (generated): Add that instead of check-execstack.h.
4156         ($(all-built-dso:=.phdr)): New static pattern rule.
4157         (generated): Add those targets.
4158         * elf/check-execstack.c: File removed.
4159
4160         * scripts/check-textrel.awk: New file.
4161         * elf/Makefile ($(objpfx)check-textrel): Target removed.
4162         (check-textrel-CFLAGS): Variable removed.
4163         (all-built-dso): Use := to define.o
4164         ($(all-built-dso:=.dyn)): New static pattern rule.
4165         (generated): Add those targets.
4166         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
4167         * config.make.in (READELF): New substituted variable.
4168         * elf/check-textrel.c: File removed.
4169
4170 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
4171
4172         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
4173         allow.
4174         * conform/data/ctype.h-data [C99-based standards] (isblank):
4175         Expect function.
4176         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
4177         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
4178         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4179         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
4180         Specify type.  Require positive value.
4181         (EILSEQ): Likewise.
4182         (ERANGE): Likewise.
4183         [ISO || POSIX] (EILSEQ): Do not expect.
4184         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
4185         Specify type.  Require positive value.
4186         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
4187         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
4188         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
4189         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
4190         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
4191         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
4192         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
4193         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
4194         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
4195         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
4196         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
4197         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
4198         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
4199         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
4200         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
4201         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
4202         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
4203         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
4204         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
4205         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
4206         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
4207         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
4208         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
4209         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
4210         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
4211         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
4212         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
4213         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
4214         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
4215         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
4216         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
4217         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
4218         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
4219         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
4220         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
4221         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
4222         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
4223         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
4224         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
4225         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
4226         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
4227         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
4228         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
4229         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
4230         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
4231         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
4232         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
4233         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
4234         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
4235         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
4236         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
4237         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
4238         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
4239         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
4240         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
4241         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
4242         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
4243         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
4244         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
4245         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
4246         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
4247         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
4248         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
4249         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
4250         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
4251         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
4252         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
4253         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
4254         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
4255         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
4256         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
4257         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
4258         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
4259         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
4260         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
4261         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
4262         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
4263         Require >= 2.
4264         (FLT_ROUNDS): Expect as macro, not constant.
4265         (FLT_MANT_DIG): Use macro-int-constant.
4266         (DBL_MANT_DIG): Likewise.
4267         (LDBL_MANT_DIG): Likewise.
4268         (FLT_DIG): Likewise.
4269         (DBL_DIG): Likewise.
4270         (LDBL_DIG): Likewise.
4271         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
4272         (DBL_MIN_EXP): Likewise.
4273         (LDBL_MIN_EXP): Likewise.
4274         (FLT_MAX_EXP): Use macro-int-constant.
4275         (DBL_MAX_EXP): Likewise.
4276         (LDBL_MAX_EXP): Likewise.
4277         (FLT_MAX_10_EXP): Likewise.
4278         (DBL_MAX_10_EXP): Likewise.
4279         (LDBL_MAX_10_EXP): Likewise.
4280         (FLT_MAX): Use macro-constant.
4281         (DBL_MAX): Likewise.
4282         (LDBL_MAX): Likewise.
4283         (FLT_EPSILON): Use macro-constant.  Give upper bound.
4284         (DBL_EPSILON): Likewise.
4285         (LDBL_EPSILON): Likewise.
4286         (FLT_MIN): Likewise.
4287         (DBL_MIN): Likewise.
4288         (LDBL_MIN): Likewise.
4289         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
4290         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
4291         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
4292         [ISO11] (FLT_HAS_SUBNORM): Likewise.
4293         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
4294         [ISO11] (DBL_DECIMAL_DIG): Likewise.
4295         [ISO11] (FLT_DECIMAL_DIG): Likewise.
4296         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
4297         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
4298         [ISO11] (FLT_TRUE_MIN): Likewise.
4299         [ISO11] (LDBL_TRUE_MIN): Likewise.
4300         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4301         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
4302         (SCHAR_MIN): Use macro-int-constant.  Specify type.
4303         (SCHAR_MAX): Likewise.
4304         (UCHAR_MAX): Likewise.
4305         (CHAR_MIN): Likewise.
4306         (CHAR_MAX): Likewise.
4307         (MB_LEN_MAX): Use macro-int-constant.
4308         (SHRT_MIN): Use macro-int-constant.  Specify type.
4309         (SHRT_MAX): Likewise.
4310         (USHRT_MAX): Likewise.
4311         (INT_MAX): Likewise.
4312         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
4313         bound negative.
4314         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
4315         bound with "U".
4316         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
4317         bound with "L".
4318         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
4319         bound negative.  Suffix upper bound with "L".
4320         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
4321         bound with "UL".
4322         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
4323         Specify type.
4324         [C99-based standards] (LLONG_MAX): Likewise.
4325         [C99-based standards] (ULLONG_MAX): Likewise.
4326         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
4327         == 0.
4328         [ISO11] (max_align_t): Require type.
4329         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4330
4331         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
4332         from $CFLAGS, without defining away __attribute__ calls.
4333         (checknamespace): Use $CFLAGS_namespace.
4334
4335         * conform/conformtest.pl (@keywords): Only include C99 keywords
4336         for standards based on C99 or C11.
4337
4338         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
4339         Disable tests.
4340         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
4341         UNIX98]: Likewise.
4342
4343         * conform/conformtest.pl: Handle "macro-int-constant" and test for
4344         usability of symbols in #if.
4345
4346         * conform/conformtest.pl: If macro or constant types start
4347         "promoted:", expect the symbol to be of the following type
4348         promoted by the integer promotions.
4349
4350         * conform/conformtest.pl: Parse all "constant" and "macro" lines
4351         in one place.  Also handle "macro-constant".
4352
4353         * conform/conformtest.pl: Only accept expected macro values with
4354         "==".  Parse all "macro" lines in one place.
4355         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
4356
4357         * conform/conformtest.pl: Handle braced types on "constant" lines
4358         instead of handling "typed-constant".
4359         * conform/data/signal.h-data: Use "constant" instead of
4360         "typed-constant".
4361
4362         * conform/conformtest.pl: Handle "optional-" at start of lines in
4363         one place rather than duplicating several cases.  Handle each
4364         format of "macro" line with initial "optional-".
4365
4366         * conform/conformtest.pl: Only accept expected constant or
4367         optional-constant values with "==".  Parse all "constant" lines in
4368         one place.  Parse all "optional-constant" lines in one place.
4369         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
4370         * conform/data/fmtmsg.h-data: Likewise.
4371         * conform/data/netinet/in.h-data: Likewise.
4372         * conform/data/tar.h-data: Likewise.
4373         * conform/data/limits.h-data: Use "==" form on "constant" and
4374         "optional-constant" lines.
4375
4376         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
4377         Use -std=c99 for XOPEN2K.
4378         (@knownproblems): Remove.
4379         (newtoken): Don't check %isknown.
4380
4381         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
4382         Do not expect macro.
4383         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
4384         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
4385         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
4386         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
4387         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
4388         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
4389         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
4390         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
4391         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
4392         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
4393         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
4394         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
4395         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
4396         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
4397         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
4398         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
4399         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
4400         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
4401         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
4402         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
4403         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
4404         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
4405         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
4406         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
4407         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
4408         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
4409         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
4410         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
4411         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
4412         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
4413         [XPG3] (acosh): Likewise.
4414         [XPG3] (asinh): Likewise.
4415         [XPG3] (atanh): Likewise.
4416         [XPG3] (cbrt): Likewise.
4417         [XPG3] (expm1): Likewise.
4418         [XPG3] (ilogb): Likewise.
4419         [XPG3] (log1p): Likewise.
4420         [XPG3] (logb): Likewise.
4421         [XPG3] (nextafter): Likewise.
4422         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
4423         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
4424         [XPG3] (remainder): Likewise.
4425         [XPG3] (rint): Likewise.
4426         [XPG3 || XPG4 || UNIX98] (round): Likewise.
4427         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
4428         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
4429         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
4430         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
4431         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
4432         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
4433         [UNIX98 || XOPEN2K] (scalb): Expect.
4434         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
4435         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
4436         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
4437         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
4438         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
4439         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
4440         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
4441         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
4442         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
4443         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
4444         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
4445         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
4446         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
4447         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
4448         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
4449         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
4450         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
4451         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
4452         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
4453         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
4454         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
4455         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
4456         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
4457         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
4458         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
4459         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
4460         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
4461         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
4462         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
4463         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
4464         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
4465         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
4466         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
4467         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
4468         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
4469         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
4470         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
4471         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
4472         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
4473         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
4474         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
4475         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
4476         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
4477         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
4478         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
4479         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
4480         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
4481         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
4482         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
4483         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
4484         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
4485         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
4486         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
4487         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
4488         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
4489         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
4490         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
4491         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
4492         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
4493         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
4494         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
4495         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
4496         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
4497         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
4498         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
4499         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
4500         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
4501         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
4502         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
4503         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
4504         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
4505         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
4506         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
4507         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
4508         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
4509         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
4510         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
4511         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
4512         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
4513         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
4514         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
4515         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
4516         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
4517         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
4518         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
4519         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
4520         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
4521         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
4522         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
4523         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
4524         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
4525         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
4526         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
4527         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
4528         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
4529         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
4530         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
4531         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
4532         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
4533         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
4534         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
4535         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
4536         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
4537         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
4538         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
4539         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
4540         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
4541         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
4542         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
4543         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
4544         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
4545         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
4546         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
4547         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
4548         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
4549         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
4550         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
4551         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
4552         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
4553         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
4554         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
4555         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
4556         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
4557         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
4558         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
4559         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
4560         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
4561         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
4562         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
4563         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
4564         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
4565         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
4566         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
4567         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
4568         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
4569         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
4570         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
4571
4572         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
4573         _XOPEN_SOURCE_EXTENDED for XPG4.
4574
4575         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
4576
4577         * Makeconfig (localtime): Remove variable.
4578         (inst_localtime-file): Likewise.
4579
4580 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
4581
4582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
4583         Update.
4584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4585         Update.
4586         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
4587         Update.
4588         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
4589         Update.
4590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
4591         Update.
4592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
4593         Update.
4594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4595         Update.
4596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
4597         Update.
4598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
4599         Update.
4600
4601 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
4602
4603         [BZ #2550]
4604         [BZ #2570]
4605         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
4606         comparisons to determine direction to adjust input.
4607         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
4608         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
4609         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
4610         Likewise.
4611         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
4612         Likewise.
4613         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
4614         Likewise.
4615         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
4616         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
4617         Likewise.
4618         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
4619         Likewise.
4620         * math/libm-test.inc (nexttoward_test): Add more tests.
4621
4622 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
4623
4624         [BZ #14040]
4625         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
4626         in version GLIBC_2.1, not GLIBC_2.0.
4627         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
4628         Likewise.
4629
4630 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
4631
4632         [BZ #13942]
4633         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
4634         (1 - x) * (1 + x).
4635         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
4636         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
4637         * math/libm-test.inc (acos_test): Add more tests.
4638         (asin_test): Likewise.
4639         * sysdeps/i386/fpu/libm-test-ulps: Update.
4640         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4641
4642         [BZ #14034]
4643         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
4644         of square root.
4645         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
4646         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
4647         * math/libm-test.inc (acos_test_tonearest): New function.
4648         (acos_test_towardzero): Likewise.
4649         (acos_test_downward): Likewise.
4650         (acos_test_upward): Likewise.
4651         (asin_test_tonearest): Likewise.
4652         (asin_test_towardzero): Likewise.
4653         (asin_test_downward): Likewise.
4654         (asin_test_upward): Likewise.
4655         (main): Call the new functions.
4656         * sysdeps/i386/fpu/libm-test-ulps: Update.
4657         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4658
4659         [BZ #13884]
4660         [BZ #13924]
4661         * math/e_exp10.c: Include <float.h>.
4662         (__ieee754_exp10): Handle underflow here rather than multiplying
4663         large negative argument by M_LN10.
4664         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
4665         of __ieee754_expf.
4666         * math/e_exp10l.c: Include <float.h>.
4667         (__ieee754_exp10l): Handle underflow here rather than multiplying
4668         large negative argument by M_LN10l.
4669         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
4670         spurious overflow exception on underflow.
4671
4672 2012-04-29  Marek Polacek  <polacek@redhat.com>
4673
4674         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
4675         (__fortify_function): New macro.
4676         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
4677         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
4678         __extern_always_inline.
4679         * libio/bits/stdio2.h: Likewise.
4680         * libio/bits/stdio.h: Likewise.
4681         * string/string.h: Likewise.
4682         * string/bits/string3.h: Likewise.
4683         * include/stdio.h: Likewise.
4684         * stdlib/bits/stdlib.h: Likewise.
4685         * stdlib/stdlib.h: Likewise.
4686         * rt/bits/mqueue2.h: Likewise.
4687         * rt/mqueue.h: Likewise.
4688         * posix/bits/unistd.h: Likewise.
4689         * posix/unistd.h: Likewise.
4690         * io/bits/poll2.h: Likewise.
4691         * io/bits/fcntl2.h: Likewise.
4692         * io/fcntl.h: Likewise.
4693         * io/sys/poll.h: Likewise.
4694         * misc/bits/syslog.h: Likewise.
4695         * misc/bits/syslog-ldbl.h: Likewise.
4696         * misc/sys/syslog.h: Likewise.
4697         * socket/bits/socket2.h: Likewise.
4698         * socket/sys/socket.h: Likewise.
4699         * debug/tst-chk1.c: Likewise.
4700         * wcsmbs/bits/wchar2.h: Likewise.
4701         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4702         * wcsmbs/wchar.h: Likewise.
4703
4704 2012-04-29  Andreas Jaeger  <aj@suse.de>
4705
4706         * Makerules (tests): Remove enable-check-abi protection.
4707         (check-abi-warn): Remove.
4708         (check-abi-%): Remove check-abi-warn usage.
4709
4710         * configure.in: Remove check-abi configure option.
4711         * configure: Regenerated.
4712         * config.make.in (enable-check-abi): Remove.
4713
4714 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
4715
4716         [BZ #14033]
4717         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
4718         double functions to double *_finite functions.
4719
4720         [BZ #13941]
4721         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
4722         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
4723         LDBL_MIN_EXP.
4724         * stdio-common/Makefile (tests): Add tst-sprintf3.
4725         * stdio-common/tst-sprintf3.c: New file.
4726
4727         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
4728         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
4729
4730 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
4731
4732         * conform/conformtest.pl: Remove duplicate typed-constant
4733         handling.
4734
4735 2012-04-28  David S. Miller  <davem@davemloft.net>
4736
4737         * Makerules (%.abilist): Add vpath on sysdep_dirs.
4738         (check-abi-%): Remove AWK script prerequisite and explicit
4739         abilist directory.
4740         (check-abi): Rewrite to just diff the symlist with the abilist.
4741         (config-tls, config-abi-config): Delete, no longer used.
4742         (update-abi-%): Remove AWK script and explicit abilist directory.
4743         (update-abi): Rewrite to simply compare and conditionally copy the
4744         symlist and the sysdep abilist file.  Remove update-abi-config
4745         checks.
4746         * abilist/ld.abilist: Remove.
4747         * abilist/libBrokenLocale.abilist: Remove.
4748         * abilist/libanl.abilist: Remove.
4749         * abilist/libcrypt.abilist: Remove.
4750         * abilist/libdl.abilist: Remove.
4751         * abilist/librt.abilist: Remove.
4752         * abilist/libthread_db.abilist: Remove.
4753         * abilist/libutil.abilist: Remove.
4754         * scripts/extract-abilist.awk: Remove.
4755         * scripts/merge-abilist.awk: Remove.
4756         * sysdeps/generic/libcidn.abilist: New file.
4757         * sysdeps/generic/libnss_compat.abilist: New file.
4758         * sysdeps/generic/libnss_db.abilist: New file.
4759         * sysdeps/generic/libnss_dns.abilist: New file.
4760         * sysdeps/generic/libnss_files.abilist: New file.
4761         * sysdeps/generic/libnss_hesiod.abilist: New file.
4762         * sysdeps/generic/libnss_nis.abilist: New file.
4763         * sysdeps/generic/libnss_nisplus.abilist: New file.
4764         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
4765         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
4766         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
4767         file.
4768         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
4769         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
4770         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
4771         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
4772         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
4773         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
4774         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
4775         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
4776         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
4777         file.
4778         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
4779         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
4780         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
4781         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
4782         file.
4783         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
4784         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
4785         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
4786         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
4787         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
4788         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
4789         file.
4790         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
4791         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
4792         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
4793         file.
4794         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
4795         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
4796         New file.
4797         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
4798         New file.
4799         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
4800         New file.
4801         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
4802         New file.
4803         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
4804         New file.
4805         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
4806         New file.
4807         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
4808         New file.
4809         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
4810         New file.
4811         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
4812         New file.
4813         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
4814         New file.
4815         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
4816         New file.
4817         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
4818         New file.
4819         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
4820         New file.
4821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
4822         file.
4823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
4824         New file.
4825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
4826         New file.
4827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
4828         file.
4829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
4830         New file.
4831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
4832         New file.
4833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
4834         file.
4835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
4836         New file.
4837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
4838         New file.
4839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
4840         New file.
4841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
4842         New file.
4843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
4844         New file.
4845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
4846         New file.
4847         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
4848         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
4849         file.
4850         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
4851         New file.
4852         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
4853         file.
4854         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
4855         file.
4856         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
4857         file.
4858         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
4859         file.
4860         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
4861         file.
4862         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4863         New file.
4864         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
4865         file.
4866         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
4867         file.
4868         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
4869         New file.
4870         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
4871         file.
4872         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
4873         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
4874         file.
4875         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
4876         New file.
4877         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
4878         file.
4879         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
4880         file.
4881         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
4882         file.
4883         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
4884         file.
4885         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
4886         file.
4887         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4888         New file.
4889         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
4890         file.
4891         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
4892         file.
4893         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
4894         New file.
4895         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
4896         file.
4897         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4898         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
4899         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
4900         file.
4901         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
4902         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
4903         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
4904         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
4905         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
4906         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
4907         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
4908         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
4909         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
4910         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
4911         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
4912         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
4913         file.
4914         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
4915         New file.
4916         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
4917         file.
4918         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
4919         file.
4920         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
4921         file.
4922         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
4923         file.
4924         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
4925         file.
4926         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
4927         New file.
4928         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
4929         New file.
4930         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
4931         file.
4932         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
4933         New file.
4934         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
4935         file.
4936         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
4937         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
4938         file.
4939         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
4940         New file.
4941         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
4942         file.
4943         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
4944         file.
4945         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
4946         file.
4947         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
4948         file.
4949         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
4950         file.
4951         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
4952         New file.
4953         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
4954         New file.
4955         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
4956         file.
4957         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
4958         New file.
4959         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
4960         file.
4961
4962 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
4963
4964         * conform/conformtest.pl: Fix typo in handling typed-constant from
4965         allow-header.
4966
4967 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
4968
4969         * README: Cut down references to pre-2.6 Linux kernels and
4970         Linuxthreads.  Update lists of configurations in libc and ports
4971         and sort alphabetically.  Say "or newer" with Linux kernel version
4972         requirements.
4973
4974         * config.h.in [IS_IN_build]: Allow compiling without optimization.
4975
4976 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4977
4978         [BZ #887]
4979         * math/libm-test.inc (logb_test_downward): New test to expose
4980         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
4981         rounding mode.
4982
4983 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
4984
4985         [BZ #14027]
4986         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
4987         to be done.
4988         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
4989         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
4990
4991 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
4992
4993         * sysdeps/unix/i386/brk.S: Remove file.
4994         * sysdeps/unix/i386/dl-brk.S: Likewise.
4995         * sysdeps/unix/i386/pipe.S: Likewise.
4996         * sysdeps/unix/i386/sigreturn.S: Likewise.
4997         * sysdeps/unix/i386/syscall.S: Likewise.
4998         * sysdeps/unix/i386/vfork.S: Likewise.
4999         * sysdeps/unix/i386/wait.S: Likewise.
5000
5001         * sysdeps/unix/common/tcsendbrk.c: Move to ...
5002         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
5003
5004         * configure.in (arm*-none*): Do not allow without
5005         --enable-hacker-mode.
5006         (netbsd*): Remove case setting base_os.
5007         (386bsd*): Likewise.
5008         (freebsd*): Likewise.
5009         (bsdi*): Likewise.
5010         (osf*): Likewise.
5011         (sunos*): Likewise.
5012         (ultrix*): Likewise.
5013         (newsos*): Likewise.
5014         (dynix*): Likewise.
5015         (*bsd*): Likewise.
5016         (sysv*): Likewise.
5017         (isc*): Likewise.
5018         (esix*): Likewise.
5019         (sco*): Likewise.
5020         (minix*): Likewise.
5021         (irix4*): Likewise.
5022         (irix6*): Likewise.
5023         (solaris[2-9]*): Likewise.
5024         (none): Likewise.
5025         * configure: Regenerated.
5026
5027 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5028
5029         [BZ #11521]
5030         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
5031         overflow or cancellation in calculating denominator.
5032         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
5033         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
5034         down expression to avoid unexpected rounding in newer GCCs.
5035         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
5036
5037 2012-04-26  David S. Miller  <davem@davemloft.net>
5038
5039         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
5040         long-double compat symbols.
5041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
5042         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
5043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
5044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
5045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
5046         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
5047         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
5048         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
5049         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
5050         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
5051         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
5052         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
5053         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
5054
5055 2012-04-25  David S. Miller  <davem@davemloft.net>
5056
5057         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
5058         HWCAP_* values only after the memory barriers have been defined.
5059         (atomic_full_barrier): Define.
5060         (atomic_read_barrier): Define.
5061         (atomic_write_barrier): Define.
5062
5063 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5064
5065         * shlib-versions: Add libgcc_s version information.
5066         * sysdeps/generic/libgcc_s.h: Remove.
5067         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
5068         libgcc_s.h.
5069         * sysdeps/gnu/unwind-resume.c: Likewise.
5070         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
5071
5072 2012-04-25  David S. Miller  <davem@davemloft.net>
5073
5074         * sysdeps/unix/sparc/brk.S: Delete.
5075         * sysdeps/unix/sparc/dl-brk.S: Delete.
5076         * sysdeps/unix/sparc/pipe.S: Delete.
5077         * sysdeps/unix/sparc/sysdep.S: Delete.
5078         * sysdeps/unix/sparc/sysdep.h: Delete.
5079         * sysdeps/unix/sparc/vfork.S: Delete.
5080         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
5081         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
5082         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
5083         ret_ERRVAL, r0, r1, MOVE): Define.
5084         (JUMPTARGET): Remove.
5085         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
5086         sysdeps/unix/sparc/sysdep.h
5087         (ENTRY, END): Remove.
5088         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
5089
5090 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
5091
5092         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
5093         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
5094         -DIS_IN_build.
5095
5096         * timezone/README: Update upstream location and email address for
5097         tzcode and tzdata.
5098         * timezone/zdump.c: Update from tzcode 2012b.
5099         * timezone/zic.c: Likewise.
5100
5101         * configure.in (libc_cv_as_needed): Remove test.
5102         * configure: Regenerated.
5103         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
5104         conditional definition.
5105         [$(have-as-needed) != yes] (no-as-needed): Likewise.
5106         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
5107         * config.make.in (have-as-needed): Remove variable.
5108
5109 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
5110             Paul Pluzhnikov  <ppluzhnikov@google.com>
5111
5112         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
5113         strings correctly.
5114
5115 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
5116
5117         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
5118         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
5119         * sysdeps/sh/strlen.S: Likewise.
5120
5121 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
5122
5123         * sysdeps/unix/fork.S: Remove file.
5124         * sysdeps/unix/i386/fork.S: Likewise.
5125         * sysdeps/unix/sparc/fork.S: Likewise.
5126
5127         * sysdeps/unix/system.c: Remove file.
5128         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
5129
5130         * sysdeps/unix/getegid.S: Remove file.
5131         * sysdeps/unix/geteuid.S: Likewise.
5132
5133 2012-04-24  Roland McGrath  <roland@hack.frob.com>
5134
5135         * scripts/check-localplt.awk: New file.
5136         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
5137         of diff.
5138         * scripts/data/localplt-generic.data: Add a comment.
5139
5140         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
5141         NODE when __dir_mkfile failed.
5142         * sysdeps/mach/hurd/symlinkat.c: Likewise.
5143         Reported by Ludovic Courtès <ludo@gnu.org>.
5144
5145 2012-04-24  Andreas Jaeger  <aj@suse.de>
5146
5147         * Makerules (common-clean): Also remove gen-as-const-headers
5148         files.
5149
5150 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
5151
5152         * Makerules (native-compile): Do not change working directory for
5153         build.  Use $(OUTPUT_OPTION) in command.
5154         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
5155
5156 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5157
5158         [BZ #13886]
5159         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
5160         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
5161         * math/libm-test.inc (floor_test): Add more tests.
5162         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
5163
5164 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
5165
5166         * sysdeps/unix/getdents.c: Remove file.
5167         * sysdeps/unix/sysv/getdents.c: Likewise.
5168         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
5169
5170         * sysdeps/unix/syscalls.list (madvise): Add syscall from
5171         sysdeps/unix/mman/syscalls.list.
5172         (mmap): Likewise.
5173         (mprotect): Likewise.
5174         (msync): Likewise.
5175         (munmap): Likewise.
5176         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
5177         * sysdeps/unix/mman/syscalls.list: Remove.
5178         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
5179
5180         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
5181         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
5182         * configure: Regenerated.
5183         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
5184         $(libgcc_s_suffix).
5185         * config.make.in (libgcc_s_suffix): Remove variable.
5186
5187 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
5188
5189         * sysdeps/unix/sysv/gethostname.c: Move to ...
5190         * sysdeps/posix/gethostname.c: ... here.
5191
5192         * sysdeps/unix/execve.S: Remove file.
5193
5194         * sysdeps/unix/_exit.S: Remove file.
5195
5196 2012-04-23  Andreas Jaeger  <aj@suse.de>
5197
5198         [BZ #13739]
5199         * manual/Makefile: Remove make dist support, there's no
5200         need for a stand-alone documentation tar ball.
5201         (TEXI2DVI): Define always, it's not in Makeconfig.
5202         (dist): Removed.
5203         (tar-it): Removed.
5204         (edition): Removed.
5205         (glibc-doc-$(edition).tar): Removed
5206         (%.Z): Removed.
5207         (%.gz): Removed.
5208         (%.uu): Removed.
5209         (ETAGS): Remove, it's in Makeconfig.
5210         (move-if-change): Remove, it's in Makeconfig.
5211
5212 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
5213
5214         [BZ #13970]
5215         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
5216         (strtod, strtof, strtold, strtol, strtoul, strtoq)
5217         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
5218         (strtod_l, strtof_l, strtold_l): Remove __wur.
5219         It is not necessarily an error to ignore strtol's return value.
5220         One can reliably look at the stored endptr to decide whether
5221         the number had valid syntax.
5222
5223 2012-04-21  Andreas Jaeger  <aj@suse.de>
5224
5225         [BZ #13739]
5226         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
5227
5228 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
5229
5230         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
5231         * sysdeps/unix/sysv/Versions: Remove file.
5232
5233 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
5234
5235         [BZ #13927]
5236         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5237
5238 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
5239
5240         [BZ #7064]
5241         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
5242         version from __vm86.
5243
5244 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
5245
5246         * sysdeps/unix/common/lxstat.c: Remove file.
5247         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
5248
5249         * sysdeps/unix/sysv/Makefile: Remove file.
5250
5251         * sysdeps/unix/sysv/direct.h: Remove file.
5252
5253         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
5254         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
5255         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
5256         * sysdeps/unix/sysv/bits/signum.h: Likewise.
5257         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5258         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
5259         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
5260
5261         * sysdeps/unix/sysv/setrlimit.c: Remove file.
5262
5263         * sysdeps/unix/xmknod.c: Remove file.
5264         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
5265
5266         * sysdeps/unix/sysv/settimeofday.c: Remove file.
5267
5268         * sysdeps/unix/sysv/i386/time.S: Remove file.
5269
5270         * sysdeps/unix/fxstat.c: Remove file.
5271         * sysdeps/unix/xstat.c: Likewise.
5272         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
5273
5274         * sysdeps/unix/sysv/sigaction.c: Remove file.
5275
5276         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
5277         (sysdep_headers): Remove variable.
5278         [termio.h not in sysdep_headers] (generated): Likewise.
5279         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
5280         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
5281         * sysdeps/unix/sysv/tcdrain.c: Likewise.
5282         * sysdeps/unix/sysv/tcflow.c: Likewise.
5283         * sysdeps/unix/sysv/tcflush.c: Likewise.
5284         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
5285         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
5286         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
5287         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
5288         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
5289
5290         * sysdeps/unix/siglist.c: Remove file.
5291
5292         * sysdeps/unix/getppid.S: Remove file.
5293
5294         * sysdeps/unix/mkdir.c: Remove file.
5295         * sysdeps/unix/rmdir.c: Likewise.
5296
5297 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
5298
5299         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
5300         ERR_MAX value.
5301         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
5302         errlist-compat value.
5303
5304 2012-04-18  David S. Miller  <davem@davemloft.net>
5305
5306         * sysdeps/generic/memcopy.h (reg_char): Delete.
5307         * debug/strcat_chk.c: Use char, not reg_char.
5308         * debug/strcpy_chk.c: Likewise.
5309         * debug/strncat_chk.c: Likewise.
5310         * debug/strncpy_chk.c: Likewise.
5311         * string/memchr.c: Likewise.
5312         * string/memrchr.c: Likewise.
5313         * string/rawmemchr.c: Likewise.
5314         * string/strcat.c: Likewise.
5315         * string/strchr.c: Likewise.
5316         * string/strchrnul.c: Likewise.
5317         * string/strcmp.c: Likewise.
5318         * string/strcpy.c: Likewise.
5319         * string/strncat.c: Likewise.
5320         * string/strncmp.c: Likewise.
5321         * string/strncpy.c: Likewise.
5322
5323 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
5324
5325         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
5326         __builtin_memcopy is called when src and dest ranges are known to not
5327         overlap.
5328
5329 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
5330
5331         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
5332         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
5333         fwd_align_merge macro call.
5334         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
5335         bwd_align_merge macro call.
5336         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
5337
5338 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
5339
5340         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
5341         bwd_align_merge macros.
5342         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
5343         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
5344         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
5345
5346 2012-04-18  David S. Miller  <davem@davemloft.net>
5347
5348         * sysdeps/sparc/sparc64/memcopy.h: Delete.
5349
5350 2012-04-18  Andreas Jaeger  <aj@suse.de>
5351
5352         [BZ# 6794]
5353         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
5354         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
5355         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
5356
5357         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
5358         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
5359         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
5360
5361         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
5362         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
5363         Adjust for changed ldbl-128 files.
5364
5365         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
5366         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
5367         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
5368
5369 2012-04-17  David S. Miller  <davem@davemloft.net>
5370
5371         * sysdeps/sparc/sparc32/memcopy.h: Delete.
5372
5373 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
5374
5375         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
5376         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
5377         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
5378         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
5379         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
5380         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
5381
5382 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5383
5384         [BZ #6794]
5385         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
5386         * math/libm-test.inc: Add ilogb errno and exception tests.
5387         * math/w_ilogb.c: New file: ilogb wrapper.
5388         * math/w_ilogbf.c: New file: ilogbf wrapper.
5389         * math/w_ilogbl.c: New file: ilogbl wrapper.
5390         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
5391         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
5392         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
5393         exception being thrown with 0.0 as argument.
5394         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
5395         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
5396         exception being thrown with 0.0 as argument.
5397         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
5398         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
5399         exception being thrown with 0.0 as argument.
5400         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
5401         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
5402         exception being thrown with 0.0 as argument.
5403         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
5404         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
5405         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
5406         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
5407         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
5408         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
5409         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
5410         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
5411         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
5412
5413 2012-04-17  Petr Baudis  <pasky@ucw.cz>
5414
5415         * include/sys/uio.h: Change __vector to __iovec to avoid clash
5416         with altivec.
5417
5418 2012-04-16  Marek Polacek  <polacek@redhat.com>
5419
5420         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
5421
5422 2012-04-16  Marek Polacek  <polacek@redhat.com>
5423
5424         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
5425         operands of fdivp instruction.
5426
5427 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
5428
5429         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
5430         * elf/tst-auditmod3b.c: Likewise.
5431         * elf/tst-auditmod4b.c: Likewise.
5432         * elf/tst-auditmod5b.c: Likewise.
5433         * elf/tst-auditmod6b.c: Likewise.
5434         * elf/tst-auditmod6c.c: Likewise.
5435         * elf/tst-auditmod7b.c: Likewise.
5436         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
5437         * sysdeps/x86_64/preconfigure.in: Likewise.
5438         * sysdeps/x86_64/preconfigure: Regenerated.
5439
5440 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
5441
5442         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
5443         __ILP32__.
5444
5445 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
5446
5447         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5448         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
5449
5450 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
5451
5452         [BZ #13973]
5453         * locale/iso-639.def: Fix gl language name. Spotted by
5454         Yaron Shahrabani.
5455
5456 2012-04-12  Roland McGrath  <roland@hack.frob.com>
5457
5458         [BZ #2074]
5459         * libio/libio.h (__io_write_fn): Update comment.
5460
5461 2012-04-12  Petr Baudis  <pasky@ucw.cz>
5462
5463         [BZ #2074]
5464         * stdio.texi (Hook Functions): The user provided writer function
5465         is not allowed to return -1.
5466
5467 2012-04-11  David S. Miller  <davem@davemloft.net>
5468
5469         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5470
5471 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
5472
5473         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
5474         Add a leading slash to rtkaio.
5475
5476 2012-04-11  Jim Meyering  <meyering@redhat.com>
5477
5478         [BZ #11959]
5479         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
5480         It is not necessarily an error to ignore fwrite's return
5481         value.  One can reliably use ferror to test for errors after
5482         the fact.
5483
5484 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
5485
5486         * bits/types.h (__snseconds_t): New type.
5487         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
5488
5489         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
5490         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5491         (__SNSECONDS_T_TYPE): Likewise.
5492         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5493         (__SNSECONDS_T_TYPE): Likewise.
5494         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5495         (__SNSECONDS_T_TYPE): Likewise.
5496
5497 2012-04-10  Andreas Jaeger  <aj@suse.de>
5498
5499         [BZ #2636]
5500         * manual/time.texi (Processor Time): Return type of times is
5501         elapsed real time since an arbitrary point in the past.
5502         (CPU Time): Move CLK_TCK from here...
5503         (Processor Time): ...to here.  Correct description.
5504         * manual/conf.texi (Constants for Sysconf): Correct description of
5505         _SC_CLK_TCK.
5506
5507 2012-04-10  David S. Miller  <davem@davemloft.net>
5508
5509         [BZ #13967]
5510         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
5511         where the is a gap between DT_REL(A) and DT_JMPREL.
5512
5513 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
5514
5515         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
5516         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
5517         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
5518
5519 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5520
5521         * elf/dl-support.c (_dl_inhibit_cache): New variable.
5522         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
5523         (dl_main): Handle --inhibit-cache.
5524         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
5525         _dl_inhibit_cache.
5526         * elf/dl-load.c (_dl_map_object): Use it.
5527         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
5528
5529 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
5530
5531         [BZ #13872]
5532         * sysdeps/i386/fpu/e_powl.S (p78): New object.
5533         (__ieee754_powl): Saturate large exponents rather than testing for
5534         overflow of y*log2(x).
5535         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
5536         * math/libm-test.inc (pow_test): Do not permit spurious overflow
5537         exceptions.
5538
5539         [BZ #11521]
5540         * math/s_ctan.c: Include <float.h>.
5541         (__ctan): Avoid internal overflow or cancellation in calculating
5542         denominator.
5543         * math/s_ctanf.c: Likewise.
5544         * math/s_ctanl.c: Likewise.
5545         * math/s_ctanh.c: Likewise.
5546         * math/s_ctanhf.c: Likewise.
5547         * math/s_ctanhl.c: Likewise.
5548         * math/libm-test.inc (ctan_test): Add more tests.
5549         (ctanh_test): Likewise.
5550         * sysdeps/i386/fpu/libm-test-ulps: Update.
5551         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5552
5553 2012-04-09  Andreas Jaeger  <aj@suse.de>
5554
5555         [BZ #6894]
5556         * manual/filesys.texi (Directory Entries): Mention that d_namlen
5557         is an optional BSD extension.
5558
5559         [BZ #10254]
5560         * manual/stdio.texi (Opening Streams): Document additional fopen
5561         parameters.
5562
5563 2012-04-09  Roland McGrath  <roland@hack.frob.com>
5564
5565         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
5566         %eax without telling the compiler.
5567
5568 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
5569
5570         [BZ # 13963]
5571         * manual/install.texi: Use sourceware.org.
5572
5573 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
5574
5575         [BZ #13873]
5576         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
5577         (__ieee754_pow): Generate overflow and underflow using huge*huge
5578         and tiny*tiny rather than just returning constant infinity or zero
5579         for large exponents.
5580         * math/libm-test.inc (pow_test): Require overflow exceptions for
5581         applicable cases of large exponents.
5582
5583         [BZ #706]
5584         * sysdeps/i386/fpu/e_pow.S (p10): New object.
5585         (__ieee754_pow): Use iterative multiplication algorithm only for
5586         integer exponents with absolute value below 1024.  Check for odd
5587         integer exponents when using algorithm for real exponents.
5588         * math/libm-test.inc (pow_test): Add more tests.
5589         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5590
5591 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
5592
5593         [BZ #13705]
5594         * math/libm-test.inc (exp_test): Do not allow overflow exception
5595         on underflow test.
5596
5597 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
5598
5599         [BZ #13705]
5600         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
5601         instead of __kernel_standard_f.
5602
5603 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
5604
5605         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
5606         * sysdeps/x86_64/memset_chk.S: Likewise.
5607
5608 2012-04-08  Andreas Jaeger  <aj@suse.de>
5609
5610         [BZ #10153]
5611         * manual/startup.texi (Environment Access): Describe return value
5612         for putenv and setenv.
5613
5614         [BZ #6895]
5615         * manual/filesys.texi (Directory Entries): Add description for
5616         DT_LNK.
5617
5618         [BZ #6890]
5619         * manual/filesys.texi (Directory Entries): Clarify that it's file
5620         system not operating system in the description of DT_UNKNOWN.
5621
5622         [BZ #6578]
5623         * manual/syslog.texi (closelog): Fix reference, it's openlog.
5624
5625 2012-04-08  Stephen Compall  <s11@member.fsf.org>
5626
5627         [BZ #6649]
5628         * manual/llio.texi (Opening and Closing Files): Add cross
5629         reference to explain mode argument.
5630
5631 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
5632
5633         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
5634         * sysdeps/x86_64/memset_chk.S: Likewise.
5635
5636 2012-04-07  David S. Miller  <davem@davemloft.net>
5637
5638         * elf/elf.h (R_SPARC_WDISP10): Define.
5639         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
5640         R_SPARC_SIZE32.
5641         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
5642         R_SPARC_SIZE64 and R_SPARC_H34.
5643
5644 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
5645
5646         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
5647         conditions and remove no longer applicable assertion.
5648
5649 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
5650
5651         * bits/byteswap.h: Include <features.h>.
5652         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
5653         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
5654
5655 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
5656
5657         * bits/byteswap.h (__bswap_16): Removed.
5658         Include <bits/byteswap-16.h> to get __bswap_16.
5659         * sysdeps/i386/bits/byteswap.h: Likewise.
5660         * sysdeps/s390/bits/byteswap.h: Likewise.
5661         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5662         * bits/byteswap-16.h: New file.
5663         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5664         * sysdeps/s390/bits/byteswap-16.h: Likewise.
5665         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
5666         * string/Makefile (headers): Add bits/byteswap-16.h.
5667
5668 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
5669
5670         [BZ #13895]
5671         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
5672         extra indirection.
5673         * nss/Makefile (tests-static, tests): Add tst-nss-static.
5674         * nss/tst-nss-static.c: New.
5675
5676 2012-04-06  Robert Millan  <rmh@gnu.org>
5677
5678         [BZ #6486]
5679         * manual/llio.texi (File Position Primitive): lseek
5680         refers to WHENCE when it really means OFFSET.
5681
5682 2012-04-06  Andreas Jaeger  <aj@suse.de>
5683
5684         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
5685         strncmp declarations.
5686
5687         * abilist/libc.abilist: Add __poll and __ppoll.
5688
5689 2012-04-05  David S. Miller  <davem@davemloft.net>
5690
5691         * scripts/check-local-headers.sh: Accept a host triplet in the
5692         path matched by the exclude regexp.
5693
5694         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
5695         definition.
5696         * sysdeps/powerpc/powerpc32/dl-machine.h
5697         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
5698         * sysdeps/s390/s390-32/dl-machine.h
5699         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
5700         * sysdeps/sparc/sparc32/dl-machine.h
5701         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
5702         * sysdeps/sparc/sparc64/dl-machine.h
5703         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
5704
5705         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
5706         lazy binding.
5707         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
5708         undefined symbol errors.
5709
5710         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
5711         DT_NEEDED entries.
5712
5713 2012-04-05  Michael Matz  <matz@suse.de>
5714
5715         [BZ #13592]
5716         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
5717
5718 2012-04-05  Andreas Jaeger  <aj@suse.de>
5719
5720         [BZ #13908]
5721         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
5722         comment.
5723
5724 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5725
5726         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
5727         which ROUND is no valid rounding mode.
5728
5729 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5730
5731         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
5732         read again.
5733         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
5734
5735 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5736
5737         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
5738         an exception using FPU order intentionally.
5739
5740 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5741
5742         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
5743         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
5744         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
5745         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
5746
5747 2012-04-05  Simon Josefsson  <simon@josefsson.org>
5748
5749         [BZ #12340]
5750         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
5751         EINVAL when BUFLEN is too smal.
5752
5753 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
5754
5755         [BZ #13553]
5756         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
5757         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
5758
5759 2012-04-03  Andreas Jaeger  <aj@suse.de>
5760
5761         [BZ #13938]
5762         * manual/setjmp.texi (System V contexts): Fix sentence.
5763
5764         [BZ #13926]
5765         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
5766         New macro for this case.
5767         [!__GNUC__] (__bswap_64): New inline function for this case.
5768         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5769         * bits/byteswap.h: Likewise.
5770         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
5771         ull, guard with __GLIBC_HAVE_LONG_LONG.
5772
5773         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
5774         __GLIBC_HAVE_LONG_LONG.
5775
5776         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
5777         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
5778
5779 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
5780
5781         [BZ #13691]
5782         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
5783         inptr and inend, rather than using last_ch.
5784
5785 2012-04-02  David S. Miller  <davem@davemloft.net>
5786
5787         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
5788         * stdio-common/printf-parse.h (read_int): Change return type to
5789         'int', return -1 on INT_MAX overflow.
5790         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
5791         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
5792         overflows INT_MAX.  Check for overflow of in-format-string precision
5793         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
5794         SIZE_MAX not INT_MAX for integer overflow test.
5795         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
5796         skip the construct in the format string but do not record anything.
5797         * stdio-common/bug22.c: Adjust to test both width/prevision
5798         INT_MAX overflow as well as total length INT_MAX overflow.  Check
5799         explicitly for proper errno values.
5800
5801 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
5802
5803         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
5804         CHAR_MAX.
5805         * string/test-strcmp.c [! WIDE]: Likewise.
5806         * time/tst-mktime2.c: Likewise for INT_MAX.
5807         * string/test-string.h: #include <sys/param.h> for MIN.
5808
5809         * csu/init-first.c (__libc_init_first): Call __ctype_init.
5810         * sysdeps/i386/init-first.c (init): Likewise.
5811         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
5812         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
5813         * sysdeps/sh/init-first.c (init): Likewise.
5814
5815 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
5816
5817         * po/ru.po: Update from translation team.
5818         * po/vi.po: Likewise.
5819
5820 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
5821
5822         * resolv/nss_dns/dns-host.c: Merge copyright years.
5823
5824 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5825
5826         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
5827         Optimize memcpy with prefetch if
5828         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
5829         src, dst pointers have unequal 16 byte alignments.
5830
5831 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
5832
5833         [BZ #13928]
5834         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
5835         from a CNAME entry and return the minimum ttl for the query.
5836         (gaih_getanswer_slice): Likewise.
5837
5838 2012-03-30  Jeff Law  <law@redhat.com>
5839
5840         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
5841         due to long keys.
5842         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
5843         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
5844
5845         * resolv/nss_dns/dns-host.c: Update copyright year.
5846
5847 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
5848
5849         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
5850         requests to save a system call.  Fix check that all bytes are sent.
5851
5852         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
5853         comments for sendmmsg.
5854
5855 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5856
5857         [BZ #13691]
5858         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
5859         with only 1 character between 0x0041 and 0x01b0.
5860         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
5861         * wcsmbs/tst-mbsnrtowcs.c: New file.
5862
5863 2012-03-29  David S. Miller  <davem@davemloft.net>
5864
5865         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
5866         small copies by hand.
5867
5868 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5869
5870         [BZ #13761]
5871         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
5872         _nss_compat_initgroups_dyn): Fall back to malloc/free
5873         for large group memberships.
5874
5875 2012-03-28  David S. Miller  <davem@davemloft.net>
5876
5877         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
5878         that branches into memcpy.
5879         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
5880         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
5881         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
5882         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
5883         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
5884         bits.
5885         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
5886         implementation too.
5887         * sysdeps/sparc/mempcpy.S: New file.
5888
5889         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
5890         the IFUNC routine in the libc case.
5891         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
5892
5893         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
5894         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
5895         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
5896         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
5897         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
5898         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
5899         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
5900         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
5901
5902         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
5903         loop to 256 bytes instead of 64 bytes and fix test signedness.
5904
5905         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
5906         * sysdeps/sparc/sparc32/Makefile: rather than here...
5907         * sysdeps/sparc/sparc64/Makefile: and here.
5908
5909 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
5910
5911         * malloc/mallocbug.c: Avoid warnings about unused variables.
5912
5913 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
5914
5915         [BZ #13760]
5916         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
5917         in the right place. Discard and retry query if response is
5918         larger than input buffer size.
5919
5920 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
5921
5922         [BZ #369]
5923         [BZ #2678]
5924         [BZ #3866]
5925         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
5926         x for large integer exponent.
5927         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
5928         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
5929         sign of result as needed afterwards.
5930         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
5931         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
5932         result for underflowing pow the same as for overflow.
5933         (__kernel_standard_l): Handle powl overflow and underflow here
5934         rather than calling __kernel_standard.
5935         * math/libm-test.inc (pow_test): Add more tests.
5936
5937         [BZ #3868]
5938         [BZ #13879]
5939         [BZ #13910]
5940         [BZ #13911]
5941         [BZ #13912]
5942         [BZ #13913]
5943         [BZ #13915]
5944         [BZ #13916]
5945         [BZ #13917]
5946         [BZ #13918]
5947         [BZ #13919]
5948         [BZ #13920]
5949         [BZ #13921]
5950         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
5951         * sysdeps/ieee754/k_standard.c: Include <float.h>.
5952         (__kernel_standard_l): New function.
5953         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
5954         __kernel_standard.
5955         * math/w_acosl.c (__acosl): Likewise.
5956         * math/w_asinl.c (__asinl): Likewise.
5957         * math/w_atan2l.c (__atan2l): Likewise.
5958         * math/w_atanhl.c (__atanhl): Likewise.
5959         * math/w_coshl.c (__coshl): Likewise.
5960         * math/w_exp10l.c (__exp10l): Likewise.
5961         * math/w_exp2l.c (__exp2l): Likewise.
5962         * math/w_fmodl.c (__fmodl): Likewise.
5963         * math/w_hypotl.c (__hypotl): Likewise.
5964         * math/w_j0l.c (__j0l, __y0l): Likewise.
5965         * math/w_j1l.c (__j1l, __y1l): Likewise.
5966         * math/w_jnl.c (__jnl, __ynl): Likewise.
5967         * math/w_lgammal.c (__lgammal): Likewise.
5968         * math/w_log10l.c (__log10l): Likewise.
5969         * math/w_log2l.c (__log2l): Likewise.
5970         * math/w_logl.c (__logl): Likewise.
5971         * math/w_powl.c (__powl): Likewise.
5972         * math/w_remainderl.c (__remainderl): Likewise.
5973         * math/w_scalbl.c (sysv_scalbl): Likewise.
5974         * math/w_sinhl.c (__sinhl): Likewise.
5975         * math/w_sqrtl.c (__sqrtl): Likewise.
5976         * math/w_tgammal.c (__tgammal): Likewise.
5977         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
5978         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
5979         * math/libm-test.inc (acos_test): Add more tests.
5980         (acosh_test): Likewise.
5981         (asin_test): Likewise.
5982         (atanh_test): Likewise.
5983         (exp_test): Likewise.
5984         (exp10_test): Likewise.
5985         (exp2_test): Likewise.
5986         (expm1_test): Likewise.
5987         (lgamma_test): Likewise.
5988         (log_test): Likewise.
5989         (log10_test): Likewise.
5990         (log1p_test): Likewise.
5991         (log2_test): Likewise.
5992         (pow_test): Do not allow some spurious overflow exceptions.
5993         (sqrt_test): Add more tests.
5994         (tgamma_test): Likewise.
5995         (y0_test): Likewise.
5996         (y1_test): Likewise.
5997         (yn_test): Likewise.
5998
5999 2012-03-27  Anton Blanchard  <anton@samba.org>
6000
6001         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
6002         MAP_HUGETLB.
6003         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6004         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6005         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
6006
6007 2012-03-27  David S. Miller  <davem@davemloft.net>
6008
6009         * conform/Makefile: Run run-conformtest.sh using $(BASH).
6010
6011         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
6012         have-as-vis3 check.
6013
6014 2012-03-27  Andreas Jaeger  <aj@suse.de>
6015
6016         * sysdeps/x86_64/elf/configure.in: Moved to ...
6017         * sysdeps/x86_64/configure.in: ... here.
6018         * sysdeps/x86_64/elf/start.S: Moved to ...
6019         * sysdeps/x86_64/start.S: ... here.
6020         * sysdeps/x86_64/elf/configure: Delete.
6021
6022         * sysdeps/x86_64/configure.in: Merge contents from
6023         sysdeps/i386/configure.in (without i686 check).
6024
6025         * sysdeps/i386/elf/Versions: Merge into ...
6026         * sysdeps/i386/Versions: ... this.
6027         * sysdeps/i386/elf/Versions: Delete file.
6028         * sysdeps/i386/elf/start.S: Moved to ...
6029         * sysdeps/i386/start.S: ...here.
6030         * sysdeps/i386/elf/configure.in: Merge into...
6031         * sysdeps/i386/configure.in: ...here.
6032         * sysdeps/i386/elf/configure.in: Delete file.
6033         * sysdeps/i386/elf/configure: Delete file.
6034
6035         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
6036         * debug/backtracesyms.c: ... here.
6037         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
6038         * debug/backtracesymsfd.c: ... here.
6039         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
6040         * sysdeps/generic/ifunc-sel.h: ... here.
6041
6042         * sysdeps/unix/i386/start.c: Delete file.
6043         * sysdeps/unix/sparc/start.c: Delete file.
6044         * sysdeps/unix/start.c: Delete file.
6045
6046         * sysdeps/sh/elf/configure.in: Moved to ...
6047         * sysdeps/sh/configure.in: ... here.
6048         * sysdeps/sh/elf/start.S: Moved to ...
6049         * sysdeps/sh/start.S: ... here.
6050         * sysdeps/sh/elf/configure: Delete file.
6051
6052         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
6053         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
6054         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
6055         * sysdeps/powerpc/powerpc64/entry.h: ... here.
6056         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
6057         * sysdeps/powerpc/powerpc64/start.S: here.
6058         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
6059         * sysdeps/powerpc/powerpc64/Makefile: ... this.
6060         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
6061         * sysdeps/powerpc/powerpc64/configure.in: ... this.
6062         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
6063
6064         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
6065         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
6066         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
6067         * sysdeps/powerpc/powerpc32/start.S: ... here.
6068         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
6069         * sysdeps/powerpc/powerpc32/configure.in: ... this.
6070         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
6071
6072         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
6073         * sysdeps/powerpc/ifunc-sel.h: ... here.
6074         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
6075         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
6076
6077         * sysdeps/sparc/elf/configure.in: Moved to ...
6078         * sysdeps/sparc/configure.in: ... here.
6079         * sysdeps/sparc/elf/configure: Delete file.
6080         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
6081         * sysdeps/sparc/sparc32/start.S: ... here.
6082         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
6083         * sysdeps/sparc/sparc64/start.S: ... here.
6084         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
6085         * sysdeps/sparc/sparc32/Makefile: ... this.
6086         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
6087         * sysdeps/sparc/sparc64/Makefile: ... this.
6088
6089         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
6090         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
6091         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
6092         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
6093         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
6094         * sysdeps/s390/s390-32/setjmp.S: ... here.
6095         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
6096         * sysdeps/s390/s390-32/configure.in: ... here.
6097         * sysdeps/s390/s390-32/elf/configure: Delete file.
6098         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
6099         * sysdeps/s390/s390-32/start.S: ... here.
6100
6101         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
6102         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
6103         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
6104         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
6105         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
6106         * sysdeps/s390/s390-64/setjmp.S: ... here.
6107         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
6108         * sysdeps/s390/s390-64/configure.in: ... here
6109         * sysdeps/s390/s390-64/elf/configure: Delete file.
6110         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
6111         * sysdeps/s390/s390-64/start.S: ... here.
6112         * sysdeps/s390/s390-64/elf/configure: Delete.
6113
6114         * configure.in: Remove support for elf directories in sysdeps.
6115
6116         * configure: Regenerated.
6117         * sysdeps/i386/configure: Regenerated.
6118         * sysdeps/powerpc/powerpc32/configure: Regenerated.
6119         * sysdeps/powerpc/powerpc64/configure: Regenerated.
6120         * sysdeps/s390/s390-32/configure: Regenerated.
6121         * sysdeps/s390/s390-64/configure: Regenerated.
6122         * sysdeps/sh/configure: Regenerated.
6123         * sysdeps/sparc/configure: Regenerated.
6124         * sysdeps/x86_64/configure: Regenerated.
6125
6126 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
6127
6128         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6129
6130         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
6131         denormal result into account.
6132
6133 2012-03-25  Roland McGrath  <roland@hack.frob.com>
6134
6135         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
6136         Reported by Allan McRae <allan@archlinux.org>.
6137
6138 2012-03-23  Jeff Law  <law@redhat.com>
6139
6140         * nss/getnssent.c (__nss_getent): Fix typo.
6141
6142 2012-03-23  David S. Miller  <davem@davemloft.net>
6143
6144         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6145
6146 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
6147
6148         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
6149         to pad to uint64_t for each field.
6150         (dl_tls_index): Replace unsigned long with uint64_t.
6151
6152 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
6153         Paul Pluzhnikov  <ppluzhnikov@google.com>
6154
6155         [BZ #6528]
6156         * grp/Makefile (otherlibs): Don't set it.
6157         * inet/Makefile (otherlibs): Likewise.
6158         * login/Makefile (otherlibs): Likewise.
6159         * nscd/Makefile (otherlibs): Likewise.
6160         * posix/Makefile (otherlibs): Likewise.
6161         * pwd/Makefile (otherlibs): Likewise.
6162         * rt/Makefile (otherlibs): Likewise.
6163         * sunrpc/Makefile (otherlibs): Likewise.
6164         * nss/Makefile (otherlibs): Likewise.
6165         Add libnss_files to routines and static-only-routines.
6166         ($(objpfx)getent): Remove rule.
6167         * resolv/Makefile: Add libnss_dns and libresolv to routines and
6168         static-only-routines.
6169
6170 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
6171
6172         [BZ #13892]
6173         * math/s_cexp.c: Include <float.h>.
6174         (__cexp): Handle exp result overflowing not necessarily
6175         overflowing both real and imaginary parts of result.
6176         * math/s_cexpf.c: Likewise.
6177         * math/s_cexpl.c: Likewise.
6178         * math/libm-test.inc (cexp_test): Add more tests.
6179         * sysdeps/i386/fpu/libm-test-ulps: Update.
6180         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6181
6182 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
6183
6184         * include/link.h (ELFW): New macro.
6185         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
6186         Replace ELF64_R_TYPE with ELFW(R_TYPE).
6187
6188 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
6189
6190         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
6191         with uint64_t.
6192
6193 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
6194
6195         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
6196         declaration.
6197         (struct La_x32_retval): Likewise.
6198
6199 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
6200
6201         * sysdeps/x86_64/preconfigure.in: New file.
6202         * sysdeps/x86_64/preconfigure: New generated file.
6203
6204 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
6205
6206         [BZ #13824]
6207         * math/e_exp2l.c: Include <float.h>.
6208         (__ieee754_exp2l): Handle overflow and underflow cases
6209         separately.  Only pass fractional part of argument to
6210         __ieee754_expl.
6211         * math/libm-test.inc (exp2_test): Add more tests.
6212
6213         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
6214         negating x to take absolute value.
6215         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
6216         Likewise.
6217         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
6218         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
6219         Likewise.
6220         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
6221         computing low part if x was negated.
6222         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
6223
6224 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
6225
6226         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
6227         la_x32_gnu_pltexit.
6228         (pltexit): Cast int_retval to ptrdiff_t.
6229         * elf/tst-auditmod3b.c: Likewise.
6230         * elf/tst-auditmod4b.c: Likewise.
6231         * elf/tst-auditmod5b.c: Likewise.
6232         * elf/tst-auditmod6b.c: Likewise.
6233         * elf/tst-auditmod6c.c: Likewise.
6234         * elf/tst-auditmod7b.c: Likewise.
6235
6236         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
6237         and x32_gnu_pltexit.
6238
6239         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
6240         __ELF_NATIVE_CLASS.
6241         (La_x32_regs): New macro.
6242         (La_x32_retval): Likewise.
6243         (la_x32_gnu_pltenter): New function prototype.
6244         (la_x32_gnu_pltexit): Likewise.
6245
6246 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
6247
6248         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
6249         exponent.
6250
6251         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6252
6253         * configure.in (libc_cv_cc_nofma): Check for option to disable
6254         generation of FMA instructions.
6255         * configure: Regenerate.
6256         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
6257         * sysdeps/ieee754/dbl-64/Makefile: New file.
6258         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
6259         Remove brandred-fma4.
6260         (CFLAGS-brandred-fma4.c): Remove.
6261         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
6262         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
6263         define.
6264         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
6265         define.
6266
6267 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
6268
6269         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6270         LLONG_MAX != LONG_MAX.
6271         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6272         (_fitoa_word): Likewise.
6273         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
6274         LLONG_MAX != LONG_MAX.
6275         * stdio-common/_itowa.h: Include <_itoa.h>.
6276         (_itowa_word): Use _ITOA_WORD_TYPE on value.
6277         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
6278         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
6279         only if not defined.
6280         (_ITOA_WORD_TYPE): Likewise.
6281         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6282         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
6283
6284 2012-03-21  David S. Miller  <davem@davemloft.net>
6285
6286         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6287
6288 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
6289
6290         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
6291         of x86_64 when setting libc_cv_slibdir, libdir and
6292         libc_cv_localedir.
6293         * sysdeps/unix/sysv/linux/configure: Regenerated.
6294
6295 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
6296
6297         * manual/lang.texi (Old Varargs): Remove section.
6298         (How Variadic): Update menu.
6299         (va_start): Do not mention varargs.h.
6300
6301 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
6302             Joseph Myers  <joseph@codesourcery.com>
6303
6304         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
6305         link test.
6306         * configure: Regenerated.
6307
6308 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
6309
6310         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
6311         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
6312         conformtest.pl
6313
6314 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
6315
6316         * NOTES: Remove.
6317         * Makefile (files-for-dist): Remove NOTES.
6318         (NOTES): Remove rule.
6319         * README: Don't refer to NOTES.
6320         * manual/creature.texi: Don't include macros.texi.
6321         * manual/intro.texi (creature.texi): Remove comment referring to
6322         NOTES.
6323
6324         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
6325         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
6326         * configure: Regenerated.
6327         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
6328         LIBC_TRY_CC_OPTION.
6329         (libc_cv_as_i686): Likewise.
6330         (libc_cv_cc_avx): Likewise.
6331         (libc_cv_cc_sse2avx): Likewise.
6332         (libc_cv_cc_fma4): Likewise.
6333         (libc_cv_cc_novzeroupper): Likewise.
6334         * sysdeps/i386/configure: Regenerated.
6335
6336         [BZ #13883]
6337         * sysdeps/i386/fpu/s_cexp.S: Remove.
6338         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
6339         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
6340         * math/libm-test.inc (cexp_test): Add more tests.
6341         * sysdeps/i386/fpu/libm-test-ulps: Update.
6342         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6343
6344 2012-03-21  Allan McRae  <allan@archlinux.org>
6345
6346         * timezone/Makefile: Do not install iso3166.tab and zone.tab
6347
6348 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
6349
6350         [BZ #13871]
6351         * math/w_exp2.c: Do not include <float.h>.
6352         (o_threshold, u_threshold): Remove.
6353         (__exp2): Calculate result before checking finiteness and calling
6354         __kernel_standard.
6355         * math/w_exp2f.c: Likewise.
6356         * math/w_exp2l.c: Likewise.
6357         * math/libm-test.inc (exp2_test): Require overflow exception for
6358         1e6 input.
6359
6360         [BZ #3866]
6361         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
6362         range of signed 64-bit integers before using fistpll.  Remove
6363         checks for whether integers fit in mantissa bits.
6364         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
6365         the range of signed 32-bit integers before using fistpl.  Remove
6366         checks for whether integers fit in mantissa bits.
6367         * sysdeps/i386/fpu/e_powl.S (p64): New object.
6368         (__ieee754_powl): Test for y outside the range of signed 64-bit
6369         integers before using fistpll.  Reduce 64-bit values to 63-bit
6370         ones as needed.
6371         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
6372         divide-by-zero is raised for zero to large negative powers.
6373         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
6374         (__ieee754_powl): Test for y outside the range of signed 64-bit
6375         integers before using fistpll.  Reduce 64-bit values to 63-bit
6376         ones as needed.
6377         * math/libm-test.inc (pow_test): Add more tests.
6378
6379 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
6380
6381         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
6382         <stdio-common/_itoa.h>.
6383         * debug/segfault.c: Likewise.
6384         * elf/dl-cache.c: Likewise.
6385         * elf/dl-minimal.c: Likewise.
6386         * elf/dl-misc.c: Likewise.
6387         * elf/dl-sysdep.c: Likewise.
6388         * elf/dl-version.c: Likewise.
6389         * elf/rtld.c: Likewise.
6390         * hurd/hurdsock.c: Likewise.
6391         * hurd/lookup-retry.c: Likewise.
6392         * malloc/malloc.c: Likewise.
6393         * malloc/mtrace.c: Likewise.
6394         * nscd/nscd_getgr_r.c: Likewise.
6395         * nscd/nscd_getpw_r.c: Likewise.
6396         * nscd/nscd_getserv_r.c: Likewise.
6397         * posix/getopt_init.c: Likewise.
6398         * posix/wordexp.c: Likewise.
6399         * stdio-common/_itoa.c: Likewise.
6400         * stdio-common/printf_fphex.c: Likewise.
6401         * stdio-common/vfprintf.c: Likewise.
6402         * string/_strerror.c: Likewise.
6403         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
6404         * sysdeps/i386/i686/hp-timing.h: Likewise.
6405         * sysdeps/mach/_strerror.c: Likewise.
6406         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
6407         * sysdeps/mach/hurd/sethostid.c: Likewise.
6408         * sysdeps/mach/hurd/xmknodat.c: Likewise.
6409         * sysdeps/mach/xpg-strerror.c: Likewise.
6410         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
6411         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
6412         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
6413         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
6414         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
6415         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
6416         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
6417         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
6418         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
6419         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
6420         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
6421         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
6422         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
6423         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
6424         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
6425         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
6426         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
6427         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
6428         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
6429         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
6430         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
6431
6432         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
6433
6434         * stdio-common/_itoa.h: Moved to ...
6435         * sysdeps/generic/_itoa.h: Here.
6436
6437         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
6438
6439         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
6440         instead of "_itoa.h" and "_itowa.h".
6441         * stdio-common/vfprintf.: Likewise.
6442
6443 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
6444
6445         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
6446         <bits/wordsize.h>.
6447         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
6448         (__signbit): Likwise.
6449         (llrintf): Likwise.
6450         (llrint): Likwise.
6451
6452 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
6453
6454         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
6455         __WORDSIZE != 64.
6456
6457 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
6458
6459         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
6460         OVERFLOW_EXCEPTION_OK.
6461         * math/libm-test.inc ("Philosophy"): Update comment about
6462         exception testing.
6463         (OVERFLOW_EXCEPTION): Define.
6464         (OVERFLOW_EXCEPTION_OK): Likewise.
6465         (INVALID_EXCEPTION_OK): Renumber.
6466         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
6467         (IGNORE_ZERO_INF_SIGN): Likewise.
6468         (test_exceptions): Handle FE_OVERFLOW.
6469         (exp10_test): Expect overflow exceptions.
6470         (exp2_test): Likewise.
6471         (expm1_test): Likewise.
6472         (nextafter_test): Likewise.
6473         (pow_test): Likewise.
6474         (scalbn_test): Likewise.
6475         (scalbln_test): Likewise.
6476
6477 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6478
6479         * sysdeps/x86_64/bits/atomic.h
6480         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
6481         64bit integer.
6482         (atomic_exchange_acq): Likewise.
6483         (__arch_exchange_and_add_body): Likewise.
6484         (__arch_add_body): Likewise.
6485         (atomic_add_negative): Likewise.
6486         (atomic_add_zero): Likewise.
6487
6488 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6489
6490         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
6491         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
6492
6493 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6494
6495         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
6496         Check __x86_64__ instead of __WORDSIZE.
6497
6498 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6499
6500         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
6501
6502 2012-03-19  David S. Miller  <davem@davemloft.net>
6503
6504         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6505
6506         * sysdeps/sparc/fpu/fenv_private.h: New file.
6507         * sysdeps/sparc/fpu/math_private.h: Use it.
6508         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
6509         Remove.
6510         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
6511         (libc_feholdexcept_setroundl): Remove.
6512         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
6513         Remove.
6514         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
6515         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
6516
6517 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6518
6519         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
6520         int64_t instead of long int.
6521         (INSERT_WORDS64): Likwise.
6522
6523 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6524
6525         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
6526         _Unwind_GetCFA return to _Unwind_Ptr first.
6527
6528 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
6529
6530         [BZ #13629]
6531         * math/s_clog.c: Include <float.h>.
6532         (__clog): Scale large or subnormal inputs.
6533         * math/s_clogf.c: Likewise.
6534         * math/s_clogl.c: Likewise.
6535         * math/s_clog10.c: Include <float.h>.
6536         (M_LOG10_2): Define.
6537         (__clog10): Scale large or subnormal inputs.
6538         * math/s_clog10f.c: Likewise.
6539         * math/s_clog10l.c: Likewise.
6540         * math/libm-test.inc (clog_test): Add more tests.
6541         (clog10_test): Likewise.
6542         * sysdeps/i386/fpu/libm-test-ulps: Update.
6543         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6544
6545         [BZ #11451]
6546         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
6547         x and y.
6548         * math/libm-test.inc (atan2_test): Add another test.
6549
6550         * Makerules (common-objdir-compile): Remove.
6551         * sysdeps/unix/Makefile (config-generated): Do not add
6552         $(unix-generated) to variable.
6553         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
6554         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
6555         Remove rule.
6556         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
6557         Likewise.
6558         [generic bits/local_lim.h] (before-compile): Do not append to
6559         variable.
6560         [generic bits/local_lim.h] (common-generated): Likewise.
6561         [generic sys/param.h] (before-compile): Do not append to variable.
6562         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
6563         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
6564         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
6565         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
6566         include.
6567         [generic sys/param.h] (sys/param.h-includes): Remove variable.
6568         [generic sys/param.h] (sys/param.h-includes): Remove rule.
6569         [generic sys/param.h] ($(addprefix
6570         $(common-objpfx),$(sys/param.h-includes))): Likewise.
6571         [generic sys/param.h] (common-generated): Do not append to
6572         variable.
6573         [generic sys/param.h] (sysdep_headers): Likewise.
6574         [generic bits/errno.h] (before-compile): Do not append to
6575         variable.
6576         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
6577         rule.
6578         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
6579         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
6580         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
6581         [generic bits/errno.h] (common-generated): Do not append to
6582         variable.
6583         [generic bits/ioctls.h] (before-compile): Do not append to
6584         variable.
6585         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
6586         rule.
6587         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
6588         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
6589         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
6590         rule.
6591         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
6592         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
6593         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
6594         [generic bits/ioctls.h] (common-generated): Do not append to
6595         variable.
6596         [generic sys/syscall.h] (syscall.h): Remove variable.
6597         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
6598         rule.
6599         [generic sys/syscall.h] (before-compile): Do not append to
6600         variable.
6601         [generic sys/syscall.h] (common-generated): Likewise.
6602         * sysdeps/unix/errnos-tmpl.c: Remove file.
6603         * sysdeps/unix/errnos.awk: Likewise.
6604         * sysdeps/unix/ioctls-tmpl.c: Likewise.
6605         * sysdeps/unix/ioctls.awk: Likewise.
6606         * sysdeps/unix/mk-local_lim.c: Likewise.
6607         * sysdeps/unix/snarf-ioctls: Likewise.
6608
6609 2012-03-19  Richard Henderson  <rth@twiddle.net>
6610
6611         * sysdeps/i386/fpu/fenv_private.h: New file.
6612         * sysdeps/i386/fpu/math_private.h: Use it.
6613         (math_opt_barrier, math_force_eval): Remove.
6614         (libc_feholdexcept_setround_53bit): Remove.
6615         (libc_feupdateenv_53bit): Remove.
6616         * sysdeps/x86_64/fpu/math_private.h: Likewise.
6617         (math_opt_barrier, math_force_eval): Remove.
6618         (libc_feholdexcept): Remove.
6619         (libc_feholdexcept_setround): Remove.
6620         (libc_fetestexcept, libc_fesetenv): Remove.
6621         (libc_feupdateenv_test): Remove.
6622         (libc_feupdateenv, libc_feholdsetround): Remove.
6623         (libc_feresetround): Remove.
6624
6625         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
6626         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
6627
6628         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
6629         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
6630         (libc_feupdateenv_testl): New.
6631         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
6632         (libc_feupdateenv_testf): New.
6633         (libc_feupdateenv): Use libc_feupdateenv_test.
6634         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
6635         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
6636
6637         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
6638         (libc_feholdsetroundf, libc_feholdsetroundl): New.
6639         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
6640         (libc_feresetround_noex): New.
6641         (libc_feresetround_noexf): New.
6642         (libc_feresetround_noexl): New.
6643         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
6644         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
6645         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
6646         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
6647         SET_RESTORE_ROUND.
6648         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
6649         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
6650         (__cos): Likewise.
6651         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
6652         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
6653         SET_RESTORE_ROUND_NOEX.
6654         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
6655         SET_RESTORE_ROUND_NOEXF.
6656         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
6657         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
6658         (libc_feholdsetroundf): New.
6659         (libc_feresetround, libc_feresetroundf): New.
6660
6661         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
6662         (libc_feholdexcept_setround_53bit): Convert from macro to function.
6663         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
6664
6665         * sysdeps/generic/math_private.h: Include <fenv.h>.
6666         (default_libc_feholdexcept): New.
6667         (default_libc_feholdexcept_setround): New.
6668         (default_libc_fesetenv, default_libc_feupdateenv): New.
6669         (libc_feholdexcept): Only define if undefined.
6670         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
6671         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
6672         (libc_feholdexcept_setroundl): Likewise.
6673         (libc_feholdexcept_setround_53bit): Likewise.
6674         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
6675         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
6676         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
6677         (libc_feupdateenv_53bit): Likewise.
6678         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
6679         (libc_feholdexcept): Convert from macro to inline function.
6680         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
6681         (libc_fesetenv, libc_feupdateenv): Likewise.
6682
6683         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
6684         not previously defined.
6685         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
6686         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
6687         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
6688         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
6689         * sysdeps/ieee754/flt-32/math_private.h: New file.
6690         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
6691         math_private.h below SET_FLOAT_WORD.
6692         (__isnan, __isinf_ns, __finite): Remove.
6693         (__isnanf, __isinf_nsf, __finitef): Remove.
6694
6695 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
6696
6697         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6698
6699 2012-03-17  David S. Miller  <davem@davemloft.net>
6700
6701         [BZ #6471]
6702         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
6703         for 2.16.
6704
6705 2012-03-16  David S. Miller  <davem@davemloft.net>
6706
6707         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
6708         warnings.
6709
6710         [BZ #6471]
6711         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
6712         properly.
6713         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
6714         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
6715         sysdep_routines when subdir is sysvipc.
6716         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
6717         __getshmlba helper.
6718
6719         * sysdeps/sparc/fpu/libm-test/ulps: Update.
6720
6721 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6722
6723         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
6724         [__LP64__].
6725
6726 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6727
6728         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
6729         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
6730         (__lround): Renamed to ...
6731         (__llround): This.  Replace long int with long long int.
6732         Define lround functions as aliases of llround functions.
6733         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
6734
6735 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6736
6737         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6738         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
6739         adresses to uintptr_t.  Replace "long int" and "unsigned long
6740         int" with "greg_t" on va_arg.
6741
6742 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6743
6744         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
6745         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
6746
6747         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
6748         Move e_machine check before EI_CLASS check.  Handle x32
6749         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
6750         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
6751         SKIP_EM_IA_64 and include
6752         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
6753
6754         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
6755         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
6756         (add_system_dir): New macro.
6757
6758         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
6759         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
6760
6761 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
6762
6763         [BZ #2551]
6764         [BZ #2552]
6765         [BZ #2553]
6766         [BZ #2554]
6767         [BZ #2562]
6768         [BZ #2563]
6769         [BZ #2565]
6770         [BZ #2566]
6771         [BZ #2576]
6772         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
6773         (y0): Likewise.
6774         * math/w_j0f.c (j0f): Likewise.
6775         (y0f): Likewise.
6776         * math/w_j0l.c (__j0l): Likewise.
6777         (__y0l): Likewise.
6778         * math/w_j1.c (j1): Likewise.
6779         (y1): Likewise.
6780         * math/w_j1f.c (j1f): Likewise.
6781         (y1f): Likewise.
6782         * math/w_j1l.c (__j1l): Likewise.
6783         (__y1l): Likewise.
6784         * math/w_jn.c (jn): Likewise.
6785         (yn): Likewise.
6786         * math/w_jnf.c (jnf): Likewise.
6787         (ynf): Likewise.
6788         * math/w_jnl.c (__jnl): Likewise.
6789         (__ynl): Likewise.
6790         * math/libm-test.inc (j0_test): Add more tests.
6791         (j1_test): Likewise.
6792         (jn_test): Likewise.  Add trailing semicolon to existing test.
6793         (y0_test): Likewise.
6794         (y1_test): Likewise.
6795         * sysdeps/i386/fpu/libm-test-ulps: Update.
6796         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6797
6798         [BZ #13851]
6799         [BZ #13854]
6800         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
6801         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
6802         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
6803         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
6804         (__tanl): Set errno for infinite argument.
6805         * sysdeps/i386/fpu/mptan.c: Remove.
6806         * sysdeps/i386/fpu/s_tan.S: Likewise.
6807         * sysdeps/i386/fpu/s_tanl.S: Likewise.
6808         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
6809         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
6810         * math/libm-test.inc (tan_test): Add more tests and enable more
6811         tests for double and long double.
6812         * sysdeps/i386/fpu/libm-test-ulps: Update.
6813         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6814
6815 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
6816
6817         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
6818         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
6819
6820 2012-03-16  Roland McGrath  <roland@hack.frob.com>
6821
6822         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
6823         * configure.in: Use it for both main tree and add-ons.
6824         * configure: Regenerated.
6825
6826 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6827
6828         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
6829
6830 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
6831
6832         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
6833         in comment.
6834
6835         [BZ #13851]
6836         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
6837         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
6838         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
6839         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
6840         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
6841         infinite argument.
6842         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
6843         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
6844         != 0 for prec == 2.
6845         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
6846         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
6847         * sysdeps/i386/fpu/s_cosl.S: Likewise.
6848         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
6849         * sysdeps/i386/fpu/s_sinl.S: Likewise.
6850         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
6851         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
6852         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
6853         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
6854         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
6855         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
6856         * math/libm-test.inc (cos_test): Add more tests and enable more
6857         tests for long double.
6858         (sin_test): Likewise.
6859         (sincos_test): Likewise.
6860         * sysdeps/i386/fpu/libm-test-ulps: Update.
6861         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6862
6863 2012-03-16  David S. Miller  <davem@davemloft.net>
6864
6865         * sysdeps/sparc/fpu/math_private.h: New file.
6866
6867 2012-03-15  David S. Miller  <davem@davemloft.net>
6868
6869         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
6870         file.
6871         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
6872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
6873         file.
6874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
6875         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
6876         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
6877         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
6878         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
6879         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
6880         sysdep routines.
6881         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
6882
6883         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
6884         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
6885
6886         * sysdeps/sparc/sparc-ifunc.h: New file.
6887         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
6888         sparc-ifunc.h
6889         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
6890         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
6891         Likewise.
6892         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
6893         Likewise.
6894         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
6895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
6896         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
6897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
6898         Likewise.
6899         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
6900         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
6901         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
6902         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
6903         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
6904         Likewise.
6905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
6906         Likewise.
6907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
6908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
6909         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
6910         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
6911         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
6912         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
6913         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
6914         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
6915         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
6916         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
6917         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
6918         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
6919         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
6920         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
6921         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
6922         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
6923         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
6924         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
6925         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
6926         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
6927         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
6928         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
6929         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
6930         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
6931
6932 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
6933
6934         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
6935         scaling.
6936         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6937
6938 2012-03-15  Andreas Jaeger  <aj@suse.de>
6939
6940         [BZ #13852]
6941         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
6942         ieee754/flt-32 implementation for sin, cos and sincos.
6943         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
6944         * sysdeps/i386/fpu/s_cosf.S: Likewise.
6945         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
6946         * sysdeps/i386/fpu/s_sinf.S: Likewise.
6947         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
6948         ieee754/flt-32 implementation for tan.
6949
6950         * math/libm-test.inc (cos_test): Enable some large input tests for
6951         float as well
6952         (sin_test): Likewise.
6953         (sincos_test): Likewise.
6954         (tan_test): Add tests for large input.
6955
6956         * sysdeps/i386/fpu/libm-test-ulps: Update.
6957
6958 2012-03-15  Andreas Jaeger  <aj@suse.de>
6959
6960         [BZ #13658]
6961         * math/libm-test.inc (cos_test): Add more test cases.
6962         (sin_test): Likewise.
6963         (sincos_test): Likewise.
6964
6965 2012-03-15  Andreas Jaeger  <aj@suse.de>
6966
6967         [BZ #13837]
6968         * math/libm-test.inc (cos_test): Add a test case for large input
6969         value.
6970         (sin_test): Likewise.
6971         (sincos_test): Likewise.
6972
6973 2012-03-15  Andreas Jaeger  <aj@suse.de>,
6974         Joseph Myers  <joseph@codesourcery.com>
6975
6976         [BZ #13658]
6977         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
6978         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
6979         * sysdeps/i386/fpu/branred.c: Likewise.
6980         * sysdeps/i386/fpu/dosincos.c: Likewise.
6981         * sysdeps/i386/fpu/mpa.c: Likewise.
6982         * sysdeps/i386/fpu/s_cos.S: Likewise.
6983         * sysdeps/i386/fpu/s_sin.S: Likewise.
6984         * sysdeps/i386/fpu/s_sincos.S: Likewise.
6985         * sysdeps/i386/fpu/sincos32.c: Likewise.
6986
6987         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
6988         Define.
6989         (libc_feupdateenv_53bit): Define.
6990         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
6991         Define.
6992         (libc_feupdateenv_53bit): Define.
6993
6994         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
6995         53 bit (without extend i386 double precision).
6996
6997         * math/libm-test.inc (sincos_test): Add tests for large input.
6998         (sin): Likewise.
6999         (cos): Likewise.
7000
7001         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
7002
7003 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
7004
7005         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7006
7007 2012-03-15  David S. Miller  <davem@davemloft.net>
7008
7009         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
7010         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
7011         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
7012         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
7013         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
7014         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
7015         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
7016         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
7017         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
7018         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
7019         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
7020         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
7021         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
7022         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
7023         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
7024         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
7025         file.
7026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
7027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
7028         file.
7029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
7030         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
7031         file.
7032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
7033         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
7034         file.
7035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
7036         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
7037         fmin/fmax sysdep routines.
7038         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
7039
7040 2012-03-14  David S. Miller  <davem@davemloft.net>
7041
7042         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
7043         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
7044         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
7045         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
7046         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
7047         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
7048         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
7049         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
7050         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
7051         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
7052         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
7053         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
7054         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
7055         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
7056         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
7057         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
7058         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
7059         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
7060         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
7061         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
7062         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
7063         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
7064         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
7065         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
7066         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
7067         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
7068         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
7069         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
7070         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
7071         routines.
7072         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
7073         file.
7074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
7075         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
7076         file.
7077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
7078         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
7079         file.
7080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
7081         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
7082         file.
7083         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
7084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
7085         file.
7086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
7087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
7088         file.
7089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
7090         file.
7091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
7092         file.
7093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
7094         file.
7095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
7096         New file.
7097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
7098         file.
7099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
7100         file.
7101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
7102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
7103         file.
7104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
7105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
7106         file.
7107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
7108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
7109         file.
7110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
7111         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
7112         VIS3 routines.
7113
7114         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
7115         New file.
7116
7117         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7118
7119         * sysdeps/sparc/configure.in: New file.
7120         * sysdeps/sparc/configure: Generate.
7121         * configure.in (libc_cv_sparc_as_vis3): Substitute.
7122         * configure: Regenerate.
7123         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
7124         * config.make.in (have-as-vis3): New.
7125         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
7126         available use -Av9d instead of -Av9a.
7127         * sysdeps/sparc/sparc64/Makefile: Likewise.
7128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
7129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
7130         New file.
7131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
7132         file.
7133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
7134         New file.
7135         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
7136         file.
7137         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
7138         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
7139         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
7140         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
7141         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
7142
7143         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
7144         fzeros/fnegs to load 0x80000000 into a float register instead of
7145         using the stack.
7146         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
7147
7148 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
7149
7150         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7151         bits/syscall.h.
7152         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
7153         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
7154         ($(inst_includedir)/bits/syscall.h): Remove rule.
7155         ($(objpfx)bits/syscall.d): Include instead of
7156         $(objpfx)syscall-list.d.
7157         (generated): Change syscall-list.h and syscall-list.d to
7158         bits/syscall.h and bits/syscall.d.
7159
7160 2012-03-14  Roland McGrath  <roland@hack.frob.com>
7161
7162         [BZ #13846]
7163         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
7164
7165 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
7166
7167         [BZ #13841]
7168         * math/s_csqrt.c: Include <float.h>.
7169         (__csqrt): Scale large or subnormal inputs.
7170         * math/s_csqrtf.c: Likewise.
7171         * math/s_csqrtl.c: Likewise.
7172         * math/libm-test.inc (csqrt_test): Add more tests.
7173         * sysdeps/i386/fpu/libm-test-ulps: Update.
7174         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7175
7176         [BZ #13840]
7177         * math/libm-test.inc (hypot_test): Add more tests.
7178
7179 2012-03-13  David S. Miller  <davem@davemloft.net>
7180
7181         [BZ #13840]
7182         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
7183         double-precision for the calculation instead of scaling.
7184
7185 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
7186
7187         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
7188         manipulate bits before adding and subtracting TWO52[sx].
7189         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
7190         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
7191         Likewise.
7192         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
7193
7194 2012-03-13  David S. Miller  <davem@davemloft.net>
7195
7196         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
7197         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
7198         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
7199         rtld-global-offsets.h
7200         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
7201
7202         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
7203         large parameters.
7204
7205         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
7206
7207         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
7208         'err' in the ifdef scope in which it is actually used.
7209
7210         * nss/nss_db/db-init.c: Include string.h
7211
7212 2012-03-12  David S. Miller  <davem@davemloft.net>
7213
7214         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
7215         masking out of the most significant byte of random value used.
7216         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
7217         Fix coding style in previous change.
7218
7219         * sysdeps/unix/sysv/linux/kernel-features.h
7220         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
7221         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
7222         expression.
7223         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
7224         later.
7225
7226 2012-03-11  David S. Miller  <davem@davemloft.net>
7227
7228         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
7229         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
7230         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
7231         for 'resultvar' otherwise things get truncated on 64-bit.
7232
7233         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
7234         Fix masking out of the most significant byte of random value used.
7235
7236         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7237
7238 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
7239
7240         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7241
7242 2012-03-09  David S. Miller  <davem@davemloft.net>
7243
7244         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
7245         variables with appropriate CPP guards.
7246         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
7247         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
7248         on resulting framesize and the management of the outregs buffer for pltexit.
7249         Preserve floating point return values across _dl_call_pltexit call.
7250         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
7251         framesize and the management of the outregs buffer for pltexit.
7252         Preserve floating point return values across _dl_call_pltexit
7253         call.
7254         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
7255         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
7256         (print_exit): Fix format string for return register value.
7257
7258 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
7259
7260         * sunrpc/Makefile (others): Add rpcgen.
7261         ($(objpfx)rpcgen): Remove special build rule and dependency on
7262         libc.
7263         * sunrpc/rpcgen.c: New file.
7264
7265 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
7266
7267         [BZ #13673]
7268         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
7269         * stdio-common/bug-vfprintf-nargs.c: Likewise.
7270         * sysdeps/i386/crti.S: Likewise.
7271         * sysdeps/i386/crtn.S: Likewise.
7272         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
7273         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
7274         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
7275         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
7276         * sysdeps/sh/crti.S: Likewise.
7277         * sysdeps/sh/crtn.S: Likewise.
7278         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
7279
7280         [BZ #13673]
7281         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
7282         with URL.
7283         * locale/programs/locfile-kw.gperf: Likewise.
7284         * locale/programs/charmap-kw.h: Regenerated.
7285         * locale/programs/locfile-kw.h: Likewise.
7286
7287         [BZ #13673]
7288         * intl/plural.y: Replace FSF snail mail address with URL.
7289         * intl/plural.c: Regenerated.
7290
7291 2012-03-09  Richard Henderson  <rth@twiddle.net>
7292
7293         * include/math_private.h: Remove file.
7294         * math/math_private.h: Move file ...
7295         * sysdeps/generic/math_private.h: ... here.
7296
7297         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
7298         * sysdeps/powerpc/fpu/math_private.h: Likewise.
7299         * sysdeps/x86_64/fpu/math_private.h: Likewise.
7300
7301         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
7302         and <math_private.h>.
7303         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
7304         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7305         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
7306         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
7307         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
7308         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
7309         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
7310         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7311         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
7312         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
7313         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7314         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
7315         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
7316         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7317         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
7318         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
7319         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
7320         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
7321         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7322         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
7323         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7324         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
7325         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
7326         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7327         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7328         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7329         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
7330         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7331         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7332         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7333         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
7334         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7335         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
7336         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7337         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
7338         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
7339         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
7340         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
7341         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7342         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7343         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
7344         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
7345         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
7346         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
7347         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
7348         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7349         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7350         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7351         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
7352         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
7353         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7354         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7355         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
7356         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7357         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
7358         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7359         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7360         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
7361         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
7362         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
7363         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7364         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7365         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7366         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
7367         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
7368         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
7369         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
7370         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
7371         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
7372         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
7373         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
7374         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7375         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
7376         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7377         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
7378         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
7379         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
7380         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
7381         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
7382         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7383         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
7384         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7385         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
7386         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7387         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
7388         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
7389         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
7390         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
7391         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
7392         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
7393         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
7394         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
7395         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
7396         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
7397         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
7398         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
7399         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
7400         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7401         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7402         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7403         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
7404         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
7405         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
7406         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
7407         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7408         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
7409         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
7410         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
7411         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7412         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7413         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7414         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
7415         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
7416         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
7417         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
7418         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7419         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7420         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
7421         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7422         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
7423         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
7424         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7425         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7426         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
7427         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
7428         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
7429         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
7430         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
7431         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7432         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7433         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7434         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
7435         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
7436         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7437         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7438         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
7439         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7440         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
7441         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
7442         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7443         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7444         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
7445         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
7446         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
7447         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
7448         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
7449         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
7450         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
7451         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
7452         * sysdeps/ieee754/k_standard.c: Likewise.
7453         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
7454         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
7455         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
7456         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
7457         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
7458         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
7459         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
7460         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
7461         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
7462         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7463         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7464         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
7465         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
7466         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
7467         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
7468         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
7469         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
7470         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
7471         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
7472         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
7473         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
7474         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
7475         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
7476         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
7477         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
7478         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
7479         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7480         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
7481         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
7482         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
7483         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
7484         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
7485         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7486         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7487         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
7488         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
7489         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
7490         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
7491         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
7492         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7493         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7494         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7495         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
7496         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
7497         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7498         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7499         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
7500         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7501         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
7502         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
7503         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
7504         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
7505         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7506         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
7507         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
7508         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
7509         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
7510         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
7511         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
7512         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
7513         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
7514         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7515         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
7516         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
7517         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
7518         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
7519         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
7520         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
7521         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
7522         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
7523         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
7524         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7525         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
7526         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
7527         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
7528         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
7529         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
7530         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
7531         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
7532         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
7533         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
7534         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
7535         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
7536         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
7537         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
7538         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
7539         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
7540         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
7541         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
7542         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
7543         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
7544         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
7545         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
7546         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
7547         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
7548         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
7549         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
7550         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
7551         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
7552         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
7553         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
7554         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
7555         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7556         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
7557         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
7558         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7559         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7560         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
7561         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
7562         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
7563         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
7564         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
7565         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
7566         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
7567         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
7568         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
7569         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
7570         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
7571         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
7572         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
7573         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7574         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7575         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
7576         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
7577         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
7578         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
7579         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
7580         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
7581         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
7582         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7583         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
7584         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7585         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
7586         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
7587         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
7588         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
7589         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
7590         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7591         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
7592         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7593         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7594         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
7595         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7596         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7597         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
7598         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
7599         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
7600         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
7601         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
7602         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
7603         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
7604         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
7605         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
7606         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
7607         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
7608         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
7609         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
7610         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
7611         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
7612         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
7613         * sysdeps/ieee754/s_lib_version.c: Likewise.
7614         * sysdeps/ieee754/s_matherr.c: Likewise.
7615         * sysdeps/ieee754/s_signgam.c: Likewise.
7616         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
7617         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
7618         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7619         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7620         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7621         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7622         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
7623         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
7624         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7625         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7626         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7627         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7628         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
7629         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
7630         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
7631         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
7632         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
7633         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
7634         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
7635         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7636         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7637
7638 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
7639
7640         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
7641         * sunrpc/rpc_main.c: Likewise.
7642         * sunrpc/rpc_svcout.c: Likewise.
7643
7644 2012-03-09  David S. Miller  <davem@davemloft.net>
7645
7646         * include/math_private.h: New file.
7647
7648 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
7649
7650         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
7651         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
7652         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
7653         from <bits/socket_type.h>.
7654         (enum __socket_type): Don't define here.
7655         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
7656         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7657         bits/socket_type.h.
7658
7659         [BZ #13566]
7660         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
7661         checking __USE_GNU.
7662
7663         * Makerules ($(inst_includedir)/%.h): New rule.
7664         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
7665         (install-others): Remove variable setting.
7666         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
7667
7668 2012-03-08  Richard Henderson  <rth@twiddle.net>
7669
7670         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
7671         from macro to inline function; merge with the
7672         !__LIBC_INTERNAL_MATH_INLINES version.
7673         (__ieee754_sqrtf): Likewise.
7674
7675         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
7676         to inline function.
7677         (__rintf, __floor, __floorf): Likewise.
7678
7679         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
7680         macro to inline function.
7681         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
7682
7683         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
7684         not <math/math_private.h>.
7685
7686 2012-03-08  David S. Miller  <davem@davemloft.net>
7687
7688         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
7689         copyright year.
7690         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
7691
7692 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
7693
7694         * resolv/gai_misc.c (handle_requests): Fix struct timespec
7695         normalization.
7696         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
7697         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
7698
7699 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
7700
7701         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
7702         be defined individually, they must be defined as a block.  Define
7703         S for printing a string instead of hidint the different by using a
7704         macro for adding the 'l'.
7705         * stdio-common/tst-fphex-wide.c: Adjust.
7706
7707 2012-03-07  Marek Polacek  <polacek@redhat.com>
7708
7709         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
7710
7711 2012-03-08  Marek Polacek  <polacek@redhat.com>
7712
7713         [BZ #13806]
7714         * stdio-common/Makefile (tests): Add tst-fphex-wide.
7715         * stdio-common/tst-fphex.c: Define a few macros to make the
7716         test reusable.  Use them.
7717         * stdio-common/tst-fphex-wide.c: New file.
7718
7719 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
7720
7721         [BZ #6911]
7722         * manual/macros.texi (gnusystems): New macro.
7723         (nongnusystems): Likewise.
7724         (gnulinuxhurdsystems): Likewise.
7725         (gnuhurdsystems): Likewise..
7726         (gnulinuxsystems): Likewise.
7727         * manual/charset.texi: Use new macros or @theglibc{} to refer to
7728         variants of the GNU system, not "GNU system".
7729         * manual/conf.texi: Likewise.
7730         * manual/errno.texi: Likewise.  Update example of errno macro
7731         expansion.
7732         * manual/filesys.texi: Likewise.
7733         (getumask): Document as specific to GNU/Hurd.
7734         * manual/install.texi: Likewise.  Reword some references to
7735         GNU/Linux.
7736         * manual/intro.texi: Likewise.
7737         * manual/io.texi: Likewise.
7738         (File Name Portability): Detail which constraints are inapplicable
7739         to all GNU systems and which are only inapplicable to GNU/Hurd.
7740         * manual/job.texi: Likewise.
7741         * manual/llio.texi: Likewise.
7742         (O_NOCTTY): Document as present on GNU/Linux.
7743         * manual/maint.texi: Likewise.
7744         * manual/memory.texi: Likewise.
7745         * manual/pattern.texi: Likewise.
7746         * manual/pipe.texi: Likewise.
7747         * manual/process.texi: Likewise.
7748         * manual/resource.texi: Likewise.
7749         (RUSAGE_CHILDREN): Remove statement about specifying a particular
7750         child on GNU/Hurd.
7751         * manual/setjmp.texi: Likewise.
7752         * manual/signal.texi: Likewise.
7753         * manual/startup.texi: Likewise.
7754         * manual/stdio.texi: Likewise.
7755         * manual/terminal.texi: Likewise.
7756         (ONLCR): Document as POSIX.
7757         (OXTABS): Document availability on GNU/Linux as XTABS.
7758         (ONOEOT): Document availability separately from other bits.
7759         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
7760         * manual/time.texi: Likewise.
7761         * manual/users.texi: Likewise.
7762         * INSTALL: Regenerated.
7763         * sysdeps/gnu/errlist.c: Regenerated.
7764
7765         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
7766         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
7767         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
7768         puts.
7769         * configure: Regenerated.
7770
7771 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
7772
7773         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
7774         default includes instead of AC_HEADER_CHECK.
7775         * sysdeps/i386/configure: Regenerated.
7776
7777         [BZ #10716]
7778         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
7779         * math/s_cacoshf.c (__cacoshf): Likewise.
7780         * math/s_cacoshl.c (__cacoshl): Likewise.
7781         * math/s_casinh.c (__casinh): Set signs of result from argument.
7782         * math/s_casinhf.c (__casinhf): Likewise.
7783         * math/s_casinhl.c (__casinhl): Likewise.
7784         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
7785         (casinh_test): Add more tests.
7786         * sysdeps/i386/fpu/libm-test-ulps: Update.
7787         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7788
7789 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
7790
7791         * po/zh_TW.po: Update from translation team.
7792
7793         * login/Makefile (distribute): Remove variable.
7794         * catgets/Makefile: Likewise.
7795         * mach/Makefile: Likewise.
7796         * malloc/Makefile: Likewise.
7797         * misc/Makefile: Likewise.
7798         * iconv/Makefile: Likewise.
7799         * nscd/Makefile: Likewise.
7800         * hurd/Makefile: Likewise.
7801         * manual/Makefile: Likewise.
7802         * locale/Makefile: Likewise.
7803         * intl/Makefile: Likewise.
7804         * conform/Makefile: Likewise.
7805         * nss/Makefile: Likewise.
7806         * time/Makefile: Likewise.
7807         * soft-fp/Makefile: Likewise.
7808         * dirent/Makefile: Likewise.
7809         * gmon/Makefile: Likewise.
7810         * po/Makefile: Likewise.
7811         * rt/Makefile: Likewise.
7812         * socket/Makefile: Likewise.
7813         * math/Makefile: Likewise.
7814         * signal/Makefile: Likewise.
7815         * debug/Makefile: Likewise.
7816         * elf/Makefile: Likewise.
7817         * timezone/Makefile: Likewise.
7818         * stdlib/Makefile: Likewise.
7819         * iconvdata/Makefile: Likewise.
7820         * sunrpc/Makefile: Likewise.
7821         * io/Makefile: Likewise.
7822         * argp/Makefile: Likewise.
7823         * inet/Makefile: Likewise.
7824         * hesiod/Makefile: Likewise.
7825         * grp/Makefile: Likewise.
7826         * csu/Makefile: Likewise.
7827         * wctype/Makefile: Likewise.
7828         * crypt/Makefile: Likewise.
7829         * libio/Makefile: Likewise.
7830         * string/Makefile: Likewise.
7831         * nis/Makefile: Likewise.
7832         * resolv/Makefile: Likewise.
7833         * stdio-common/Makefile: Likewise.
7834         * wcsmbs/Makefile: Likewise.
7835         * dlfcn/Makefile: Likewise.
7836         * posix/Makefile: Likewise.
7837
7838         [BZ #6959]
7839         * timezone/Makefile: Don't install timezone files, just the programs
7840         and scripts.
7841
7842 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
7843
7844         * nss/databases.def: Add missing gshadow entry.
7845
7846         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
7847
7848 2012-03-06  Marek Polacek  <polacek@redhat.com>
7849
7850         [BZ #13726]
7851         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
7852         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
7853         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
7854         * stdio-common/tst-long-dbl-fphex.c: New file.
7855
7856 2012-03-06  David S. Miller  <davem@davemloft.net>
7857
7858         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7859         (set_obp_int): New function.
7860         (get_obp_int): New function.
7861         (__get_clockfreq_via_dev_openprom): Likewise.
7862         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7863         Avoid unused variable warnings on 'val' and use builtin_expect.
7864         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
7865         __builtin_expect.
7866         (INLINE_CLONE_SYSCALL): Likewise.
7867
7868 2012-03-05  David S. Miller  <davem@davemloft.net>
7869
7870         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7871
7872 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
7873
7874         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7875
7876         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
7877         only for |x| >= 40.
7878         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
7879
7880 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
7881
7882         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
7883         Replace gettimeofday with __vdso_gettimeofday.
7884
7885         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7886         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
7887         __vdso_clock_gettime and __vdso_getcpu.
7888
7889         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
7890         time with __vdso_time.
7891
7892 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
7893
7894         * manual/lang.texi (size_t): Note types to which size_t may be
7895         equivalent with the GNU C Library, but do not describe when
7896         differences between them are significant.
7897
7898 2012-03-05  Andreas Jaeger  <aj@suse.de>
7899
7900         * sysdeps/i386/fpu/libm-test-ulps: Update.
7901
7902 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
7903
7904         [BZ #3976]
7905         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
7906         (__ieee754_pow): Save and restore rounding mode and use
7907         round-to-nearest for main computations.
7908         * math/libm-test.inc (pow_test_tonearest): New function.
7909         (pow_test_towardzero): Likewise.
7910         (pow_test_downward): Likewise.
7911         (pow_test_upward): Likewise.
7912         (main): Call the new functions.
7913         * sysdeps/i386/fpu/libm-test-ulps: Update.
7914         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7915
7916         [BZ #3976]
7917         * math/libm-test.inc (cosh_test_tonearest): New function.
7918         (cosh_test_towardzero): Likewise.
7919         (cosh_test_downward): Likewise.
7920         (cosh_test_upward): Likewise.
7921         (sinh_test_tonearest): Likewise.
7922         (sinh_test_towardzero): Likewise.
7923         (sinh_test_downward): Likewise.
7924         (sinh_test_upward): Likewise.
7925         (main): Call the new functions.
7926         * sysdeps/i386/fpu/libm-test-ulps: Update.
7927         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7928
7929 2012-03-05  Tom de Vries  <tom@codesourcery.com>
7930
7931         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
7932         default stack guard is set in last bytes.
7933         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
7934
7935 2012-03-05  Kees Cook  <keescook@chromium.org>
7936
7937         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
7938
7939         [BZ #13656]
7940         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
7941         possibly allocate from heap instead of stack.
7942         * stdio-common/bug-vfprintf-nargs.c: New file.
7943         * stdio-common/Makefile (tests): Add nargs overflow test.
7944
7945 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
7946
7947         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7948
7949 2012-03-03  Marek Polacek  <polacek@redhat.com>
7950
7951         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
7952         * math/math_private.h: Likewise.
7953         * stdlib/tst-strtod.c: Likewise.
7954         * sysdeps/i386/i486/bits/atomic.h: Likewise.
7955         * sysdeps/x86_64/bits/atomic.h: Likewise.
7956
7957 2012-03-02  David S. Miller  <davem@davemloft.net>
7958
7959         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
7960         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
7961         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
7962         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
7963         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
7964         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
7965         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
7966         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
7967
7968 2012-03-02  Roland McGrath  <roland@hack.frob.com>
7969
7970         [BZ #13792]
7971         * manual/examples/README: New file, says the example source files
7972         can be used under GPL>=2.
7973         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
7974         line containing just "*/".
7975         * manual/examples/add.c: Add copyright header (GPL>=2).
7976         * manual/examples/argp-ex1.c: Likewise.
7977         * manual/examples/argp-ex2.c: Likewise.
7978         * manual/examples/argp-ex3.c: Likewise.
7979         * manual/examples/argp-ex4.c: Likewise.
7980         * manual/examples/atexit.c: Likewise.
7981         * manual/examples/db.c: Likewise.
7982         * manual/examples/dir.c: Likewise.
7983         * manual/examples/dir2.c: Likewise.
7984         * manual/examples/execinfo.c: Likewise.
7985         * manual/examples/filecli.c: Likewise.
7986         * manual/examples/filesrv.c: Likewise.
7987         * manual/examples/fmtmsgexpl.c: Likewise.
7988         * manual/examples/genpass.c: Likewise.
7989         * manual/examples/inetcli.c: Likewise.
7990         * manual/examples/inetsrv.c: Likewise.
7991         * manual/examples/isockad.c: Likewise.
7992         * manual/examples/longopt.c: Likewise.
7993         * manual/examples/memopen.c: Likewise.
7994         * manual/examples/memstrm.c: Likewise.
7995         * manual/examples/mkfsock.c: Likewise.
7996         * manual/examples/mkisock.c: Likewise.
7997         * manual/examples/mygetpass.c: Likewise.
7998         * manual/examples/pipe.c: Likewise.
7999         * manual/examples/popen.c: Likewise.
8000         * manual/examples/rprintf.c: Likewise.
8001         * manual/examples/search.c: Likewise.
8002         * manual/examples/select.c: Likewise.
8003         * manual/examples/setjmp.c: Likewise.
8004         * manual/examples/sigh1.c: Likewise.
8005         * manual/examples/sigusr.c: Likewise.
8006         * manual/examples/stpcpy.c: Likewise.
8007         * manual/examples/strdupa.c: Likewise.
8008         * manual/examples/strftim.c: Likewise.
8009         * manual/examples/strncat.c: Likewise.
8010         * manual/examples/subopt.c: Likewise.
8011         * manual/examples/swapcontext.c: Likewise.
8012         * manual/examples/termios.c: Likewise.
8013         * manual/examples/testopt.c: Likewise.
8014         * manual/examples/testpass.c: Likewise.
8015         * manual/examples/timeval_subtract.c: Likewise.
8016
8017         [BZ #13792]
8018         * manual/time.texi (Elapsed Time): Move timeval_subtract example
8019         function to ...
8020         * manual/timeval_subtract.c.texi: ... here, new file.
8021
8022 2012-03-02  David S. Miller  <davem@davemloft.net>
8023
8024         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
8025
8026 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
8027
8028         [BZ #3976]
8029         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
8030         (__sin): Save and restore rounding mode and use round-to-nearest
8031         for all computations.
8032         (__cos): Save and restore rounding mode and use round-to-nearest
8033         for all computations.
8034         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
8035         <fenv.h>.
8036         (tan): Save and restore rounding mode and use round-to-nearest for
8037         all computations.
8038         * math/libm-test.inc (cos_test_tonearest): New function.
8039         (cos_test_towardzero): Likewise.
8040         (cos_test_downward): Likewise.
8041         (cos_test_upward): Likewise.
8042         (sin_test_tonearest): Likewise.
8043         (sin_test_towardzero): Likewise.
8044         (sin_test_downward): Likewise.
8045         (sin_test_upward): Likewise.
8046         (tan_test_tonearest): Likewise.
8047         (tan_test_towardzero): Likewise.
8048         (tan_test_downward): Likewise.
8049         (tan_test_upward): Likewise.
8050         (main): Call the new functions.
8051         * sysdeps/i386/fpu/libm-test-ulps: Update.
8052         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8053
8054         [BZ #10135]
8055         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
8056         small n, then large n, before computing and testing k+n.
8057         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8058         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
8059         Likewise.
8060         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
8061         Likewise.
8062         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
8063         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
8064         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
8065         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
8066         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
8067         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
8068         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
8069         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
8070         * math/libm-test.inc (scalbn_test): Add more tests.
8071         (scalbln_test): Likewise.
8072
8073         * manual/filesys.texi (mode_t): Describe constraints on size and
8074         signedness, not exact equivalence to a particular type.
8075         (ino_t): Likewise.
8076         (ino64_t): Likewise.
8077         (dev_t): Likewise.
8078         (nlink_t): Likewise.
8079         (blkcnt_t): Likewise.
8080         (blkcnt64_t): Likewise.
8081         * manual/llio.texi (off_t): Likewise.
8082
8083         [BZ #3976]
8084         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
8085         (__ieee754_exp): Save and restore rounding mode and use
8086         round-to-nearest for all computations.
8087         * math/libm-test.inc (exp_test_tonearest): New function.
8088         (exp_test_towardzero): Likewise.
8089         (exp_test_downward): Likewise.
8090         (exp_test_upward): Likewise.
8091         (main): Call the new functions.
8092         * sysdeps/i386/fpu/libm-test-ulps: Update.
8093         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8094
8095 2012-03-01  Chris Demetriou  <cgd@google.com>
8096
8097         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
8098         have predictable order.
8099
8100 2012-03-01  David S. Miller  <davem@davemloft.net>
8101
8102         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
8103
8104         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
8105         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
8106         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
8107         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
8108
8109         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
8110         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
8111         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
8112         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
8113         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
8114         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
8115         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
8116         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
8117         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
8118
8119         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8120
8121         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
8122         * sysdeps/sparc/fpu/libm-test-ulps: to here.
8123         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
8124
8125         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
8126         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8127         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
8128         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
8129         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
8130         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
8131         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
8132         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8133         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8134         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
8135         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
8136         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
8137         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
8138         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
8139         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
8140         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8141         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
8142         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
8143         * sysdeps/sparc/elf/configure: Regenerated.
8144
8145 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
8146
8147         * configure.in (AS, LD): Require binutils 2.20 or later.
8148         * configure: Regenerated.
8149         * manual/install.texi (Tools for Compilation): Give binutils 2.20
8150         as required minimum version.
8151         * INSTALL: Regenerated.
8152
8153         [BZ #2541]
8154         [BZ #4108]
8155         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
8156         before squaring exponent.
8157         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
8158         bottom long double and 27 bits of top long double before squaring
8159         exponent.
8160         * math/libm-test.inc (erfc_test): Add more tests.
8161         * sysdeps/i386/fpu/libm-test-ulps: Update.
8162         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8163         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8164
8165 2012-03-01  Kai Tietz  <ktietz@redhat.com>
8166
8167         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
8168         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
8169         containing bit-fields.
8170         * soft-fp/extended.h (_FP_UNION_E): Likewise.
8171         * soft-fp/single.h (_FP_UNION_S): Likewise.
8172         * soft-fp/double.h (_FP_UNION_D): Likewise.
8173
8174 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
8175
8176         [BZ #13786]
8177         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
8178         not include ../strcmp.S.
8179         [USE_AS_STRNCASECMP_L]: Likewise.
8180         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
8181         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
8182         * sysdeps/i386/i686/multiarch/strncase_l-c.c
8183         (__strncasecmp_l_ia32): Define as alias to
8184         __strncasecmp_l_nonascii.
8185
8186         [BZ #5794]
8187         * math/libm-test.inc (expm1_test): Add test for bug 5794.
8188         * sysdeps/i386/fpu/libm-test-ulps: Update.
8189         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8190
8191         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
8192         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8193
8194 2012-02-29  Jeff Law  <law@redhat.com>
8195
8196         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
8197         out of bounds read.
8198
8199 2012-02-29  Marek Polacek  <polacek@redhat.com>
8200
8201         [BZ #13706]
8202         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
8203         * elf/Makefile: Add rules to run tst-unused-dep.out.
8204
8205 2012-02-28  David S. Miller  <davem@davemloft.net>
8206
8207         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
8208         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
8209         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
8210         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
8211         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
8212         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
8213
8214 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
8215
8216         * math/libm-test.inc (llround_test): Move one test from
8217         lround_test.  Use TEST_f_L in moved test.
8218         (lround_test): Move misplaced test to llround_test.  Add testcase
8219         from bug 2561.
8220
8221 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
8222
8223         * sysdeps/x86_64/fpu/e_expf.S: New file.
8224         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
8225
8226 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
8227
8228         [BZ #13637]
8229         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
8230         of remain_len that may cause incomplete multi-byte character and
8231         false match.
8232         * posix/bug-regex33.c: New file.
8233         * posix/Makefile (tests): Add bug-regex33.
8234
8235 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
8236
8237         * manual/macros.texi: New file.
8238         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
8239         * manual/libc.texinfo: Include macros.texi.
8240         * manual/creatute.texi: Likewise.
8241         * manual/install.texi: Likewise.
8242         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
8243         @glibcadj{} in references to the GNU C Library.
8244         * manual/charset.texi: Likewise.
8245         * manual/conf.texi: Likewise.
8246         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
8247         when not using those macros.
8248         * manual/creature.texi: Likewise.
8249         * manual/crypt.texi: Likewise.
8250         * manual/errno.texi: Likewise.
8251         * manual/filesys.texi: Likewise.
8252         * manual/header.texi: Likewise.
8253         * manual/install.texi: Likewise.
8254         * manual/intro.texi: Likewise.
8255         * manual/io.texi: Likewise.
8256         * manual/job.texi: Likewise.
8257         * manual/lang.texi: Likewise.
8258         * manual/libc.texiinfo: Likewise.
8259         * manual/llio.texi: Likewise.
8260         * manual/locale.texi: Likewise.
8261         * manual/maint.texi: Likewise.
8262         * manual/math.texi: Likewise.
8263         * manual/memory.texi: Likewise.
8264         * manual/message.texi: Likewise.
8265         * manual/nss.texi: Likewise.
8266         * manual/pattern.texi: Likewise.
8267         * manual/process.texi: Likewise.
8268         * manual/resource.texi: Likewise.
8269         * manual/search.texi: Likewise.
8270         * manual/setjmp.texi: Likewise.
8271         * manual/signal.texi: Likewise.
8272         * manual/socket.texi: Likewise.
8273         * manual/startup.texi: Likewise.
8274         * manual/stdio.texi: Likewise.
8275         * manual/string.texi: Likewise.
8276         * manual/sysinfo.texi: Likewise.
8277         * manual/syslog.texi: Likewise.
8278         * manual/terminal.texi: Likewise.
8279         * manual/time.texi: Likewise.
8280         * manual/users.texi: Likewise.
8281         * INSTALL: Regenerated.
8282         * NOTES: Regenerated.
8283         * sysdeps/gnu/errlist.c: Regenerated.
8284
8285 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
8286
8287         * include/dirent.h: Include <dirstream.h> before
8288         <dirent/dirent.h>.
8289
8290 2012-02-28  David S. Miller  <davem@davemloft.net>
8291
8292         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
8293         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
8294         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
8295         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
8296
8297 2012-02-27  David S. Miller  <davem@davemloft.net>
8298
8299         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
8300         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
8301         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
8302         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
8303
8304         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
8305         frame pointer instead of stack pointer relative arg slot.
8306         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
8307         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
8308         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
8309
8310 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
8311
8312         [BZ #3992]
8313         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
8314
8315 2012-02-27  David S. Miller  <davem@davemloft.net>
8316
8317         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
8318         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
8319         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
8320         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
8321         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
8322         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
8323         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
8324         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
8325
8326 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
8327
8328         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
8329         later.  Allow versions 5-9.
8330         * configure: Regenerated.
8331         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
8332         required minimum version and 4.6 as recommended version.  Do not
8333         mention bugs in GCC 2.7 and 2.8.
8334         * INSTALL: Regenerated.
8335
8336 2012-02-27  David S. Miller  <davem@davemloft.net>
8337
8338         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
8339         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
8340         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
8341         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
8342         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
8343         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
8344         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
8345         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
8346
8347         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
8348         manipulate bits before adding and subtracting TWO112[sx].
8349         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
8350
8351 2012-02-27  Roland McGrath  <roland@hack.frob.com>
8352
8353         [BZ #13775]
8354         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
8355         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
8356         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
8357         being in POSIX, because they are in 1003.1-2008.
8358
8359         * rt/tst-aio.c: Include <fcntl.h>.
8360         * rt/tst-aio7.c: Likewise.
8361         * rt/tst-aio64.c: Likewise.
8362
8363         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
8364
8365 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
8366
8367         * manual/install.texi (--with-headers): Describe headers as
8368         interface headers, not private headers.
8369         (Specific advice for GNU/Linux systems): Describe use of headers
8370         from "make headers_install", not private headers from older
8371         kernels.
8372         * INSTALL: Regenerated.
8373         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
8374         Change to 2.6.19.
8375         * sysdeps/unix/sysv/linux/configure: Regenerated.
8376
8377         * manual/llio.texi (fclean): Remove documentation.
8378
8379         * manual/Makefile (libc-texi-generated): New variable.  Include
8380         version.texi.
8381         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
8382         $(libc-texi-generated), not duplicated list of files.
8383         (version.texi, stamp-version): New rules.
8384         (realclean): Remove $(libc-texi-generated), not individual files
8385         from that list.  Do not remove dir-add.texinfo.
8386         * manual/libc.texinfo: Comment out uses of edition numbers and
8387         references to printed manual.  Remove last-updated dates.
8388         (EDITION): Comment out.
8389         (ISBN): Likewise.
8390         (VERSION, UPDATED): Remove.
8391         (version.texi): Include.
8392
8393 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
8394
8395         * sysdeps/posix/spawni.c: Include <signal.h>.
8396         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
8397         * sysdeps/pthread/aio_fsync.c: Likewise.
8398
8399 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
8400
8401         * conform/Makefile (tests): Run only when not cross-compiling and
8402         when fast-check is not defined.
8403
8404         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
8405         * conform/data/limits.h-data: Fixes for POSIX2008.
8406         * conform/run-conformtest.sh: Run all tests.
8407         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
8408         headers.
8409         * include/bits/dlfcn.h: Likewise.
8410         * include/langinfo.h: Likewise.
8411         * include/monetary.h: Likewise.
8412         * include/sys/poll.h: Likewise.
8413
8414         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
8415         for __USE_GNU.
8416         * posix/spawn.h: Define __need_sigset_t.
8417         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
8418         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
8419         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
8420         to get sigevent_t only.
8421         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
8422         only for __USE_GNU.
8423         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
8424         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
8425         process_vm_writev only for __USE_GNU.
8426         * termios/termios.h: Declare tcgetsid also for POSIX2008.
8427
8428         * conform/Makefile: For now ignore errors from run-conformtest.
8429         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
8430         POSIX to avoid namespace pollution.  Don't prepend headers.
8431         * conform/data/aio.h-data: Fixes for POSIX testing.
8432         * conform/data/fcntl.h-data: Likewise.
8433         * conform/data/glob.h-data: Likewise.
8434         * conform/data/grp.h-data: Likewise.
8435         * conform/data/pthread.h-data: Likewise.
8436         * conform/data/pwd.h-data: Likewise.
8437         * conform/data/signal.h-data: Likewise.
8438         * conform/data/spawn.h-data: Likewise.
8439         * conform/data/stdio.h-data: Likewise.
8440         * conform/data/stdlib.h-data: Likewise.
8441         * conform/data/stropts.h-data: Likewise.
8442         * conform/data/sys/mman.h-data: Likewise.
8443         * conform/data/sys/stat.h-data: Likewise.
8444         * conform/data/sys/types.h-data: Likewise.
8445         * conform/data/sys/wait.h-data: Likewise.
8446         * conform/data/time.h-data: Likewise.
8447         * conform/data/unistd.h-data: Likewise.
8448         * conform/data/utime.h-data: Likewise.
8449
8450         * io/sys/stat.h: fchmod was always in POSIX.
8451         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
8452         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
8453         * rt/aio.h: Define __need_timespec before including <time.h>.
8454         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
8455         struct.  Add forward declaration of pthread_attr_t and use it in
8456         sigevent.
8457         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
8458         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8459         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
8460         always remove CLK_TCK definition.
8461
8462 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
8463
8464         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
8465
8466 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
8467
8468         * conform/run-conformtest.sh: New file.
8469         * conform/Makefile: Run run-conformtest for tests.
8470         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
8471         support.
8472
8473         * conform/data/uchar.h-data: New file.
8474         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
8475         * conform/data/arpa/inet.h-data: Likewise.
8476         * conform/data/assert.h-data: Likewise.
8477         * conform/data/complex.h-data: Likewise.
8478         * conform/data/cpio.h-data: Likewise.
8479         * conform/data/ctype.h-data: Likewise.
8480         * conform/data/dirent.h-data: Likewise.
8481         * conform/data/dlfcn.h-data: Likewise.
8482         * conform/data/errno.h-data: Likewise.
8483         * conform/data/fcntl.h-data: Likewise.
8484         * conform/data/float.h-data: Likewise.
8485         * conform/data/fmtmsg.h-data: Likewise.
8486         * conform/data/fnmatch.h-data: Likewise.
8487         * conform/data/ftw.h-data: Likewise.
8488         * conform/data/glob.h-data: Likewise.
8489         * conform/data/grp.h-data: Likewise.
8490         * conform/data/iconv.h-data: Likewise.
8491         * conform/data/inttypes.h-data: Likewise.
8492         * conform/data/langinfo.h-data: Likewise.
8493         * conform/data/libgen.h-data: Likewise.
8494         * conform/data/limits.h-data: Likewise.
8495         * conform/data/locale.h-data: Likewise.
8496         * conform/data/math.h-data: Likewise.
8497         * conform/data/monetary.h-data: Likewise.
8498         * conform/data/mqueue.h-data: Likewise.
8499         * conform/data/ndbm.h-data: Likewise.
8500         * conform/data/net/if.h-data: Likewise.
8501         * conform/data/netdb.h-data: Likewise.
8502         * conform/data/netinet/in.h-data: Likewise.
8503         * conform/data/nl_types.h-data: Likewise.
8504         * conform/data/poll.h-data: Likewise.
8505         * conform/data/pthread.h-data: Likewise.
8506         * conform/data/pwd.h-data: Likewise.
8507         * conform/data/regex.h-data: Likewise.
8508         * conform/data/sched.h-data: Likewise.
8509         * conform/data/search.h-data: Likewise.
8510         * conform/data/semaphore.h-data: Likewise.
8511         * conform/data/setjmp.h-data: Likewise.
8512         * conform/data/signal.h-data: Likewise.
8513         * conform/data/spawn.h-data: Likewise.
8514         * conform/data/stdarg.h-data: Likewise.
8515         * conform/data/stdio.h-data: Likewise.
8516         * conform/data/stdlib.h-data: Likewise.
8517         * conform/data/string.h-data: Likewise.
8518         * conform/data/strings.h-data: Likewise.
8519         * conform/data/stropts.h-data: Likewise.
8520         * conform/data/sys/ipc.h-data: Likewise.
8521         * conform/data/sys/mman.h-data: Likewise.
8522         * conform/data/sys/msg.h-data: Likewise.
8523         * conform/data/sys/resource.h-data: Likewise.
8524         * conform/data/sys/select.h-data: Likewise.
8525         * conform/data/sys/sem.h-data: Likewise.
8526         * conform/data/sys/shm.h-data: Likewise.
8527         * conform/data/sys/socket.h-data: Likewise.
8528         * conform/data/sys/stat.h-data: Likewise.
8529         * conform/data/sys/statvfs.h-data: Likewise.
8530         * conform/data/sys/time.h-data: Likewise.
8531         * conform/data/sys/timeb.h-data: Likewise.
8532         * conform/data/sys/times.h-data: Likewise.
8533         * conform/data/sys/types.h-data: Likewise.
8534         * conform/data/sys/uio.h-data: Likewise.
8535         * conform/data/sys/un.h-data: Likewise.
8536         * conform/data/sys/utsname.h-data: Likewise.
8537         * conform/data/sys/wait.h-data: Likewise.
8538         * conform/data/syslog.h-data: Likewise.
8539         * conform/data/tar.h-data: Likewise.
8540         * conform/data/termios.h-data: Likewise.
8541         * conform/data/utime.h-data: Likewise.
8542         * conform/data/utmpx.h-data: Likewise.
8543         * conform/data/varargs.h-data: Likewise.
8544         * conform/data/wchar.h-data: Likewise.
8545         * conform/data/wctype.h-data: Likewise.
8546         * conform/data/wordexp.h-data: Likewise.
8547
8548         * include/stropts.h: New file.
8549         * include/uchar.h: New file.
8550         * include/aio.h: Changes to allow conformtest.pl to use the headers.
8551         * include/assert.h: Likewise.
8552         * include/ctype.h: Likewise.
8553         * include/dirent.h: Likewise.
8554         * include/dlfcn.h: Likewise.
8555         * include/fcntl.h: Likewise.
8556         * include/fnmatch.h: Likewise.
8557         * include/glob.h: Likewise.
8558         * include/grp.h: Likewise.
8559         * include/libio.h: Likewise.
8560         * include/locale.h: Likewise.
8561         * include/math.h: Likewise.
8562         * include/net/if.h: Likewise.
8563         * include/netdb.h: Likewise.
8564         * include/netinet/in.h: Likewise.
8565         * include/pthread.h: Likewise.
8566         * include/pwd.h: Likewise.
8567         * include/regex.h: Likewise.
8568         * include/sched.h: Likewise.
8569         * include/search.h: Likewise.
8570         * include/setjmp.h: Likewise.
8571         * include/signal.h: Likewise.
8572         * include/stdio.h: Likewise.
8573         * include/stdlib.h: Likewise.
8574         * include/string.h: Likewise.
8575         * include/sys/cdefs.h: Likewise.
8576         * include/sys/mman.h: Likewise.
8577         * include/sys/msg.h: Likewise.
8578         * include/sys/resource.h: Likewise.
8579         * include/sys/select.h: Likewise.
8580         * include/sys/socket.h: Likewise.
8581         * include/sys/stat.h: Likewise.
8582         * include/sys/statvfs.h: Likewise.
8583         * include/sys/time.h: Likewise.
8584         * include/sys/times.h: Likewise.
8585         * include/sys/uio.h: Likewise.
8586         * include/sys/utsname.h: Likewise.
8587         * include/sys/wait.h: Likewise.
8588         * include/termios.h: Likewise.
8589         * include/time.h: Likewise.
8590         * include/ulimit.h: Likewise.
8591         * include/unistd.h: Likewise.
8592         * include/utime.h: Likewise.
8593         * include/wchar.h: Likewise.
8594         * include/wctype.h: Likewise.
8595         * include/wordexp.h: Likewise.
8596
8597         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
8598
8599         * time/time.h: TIME_UTC must be a macro.
8600         Make timespec_get available for ISO C11 only as well.
8601
8602 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
8603
8604         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
8605         Reported by Peng Haitao <penght@cn.fujitsu.com>.
8606
8607 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
8608
8609         * configure.in: Use -o not -a in test for unsupported multi-arch.
8610
8611 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
8612
8613         * manual/texinfo.tex: Update to version 2012-01-19.16.
8614
8615 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
8616
8617         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
8618
8619 2012-02-24  Roland McGrath  <roland@hack.frob.com>
8620
8621         [BZ #13738]
8622         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
8623         * manual/fdl-1.3.texi: New file.
8624         * manual/fdl-1.1.texi: File removed.
8625
8626         [BZ #13738]
8627         * manual/libc.texinfo (FDL_VERSION): New @set.
8628         Use it for mention of FDL in cover text.
8629         (Documentation License): Use it in @include file name.
8630
8631 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8632             Roland McGrath  <roland@hack.frob.com>
8633
8634         [BZ #5461]
8635         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
8636         not LONG_LONG_MAX and LONG_LONG_MIN.
8637         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
8638         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
8639         name.
8640         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
8641
8642 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8643
8644         [BZ #2547]
8645         [BZ #11365]
8646         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
8647         manipulate bits before adding and subtracting TWO23[sx].
8648         * math/libm-test.inc (nearbyint_test): Add more tests.
8649
8650 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8651
8652         [BZ #2548]
8653         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
8654         bits before adding and subtracting TWO23[sx].
8655         * math/libm-test.inc (rint_test): Add more tests.
8656         (rint_test_tonearest): Likewise.
8657         (rint_test_towardzero): Likewise.
8658         (rint_test_downward): Likewise.
8659         (rint_test_upward: Likewise.
8660
8661 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8662
8663         [BZ #10110]
8664         * include/stdc-predef.h: New file.  Extracted from features.h.
8665         * include/features.h: Include stdc-predef.h.
8666         * Makefile (headers): Add stdc-predef.h.
8667         * CONFORMANCE (Compiler limitations): Update.
8668
8669 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8670
8671         * manual/libc.texinfo (VERSION, UPDATED): Revert.
8672
8673 2012-02-21  David S. Miller  <davem@davemloft.net>
8674
8675         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
8676         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
8677
8678 2012-02-20  David S. Miller  <davem@davemloft.net>
8679
8680         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
8681         using a normal save/restore sequence, rather than allocating a
8682         dummy stack frame just to store a frame pointer and restore.
8683         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
8684
8685 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
8686
8687         * manual/install.texi: Fix stray word in line-wrapped comment.
8688
8689 2012-02-20  David S. Miller  <davem@davemloft.net>
8690
8691         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
8692         both binutils and gcc support GOTDATA.
8693
8694         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
8695         "rd %pc" in the PIC register setup sequences.
8696
8697         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
8698         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
8699         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
8700         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
8701         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8702         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8703         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8704         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
8705         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
8706         (SYSCALL_ERROR_HANDLER): Likewise.
8707         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
8708         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
8709         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
8710         (SYSCALL_ERROR_HANDLER): Likewise.
8711
8712         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
8713         (HAVE_GCC_GOTDATA): New.
8714         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
8715         relocation support in both binutils and gcc.
8716         * sysdeps/sparc/elf/configure: Regenerate.
8717
8718         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
8719         * sysdeps/sparc/sparc32/elf/configure: Delete.
8720         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
8721         * sysdeps/sparc/sparc64/elf/configure: Delete.
8722         * sysdeps/sparc/elf/configure.in: New file.
8723         * sysdeps/sparc/elf/configure: Generate.
8724
8725         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
8726         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
8727         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
8728         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
8729         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
8730
8731 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
8732
8733         * manual/install.texi: Do not mention specific glibc version
8734         numbers.
8735         * manual/libc.texinfo (VERSION, UPDATED): Update.
8736         (@copying): Use @copyright{} and range of years.
8737
8738 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
8739
8740         [BZ #13695]
8741         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
8742         [crti.S not in sysdirs] (generated): Do not append.
8743         [crti.S not in sysdirs] (omit-deps): Likewise.
8744         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
8745         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
8746         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
8747         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
8748         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
8749         Likewise.
8750         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
8751         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
8752         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
8753         * csu/defs.awk: Remove file.
8754         * sysdeps/generic/initfini.c: Likewise.
8755         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
8756         variable.
8757         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
8758         Likewise.
8759
8760 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
8761
8762         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
8763         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
8764         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
8765         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
8766         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8767         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
8768         <bits/epoll.h>.
8769         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
8770         (__EPOLL_PACKED): Define to empty if not defined by
8771         <bits/epoll.h>.
8772         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
8773         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8774         bits/epoll.h.
8775
8776 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
8777
8778         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
8779         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
8780         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
8781         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
8782         <bits/timerfd.h>.
8783         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
8784         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8785         bits/timerfd.h.
8786
8787 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
8788
8789         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
8790         in C locale.
8791         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8792         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8793         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
8794         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8795
8796 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
8797
8798         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8799         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
8800
8801 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
8802
8803         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
8804         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
8805         defined.
8806         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
8807         Likewise.
8808         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
8809         entry for 2.16.
8810
8811 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
8812
8813         * math/w_acos.c: Use non-signaling floating-point comparisons.
8814         * math/w_acosf.c: Likewise.
8815         * math/w_acosh.c: Likewise.
8816         * math/w_acoshf.c: Likewise.
8817         * math/w_acoshl.c: Likewise.
8818         * math/w_acosl.c: Likewise.
8819         * math/w_asin.c: Likewise.
8820         * math/w_asinf.c: Likewise.
8821         * math/w_asinl.c: Likewise.
8822         * math/w_atanh.c: Likewise.
8823         * math/w_atanhf.c: Likewise.
8824         * math/w_atanhl.c: Likewise.
8825         * math/w_exp2.c: Likewise.
8826         * math/w_exp2f.c: Likewise.
8827         * math/w_exp2l.c: Likewise.
8828         * math/w_j0.c: Likewise.
8829         * math/w_j0f.c: Likewise.
8830         * math/w_j0l.c: Likewise.
8831         * math/w_j1.c: Likewise.
8832         * math/w_j1f.c: Likewise.
8833         * math/w_j1l.c: Likewise.
8834         * math/w_jn.c: Likewise.
8835         * math/w_jnf.c: Likewise.
8836         * math/w_log.c: Likewise.
8837         * math/w_log10.c: Likewise.
8838         * math/w_log10f.c: Likewise.
8839         * math/w_log10l.c: Likewise.
8840         * math/w_log2.c: Likewise.
8841         * math/w_log2f.c: Likewise.
8842         * math/w_log2l.c: Likewise.
8843         * math/w_logf.c: Likewise.
8844         * math/w_logl.c: Likewise.
8845         * math/w_sqrt.c: Likewise.
8846         * math/w_sqrtf.c: Likewise.
8847         * math/w_sqrtl.c: Likewise.
8848         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8849         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
8850         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8851         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
8852         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
8853
8854 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
8855
8856         [BZ #9739]
8857         * manual/string.texi (strnlen): Use correct parameter name in
8858         equivalent expression.
8859
8860 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
8861
8862         [BZ #11174]
8863         * manual/users.texi (seteuid): Consistently use neweuid for
8864         argument name.
8865
8866 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
8867
8868         [BZ #13704]
8869         * manual/nss.texi (Services in the NSS configuration): Correct
8870         list of services in example configuration file.
8871
8872 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
8873
8874         [BZ #11322]
8875         * manual/arith.texi: Remove statements about negative zero
8876         behaving identically to zero.
8877
8878 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
8879
8880         [BZ #5993]
8881         * manual/install.texi: Do not document upgrading from libc5.
8882
8883 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
8884
8885         [BZ #4596]
8886         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
8887
8888 2012-02-18  David S. Miller  <davem@davemloft.net>
8889
8890         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
8891         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
8892         %o7 across the call.
8893         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
8894         instead.
8895         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
8896         SETUP_PIC_REG_LEAF.
8897         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8898         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
8899         * sysdeps/sparc/crtn.S: Likewise.
8900
8901 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
8902
8903         * aout/Makefile: Remove.
8904
8905 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
8906
8907         [BZ #13058]
8908         * manual/examples/argp-ex1.c (main): Format definition in GNU
8909         style.
8910         * manual/examples/argp-ex2.c (main): Likewise.
8911         * manual/examples/argp-ex3.c (main): Likewise.
8912         * manual/examples/argp-ex4.c (main): Likewise.
8913         * manual/examples/longopt.c (main): Use new-style prototype
8914         definition.
8915         * manual/examples/strncat.c (main): Specify return type and use
8916         (void) for arguments.
8917         * manual/examples/subopt.c (main): Use char **argv argument.
8918
8919 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8920
8921         [BZ #5077]
8922         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
8923         rounding modes.
8924
8925 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
8926
8927         [BZ #6907]
8928         * manual/string.texi (strchr): Change when strchrnul is
8929         recommended.
8930
8931 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
8932
8933         [BZ #174]
8934         * manual/locale.texi (setlocale): Document LOCPATH.
8935
8936 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8937
8938         [BZ #10210]
8939         * manual/process.texi (execle): Move @dots{} before last argument.
8940
8941 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
8942
8943         [BZ #12047]
8944         * manual/charset.texi (Generic Charset Conversion): Fix typo
8945         (LC_TYPE -> LC_CTYPE).
8946
8947 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
8948
8949         [BZ #5805]
8950         * manual/arith.texi (scalbn): Use @var{} on parameter names.
8951         (scalbnf): Likewise.
8952         (scalbnl): Likewise.
8953         (scalbln): Likewise.
8954         (scalblnf): Likewise.
8955         (scalblnl): Likewise.
8956         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
8957         (vwarnx): Likewise.
8958         (verr): Likewise.
8959         (verrx): Likewise.
8960         * manual/filesys.texi (telldir): Use braces around return type.
8961         * manual/llio.texi (mmap): Add space after comma.
8962         (mmap64): Likewise.
8963         * manual/math.texi (jn): Use @var{} on parameter names.
8964         (jnf): Likewise.
8965         (jnl): Likewise.
8966         (yn): Likewise.
8967         (ynf): Likewise.
8968         (ynl): Likewise.
8969         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
8970         line.
8971         * manual/resource.texi (ulimit): Use @dots{} instead of literal
8972         "...".
8973         (sched_get_priority_min): Remove semicolon on @deftypefun line.
8974         (sched_get_priority_max): Likewise.
8975         * manual/signal.texi (sigvec): Add space after comma.
8976         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
8977         names.
8978         (if_indextoname): Likewise.
8979         (if_freenameindex): Likewise.
8980         (sendto): Use ',' instead of '.' in prototype.
8981         * manual/startup.texi (syscall): Use @dots{} instead of literal
8982         "...".
8983         * manual/stdio.texi (__fpending): Separate initial words of
8984         paragraph from @deftypefun line.
8985         * manual/syslog.texi (syslog): Use @dots{} instead of literal
8986         "...".
8987         (vsyslog): Use @var{} on parameter names.
8988         * manual/terminal.texi (stty): Use @var{} on parameter names.
8989         * manual/users.texi (getutmp): Use @var{} on parameter names.
8990         (getutmpx): Likewise.
8991
8992 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8993
8994         [BZ #6884]
8995         * manual/stdio.texi (fopen): Fix typos in description of
8996         ",ccs=STRING".
8997
8998 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
8999
9000         [BZ #4026]
9001         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
9002         get clock_id definition.
9003
9004 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
9005
9006         [BZ #4822]
9007         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
9008         (madvise): Cast every argument to void on its own.
9009
9010 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
9011
9012         [BZ #9902]
9013         * manual/startup.texi (Exit Status): Fix typo.
9014
9015 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
9016
9017         [BZ #10140]
9018         * manual/examples/argp-ex1.c: Include <stdlib.h>.
9019         * manual/examples/argp-ex2.c: Likewise.
9020         * manual/examples/argp-ex3.c: Likewise.
9021
9022 2012-02-16  Richard Henderson  <rth@redhat.com>
9023
9024         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
9025         * sysdeps/s390/s390-32/initfini.c: Remove.
9026         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
9027         * sysdeps/s390/s390-64/initfini.c: Remove.
9028
9029 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9030
9031         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
9032         compiler output for sysdeps/generic/initfini.c.
9033         * sysdeps/sh/elf/initfini.c: Remove file.
9034
9035 2012-02-16  David S. Miller  <davem@davemloft.net>
9036
9037         [BZ #11494]
9038         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
9039
9040         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
9041         * sysdeps/sparc/crti.S: New file.
9042         * sysdeps/sparc/crtn.S: New file.
9043         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
9044         * sysdeps/sparc/sparc64/Makefile: Likewise.
9045
9046 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
9047
9048         [BZ #3335]
9049         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
9050
9051 2012-02-15  Roland McGrath  <roland@hack.frob.com>
9052
9053         [BZ #4822]
9054         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
9055
9056         * mach/devstream.c (cookie_io_functions_t): Macro removed.
9057         (write, read, close): Likewise.
9058         Patch by Aurelien Jarno <aurelien@aurel32.net>.
9059
9060 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
9061
9062         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
9063         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
9064         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
9065         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
9066         <bits/signalfd.h>.
9067         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
9068         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9069         bits/signalfd.h.
9070
9071 2012-02-14  Marek Polacek  <polacek@redhat.com>
9072
9073         * sysdeps/x86_64/crti.S: New file.
9074         * sysdeps/x86_64/crtn.S: New file.
9075         * sysdeps/x86_64/elf/initfini.c: Remove file.
9076
9077 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
9078
9079         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
9080         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
9081         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
9082         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
9083         <bits/inotify.h>.
9084         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
9085         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9086         bits/inotify.h.
9087
9088 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
9089
9090         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
9091         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
9092         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
9093         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
9094         <bits/eventfd.h>.
9095         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
9096         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9097         bits/eventfd.h.
9098
9099 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
9100
9101         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
9102         __feraiseexcept instead of feraiseexcept.
9103
9104         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
9105         nanosleep invocations.
9106         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
9107         strings, and add error checking for a nanosleep invocations.
9108
9109 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9110
9111         Replace FSF snail mail address with URLs, as per GNU coding standards.
9112         Most of the snail mail addresses were wrong anyway, and omitting
9113         them makes the source code easier to maintain.  Almost all of the
9114         changes are to license notices and to locale LC_IDENTIFICATION
9115         addresses, except for this one:
9116         * manual/libc.texinfo: In "Published by", give the FSF's URL,
9117         not its snail mail address.
9118
9119 2012-02-09  Richard Henderson  <rth@twiddle.net>
9120
9121         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
9122         of kernel-features.h.
9123
9124         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
9125
9126 2012-02-08  Marek Polacek  <polacek@redhat.com>
9127
9128         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
9129         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
9130         * sysdeps/gnu/_G_config.h: Likewise.
9131         * sysdeps/generic/_G_config.h: Likewise.
9132
9133 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
9134
9135         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
9136         tests.
9137         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9138
9139         * sysdeps/powerpc/powerpc32/crti.S: New file.
9140         * sysdeps/powerpc/powerpc32/crtn.S: New file.
9141         * sysdeps/powerpc/powerpc64/crti.S: New file.
9142         * sysdeps/powerpc/powerpc64/crtn.S: New file.
9143
9144         * Makeconfig (have-initfini): Don't set.
9145         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
9146         * configure.in (nopic_initfini): Don't substitute.
9147         * config.h.in (HAVE_INITFINI): Don't #undef.
9148         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
9149         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
9150
9151 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
9152
9153         Support crti.S and crtn.S provided directly by architectures.
9154         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
9155         [crti.S in sysdirs] (omit-deps): Likewise.
9156         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
9157         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
9158         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
9159         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
9160         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
9161         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
9162         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
9163         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
9164         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
9165         compiler output for sysdeps/generic/initfini.c.
9166         * sysdeps/i386/elf/Makefile: Remove file.
9167         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
9168
9169 2012-02-07  Marek Polacek  <polacek@redhat.com>
9170
9171         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
9172         * sysdeps/gnu/_G_config.h: Likewise.
9173         * sysdeps/mach/hurd/_G_config.h: Likewise.
9174
9175 2012-02-07  Marek Polacek  <polacek@redhat.com>
9176
9177         * math/Makefile (tests): Add tst-CMPLX2.
9178         * math/tst-CMPLX2.c: New file.
9179
9180 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
9181
9182         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9183
9184         * math/libm-test.inc (jn_test): Add missing L suffix.
9185
9186 2012-02-06  Marek Polacek  <polacek@redhat.com>
9187
9188         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
9189         * sysdeps/i386/fpu/e_powf.S: Likewise.
9190         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
9191         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9192         * sysdeps/i386/fpu/e_acosh.S: Likewise.
9193         * sysdeps/i386/fpu/e_pow.S: Likewise.
9194         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
9195         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
9196         * sysdeps/i386/fpu/s_expm1.S: Likewise.
9197         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
9198         * sysdeps/i386/fpu/e_log2.S: Likewise.
9199         * sysdeps/i386/fpu/e_log2l.S: Likewise.
9200         * sysdeps/i386/fpu/e_scalb.S: Likewise.
9201         * sysdeps/i386/fpu/e_powl.S: Likewise.
9202         * sysdeps/i386/fpu/s_log1p.S: Likewise.
9203         * sysdeps/i386/fpu/e_log10f.S: Likewise.
9204         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
9205         * sysdeps/i386/fpu/e_logl.S: Likewise.
9206         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
9207         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
9208         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
9209         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
9210         * sysdeps/i386/fpu/e_log2f.S: Likewise.
9211         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
9212         * sysdeps/i386/fpu/e_log.S: Likewise.
9213         * sysdeps/i386/fpu/s_cexp.S: Likewise.
9214         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
9215         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
9216         * sysdeps/i386/fpu/e_logf.S: Likewise.
9217         * sysdeps/i386/fpu/e_log10l.S: Likewise.
9218         * sysdeps/i386/fpu/e_atanh.S: Likewise.
9219         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
9220         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
9221         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9222         * sysdeps/i386/fpu/e_log10.S: Likewise.
9223         * sysdeps/i386/fpu/s_frexp.S: Likewise.
9224         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
9225         * sysdeps/i386/fpu/s_asinh.S: Likewise.
9226         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
9227         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
9228         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
9229         * sysdeps/i386/asm-syntax.h: Likewise.
9230         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
9231         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9232         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
9233         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
9234         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
9235         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
9236         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
9237         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
9238         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
9239         * sysdeps/powerpc/sysdep.h: Likewise.
9240         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
9241         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9242
9243 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
9244
9245         [BZ #411]
9246         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
9247
9248 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
9249
9250         * sysdeps/i386/sysdep.h: Include <features.h>.
9251         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
9252         version.
9253
9254 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
9255
9256         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
9257         Define.
9258         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
9259         LOAD_PIC_REG_STR.
9260
9261 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
9262
9263         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
9264         (SETUP_PIC_REG): Use GET_PC_THUNK.
9265         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
9266         macro.
9267
9268 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
9269
9270         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
9271         for non-PIC compilation.
9272         (SETUP_PIC_REG): Add .p2align directive.
9273         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
9274         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
9275         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
9276         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
9277         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
9278         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
9279         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
9280         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
9281         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
9282         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
9283         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
9284         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
9285         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
9286         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
9287         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
9288         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
9289         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
9290         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
9291         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
9292         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
9293         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
9294         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
9295         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
9296         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
9297         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
9298         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
9299         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
9300         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
9301         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
9302         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
9303         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
9304         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
9305         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
9306         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
9307         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
9308         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
9309         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
9310         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
9311         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
9312         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
9313         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
9314
9315 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
9316
9317         * math/tst-CMPLX.c: Include <stdio.h>.
9318
9319 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
9320
9321         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
9322         float.
9323         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
9324         * sysdeps/sparc/bits/mathdef.h: Likewise.
9325
9326 2012-01-31  Marek Polacek  <polacek@redhat.com>
9327
9328         * libio/libio.h: Don't define _PARAMS.
9329         * locale/programs/config.h: Don't define PARAMS.
9330         * stdlib/strtol_l.c: Likewise.
9331         (__strtol_l): Remove PARAMS from the prototype.
9332
9333 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
9334
9335         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
9336         names.  Just use the correct names.  Remove unnecessary wrapper
9337         functions.
9338         * malloc/arena.c: Likewise.
9339         * malloc/hooks.c: Likewise.
9340
9341         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
9342         ARENA_TEST says not to.  Simplify test for creation of a new arena.
9343         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
9344
9345 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
9346
9347         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
9348         into tail calls.
9349         (update_get_addr): New function.
9350         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
9351         GET_ADDR_MODULE parameter.
9352
9353 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
9354
9355         * crypt/cert.c: Remove __STDC__ conditionals.
9356         * crypt/crypt-entry.c: Likewise.
9357         * crypt/crypt_util.c: Likewise.
9358         * libio/filedoalloc.c: Likewise.
9359         * libio/fileops.c: Likewise.
9360         * libio/genops.c: Likewise.
9361         * libio/iofclose.c: Likewise.
9362         * libio/iofdopen.c: Likewise.
9363         * libio/iofopen.c: Likewise.
9364         * libio/iofopen64.c: Likewise.
9365         * libio/iogetdelim.c: Likewise.
9366         * libio/iopopen.c: Likewise.
9367         * libio/obprintf.c: Likewise.
9368         * libio/oldfileops.c: Likewise.
9369         * libio/oldiofclose.c: Likewise.
9370         * libio/oldiofdopen.c: Likewise.
9371         * libio/oldiofopen.c: Likewise.
9372         * libio/oldiopopen.c: Likewise.
9373         * libio/wfiledoalloc.c: Likewise.
9374         * libio/wgenops.c: Likewise.
9375         * locale/programs/xmalloc.c: Likewise.
9376         * misc/syslog.c: Likewise.
9377         * stdio-common/xbug.c: Likewise.
9378         * string/memchr.c: Likewise.
9379         * string/memcmp.c: Likewise.
9380         * string/memrchr.c: Likewise.
9381         * string/rawmemchr.c: Likewise.
9382         * sysdeps/posix/getcwd.c: Likewise.
9383         * time/strftime_l.c: Likewise.
9384
9385 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
9386
9387         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
9388         * config.make.in (config-cflags-sse2avx): Define.
9389         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
9390         Fix typo.
9391
9392 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
9393
9394         * scripts/config.guess: Update from upstream config git repository.
9395         * scripts/config.sub: Likewise.
9396
9397 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
9398
9399         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
9400         (EM_NUM): Update.
9401         (R_TILEPRO_*, R_TILEGX_*): New macros.
9402
9403         * scripts/firstversions.awk: Fix bug in version range handling.
9404
9405         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
9406
9407         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
9408
9409         * include/sys/epoll.h: New file.
9410         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
9411         libc_hidden_def.
9412
9413 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
9414
9415         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
9416         Avoid unnecessary __WORDSIZE == 64 test.
9417         (fmaxf): Use VEX format if possible.
9418         (fmax): Likewise.
9419         (fminf): Likewise.
9420         (fmin): Likewise.
9421
9422         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
9423         * math/math_private.h: Remove libc_fegetround* and
9424         libc_fesetround*.
9425         * sysdeps/i386/configure.in: Check for -msse2avx.
9426         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
9427         also if SSE2AVX is defined.
9428         Remove libc_fegetround* and libc_fesetround*.
9429         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
9430         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
9431         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
9432         of HAS_YMM_USABLE.
9433         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9434         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9435         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9436         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9437         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9438
9439         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
9440
9441 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9442
9443         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
9444         size is not set.
9445         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
9446
9447 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
9448
9449         [BZ #13618]
9450         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
9451         relocation.
9452         * Makeconfig (libm): Define.
9453         * elf/Makefile: Add rules to build and run tst-relsort1.
9454         * elf/tst-relsort1.c: New file.
9455         * elf/tst-relsort1mod1.c: New file.
9456         * elf/tst-relsort1mod2.c: New file.
9457
9458 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
9459
9460         * math/s_ldexp.c: Remove __STDC__ conditionals.
9461         * math/s_ldexpf.c: Likewise.
9462         * math/s_ldexpl.c: Likewise.
9463         * math/s_nextafter.c: Likewise.
9464         * math/s_nexttowardf.c: Likewise.
9465         * math/s_significand.c: Likewise.
9466         * math/s_significandf.c: Likewise.
9467         * math/s_significandl.c: Likewise.
9468         * math/w_jnl.c: Likewise.
9469         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
9470         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
9471         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
9472         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
9473         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
9474         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
9475         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
9476         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9477         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
9478         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
9479         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
9480         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9481         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
9482         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
9483         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
9484         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
9485         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9486         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
9487         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9488         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9489         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9490         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9491         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9492         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9493         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9494         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
9495         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
9496         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9497         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
9498         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
9499         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
9500         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
9501         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
9502         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
9503         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
9504         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
9505         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
9506         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
9507         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
9508         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
9509         * sysdeps/ieee754/k_standard.c: Likewise.
9510         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9511         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
9512         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
9513         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9514         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9515         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
9516         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
9517         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
9518         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
9519         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9520         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
9521         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
9522         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
9523         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
9524         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
9525         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9526         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
9527         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
9528         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
9529         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9530         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
9531         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
9532         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
9533         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
9534         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
9535         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
9536         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9537         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9538         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9539         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
9540         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
9541         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
9542         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9543         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
9544         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
9545         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
9546         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9547         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
9548         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
9549         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9550         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9551         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
9552         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9553         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9554         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
9555         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
9556         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
9557         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
9558         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
9559         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9560         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9561         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
9562         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
9563         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
9564         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
9565         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
9566         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9567         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9568         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9569         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9570         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9571         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9572         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
9573         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
9574         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
9575         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
9576         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
9577         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
9578         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
9579         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
9580         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
9581         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
9582         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
9583         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
9584         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
9585         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
9586         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
9587         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
9588         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
9589         * sysdeps/ieee754/s_matherr.c: Likewise.
9590         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
9591         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
9592         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
9593         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
9594
9595 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
9596
9597         * crypt/md5.h: Remove __STDC__ conditionals.
9598         * libio/libioP.h: Likewise.
9599         * locale/programs/config.h: Likewise.
9600         * sysdeps/generic/sysdep.h: Likewise.
9601         * sysdeps/i386/asm-syntax.h: Likewise.
9602         * sysdeps/s390/asm-syntax.h: Likewise.
9603         * sysdeps/unix/sysdep.h: Likewise.
9604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
9605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9606
9607 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
9608
9609         * libio/libio.h: Remove __STDC__ conditionals.
9610         * malloc/obstack.h: Likewise.
9611         * math/complex.h: Likewise.
9612         * math/math.h: Likewise.
9613         * sysdeps/generic/_G_config.h: Likewise.
9614         * sysdeps/gnu/_G_config.h: Likewise.
9615         * sysdeps/mach/hurd/_G_config.h: Likewise.
9616         * sysdeps/powerpc/bits/mathdef.h: Likewise.
9617         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
9618         * sysdeps/sparc/bits/mathdef.h: Likewise.
9619
9620 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
9621
9622         [BZ #13583]
9623         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
9624         Clean up HAS_* macros.
9625         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
9626         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
9627         possible.
9628         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
9629         HAS_AVX.
9630         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9631         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9632         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9633         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9634         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9635
9636 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
9637
9638         * elf/tst-unique3.cc (gets): Remove declaration.
9639         * elf/tst-unique3lib.cc (gets): Likewise.
9640         * elf/tst-unique3lib2.cc (gets): Likewise.
9641         * elf/tst-unique4.cc (gets): Likewise.
9642
9643 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
9644
9645         * include/stdio.h: Add C++ protection.  Add gets declarations and
9646         definitions.
9647         * debug/tst-chk1.c: Don't declare gets here.
9648         * stdio-common/tst-gets.c: Likewise.
9649
9650 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
9651
9652         * posix/glob: Remove directory.
9653
9654 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
9655
9656         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
9657
9658 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
9659
9660         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
9661         of the non-standard EPFNOSUPPORT.
9662
9663 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9664
9665         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
9666         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
9667         ANYWHERE set to 1 only on KERN_NO_SPACE error.
9668
9669 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
9670
9671         * wcsmbs/uchar.h: Test __STDC_VERSION__.
9672
9673 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
9674
9675         * nscd/aicache.c (addhstaiX): Do not cache negative results of
9676         transient errors.
9677         * nscd/grpcache.c (cache_addgr): Likewise.
9678         * nscd/hstcache.c (cache_addhst): Likewise.
9679         * nscd/initgrcache.c (addinitgroupsX): Likewise.
9680         * nscd/pwdcache.c (cache_addpw): Likewise.
9681         * nscd/servicescache.c (cache_addserv): Likewise.
9682
9683 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
9684
9685         * malloc/malloc.c: Various cleanups.
9686         * malloc/hooks.c: Likewise.
9687
9688         * stdlib/Makefile (tests): Add bug-fmtmsg1.
9689         * stdlib/bug-fmtmsg1.c: New file.
9690
9691         * stdlib/fmtmsg.c (init): Add missing unlock.
9692         Patch by Peng Haitao <penght@cn.fujitsu.com>.
9693
9694 2012-01-12  Marek Polacek  <polacek@redhat.com>
9695
9696         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
9697         and _GNU_SOURCE.
9698
9699 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
9700
9701         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
9702         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
9703         macro to ensure uniqueness of label name.
9704         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
9705         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
9706
9707 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
9708
9709         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
9710
9711         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
9712         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
9713         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
9714         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
9715
9716 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
9717
9718         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
9719
9720         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
9721         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
9722         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
9723
9724         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
9725
9726         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
9727         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
9728         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
9729         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
9730
9731         * math/bits/math-finite.h: Add ldexp support.
9732
9733 2012-01-10  Marek Polacek  <polacek@redhat.com>
9734
9735         * locale/programs/localedef.h (show_archive_content): Add noreturn
9736         attribute.
9737
9738 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
9739
9740         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
9741
9742 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
9743
9744         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
9745
9746         * io/Makefile (headers): Add bits/poll2.h.
9747
9748 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
9749
9750         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
9751         typo #include statement.
9752
9753 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
9754
9755         * include/sys/cdefs.h: Define __attribute_alloc_size.
9756         * catgets/gencat.c: Add alloc_size attribute and apply consistently
9757         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
9758         * elf/pldd.c: Likewise.
9759         * iconv/iconv_charmap.c: Likewise.
9760         * iconv/iconvconfig.c: Likewise.
9761         * iconv/strtab.c: Likewise.
9762         * locale/programs/locale.c: Likewise.
9763         * locale/programs/localedef.h: Likewise.
9764         * locale/programs/simple-hash.c: Likewise.
9765         * nscd/nscd.h: Likewise.
9766         * nss/makedb.c: Likewise.
9767         * sysdeps/generic/ldconfig.h: Likewise.
9768         * locale/programs/localedef.c: Remove xmalloc prototype.
9769         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
9770
9771 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
9772
9773         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
9774         appropriate.
9775
9776 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
9777
9778         * math/Makefile (tests): Add tst-CMPLX.
9779         * math/tst-CMPLX.c: New file.
9780
9781         * math/complex.h (CMPLXL): Fix typo.
9782
9783         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
9784         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
9785         GLIBC_2.16.
9786         * debug/tst-chk1.c: Add poll and ppoll tests.
9787         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
9788         * include/sys/poll.h: Add hidden proto for ppoll.
9789         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
9790         * sysdeps/mach/hurd/ppoll.c: Likewise.
9791         * io/ppoll.c: Likewise.
9792         * debug/poll_chk.c: New file.
9793         * debug/ppoll_chk.c: New file.
9794         * include/bits/poll2.h: New file.
9795         * io/bits/poll2.h: New file.
9796
9797         [BZ #1350]
9798         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
9799
9800         * configure.in: static is always set to yes.  Remove.
9801         * config.make.in: Don't set build-static.
9802         * Makeconfig: Remove use of build-static.
9803         * dlfcn/Makefile: Likewise.
9804         * elf/Makefile: Likewise.
9805         * math/Makefile: Likewise.
9806         * misc/Makefile: Likewise.
9807         * nptl/Makefile: Likewise.
9808         * sysdeps/mach/hurd/Makefile: Likewise.
9809
9810         * configure.in: PWD_P is not used anymore.
9811         * config.make.in: Remove PWD_P entry.
9812
9813         * configure.in: Remove last remnants of RANLIB.
9814         No need to check for signed size_t anymore.
9815         Don't set libc_commonpagesize and libc_relro_required here for Alpha
9816         and IA-64.
9817         Remove __builtin_expect test because we require at least gcc 3.4.
9818         * aclocal.m4: Likewise.
9819
9820         * wcsmbs/mbrtoc16.c: Implement using towc function.
9821         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
9822         * wcsmbs/wcsmbsload.c: Likewise.
9823         * iconv/gconv_simple.c: Likewise.
9824         * iconv/gconv_int.h: Likewise.
9825         * iconv/gconv_builtin.h: Likewise.
9826         * iconv/iconv_prog.c: Remove CHAR16 handling.
9827
9828         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
9829
9830         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
9831
9832         * configure.in: Remove --with-elf and --enable-bounded options.
9833         Dont set base_machine for ia64.  More non-ELF conditions removed.
9834         Remove testing and setting of leading underscore information.
9835         * config.make.in (build-bounded): Set to no.
9836         * config.h.in: Remove NO_UNDERSCORES entry.
9837         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
9838         them.
9839         * csu/start.c: Remove !NO_UNDERSCORE code.
9840         * locale/localeinfo.h: Likewise.
9841         * sysdeps/generic/machine-gmon.h: Likewise.
9842         * sysdeps/generic/sysdep.h: Likewise.
9843         * sysdeps/i386/sysdep.h: Likewise.
9844         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
9845         * sysdeps/mach/sysdep.h: Likewise.
9846         * sysdeps/s390/s390-32/sysdep.h: Likewise.
9847         * sysdeps/s390/s390-64/sysdep.h: Likewise.
9848         * sysdeps/sh/sysdep.h: Likewise.
9849         * sysdeps/sparc/sparc32/alloca.S: Likewise.
9850         * sysdeps/unix/i386/sysdep.S: Likewise.
9851         * sysdeps/unix/sparc/start.c: Likewise.
9852         * sysdeps/unix/sparc/sysdep.S: Likewise.
9853         * sysdeps/unix/sparc/sysdep.h: Likewise.
9854         * sysdeps/unix/start.c: Likewise.
9855         * sysdeps/unix/x86_64/sysdep.S: Likewise.
9856         * sysdeps/x86_64/sysdep.h: Likewise.
9857
9858 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
9859
9860         [BZ #13553]
9861         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
9862         for non-gcc.
9863         * argp/argp-fmtstream.h: Use const instead __const.
9864         * argp/argp.h: Likewise.
9865         * assert/assert.h: Likewise.
9866         * bits/fenv.h: Likewise.
9867         * bits/sched.h: Likewise.
9868         * bits/sigset.h: Likewise.
9869         * bits/sigthread.h: Likewise.
9870         * catgets/nl_types.h: Likewise.
9871         * conform/data/pthread.h-data: Likewise.
9872         * crypt/crypt-private.h: Likewise.
9873         * crypt/crypt.h: Likewise.
9874         * crypt/crypt_util.c: Likewise.
9875         * ctype/ctype.h: Likewise.
9876         * debug/execinfo.h: Likewise.
9877         * debug/mbsnrtowcs_chk.c: Likewise.
9878         * debug/mbsrtowcs_chk.c: Likewise.
9879         * debug/wcsnrtombs_chk.c: Likewise.
9880         * debug/wcsrtombs_chk.c: Likewise.
9881         * debug/wcstombs_chk.c: Likewise.
9882         * dirent/dirent.h: Likewise.
9883         * dlfcn/dlfcn.h: Likewise.
9884         * elf/neededtest4.c: Likewise.
9885         * grp/grp.h: Likewise.
9886         * gshadow/gshadow.h: Likewise.
9887         * iconv/gconv.h: Likewise.
9888         * iconv/gconv_int.h: Likewise.
9889         * iconv/gconv_simple.c: Likewise.
9890         * iconv/iconv.h: Likewise.
9891         * iconv/loop.c: Likewise.
9892         * iconv/skeleton.c: Likewise.
9893         * include/aio.h: Likewise.
9894         * include/aliases.h: Likewise.
9895         * include/argz.h: Likewise.
9896         * include/arpa/inet.h: Likewise.
9897         * include/assert.h: Likewise.
9898         * include/dirent.h: Likewise.
9899         * include/dlfcn.h: Likewise.
9900         * include/execinfo.h: Likewise.
9901         * include/fcntl.h: Likewise.
9902         * include/fenv.h: Likewise.
9903         * include/glob.h: Likewise.
9904         * include/grp.h: Likewise.
9905         * include/libintl.h: Likewise.
9906         * include/mntent.h: Likewise.
9907         * include/netdb.h: Likewise.
9908         * include/pwd.h: Likewise.
9909         * include/rpc/netdb.h: Likewise.
9910         * include/sched.h: Likewise.
9911         * include/search.h: Likewise.
9912         * include/shadow.h: Likewise.
9913         * include/signal.h: Likewise.
9914         * include/stdio.h: Likewise.
9915         * include/stdlib.h: Likewise.
9916         * include/string.h: Likewise.
9917         * include/sys/socket.h: Likewise.
9918         * include/sys/stat.h: Likewise.
9919         * include/sys/statfs.h: Likewise.
9920         * include/sys/statvfs.h: Likewise.
9921         * include/sys/syslog.h: Likewise.
9922         * include/sys/time.h: Likewise.
9923         * include/sys/uio.h: Likewise.
9924         * include/time.h: Likewise.
9925         * include/unistd.h: Likewise.
9926         * include/utmp.h: Likewise.
9927         * include/wchar.h: Likewise.
9928         * include/wctype.h: Likewise.
9929         * inet/aliases.h: Likewise.
9930         * inet/arpa/inet.h: Likewise.
9931         * inet/netinet/ether.h: Likewise.
9932         * inet/netinet/in.h: Likewise.
9933         * intl/libintl.h: Likewise.
9934         * io/bits/fcntl2.h: Likewise.
9935         * io/fcntl.h: Likewise.
9936         * io/ftw.h: Likewise.
9937         * io/sys/poll.h: Likewise.
9938         * io/sys/stat.h: Likewise.
9939         * io/sys/statfs.h: Likewise.
9940         * io/sys/statvfs.h: Likewise.
9941         * io/utime.h: Likewise.
9942         * libio/bits/stdio.h: Likewise.
9943         * libio/bits/stdio2.h: Likewise.
9944         * libio/libio.h: Likewise.
9945         * libio/libioP.h: Likewise.
9946         * libio/stdio.h: Likewise.
9947         * locale/lc-ctype.c: Likewise.
9948         * locale/locale.h: Likewise.
9949         * login/utmp.h: Likewise.
9950         * malloc/arena.c: Likewise.
9951         * malloc/malloc.c: Likewise.
9952         * malloc/malloc.h: Likewise.
9953         * malloc/mcheck.c: Likewise.
9954         * malloc/mtrace.c: Likewise.
9955         * math/bits/mathcalls.h: Likewise.
9956         * math/fenv.h: Likewise.
9957         * math/math_private.h: Likewise.
9958         * misc/bits/error.h: Likewise.
9959         * misc/bits/syslog.h: Likewise.
9960         * misc/err.h: Likewise.
9961         * misc/error.h: Likewise.
9962         * misc/fstab.h: Likewise.
9963         * misc/mntent.h: Likewise.
9964         * misc/regexp.h: Likewise.
9965         * misc/search.h: Likewise.
9966         * misc/sgtty.h: Likewise.
9967         * misc/sys/mman.h: Likewise.
9968         * misc/sys/syslog.h: Likewise.
9969         * misc/sys/uio.h: Likewise.
9970         * misc/sys/xattr.h: Likewise.
9971         * misc/ttyent.h: Likewise.
9972         * nis/rpcsvc/ypclnt.h: Likewise.
9973         * nss/nss.h: Likewise.
9974         * posix/bits/unistd.h: Likewise.
9975         * posix/fnmatch.h: Likewise.
9976         * posix/glob.h: Likewise.
9977         * posix/sched.h: Likewise.
9978         * posix/spawn.h: Likewise.
9979         * posix/sys/wait.h: Likewise.
9980         * posix/unistd.h: Likewise.
9981         * posix/wordexp.h: Likewise.
9982         * pwd/pwd.h: Likewise.
9983         * resolv/netdb.h: Likewise.
9984         * resource/sys/resource.h: Likewise.
9985         * rt/aio.h: Likewise.
9986         * rt/bits/mqueue2.h: Likewise.
9987         * rt/mqueue.h: Likewise.
9988         * shadow/shadow.h: Likewise.
9989         * signal/signal.h: Likewise.
9990         * socket/send.c: Likewise.
9991         * socket/sendto.c: Likewise.
9992         * socket/sys/socket.h: Likewise.
9993         * stdio-common/printf.h: Likewise.
9994         * stdlib/bits/stdlib.h: Likewise.
9995         * stdlib/fmtmsg.h: Likewise.
9996         * stdlib/monetary.h: Likewise.
9997         * stdlib/stdlib.h: Likewise.
9998         * stdlib/ucontext.h: Likewise.
9999         * streams/stropts.h: Likewise.
10000         * string/argz.h: Likewise.
10001         * string/bits/string2.h: Likewise.
10002         * string/string.h: Likewise.
10003         * string/strings.h: Likewise.
10004         * sunrpc/rpc/auth.h: Likewise.
10005         * sunrpc/rpc/auth_des.h: Likewise.
10006         * sunrpc/rpc/clnt.h: Likewise.
10007         * sunrpc/rpc/netdb.h: Likewise.
10008         * sunrpc/rpc/pmap_clnt.h: Likewise.
10009         * sunrpc/rpc/xdr.h: Likewise.
10010         * sysdeps/generic/inttypes.h: Likewise.
10011         * sysdeps/generic/net/if.h: Likewise.
10012         * sysdeps/generic/sys/swap.h: Likewise.
10013         * sysdeps/gnu/net/if.h: Likewise.
10014         * sysdeps/gnu/utmpx.h: Likewise.
10015         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
10016         * sysdeps/i386/i486/bits/string.h: Likewise.
10017         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
10018         * sysdeps/s390/bits/string.h: Likewise.
10019         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
10020         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
10021         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10022         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
10023         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10024         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10025         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10026         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
10027         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
10028         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
10029         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
10030         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
10031         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
10032         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
10033         * sysdeps/unix/sysv/linux/readv.c: Likewise.
10034         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
10035         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
10036         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10037         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
10038         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
10039         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
10040         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
10041         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
10042         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
10043         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
10044         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
10045         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
10046         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
10047         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
10048         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
10049         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
10050         * sysvipc/sys/ipc.h: Likewise.
10051         * sysvipc/sys/msg.h: Likewise.
10052         * sysvipc/sys/sem.h: Likewise.
10053         * sysvipc/sys/shm.h: Likewise.
10054         * termios/termios.h: Likewise.
10055         * time/sys/time.h: Likewise.
10056         * time/time.h: Likewise.
10057         * wcsmbs/bits/wchar2.h: Likewise.
10058         * wcsmbs/uchar.h: Likewise.
10059         * wcsmbs/wchar.h: Likewise.
10060         * wctype/wctype.h: Likewise.
10061
10062         [BZ #13551]
10063         * Makeconfig: Remove all but ELF support including AIX support.
10064         * Makerules: Likewise.
10065         * config.h.in: Likewise.
10066         * config.make.in: Likewise.
10067         * configure: Likewise.
10068         * configure.in: Likewise.
10069         * csu/Makefile: Likewise.
10070         * csu/version.c: Likewise.
10071         * debug/Makefile: Likewise.
10072         * dlfcn/Makefile: Likewise.
10073         * elf/Makefile: Likewise.
10074         * extra-lib.mk: Likewise.
10075         * iconv/Makefile: Likewise.
10076         * include/libc-symbols.h: Likewise.
10077         * include/shlib-compat.h: Likewise.
10078         * resolv/Makefile: Likewise.
10079         * resolv/res_libc.c: Likewise.
10080         * rt/Makefile: Likewise.
10081         * sysdeps/i386/asm-syntax.h: Likewise.
10082         * sysdeps/i386/sysdep.h: Likewise.
10083         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
10084         * sysdeps/mach/sysdep.h: Likewise.
10085         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
10086         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
10087         * sysdeps/s390/asm-syntax.h: Likewise.
10088         * sysdeps/s390/s390-32/sysdep.h: Likewise.
10089         * sysdeps/s390/s390-64/sysdep.h: Likewise.
10090         * sysdeps/sh/sysdep.h: Likewise.
10091         * sysdeps/unix/sparc/sysdep.h: Likewise.
10092         * sysdeps/wordsize-32/divdi3.c: Likewise.
10093         * sysdeps/x86_64/sysdep.h: Likewise.
10094
10095         * argp/Versions: Remove _argp_unlock_xxx.
10096
10097         [BZ #13559]
10098         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
10099         * abilist/libBrokenLocale.abilist: Likewise.
10100         * abilist/libanl.abilist: Likewise.
10101         * abilist/libc.abilist: Likewise.
10102         * abilist/libcrypt.abilist: Likewise.
10103         * abilist/libdl.abilist: Likewise.
10104         * abilist/libm.abilist: Likewise.
10105         * abilist/libnsl.abilist: Likewise.
10106         * abilist/libpthread.abilist: Likewise.
10107         * abilist/libresolv.abilist: Likewise.
10108         * abilist/librt.abilist: Likewise.
10109         * abilist/libthread_db.abilist: Likewise.
10110         * abilist/libutil.abilist: Likewise.
10111         * abilist/libnss_db.abilist: New file.
10112
10113         * scripts/abilist.awk: Add support for indirect functions.
10114
10115         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
10116
10117         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
10118
10119         * shlib-versions: Remove entries for ports architectures.
10120
10121         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
10122         files in ports.
10123         * elf/stackguard-macros.h: Remove support for IA-64.
10124         * elf/tst-auditmod1.c: Likewise.
10125         * sysdeps/generic/ldsodefs.h: Likewise.
10126
10127         * sysdeps/unix/sysv/linux/configure.in: Ports should define
10128         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
10129         configure files.
10130
10131         [BZ #13552]
10132         * configure.in: Remove --enable-omitfp support.
10133         * FAQ.in: Adjust.
10134         * config.make.in: Likewise.
10135         * Makeconfig: Likewise.
10136         * manual/install.texi: Likewise.
10137
10138         In case anyone cares, the IA-64 architecture could move to ports.
10139         * sysdeps/ia64/*: Removed.
10140         * sysdeps/unix/sysv/linux/ia64/*: Removed.
10141         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
10142
10143         [BZ #13555]
10144         * configure.in: Remove entries for unsupported architectures.
10145
10146         [BZ #13533]
10147         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
10148         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
10149         routines.
10150         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
10151         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
10152         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
10153         fall back to using wcrtomb.
10154         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
10155         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
10156         renaming.
10157         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
10158         * wcsmbs/tst-c16c32-1.c: New file.
10159
10160         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
10161         local variable.
10162
10163         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
10164
10165         * elf/tst-unique3.cc: Add explicit declaration of gets.
10166         * elf/tst-unique3lib.cc: Likewise.
10167         * elf/tst-unique3lib2.cc: Likewise.
10168         * elf/tst-unique4.cc: Likewise.
10169
10170         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
10171
10172 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
10173
10174         [BZ #13566]
10175         * assert/assert.h (static_assert): Don't define for C++.
10176         * libio/stdio.h (gets): Do declare for C++ <= C++11.
10177         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
10178
10179 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
10180
10181         * iconv/loop.c (single loop): Fix assertion in storing of
10182         remaining bytes.
10183
10184         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
10185
10186 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
10187
10188         * posix/getconf.c: Update copyright year.
10189         * nss/getent.c: Likewise.
10190         * nss/makedb.c: Likewise.
10191         * iconv/iconvconfig.c: Likewise.
10192         * iconv/iconv_prog.c: Likewise.
10193         * elf/ldconfig.c: Likewise.
10194         * elf/pldd.c: Likewise.
10195         * elf/sotruss.ksh: Likewise.
10196         * catgets/gencat.c: Likewise.
10197         * csu/version.c: Likewise.
10198         * elf/ldd.bash.in: Likewise.
10199         * elf/sprof.c (print_version): Likewise.
10200         * locale/programs/locale.c: Likewise.
10201         * locale/programs/localedef.c: Likewise.
10202         * login/programs/pt_chown.c: Likewise.
10203         * nscd/nscd.c (print_version): Likewise.
10204         * debug/xtrace.sh: Likewise.
10205         * malloc/memusage.sh: Likewise.
10206         * malloc/mtrace.pl: Likewise.
10207         * debug/catchsegv.sh: Likewise.
10208
10209 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
10210
10211         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
10212         pure attribute.
10213
10214 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
10215
10216         [BZ #13533]
10217         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
10218         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
10219         transformations.
10220         * iconv/gconv_int.h: Likewise.
10221         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
10222         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
10223         from libc for GLIBC_2.16.
10224         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
10225         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
10226         * wcsmbs/uchar.h: Really define mbstate_t.
10227         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
10228         * wcsmbs/c16rtomb.c: New file.
10229         * wcsmbs/mbrtoc16.c: New file.
10230         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
10231         for C/POSIX locale.
10232         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
10233         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
10234
10235         * wcsmbs/wchar.h: Add missing __restrict.
10236
10237 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
10238
10239         [BZ #13532]
10240         * time/Makefile (routines): Add timespec_get.
10241         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
10242         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
10243         timespec for ISO C11.
10244         * time/timespec_get.c: New file.
10245         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
10246         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
10247
10248         [BZ #13531]
10249         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
10250         * stdlib/stdlib.h: Declare aligned_alloc.
10251         * Versions.def: Add GLIBC_2.16 for libc.
10252         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
10253
10254         [BZ 13527]
10255         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
10256         ISO C11.
10257
10258         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
10259         code.
10260
10261         [BZ #13528]
10262         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
10263
10264         [BZ #13529]
10265         * assert/assert.h (static_assert): Define.
10266
10267         * version.h: Update for 2.16 development version.
10268
10269         [BZ #13526]
10270         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
10271         _ISOC11_SOURCE.
10272
10273         * version.h (RELEASE): Bump for 2.15 release.
10274         * include/features.h (__GLIBC_MINOR__): Bump to 15.
10275
10276         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
10277         Patch by Marek Polacek <mpolacek@redhat.com>.
10278
10279         * bits/byteswap.h: Protect long long constants with __extension__.
10280         * sysdeps/i386/bits/byteswap.h: Likewise.
10281         * sysdeps/ia64/bits/byteswap.h: Likewise.
10282         * sysdeps/s390/bits/byteswap.h: Likewise.
10283         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10284
10285 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10286
10287         [BZ #13540]
10288         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
10289         destination buffer.
10290         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
10291
10292 2011-12-23  Marek Polacek  <polacek@redhat.com>
10293
10294         * elf/dl-addr.c (determine_info): Add inline keyword.
10295         * elf/tst-auditmod4b.c (check_avx): Likewise.
10296         * elf/tst-auditmod6b.c (check_avx): Likewise.
10297         * elf/tst-auditmod6c.c (check_avx): Likewise.
10298         * elf/tst-auditmod7b.c (check_avx): Likewise.
10299
10300 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
10301
10302         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
10303         !__SSE_MATH__.
10304
10305 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10306
10307         [BZ #13540]
10308         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
10309         processing for last bytes.
10310
10311 2011-08-06  Bruno Haible  <bruno@clisp.org>
10312
10313         [BZ #13061]
10314         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
10315         U+0385, not to U+1FEE.
10316
10317         [BZ #13062]
10318         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
10319         entry for U+00A5 U+0301.
10320
10321 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
10322
10323         [BZ #13166]
10324         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
10325         buffer for the output is too small.
10326
10327         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
10328         optimization.
10329
10330         [BZ #13185]
10331         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
10332         SSE flags if possible.
10333
10334 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10335
10336         [BZ #13540]
10337         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
10338         processing for last bytes.
10339
10340 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
10341
10342         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
10343         (syscall-list-default-options, syscall-list-default-condition)
10344         (syscall-list-includes): Define.
10345         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
10346         list of ABIs and options and #if conditions for each ABI.  Do not
10347         handle common syscalls between ABIs specially.
10348         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
10349         Remove.
10350         (syscall-list-variants, syscall-list-32bit-options)
10351         (syscall-list-32bit-condition, syscall-list-64bit-options)
10352         (syscall-list-64bit-condition): Define.
10353         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
10354         (syscall-list-variants, syscall-list-32bit-options)
10355         (syscall-list-32bit-condition, syscall-list-64bit-options)
10356         (syscall-list-64bit-condition): Define.
10357         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
10358         Remove.
10359         (syscall-list-variants, syscall-list-32bit-options)
10360         (syscall-list-32bit-condition, syscall-list-64bit-options)
10361         (syscall-list-64bit-condition): Define.
10362         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
10363         Remove.
10364         (syscall-list-variants, syscall-list-32bit-options)
10365         (syscall-list-32bit-condition, syscall-list-64bit-options)
10366         (syscall-list-64bit-condition): Define.
10367
10368 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
10369
10370         * locale/iso-639.def: Add brx entry.
10371
10372         [BZ #13328]
10373         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
10374         Proposed by Mariusz_Cukr <marcukr@op.pl>.
10375
10376         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
10377         __feraiseexcept_renamed.
10378
10379 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
10380
10381         [BZ #13538]
10382         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
10383         EPOLLET with unsigned values.
10384         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
10385         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
10386
10387         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
10388         to large cancellation.
10389         * math/s_cacoshf.c: Likewise.
10390         * math/s_cacoshl.c: Likewise.
10391
10392 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
10393
10394         [BZ #13305]
10395         [BZ #12786]
10396         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
10397         * math/s_cacoshf.c: Likewise.
10398         * math/s_cacoshl.c: Likewise.
10399
10400 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
10401
10402         [BZ #13439]
10403         * iconv/gconv.h: Define __GCONV_SWAP.
10404         * iconvdata/unicode.c: The swap bit must be stored in __flags.
10405         * iconvdata/utf-16.c: Likewise.
10406         * iconvdata/utf-32.c: Likewise.
10407
10408 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
10409
10410         [BZ #13524]
10411         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
10412         numerator after shifting it by one limb.
10413
10414 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
10415
10416         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
10417         under [__USE_EXTERN_INLINES].
10418
10419 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
10420
10421         [BZ #13446]
10422         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
10423
10424 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10425
10426         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
10427         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
10428         optimized code.
10429         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
10430         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
10431         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
10432         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
10433         for strncasecmp/strncasecmp_l compilation.
10434         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
10435         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
10436
10437 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
10438
10439         [BZ #13484]
10440         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
10441         of __asm__.
10442
10443 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
10444
10445         [BZ #13506]
10446         * time/tzfile.c (__tzfile_read): Check values from file header.
10447
10448 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
10449
10450         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
10451         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
10452         * powerpc/powerpc32/dl-start.S: Likewise.
10453         * powerpc/powerpc32/elf/start.S: Likewise.
10454         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
10455         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
10456         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
10457         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
10458         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
10459         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
10460         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
10461         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
10462         * powerpc/powerpc32/fpu/s_round.S: Likewise.
10463         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
10464         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
10465         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
10466         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
10467         * powerpc/powerpc32/memset.S: Likewise.
10468         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
10469         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
10470         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
10471         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
10472         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
10473         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
10474         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
10475         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
10476         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
10477         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
10478         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
10479         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
10480         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
10481
10482 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10483
10484         * math/libm-test.inc: Added more nearbyint tests.
10485         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
10486         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
10487         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
10488         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
10489
10490 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
10491
10492         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
10493         FD_CLOEXEC.
10494
10495 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10496
10497         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
10498         Add wcscpy-ssse3 wcscpy-c.
10499         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
10500         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
10501         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
10502         * sysdeps/x86_64/wcschr.S: New file.
10503         * sysdeps/x86_64/wcsrchr.S: New file.
10504         * string/test-strcmp.c: Remove checking of wcscmp function for
10505         wrong alignments.
10506         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
10507         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
10508         wcsrchr-sse2 wcsrchr-c.
10509         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
10510         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
10511         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
10512         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
10513         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
10514         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
10515         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
10516         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
10517         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
10518         * wcsmbc/wcschr.c (WCSCHR): New macro.
10519
10520 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10521
10522         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
10523         * wcsmbs/test-wcsrchr.c: New file.
10524         * string/test-strrchr.c: Add wcsrchr support.
10525         (WIDE): New macro.
10526         * wcsmbs/test-wcscpy.c: New file.
10527         * string/test-strcpy.c: Add wcscpy support.
10528         (WIDE): New macro.
10529
10530 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
10531
10532         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
10533         the inner loop.
10534
10535 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
10536
10537         [BZ #13472]
10538         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
10539
10540 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
10541
10542         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
10543         Minor optimizations.
10544
10545         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
10546         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
10547         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
10548
10549 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
10550
10551         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
10552         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
10553         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
10554         for gcc to avoid warnings.
10555         * inet/Makefile (tests): Add tst-checks.
10556         * inet/tst-checks.c: New file.
10557
10558         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
10559         warning.
10560
10561         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
10562         __wmemcmp_sse2.
10563
10564         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
10565         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
10566
10567         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
10568
10569 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
10570
10571         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
10572         problem.
10573
10574         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
10575
10576 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
10577
10578         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
10579         conditional on GCC version.
10580         (__arch_compare_and_exchange_val_8_acq)
10581         (__arch_compare_and_exchange_val_16_acq)
10582         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
10583         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
10584         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
10585
10586 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
10587
10588         * sysdeps/sh/backtrace.c: New file.
10589
10590 2011-12-02  Andreas Schwab  <schwab@redhat.com>
10591
10592         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
10593         parenthesis.
10594
10595 2011-12-01  Andreas Schwab  <schwab@redhat.com>
10596
10597         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
10598         falling back to utime.
10599
10600 2011-11-30  Andreas Schwab  <schwab@redhat.com>
10601
10602         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
10603         expectations for float.
10604
10605 2011-11-29  Andreas Schwab  <schwab@redhat.com>
10606
10607         * locale/weight.h (findidx): Add parameter len.
10608         * locale/weightwc.h (findidx): Likewise.
10609         * posix/fnmatch_loop.c (FCT): Adjust caller.
10610         * posix/regcomp.c (build_equiv_class): Likewise.
10611         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
10612         * posix/regexec.c (check_node_accept_bytes): Likewise.
10613         * string/strcoll_l.c (STRCOLL): Likewise.
10614         * string/strxfrm_l.c (STRXFRM): Likewise.
10615
10616 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
10617
10618         * Makefile.in: Remove CVSOPT handling.
10619         * configure.in: Remove use of AC_REVISION.
10620         * iconvdata/Makefile (distribute): No need to filter out CVS.
10621         * scripts/list-sources.sh: Remove CVS, subversion and monotone
10622         handling.
10623
10624 2011-11-16  Andreas Schwab  <schwab@redhat.com>
10625
10626         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
10627         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
10628         [USE_AS_STRNCASECMP_L]: Likewise.
10629         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
10630         NO_TLS_DIRECT_SEG_REFS.
10631         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
10632         Fix argument offsets for non-PIC.
10633         [USE_AS_STRNCASECMP_L]: Likewise.
10634         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
10635         NO_TLS_DIRECT_SEG_REFS.
10636
10637 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
10638
10639         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
10640         O_CLOEXEC.
10641         * locale/loadlocale.c (_nl_load_locale): Likewise.
10642
10643 2011-11-15  Andreas Schwab  <schwab@redhat.com>
10644
10645         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
10646         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
10647         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
10648         (SYSCALL_GETTIME): Set errno on error.
10649
10650         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
10651         count references to noai6ai_cached.
10652
10653 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
10654
10655         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
10656
10657         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
10658         FD_CLOEXEC for /proc/self/maps.
10659
10660         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
10661         FD_CLOEXEC for /proc/meminfo.
10662
10663         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
10664         gai.conf.
10665
10666         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
10667         FD_CLOEXEC for given file.
10668
10669         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
10670
10671         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
10672         FD_CLOEXEC for /etc/hosts.
10673         (_gethtent): Likewise.
10674
10675         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
10676
10677         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
10678         cancellation and set FD_CLOEXEC for /etc/netgroup.
10679
10680         * nss/nss_files/files-key.c (search): Don't allow cancellation when
10681         reading /etc/publickey.
10682
10683         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
10684         allow cancellation when reading /etc/group.
10685
10686         * nss/nss_files/files-alias.c (internal_setent): Don't allow
10687         cancellation.
10688         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
10689
10690         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
10691         when using data file.
10692
10693         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
10694
10695         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
10696         (write_nis_obj): Use "c" and "e" in fopen.
10697
10698         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
10699
10700         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
10701
10702         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
10703
10704         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
10705
10706         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
10707         locale.alias.
10708
10709         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
10710
10711         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
10712
10713         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
10714
10715         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
10716         file parsing and set FD_CLOEXEC.
10717
10718 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
10719
10720         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
10721
10722 2011-11-14  Andreas Schwab  <schwab@redhat.com>
10723
10724         * malloc/arena.c (arena_get2): Don't call reused_arena when
10725         _int_new_arena failed.
10726
10727 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
10728
10729         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
10730         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
10731         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
10732         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10733         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
10734         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
10735         to compile strcasecmp and strncasecmp.
10736         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
10737         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
10738
10739         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
10740
10741 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
10742
10743         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
10744         locale-defines.sym to gen-as-const-headers.
10745         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
10746         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
10747         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
10748         to compile strcasecmp and strncasecmp.
10749         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
10750         strcasecmp_l and strncasecmp_l.
10751         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
10752         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
10753         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
10754         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
10755         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
10756         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
10757         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
10758         * sysdeps/i386/i686/multiarch/strncase.S: New file.
10759         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
10760         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
10761         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
10762
10763 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
10764
10765         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
10766         result of SYSDEP_GETTIME_CPU to retval.
10767         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
10768         parameter list to macro.  Remove trailing semicolon.  Adjust users.
10769
10770         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
10771         variable.
10772
10773         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
10774         mantissa words.
10775         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
10776
10777         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
10778         from unused variable.
10779
10780         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
10781         DWARF definitions.
10782         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
10783         for assembling.
10784
10785         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
10786         over namespaces.
10787
10788         * sunrpc/rpc_prot.c (rejected): Fix case value.
10789
10790         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
10791         unsigned long long int to avoid warnings in shift.
10792
10793         * posix/regex_internal.c (re_string_reconstruct): Actually use result
10794         of use of trans.
10795         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
10796         variable tmp.
10797
10798         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
10799         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
10800         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
10801
10802         * nis/nis_table.c (nis_list): Use variable of correct type for
10803         result of __follow_path call.
10804
10805 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10806
10807         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
10808         of math functions ceil, trunc, floor, round, and sqrt, when
10809         avaliable on the platform.
10810         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
10811         name clash.
10812         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10813         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
10814         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
10815
10816 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
10817
10818         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
10819         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
10820
10821 2011-11-11  Roland McGrath  <roland@hack.frob.com>
10822
10823         * include/unistd.h: Fix __readlink return type.
10824         Reported by Chris Metcalf <cmetcalf@tilera.com>.
10825
10826 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
10827
10828         * stdlib/ucontext.h: Undo last change for makecontext.
10829
10830 2011-11-11  Andreas Schwab  <schwab@redhat.com>
10831
10832         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
10833
10834         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
10835         * setjmp/setjmp.h: Mark functions as non-leaf.
10836         * setjmp/bits/setjmp2.h: Likewise.
10837         * stdlib/ucontext.h: Likewise.
10838
10839 2011-11-10  Andreas Schwab  <schwab@redhat.com>
10840
10841         * malloc/arena.c (_int_new_arena): Don't increment narenas.
10842         (reused_arena): Don't check arena limit.
10843         (arena_get2): Atomically check arena limit.
10844
10845 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
10846
10847         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
10848         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
10849
10850         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
10851         instructions.
10852
10853 2011-11-07  Andreas Schwab  <schwab@redhat.com>
10854
10855         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
10856         handler when locking.
10857
10858         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10859         Fix size of allocated buffer.
10860
10861 2011-11-04  Andreas Schwab  <schwab@redhat.com>
10862
10863         [BZ #10103]
10864         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
10865         declarations for long double functions.
10866         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
10867
10868         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
10869
10870 2011-11-03  Andreas Schwab  <schwab@redhat.com>
10871
10872         * nscd/nscd.c (main): Don't start AVC thread until credentials are
10873         installed.
10874
10875         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
10876         is disabled.
10877
10878 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10879
10880         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
10881
10882 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
10883
10884         * include/alloca.h (stackinfo_alloca_round): Define.
10885         (extend_alloca): Use it.
10886         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
10887         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
10888         here.
10889
10890         * scripts/check-local-headers.sh: Ignore libaudit.h.
10891
10892         * nscd/Makefile (extra-objs): Make recursively expanded.
10893
10894 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
10895
10896         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
10897         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
10898
10899         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
10900         * posix/tst-rfc3484-2.c: Likewise.
10901         * posix/tst-rfc3484-3.c: Likewise.
10902
10903         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
10904         process_vm_writev.
10905         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
10906         process_vm_writev.
10907         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
10908         process_vm_writev from libc using GLIBC_2.15 version.
10909
10910         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
10911
10912 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
10913
10914         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
10915         stack usage.
10916
10917 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
10918
10919         [BZ #13367]
10920         * nss/getent.c (initgroups_keys): Show error message in case no group
10921         names are given.
10922
10923         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
10924         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
10925         __bump_nl_timestamp.
10926         * nscd/connections (nscd_init): When host database is served open
10927         netlink socket and request notification about configuration changes.
10928         (main_loop_poll): Track netlink file descriptor and bump timestamp
10929         in case data becomes available.
10930         (main_loop_epoll): Likewise.
10931         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
10932         (database_pers_head): Add extra_data fileds.
10933         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
10934         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
10935         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
10936         Adjust caller.
10937         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
10938         in6ai data, call __free_in6ai.
10939         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
10940         Add -DHAVE_NETLINK.
10941         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
10942         interface information.  Reuse previous data if netlink timestamp
10943         is not changed.
10944         (__bump_nl_timestamp): New function.
10945         (__free_in6ai): New function.
10946
10947 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
10948
10949         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
10950         close_not_cancel_no_status here.
10951         (__check_pf): Reorganize code a bit to not call close twice if OOM.
10952
10953 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
10954
10955         [BZ #13276]
10956         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
10957         return value.
10958
10959         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
10960         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
10961         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
10962
10963 2011-07-03  Andreas Jaeger  <aj@suse.de>
10964
10965         [BZ #10709]
10966         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
10967         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
10968         * math/libm-test.inc (sin_test): Add test case.
10969
10970 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
10971
10972         [BZ #13337]
10973         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
10974         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
10975
10976         * elf/chroot_canon.c (chroot_canon): Cleanups.
10977
10978         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
10979
10980         [BZ #13335]
10981         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
10982         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
10983
10984         * string/test-strchr.c: Make usable for strchrnul testing.
10985         * string/test-strchrnul.c: New file.
10986         * string/Makefile (strop-tests): Add strchrnul.
10987
10988         * po/it.po: Update from translation team.
10989         * po/es.po: Likewise.
10990
10991 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
10992
10993         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
10994         the three constants needed as parameters.  Drop the others.
10995         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
10996         __m128i_strloadu_tolower.
10997         Create and initialize variable zero and use it in all the places
10998         where _mm_setzero_si128 was used.
10999
11000         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
11001         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
11002         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
11003         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
11004         anymore.
11005         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
11006         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
11007         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
11008         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
11009         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
11010         __mpranred, __mptan.
11011         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
11012         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
11013         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
11014         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
11015         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
11016         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
11017         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
11018         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
11019         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
11020
11021 2011-10-28  Andreas Schwab  <schwab@redhat.com>
11022
11023         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
11024         redefine if SHARED.
11025         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
11026
11027         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
11028         wide char related routines to wcsmbs subdir.
11029
11030 2011-10-27  Andreas Schwab  <schwab@redhat.com>
11031
11032         [BZ #13344]
11033         * misc/sys/cdefs.h (__THROWNL): Define.
11034         * posix/unistd.h: Use __THREADNL instead of __THREAD
11035         for memory synchronization functions.
11036
11037 2011-10-26  Roland McGrath  <roland@hack.frob.com>
11038
11039         [BZ #13349]
11040         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
11041         doesn't exist.
11042         * manual/stdio.texi (Obstack Streams): Node removed.
11043
11044 2011-10-26  Andreas Schwab  <schwab@redhat.com>
11045
11046         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
11047         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11048         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11049
11050         * math/math_private.h (math_force_eval): Allow non-addressable
11051         arguments.
11052         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
11053
11054 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
11055
11056         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
11057         file is not needed.
11058
11059         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
11060         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
11061         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11062         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11063         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11064         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11065         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11066         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
11067         Add AVX variants.
11068         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
11069         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
11070         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
11071         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
11072         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
11073         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
11074         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
11075         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
11076         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
11077         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
11078         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
11079         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
11080         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
11081         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
11082         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
11083         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
11084         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
11085         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
11086         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
11087
11088         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
11089         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
11090
11091         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
11092         place.  Use VEX encoding when compiling for AVX.
11093
11094 2011-10-25  Andreas Schwab  <schwab@redhat.com>
11095
11096         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
11097         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
11098
11099         * string/test-strchr.c (do_test): Don't generate NUL bytes.
11100
11101 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
11102
11103         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
11104         useless if() expression.
11105         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11106         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11107         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11108         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11109         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11110         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11111         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11112         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11113         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11114         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11115         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11116         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11117         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11118         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11119         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11120         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11121         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11122         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11123         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11124
11125         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
11126
11127 2011-10-25  Andreas Schwab  <schwab@redhat.com>
11128
11129         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
11130         condition.
11131         * elf/dl-fini.c (_dl_sort_fini): Likewise.
11132
11133 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
11134
11135         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
11136         .text section.  Avoid duplicate constants.
11137         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11138         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11139         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11140         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11141         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11142         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11143         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11144         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11145         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
11146         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
11147         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
11148         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
11149         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
11150         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
11151         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
11152         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
11153         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
11154         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
11155         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11156         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11157         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11158         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11159         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11160         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
11161         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
11162         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
11163         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
11164         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
11165         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
11166         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
11167         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
11168         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
11169         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
11170         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
11171         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
11172         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
11173         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
11174         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
11175         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
11176         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
11177         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
11178         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
11179         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
11180         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
11181         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
11182
11183 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
11184
11185         * sysdeps/x86_64/dla.h: Move to ...
11186         * sysdeps/x86_64/fpu/dla.h: ...here.
11187         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
11188         situations.  Use __builtin_fma only for gcc 4.6 and up.
11189
11190         * config.make.in: Add have-mfma4 entry.
11191         * configure.in: Substitute libc_cv_cc_fma4.
11192         * math/Makefile (dbl-only-routines): Add sincostab.
11193         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
11194         Use __sincostab not sincos.
11195         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
11196         name is a macro.
11197         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11198         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11199         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11200         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
11201         using __copysign.
11202         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
11203         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
11204         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
11205         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
11206         and __inv.
11207         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
11208         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
11209         __copysign.
11210         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
11211         define aliases when function name is a macro.
11212         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
11213         sysdeps/ieee754/dbl-64/sincos.tbl.
11214         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
11215         fma4-enabled routines.
11216         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
11217         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
11218         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
11219         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
11220         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
11221         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
11222         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
11223         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
11224         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
11225         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
11226         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
11227         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
11228         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
11229         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
11230         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
11231         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
11232         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
11233         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
11234         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
11235         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
11236         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
11237         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
11238         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
11239         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
11240         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
11241         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
11242         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
11243         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
11244         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
11245         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
11246
11247         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
11248         rename.
11249         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11250         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11251         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11252         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11253         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11254         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11255         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11256         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11257
11258 2011-10-24  Andreas Schwab  <schwab@redhat.com>
11259
11260         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
11261
11262 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
11263
11264         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
11265
11266         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
11267         prediction.
11268         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
11269
11270         * string/strnlen.c: Don't define STRNLEN, reverse logic.
11271         Remove unused variable magic_bits.
11272         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
11273
11274         * string/strnlen.c: Define and use STRNLEN macro.
11275         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
11276         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
11277         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
11278         * wcsmbs/wcslen.c: Define and use WCSLEN.
11279         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
11280         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
11281         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
11282         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
11283         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
11284         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
11285         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
11286
11287 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11288
11289         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11290         strnlen-sse2-no-bsf.
11291         Rename strlen-no-bsf to strlen-sse2-no-bsf.
11292         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
11293         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
11294         Add strnlen support.
11295         (USE_AS_STRNLEN): New macro.
11296         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
11297         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
11298         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
11299         * sysdeps/x86_64/wcslen.S: New file.
11300
11301 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
11302
11303         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
11304         XMM-moves are used for copying on small sizes.
11305
11306 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11307
11308         * wcsmbs/Makefile (strop-tests): Add wcschr.
11309         * wcsmbs/test-wcschr.c: New file.
11310         * string/test-strchr.c: Update.
11311         Add wcschr support.
11312         (WIDE): New macro.
11313
11314 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11315
11316         * wcsmbs/Makefile (strop-tests): Add wcslen.
11317         * wcsmbs/test-wcslen.c: New file.
11318         * string/test-strlen.c: Update.
11319         Add wcslen support.
11320         (WIDE): New macro.
11321
11322 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
11323
11324         * po/it.po: Update from translation team.
11325
11326 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11327
11328         * sysdeps/x86_64/wcscmp.S: Update.
11329         Fix wrong comparison semantics.
11330         wcscmp shall use signed comparison not unsigned.
11331         Don't use substraction to avoid overflow bug.
11332         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
11333         * wcsmbc/wcscmp.c: Likewise.
11334         * string/test-strcmp.c: Likewise.
11335         Add new tests to check cases with negative values.
11336
11337 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
11338
11339         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
11340         * sysdeps/x86_64/dla.h: ...here.  New file.
11341         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
11342         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11343         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11344         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11345         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11346         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11347         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11348         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11349         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11350
11351 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
11352
11353         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
11354         __ynl_finite aliases.
11355
11356 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
11357
11358         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11359
11360         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
11361         define DLA_FMA.
11362         [DLA_FMA] (EMULV): Use DLA_FMA.
11363         [DLA_FMA] (MUL12): Use EMULV.
11364         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
11365         that are not needed.
11366         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11367         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11368         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11369         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11370         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11371         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11372         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11373
11374 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
11375
11376         * math/s_nan.c: Undef __nan.
11377         * math/s_nanf.c: Undef __nanf.
11378         * math/s_nanl.c: Undef __nanl.
11379         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
11380         "math_private.h".
11381
11382 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
11383
11384         * math/s_catan.c: Add branch predictions.
11385         * math/s_catanf.c: Likewise.
11386         * math/s_catanh.c: Likewise.
11387         * math/s_catanhf.c: Likewise.
11388         * math/s_catanhl.c: Likewise.
11389         * math/s_catanl.c: Likewise.
11390         * math/s_cexp.c: Likewise.
11391         * math/s_cexpf.c: Likewise.
11392         * math/s_cexpl.c: Likewise.
11393         * math/s_clog.c: Likewise.
11394         * math/s_clog10.c: Likewise.
11395         * math/s_clog10f.c: Likewise.
11396         * math/s_clog10l.c: Likewise.
11397         * math/s_clogf.c: Likewise.
11398         * math/s_clogl.c: Likewise.
11399         * math/s_csqrt.c: Likewise.
11400         * math/s_csqrtf.c: Likewise.
11401         * math/s_csqrtl.c: Likewise.
11402         * math/s_ctanf.c: Likewise.
11403         * math/s_ctanh.c: Likewise.
11404         * math/s_ctanhf.c: Likewise.
11405         * math/s_ctanhl.c: Likewise.
11406         * math/s_ctanl.c: Likewise.
11407
11408         * math/math_private.h: Define __nan, __nanf, __nanl.
11409         * math/s_cacosh.c: Include <math_private.h>.
11410         * math/s_cacoshl.c: Likewise.
11411         * math/s_casinh.c: Likewise.
11412         * math/s_casinhf.c: Likewise.
11413         * math/s_casinhl.c: Likewise.
11414         * math/s_ccos.c: Rely entire on ccosh.
11415         * math/s_ccosf.c: Rely entire on ccoshf.
11416         * math/s_ccosl.c: Rely entirely on ccoshl.
11417         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
11418         Remove tests for FE_INVALID.
11419         * math/s_ccoshf.c: Likewise.
11420         * math/s_ccoshl.c: Likewise.
11421         * math/s_csin.c: Likewise.
11422         * math/s_csinf.c: Likewise.
11423         * math/s_csinh.c Likewise.
11424         * math/s_csinhf.c: Likewise.
11425         * math/s_csinhl.c: Likewise.
11426         * math/s_csinl.c: Likewise.
11427         * math/s_ctan.c: Likewise.
11428         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
11429         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
11430         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
11431
11432 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
11433
11434         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
11435         compilation problems.
11436
11437         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
11438         __builtin_expect.
11439
11440 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
11441
11442         * sysdeps/i386/configure.in: Test for -mfma4 option.
11443         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
11444         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
11445         COMMON_CPUID_INDEX_80000001.
11446         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
11447         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
11448         use it if FMA3 is not supported.
11449         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
11450
11451         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
11452         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
11453
11454 2011-10-20  Andreas Schwab  <schwab@redhat.com>
11455
11456         [BZ #12892]
11457         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
11458         it would create a cycle with a link time dependency.
11459
11460 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
11461
11462         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
11463         instruction.
11464         * string/Makefile (strop-tests): Add rawmemchr.
11465         * string/test-rawmemchr.c: New file.
11466
11467         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
11468         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
11469         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
11470         when compiling str{,n}casecmp and when AVX is available.  Hook up
11471         new optimized code in initializers.
11472
11473 2011-10-19  Andreas Schwab  <schwab@redhat.com>
11474
11475         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
11476         __feraiseexcept instead of feraiseexcept.
11477
11478 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
11479
11480         * math/math_private.h: Define defaults for libc_fetestexcept and
11481         libc_feupdateenv.
11482         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
11483         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11484         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11485         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11486         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11487         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
11488         libc_fetestexcept and libc_feupdateenv.
11489
11490         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
11491         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
11492         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
11493         * sysdeps/x86_64/fpu/math_private.h: Define special version of
11494         libc_feholdexcept_setround.
11495
11496         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
11497         Add s_nearbyint-c and s_nearbyintf-c.
11498         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
11499         nearbyintf inlines.
11500         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
11501         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
11502         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
11503         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
11504
11505         * math/math_private.h: Define defaults for libc_fegetround,
11506         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
11507         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
11508         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
11509         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
11510         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
11511         standard functions.
11512         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11513         Remove comments and hacks for old compiler versions.
11514         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
11515         libc_fegetround, libc_fesetround, libc_feholdexcept, and
11516         libc_feholdexceptl.
11517
11518 2011-10-18  Andreas Schwab  <schwab@redhat.com>
11519
11520         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
11521         (__feraiseexcept_renamed): Add __NTH.
11522         (feraiseexcept): Add __NTH.  Rename local variables to fix
11523         namespace violations.
11524
11525 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
11526
11527         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
11528
11529         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
11530
11531         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
11532         recently added interfaces.
11533         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11534
11535         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
11536         about macro parameter expansion.
11537
11538         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
11539         __NO_MATH_INLINES is defined.  Cleanups.
11540
11541         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
11542         and __floorf is target has SSE4.1.
11543         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
11544         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
11545         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
11546         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
11547
11548         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
11549         name.
11550         (floorf): Likewise.
11551
11552         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
11553
11554 2011-10-17  Andreas Schwab  <schwab@redhat.com>
11555
11556         * misc/sys/cdefs.h: Fix last change.
11557
11558         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
11559         database lookup.
11560
11561 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
11562
11563         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
11564
11565         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
11566         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11567         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11568         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11569         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11570         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11571         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11572         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11573         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11574         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
11575         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
11576         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
11577         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
11578         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
11579         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
11580         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
11581         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
11582         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
11583         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
11584         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
11585         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
11586         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
11587
11588         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
11589         ceil, ceilf, floor, floorf.
11590
11591         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
11592         Perform IRELATIVE relocations last.
11593
11594         * elf/do-rel.h: Add another parameter nrelative, replacing the
11595         local variable with the same name.  Change name of the function
11596         to end in Rel or Rela (uppercase).
11597         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
11598         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
11599         elf_dynamic_do_##reloc function.
11600
11601 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
11602
11603         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
11604         is sufficient, at least on modern CPUs.
11605
11606         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
11607
11608         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
11609         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
11610
11611         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
11612         __expl_finite.
11613         * math/bits/math-finite.h: Add entries for exp.
11614         * math/e_expl.c: Add __*_finite alias.
11615         * sysdeps/i386/fpu/e_exp.S: Likewise.
11616         * sysdeps/i386/fpu/e_expf.S: Likewise.
11617         * sysdeps/i386/fpu/e_expl.c: Likewise.
11618         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11619         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11620         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11621         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
11622         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
11623         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11624         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11625
11626         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
11627         is sufficient, at least on modern CPUs.
11628
11629         * ctype/ctype-info.c (__ctype_init): Define.
11630         * include/ctype.h (__ctype_init): Declare.
11631         (__ctype_b_loc): The variable is always initialized.
11632         (__ctype_toupper_loc): Likewise.
11633         (__ctype_tolower_loc): Likewise.
11634         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
11635         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
11636
11637 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
11638
11639         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
11640
11641         * configure.in: Also look in $cxxmachine/include for C++ system
11642         headers.
11643
11644 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11645
11646         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
11647         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
11648         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
11649         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
11650         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
11651         (USE_AS_WMEMCMP): New macro.
11652         Fixing indents.
11653         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
11654         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
11655         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
11656         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
11657         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11658         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
11659         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
11660         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
11661         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
11662         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
11663         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
11664         (USE_AS_WMEMCMP): New macro.
11665         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
11666         * sysdeps/string/test-memcmp.c: Update.
11667         Fix simple_wmemcmp.
11668         Add new tests.
11669         * wcsmbs/wmemcmp.c: Update.
11670         (WMEMCMP): New macro.
11671         Fix overflow bug.
11672
11673 2011-10-12  Andreas Jaeger  <aj@suse.de>
11674
11675         [BZ #13268]
11676         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
11677
11678 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
11679
11680         * libio/iofwide.c (do_length): Avoid warning.
11681
11682         * ctype/ctype.h (__isctype_f): Add missing __THROW.
11683
11684 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
11685
11686         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
11687
11688         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
11689         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
11690         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
11691         * sysdeps/i386/i686/fpu/e_log.S: New file.
11692         * sysdeps/i386/i686/fpu/e_logf.S: New file.
11693         * sysdeps/i386/i686/fpu/e_logl.S: New file.
11694
11695         * ctype/ctype.h: Add support for inlined isXXX functions when
11696         compiling C++ code.
11697
11698 2011-10-14  Andreas Schwab  <schwab@redhat.com>
11699
11700         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11701
11702         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
11703
11704 2011-10-13  Roland McGrath  <roland@hack.frob.com>
11705
11706         [BZ #13291]
11707         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
11708
11709 2011-10-13  Andreas Schwab  <schwab@redhat.com>
11710
11711         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
11712         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
11713         feraiseexcept.
11714
11715         * sysdeps/x86_64/memrchr.S: Check for zero size.
11716
11717         * string/stratcliff.c: Add memrchr tests.
11718
11719 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11720
11721         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11722         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
11723         rawmemchr-sse2 rawmemchr-sse2-bsf.
11724         * sysdeps/i386/i686/multiarch/memchr.S: New file.
11725         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
11726         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
11727         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
11728         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
11729         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
11730         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
11731         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
11732         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
11733         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
11734         * string/memrchr.c (MEMRCHR): New macro.
11735
11736 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
11737
11738         Add integration with gcc's -ffinite-math-only and optimize wrapper
11739         functions in libm.
11740         * Versions.def: Define GLIBC_2.15 version for libm.
11741         * math/Makefile (headers): Add bits/math-finite.h.
11742         * math/bits/math-finite.h: New file.
11743         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
11744         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
11745         * math/e_acoshl.c: Add __*_finite alias.
11746         * math/e_acosl.c: Likewise.
11747         * math/e_asinl.c: Likewise.
11748         * math/e_atan2l.c: Likewise.
11749         * math/e_atanhl.c: Likewise.
11750         * math/e_coshl.c: Likewise.
11751         * math/e_exp10.c: Likewise.
11752         * math/e_exp10f.c: Likewise.
11753         * math/e_exp10l.c: Likewise.
11754         * math/e_exp2l.c: Likewise.
11755         * math/e_fmodl.c: Likewise.
11756         * math/e_gammal_r.c: Likewise.
11757         * math/e_hypotl.c: Likewise.
11758         * math/e_j0l.c: Likewise.
11759         * math/e_j1l.c: Likewise.
11760         * math/e_jnl.c: Likewise.
11761         * math/e_lgammal_r.c: Likewise.
11762         * math/e_log10l.c: Likewise.
11763         * math/e_log2l.c: Likewise.
11764         * math/e_logl.c: Likewise.
11765         * math/e_powl.c: Likewise.
11766         * math/e_sinhl.c: Likewise.
11767         * math/e_sqrtl.c: Likewise.
11768         * math/e_scalb.c: Completely rewritten and optimized.
11769         * math/e_scalbf.c: Likewise.
11770         * math/e_scalbl.c: Likewise.
11771         * math/w_acos.c: Likewise.
11772         * math/w_acosf.c: Likewise.
11773         * math/w_acosl.c: Likewise.
11774         * math/w_acosh.c: Likewise.
11775         * math/w_acoshf.c: Likewise.
11776         * math/w_acoshl.c: Likewise.
11777         * math/w_asin.c: Likewise.
11778         * math/w_asinf.c: Likewise.
11779         * math/w_asinl.c: Likewise.
11780         * math/w_atan2.c: Likewise.
11781         * math/w_atan2f.c: Likewise.
11782         * math/w_atan2l.c: Likewise.
11783         * math/w_atanh.c: Likewise.
11784         * math/w_atanhf.c: Likewise.
11785         * math/w_atanhl.c: Likewise.
11786         * math/w_exp10.c: Likewise.
11787         * math/w_exp10f.c: Likewise.
11788         * math/w_exp10l.c: Likewise.
11789         * math/w_fmod.c: Likewise.
11790         * math/w_fmodf.c: Likewise.
11791         * math/w_fmodl.c: Likewise.
11792         * math/w_j0.c: Likewise.
11793         * math/w_j0f.c: Likewise.
11794         * math/w_j0l.c: Likewise.
11795         * math/w_j1.c: Likewise.
11796         * math/w_j1f.c: Likewise.
11797         * math/w_j1l.c: Likewise.
11798         * math/w_jn.c: Likewise.
11799         * math/w_jnf.c: Likewise.
11800         * math/w_log.c: Likewise.
11801         * math/w_logf.c: Likewise.
11802         * math/w_logl.c: Likewise.
11803         * math/w_log10.c: Likewise.
11804         * math/w_log10f.c: Likewise.
11805         * math/w_log10l.c: Likewise.
11806         * math/w_log2.c: Likewise.
11807         * math/w_log2f.c: Likewise.
11808         * math/w_log2l.c: Likewise.
11809         * math/w_pow.c: Likewise.
11810         * math/w_powf.c: Likewise.
11811         * math/w_powl.c: Likewise.
11812         * math/w_remainder.c: Likewise.
11813         * math/w_remainderf.c: Likewise.
11814         * math/w_remainderl.c: Likewise.
11815         * math/w_scalb.c: Likewise.
11816         * math/w_scalbf.c: Likewise.
11817         * math/w_scalbl.c: Likewise.
11818         * math/w_sqrt.c: Likewise.
11819         * math/w_sqrtf.c: Likewise.
11820         * math/w_sqrtl.c: Likewise.
11821         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
11822         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
11823         used.
11824         * math/math_private.h: Declare __kernel_standard_f.
11825         * math/w_cosh.c: Remove cruft and optimize a bit.
11826         * math/w_coshf.c: Likewise.
11827         * math/w_coshl.c: Likewise.
11828         * math/w_exp2.c: Likewise.
11829         * math/w_exp2f.c: Likewise.
11830         * math/w_exp2l.c: Likewise.
11831         * math/w_hypot.c: Likewise.
11832         * math/w_hypotf.c: Likewise.
11833         * math/w_hypotl.c: Likewise.
11834         * math/w_lgamma.c: Likewise.
11835         * math/w_lgamma_r.c: Likewise.
11836         * math/w_lgammaf.c: Likewise.
11837         * math/w_lgammaf_r.c: Likewise.
11838         * math/w_lgammal.c: Likewise.
11839         * math/w_lgammal_r.c: Likewise.
11840         * math/w_sinh.c: Likewise.
11841         * math/w_sinhf.c: Likewise.
11842         * math/w_sinhl.c: Likewise.
11843         * math/w_tgamma.c: Likewise.
11844         * math/w_tgammaf.c: Likewise.
11845         * math/w_tgammal.c: Likewise.
11846         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11847         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11848         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
11849         Minor optimizations.  Pretty printing.  Remove cruft.
11850         * sysdeps/i386/fpu/e_acosf.S: Likewise.
11851         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11852         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11853         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11854         * sysdeps/i386/fpu/e_acosl.c: Likewise.
11855         * sysdeps/i386/fpu/e_asin.S: Likewise.
11856         * sysdeps/i386/fpu/e_asinf.S: Likewise.
11857         * sysdeps/i386/fpu/e_atan2.S: Likewise.
11858         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
11859         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
11860         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11861         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11862         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11863         * sysdeps/i386/fpu/e_exp10.S: Likewise.
11864         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
11865         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
11866         * sysdeps/i386/fpu/e_exp2.S: Likewise.
11867         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
11868         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
11869         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11870         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
11871         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11872         * sysdeps/i386/fpu/e_hypot.S: Likewise.
11873         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
11874         * sysdeps/i386/fpu/e_log.S: Likewise.
11875         * sysdeps/i386/fpu/e_log10.S: Likewise.
11876         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11877         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11878         * sysdeps/i386/fpu/e_log2.S: Likewise.
11879         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11880         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11881         * sysdeps/i386/fpu/e_logf.S: Likewise.
11882         * sysdeps/i386/fpu/e_logl.S: Likewise.
11883         * sysdeps/i386/fpu/e_pow.S: Likewise.
11884         * sysdeps/i386/fpu/e_powf.S: Likewise.
11885         * sysdeps/i386/fpu/e_powl.S: Likewise.
11886         * sysdeps/i386/fpu/e_remainder.S: Likewise.
11887         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
11888         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
11889         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11890         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11891         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11892         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
11893         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
11894         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
11895         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11896         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11897         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11898         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11899         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11900         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11901         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11902         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11903         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11904         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11905         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11906         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11907         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11908         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11909         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11910         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11911         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11912         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11913         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11914         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11915         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11916         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11917         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11918         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11919         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11920         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11921         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11922         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11923         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11924         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11925         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11926         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11927         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11928         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11929         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11930         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11931         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11932         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11933         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11934         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11935         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11936         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11937         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11938         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11939         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11940         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11941         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11942         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11943         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11944         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11945         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11946         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11947         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11948         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11949         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11950         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11951         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11952         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11953         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11954         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11955         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11956         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11957         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11958         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11959         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11960         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11961         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11962         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11963         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11964         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11965         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11966         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11967         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11968         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11969         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11970         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11971         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
11972         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11973         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11974         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11975         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11976         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11977         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11978         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11979         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11980         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11981         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11982         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11983         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11984         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11985         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11986         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11987         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11988         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
11989         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
11990         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
11991         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
11992         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
11993         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
11994         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
11995         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
11996         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
11997         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
11998         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
11999         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12000         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12001         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12002         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12003         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
12004         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12005         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
12006         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
12007         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
12008         (__isnanf): Likewise.
12009         (__isinf_ns): Likewise.
12010         (__isinf_nsf): Likewise.
12011         (__finite): Likewise.
12012         (__finitef): Likewise.
12013         (__ieee754_sqrt): Define as macro.
12014         (__ieee754_sqrtf): Define as macro.
12015         (__ieee754_sqrtl): Define as macro.
12016         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
12017         inlined copy.
12018         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
12019         __FINITE_MATH_ONLY__ consistent.
12020         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
12021
12022 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
12023
12024         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
12025         of rawmemchr.
12026
12027         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
12028
12029 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
12030
12031         * po/ja.po: Update from translation team.
12032
12033 2011-10-08  Roland McGrath  <roland@hack.frob.com>
12034
12035         * locale/programs/locarchive.c (prepare_address_space): New function.
12036         (create_archive, enlarge_archive, open_archive): Use it.
12037
12038         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
12039         inside [SHARED], where it is used.
12040
12041         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
12042
12043         * nss/getent.c (netgroup_keys): Remove unused variable.
12044         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12045
12046 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
12047
12048         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
12049         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
12050         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
12051         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
12052         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
12053         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
12054         * math/Makefile (libm-calls): Add s_isinf_ns.
12055         * math/divtc3.c: Use __isinf_nsl instead of isinf.
12056         * math/multc3.c: Likewise.
12057         * math/s_casin.c: Likewise.
12058         * math/s_casinf.c: Likewise.
12059         * math/s_casinl.c: Likewise.
12060         * math/s_ccos.c: Likewise.
12061         * math/s_ccosf.c: Likewise.
12062         * math/s_ccosl.c: Likewise.
12063         * math/s_ctan.c: Likewise.
12064         * math/s_ctanf.c: Likewise.
12065         * math/s_ctanh.c: Likewise.
12066         * math/s_ctanhf.c: Likewise.
12067         * math/s_ctanhl.c: Likewise.
12068         * math/s_ctanl.c: Likewise.
12069         * math/w_fmod.c: Likewise.
12070         * math/w_fmodf.c: Likewise.
12071         * math/w_fmodl.c: Likewise.
12072         * math/w_remainder.c: Likewise.
12073         * math/w_remainderf.c: Likewise.
12074         * math/w_remainderl.c: Likewise.
12075         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
12076         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
12077         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
12078         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
12079         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
12080         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
12081         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
12082         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
12083
12084         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
12085         of the number.
12086         * stdio-common/printf_fphex.c: Likewise.
12087         * stdio-common/printf_size.c: Likewise.
12088
12089         * math/e_exp10.c: Include math_private.h using <...> not "...".
12090         * math/e_exp10f.c: Likewise.
12091         * math/e_exp10l.c: Likewise.
12092         * math/e_exp2l.c: Likewise.
12093         * math/e_j0l.c: Likewise.
12094         * math/e_j1l.c: Likewise.
12095         * math/e_jnl.c: Likewise.
12096         * math/e_lgammal_r.c: Likewise.
12097         * math/e_rem_pio2l.c: Likewise.
12098         * math/e_scalb.c: Likewise.
12099         * math/e_scalbf.c: Likewise.
12100         * math/e_scalbl.c: Likewise.
12101         * math/k_cosl.c: Likewise.
12102         * math/k_sinl.c: Likewise.
12103         * math/k_tanl.c: Likewise.
12104         * math/s_cacoshf.c: Likewise.
12105         * math/s_catan.c: Likewise.
12106         * math/s_catanf.c: Likewise.
12107         * math/s_catanh.c: Likewise.
12108         * math/s_catanhf.c: Likewise.
12109         * math/s_catanhl.c: Likewise.
12110         * math/s_catanl.c: Likewise.
12111         * math/s_ccosh.c: Likewise.
12112         * math/s_ccoshf.c: Likewise.
12113         * math/s_ccoshl.c: Likewise.
12114         * math/s_cexp.c: Likewise.
12115         * math/s_cexpf.c: Likewise.
12116         * math/s_cexpl.c: Likewise.
12117         * math/s_clog.c: Likewise.
12118         * math/s_clog10.c: Likewise.
12119         * math/s_clog10f.c: Likewise.
12120         * math/s_clog10l.c: Likewise.
12121         * math/s_clogf.c: Likewise.
12122         * math/s_clogl.c: Likewise.
12123         * math/s_csin.c: Likewise.
12124         * math/s_csinf.c: Likewise.
12125         * math/s_csinh.c: Likewise.
12126         * math/s_csinhf.c: Likewise.
12127         * math/s_csinhl.c: Likewise.
12128         * math/s_csinl.c: Likewise.
12129         * math/s_csqrt.c: Likewise.
12130         * math/s_csqrtf.c: Likewise.
12131         * math/s_csqrtl.c: Likewise.
12132         * math/s_ctan.c: Likewise.
12133         * math/s_ctanf.c: Likewise.
12134         * math/s_ctanh.c: Likewise.
12135         * math/s_ctanhf.c: Likewise.
12136         * math/s_ctanhl.c: Likewise.
12137         * math/s_ctanl.c: Likewise.
12138         * math/s_ldexp.c: Likewise.
12139         * math/s_ldexpf.c: Likewise.
12140         * math/s_ldexpl.c: Likewise.
12141         * math/s_significand.c: Likewise.
12142         * math/s_significandf.c: Likewise.
12143         * math/s_significandl.c: Likewise.
12144         * math/w_acos.c: Likewise.
12145         * math/w_acosf.c: Likewise.
12146         * math/w_acosh.c: Likewise.
12147         * math/w_acoshf.c: Likewise.
12148         * math/w_acoshl.c: Likewise.
12149         * math/w_acosl.c: Likewise.
12150         * math/w_asin.c: Likewise.
12151         * math/w_asinf.c: Likewise.
12152         * math/w_asinl.c: Likewise.
12153         * math/w_atan2.c: Likewise.
12154         * math/w_atan2f.c: Likewise.
12155         * math/w_atan2l.c: Likewise.
12156         * math/w_atanh.c: Likewise.
12157         * math/w_atanhf.c: Likewise.
12158         * math/w_atanhl.c: Likewise.
12159         * math/w_cosh.c: Likewise.
12160         * math/w_coshf.c: Likewise.
12161         * math/w_coshl.c: Likewise.
12162         * math/w_dremf.c: Likewise.
12163         * math/w_exp10.c: Likewise.
12164         * math/w_exp10f.c: Likewise.
12165         * math/w_exp10l.c: Likewise.
12166         * math/w_exp2.c: Likewise.
12167         * math/w_exp2f.c: Likewise.
12168         * math/w_fmod.c: Likewise.
12169         * math/w_fmodf.c: Likewise.
12170         * math/w_fmodl.c: Likewise.
12171         * math/w_hypot.c: Likewise.
12172         * math/w_hypotf.c: Likewise.
12173         * math/w_hypotl.c: Likewise.
12174         * math/w_j0.c: Likewise.
12175         * math/w_j0f.c: Likewise.
12176         * math/w_j0l.c: Likewise.
12177         * math/w_j1.c: Likewise.
12178         * math/w_j1f.c: Likewise.
12179         * math/w_j1l.c: Likewise.
12180         * math/w_jn.c: Likewise.
12181         * math/w_jnf.c: Likewise.
12182         * math/w_jnl.c: Likewise.
12183         * math/w_lgamma.c: Likewise.
12184         * math/w_lgamma_r.c: Likewise.
12185         * math/w_lgammaf.c: Likewise.
12186         * math/w_lgammaf_r.c: Likewise.
12187         * math/w_lgammal.c: Likewise.
12188         * math/w_lgammal_r.c: Likewise.
12189         * math/w_log.c: Likewise.
12190         * math/w_log10.c: Likewise.
12191         * math/w_log10f.c: Likewise.
12192         * math/w_log10l.c: Likewise.
12193         * math/w_log2.c: Likewise.
12194         * math/w_log2f.c: Likewise.
12195         * math/w_log2l.c: Likewise.
12196         * math/w_logf.c: Likewise.
12197         * math/w_logl.c: Likewise.
12198         * math/w_pow.c: Likewise.
12199         * math/w_powf.c: Likewise.
12200         * math/w_powl.c: Likewise.
12201         * math/w_remainder.c: Likewise.
12202         * math/w_remainderf.c: Likewise.
12203         * math/w_remainderl.c: Likewise.
12204         * math/w_scalb.c: Likewise.
12205         * math/w_scalbf.c: Likewise.
12206         * math/w_scalbl.c: Likewise.
12207         * math/w_sinh.c: Likewise.
12208         * math/w_sinhf.c: Likewise.
12209         * math/w_sinhl.c: Likewise.
12210         * math/w_sqrt.c: Likewise.
12211         * math/w_sqrtf.c: Likewise.
12212         * math/w_sqrtl.c: Likewise.
12213         * math/w_tgamma.c: Likewise.
12214         * math/w_tgammaf.c: Likewise.
12215         * math/w_tgammal.c: Likewise.
12216
12217         * po/ja.po: Update from translation team.
12218
12219 2011-09-29  Andreas Jaeger  <aj@suse.de>
12220
12221         [BZ #13179]
12222         * sunrpc/netname.c (netname2host): Fix logic.
12223
12224         [BZ #6779]
12225         [BZ #6783]
12226         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
12227         correctly.
12228         * math/w_remainder.c (__remainder): Likewise.
12229         * math/w_remainderf.c (__remainderf): Likewise.
12230         * math/libm-test.inc (remainder_test): Add test cases.
12231
12232 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12233
12234         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
12235         sdiv_qrnnd.
12236
12237 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
12238
12239         * string/test-memcmp.c: Avoid unncessary #defines.
12240         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
12241
12242 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12243
12244         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
12245         Use new sse2 version for core i3 - i7 as it's faster
12246         than sse42 version.
12247         (bit_Prefer_PMINUB_for_stringop): New.
12248         * sysdeps/x86_64/rawmemchr.S: Update.
12249         Replace with faster SSE2 version.
12250         * sysdeps/x86_64/memrchr.S: New file.
12251         * sysdeps/x86_64/memchr.S: Update.
12252         Replace with faster SSE2 version.
12253
12254 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
12255
12256         * elf/dl-load.c (lose): Add cast to avoid warning.
12257
12258 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
12259
12260         * po/ca.po: Update from translation team.
12261
12262         * inet/getnetgrent_r.c: Hook up nscd.
12263         * nscd/Makefile (routines): Add nscd_netgroup.
12264         (nscd-modules): Add netgroupcache.
12265         (CFLAGS-netgroupcache.c): Define.
12266         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
12267         (cache_search): Add const to second parameter.
12268         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
12269         INNETGR.
12270         (dbs): Add netgrdb entry.
12271         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
12272         (verify_persistent_db): Handle netgrdb.
12273         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
12274         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
12275         GETFDNETGR.
12276         (netgroup_response_header): Define.
12277         (innetgroup_response_header): Define.
12278         (datahead): Add netgroup_response_header and innetgroup_response_header
12279         elements.
12280         * nscd/nscd.conf: Add entries for netgroup cache.
12281         * nscd/nscd.h (dbtype): Add netgrdb.
12282         (_PATH_NSCD_NETGROUP_DB): Define.
12283         (netgroup_iov_disabled): Declare.
12284         (xmalloc, xcalloc, xrealloc): Move declarations here.
12285         (cache_search): Adjust prototype.
12286         Add netgroup-related prototypes.
12287         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
12288         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
12289         (__nscd_innetgr): Declare.
12290         * nscd/selinux.c (perms): Use access_vector_t as element type and
12291         add netgroup-related initializers.
12292         * nscd/netgroupcache.c: New file.
12293         * nscd/nscd_netgroup.c: New file.
12294         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
12295         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
12296         For four parameters use innetgr.
12297         * nss/nss_files/files-init.c: Add definition and callback for netgr.
12298         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
12299         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
12300         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
12301
12302         * nscd/connections.c (register_traced_file): Don't register file
12303         for disabled databases.
12304
12305 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
12306
12307         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
12308
12309         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
12310         from tree and freeing node.
12311
12312 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
12313
12314         * nss/nsswitch.c (__nss_database_lookup): Handle
12315         nss_parse_service_list out of memory case.
12316
12317 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
12318
12319         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
12320         out of memory case.
12321
12322 2011-10-04  Andreas Schwab  <schwab@redhat.com>
12323
12324         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
12325         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
12326         pass it down.
12327         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
12328         elf_machine_rela, elf_machine_lazy_rel.
12329         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
12330         (ELF_DYNAMIC_DO_REL): Likewise.
12331         (ELF_DYNAMIC_DO_RELA): Likewise.
12332         (ELF_DYNAMIC_RELOCATE): Likewise.
12333         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
12334         to ELF_DYNAMIC_DO_REL.
12335         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
12336         (dl_main): In trace mode always set __RTLD_NOIFUNC.
12337         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
12338         elf_machine_rela.
12339         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
12340         skip_ifunc, don't call ifunc function if non-zero.
12341         (elf_machine_rela): Likewise.
12342         (elf_machine_lazy_rel): Likewise.
12343         (elf_machine_lazy_rela): Likewise.
12344         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12345         (elf_machine_lazy_rel): Likewise.
12346         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12347         Likewise.
12348         (elf_machine_lazy_rel): Likewise.
12349         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12350         Likewise.
12351         (elf_machine_lazy_rel): Likewise.
12352         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
12353         (elf_machine_lazy_rel): Likewise.
12354         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
12355         (elf_machine_lazy_rel): Likewise.
12356         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12357         (elf_machine_lazy_rel): Likewise.
12358         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
12359         (elf_machine_lazy_rel): Likewise.
12360         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
12361         (elf_machine_lazy_rel): Likewise.
12362         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12363         (elf_machine_lazy_rel): Likewise.
12364
12365 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
12366
12367         * nss/nss_files/files-init.c (_nss_files_init): Use static
12368         initialization for all the *_traced_file variables.
12369
12370 2011-09-28  Andreas Schwab  <schwab@redhat.com>
12371
12372         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12373
12374 2011-09-27  Roland McGrath  <roland@hack.frob.com>
12375
12376         [BZ #13226]
12377         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
12378
12379 2011-09-27  Andreas Schwab  <schwab@redhat.com>
12380
12381         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12382         Reread the line before reparsing it.
12383
12384 2011-09-26  Andreas Schwab  <schwab@redhat.com>
12385
12386         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
12387
12388 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
12389             Maxim Kuvyrkov  <maxim@codesourcery.com>
12390             Joseph Myers  <joseph@codesourcery.com>
12391
12392         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
12393         if needed for __stack_chk_guard.
12394
12395 2011-09-19  Roland McGrath  <roland@hack.frob.com>
12396
12397         * sysdeps/posix/spawni.c (script_execute): Always define it.
12398         It will be optimized away if unused.
12399         (maybe_script_execute): New function.
12400         (__spawni): Call it.
12401
12402         * Makerules: Don't include tls.make.
12403         (config-tls): Always set to thread.
12404         * tls.make.c: File removed.
12405
12406 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
12407
12408         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
12409         * config.make.in (CPPFLAGS-config): New substituted variable.
12410
12411 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
12412
12413         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
12414
12415         [BZ #13192]
12416         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
12417         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
12418
12419 2011-09-15  Roland McGrath  <roland@hack.frob.com>
12420
12421         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
12422         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
12423         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
12424         (CALL_FAIL): Likewise.
12425         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
12426         (CALL_FAIL): Macro removed.
12427         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
12428
12429 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
12430
12431         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
12432         for __FINITE_MATH_ONLY__ == 1.
12433
12434 2011-09-15  Andreas Schwab  <schwab@redhat.com>
12435
12436         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
12437         __ieee754_sqrt instead of sqrt.
12438         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
12439         __ieee754_sqrtf instead of sqrtf.
12440         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
12441         __floorf instead of floorf.
12442         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
12443         __floorf, __truncf instead of floorf, truncf.
12444
12445 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
12446
12447         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
12448
12449         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
12450         __extern_always_inline.
12451         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
12452         32-bit.
12453
12454 2011-09-14  Andreas Schwab  <schwab@redhat.com>
12455
12456         * elf/rtld.c (dl_main): Also relocate in dependency order when
12457         doing symbol dependency testing.
12458
12459 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
12460
12461         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12462         Always define `refsym'.
12463
12464 2011-09-13  Andreas Schwab  <schwab@redhat.com>
12465
12466         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
12467         (__FD_ELT): Renamed from __FDELT.
12468         * misc/bits/select2.h (__FD_ELT): Likewise.
12469         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
12470         __FD_MASK instead of __FDELT, __FDMASK.
12471         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
12472         Likewise.
12473         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
12474         Likewise.
12475
12476         * elf/Makefile (gen-ldd): Fix pattern.
12477
12478         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
12479         (init_tls): Likewise.
12480
12481 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
12482
12483         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
12484
12485 2011-09-12  Andreas Schwab  <schwab@redhat.com>
12486
12487         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
12488         `struct cmsghdr *' instead of `void *'.
12489         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
12490         Likewise.
12491
12492 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
12493
12494         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
12495         if non-absolute.
12496         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
12497         ldd_rewrite_script.
12498
12499 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
12500
12501         * configure.in: Remove --with-tls option.
12502         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
12503         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
12504         out in case it is missing.
12505         * sysdeps/ia64/elf/configure.in: Likewise.
12506         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
12507         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
12508         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
12509         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
12510         * sysdeps/sh/elf/configure.in: Likewise.
12511         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
12512         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12513         * sysdeps/x86_64/elf/configure.in: Likewise.
12514         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
12515         * sysdeps/mach/hurd/tls.h: Likewise.
12516
12517         [BZ #13067]
12518         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
12519
12520         [BZ #13090]
12521         * configure.in: Fix use of AC_INIT.
12522
12523         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
12524
12525 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
12526
12527         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
12528         __set_errno.
12529         * malloc/hooks.c: Likewise.
12530
12531         [BZ #11929]
12532         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
12533         variables statically.
12534         (narenas): Initialize.
12535         (list_lock): Initialize.
12536         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
12537         initializtion of main_arena and list_lock.  Small cleanups.
12538         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
12539         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
12540         Add initializers to main_arena and mp_.
12541         (malloc_state): Remove pagesize member.  Change all users to use
12542         GLRO(dl_pagesize).
12543
12544         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
12545         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
12546         is always initialized.
12547
12548         * malloc/malloc.c: Removed unused configurations and dead code.
12549         * malloc/arena.c: Likewise.
12550         * malloc/hooks.c: Likewise.
12551         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
12552
12553         * include/tls.h: Removed.  USE___THREAD must always be defined.
12554         * bits/libc-tsd.h: Don't handle !USE___THREAD.
12555         * elf/dl-libc.c: Likewise.
12556         * elf/dl-tsd.c: Likewise.
12557         * include/errno.h: Likewise.
12558         * include/netdb.h: Likewise.
12559         * include/resolv.h: Likewise.
12560         * inet/herrno-loc.c: Likewise.
12561         * inet/herrno.c: Likewise.
12562         * malloc/arena.c: Likewise.
12563         * malloc/hooks.c: Likewise.
12564         * malloc/malloc.c: Likewise.
12565         * resolv/res-state.c: Likewise.
12566         * resolv/res_libc.c: Likewise.
12567         * sysdeps/i386/dl-machine.h: Likewise.
12568         * sysdeps/ia64/dl-machine.h: Likewise.
12569         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12570         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12571         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12572         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12573         * sysdeps/sh/dl-machine.h: Likewise.
12574         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12575         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12576         * sysdeps/unix/i386/sysdep.S: Likewise.
12577         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
12578         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
12579         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
12580         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
12581         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
12582         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
12583         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
12584         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12585         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12586         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12587         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12588         * sysdeps/x86_64/dl-machine.h: Likewise.
12589         * tls.make.c: Likewise.
12590
12591         * configure.in: Remove --with-__thread option.  Make tests for
12592         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
12593         tls_model attribute fail if no support is available.  Remove
12594         USE_IN_LIBIO.
12595         * Makeconfig: Adjust for dropped configure option.  All features are
12596         now mandatory.
12597         * Makerules: Likewise.
12598         * Versions.def: Likewise.
12599         * argp/argp-fmtstream.c: Likewise.
12600         * argp/argp-fmtstream.h: Likewise.
12601         * argp/argp-help.c: Likewise.
12602         * assert/assert.c: Likewise.
12603         * config.h.in: Likewise.
12604         * config.make.in: Likewise.
12605         * configure: Likewise.
12606         * configure.in: Likewise.
12607         * csu/Versions: Likewise.
12608         * csu/init.c: Likewise.
12609         * elf/tst-audit2.c: Likewise.
12610         * elf/tst-tls10.c: Likewise.
12611         * elf/tst-tls10.h: Likewise.
12612         * elf/tst-tls11.c: Likewise.
12613         * elf/tst-tls12.c: Likewise.
12614         * elf/tst-tls14.c: Likewise.
12615         * elf/tst-tlsmod11.c: Likewise.
12616         * elf/tst-tlsmod12.c: Likewise.
12617         * elf/tst-tlsmod13.c: Likewise.
12618         * elf/tst-tlsmod13a.c: Likewise.
12619         * elf/tst-tlsmod14a.c: Likewise.
12620         * elf/tst-tlsmod15b.c: Likewise.
12621         * elf/tst-tlsmod16a.c: Likewise.
12622         * elf/tst-tlsmod16b.c: Likewise.
12623         * elf/tst-tlsmod7.c: Likewise.
12624         * elf/tst-tlsmod8.c: Likewise.
12625         * elf/tst-tlsmod9.c: Likewise.
12626         * gmon/gmon.c: Likewise.
12627         * grp/fgetgrent_r.c: Likewise.
12628         * grp/putgrent.c: Likewise.
12629         * hurd/fopenport.c: Likewise.
12630         * include/libc-symbols.h: Likewise.
12631         * include/tls.h: Likewise.
12632         * intl/gettextP.h: Likewise.
12633         * intl/loadinfo.h: Likewise.
12634         * locale/global-locale.c: Likewise.
12635         * locale/localeinfo.h: Likewise.
12636         * mach/devstream.c: Likewise.
12637         * malloc/arena.c: Likewise.
12638         * malloc/set-freeres.c: Likewise.
12639         * misc/err.c: Likewise.
12640         * misc/getttyent.c: Likewise.
12641         * misc/mntent_r.c: Likewise.
12642         * posix/getopt.c: Likewise.
12643         * posix/wordexp.c: Likewise.
12644         * pwd/fgetpwent_r.c: Likewise.
12645         * resolv/Versions: Likewise.
12646         * resolv/res_hconf.c: Likewise.
12647         * shadow/fgetspent_r.c: Likewise.
12648         * shadow/putspent.c: Likewise.
12649         * stdio-common/printf_fphex.c: Likewise.
12650         * stdio-common/tmpfile.c: Likewise.
12651         * stdlib/abort.c: Likewise.
12652         * stdlib/fmtmsg.c: Likewise.
12653         * sunrpc/auth_unix.c: Likewise.
12654         * sunrpc/clnt_perr.c: Likewise.
12655         * sunrpc/clnt_tcp.c: Likewise.
12656         * sunrpc/clnt_udp.c: Likewise.
12657         * sunrpc/clnt_unix.c: Likewise.
12658         * sunrpc/openchild.c: Likewise.
12659         * sunrpc/svc_simple.c: Likewise.
12660         * sunrpc/svc_tcp.c: Likewise.
12661         * sunrpc/svc_udp.c: Likewise.
12662         * sunrpc/svc_unix.c: Likewise.
12663         * sunrpc/xdr.c: Likewise.
12664         * sunrpc/xdr_array.c: Likewise.
12665         * sunrpc/xdr_rec.c: Likewise.
12666         * sunrpc/xdr_ref.c: Likewise.
12667         * sunrpc/xdr_stdio.c: Likewise.
12668
12669 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
12670
12671         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12672
12673 2011-07-03  Andreas Jaeger  <aj@suse.de>
12674
12675         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
12676         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
12677         regenerate with gen-libm-tests.pl.
12678
12679 2010-05-12  Petr Baudis  <pasky@suse.cz>
12680
12681         [BZ #11589]
12682         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
12683         around j0() zero points by switching to j1().
12684         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12685         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12686         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12687         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12688
12689 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
12690
12691         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
12692         instead of 0.
12693         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
12694         instead of 0.                              .
12695         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12696         Patch in part by Pavel Roskin <proski@gnu.org>.
12697
12698         [BZ #13138]
12699         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
12700         realloc.
12701         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
12702         Free memory block if necessary.
12703
12704         [BZ #12847]
12705         * libio/genops.c (INTDEF): For string streams the _lock pointer can
12706         be NULL.  Don't lock in this case.
12707
12708 2011-09-09  Roland McGrath  <roland@hack.frob.com>
12709
12710         * elf/elf.h (ELFOSABI_GNU): New macro.
12711         (ELFOSABI_LINUX): Define to that.
12712
12713 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
12714
12715         * string/strncat.c (strncat): Undef the symbol in case it has been
12716         defined in bits/string.h.
12717
12718 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
12719
12720         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
12721
12722         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
12723         link map.
12724
12725 2011-08-17  Andreas Jaeger  <aj@suse.de>
12726
12727         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
12728
12729 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
12730             Ian Lance Taylor  <iant@google.com>
12731
12732         * math/libm-test.inc (lround_test): New testcase.
12733         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
12734
12735 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
12736
12737         * Makefile: Remove support for automatic cvs check-ins.
12738         * Makerules: Likewise.
12739         * config.make.in: Likewise.
12740         * configure.in: Likewise.
12741         * intl/Makefile: Likewise.
12742         * locale/Makefile: Likewise.
12743         * po/Makefile: Likewise.
12744         * posix/Makefile: Likewise.
12745         * sysdeps/gnu/Makefile: Likewise.
12746         * sysdeps/mach/hurd/Makefile: Likewise.
12747         * sysdeps/sparc/sparc32/Makefile: Likewise.
12748
12749         [BZ #13118]
12750         * posix/Makefile (bug-regex32-ENV): Define.
12751         Patch by John Stanley <jpsinthemix@verizon.net>.
12752
12753         * misc/Makefile (headers): Add bits/select2.h.
12754         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
12755         * misc/bits/select2.h: New file.
12756         * include/bits/select2.h: New file.
12757         * debug/Makefile (routines): Add fdelt_chk.
12758         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
12759         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
12760         FD_ISSET.
12761         * debug/fdelt_chk.c: New file.
12762
12763         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
12764         * wcsmbs/test-wmemcmp.c: Likewise.
12765         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
12766         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
12767
12768 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12769
12770         * string/Makefile (strop-tests): Add memcmp.
12771         * string/test-wmemcmp.c: New file.
12772         * string/test-memcmp.c: Add wmemcmp support.
12773
12774 2011-09-08  Roland McGrath  <roland@hack.frob.com>
12775
12776         [BZ #13153]
12777         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
12778         2011-07-19 change.
12779
12780         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
12781         garbage value in a __mach_port_mod_refs call in the cases of the
12782         task-self and thread-self ports.
12783
12784 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12785
12786         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
12787
12788 2011-09-08  Andreas Schwab  <schwab@redhat.com>
12789
12790         * elf/dl-load.c (lose): Check for non-null L.
12791
12792 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
12793
12794         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
12795
12796         * elf/dl-libc.c (dlerror_run): Pass back error code from
12797         dl_catch_error.
12798
12799         [BZ #13123]
12800         * elf/dl-load.c (lose): Free l_origin if it is valid.
12801
12802         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
12803         names.
12804         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
12805         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
12806         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
12807         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
12808         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
12809         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
12810
12811 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12812
12813         * sysdeps/powerpc/fpu/e_hypot.c: New file.
12814         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
12815         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
12816         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
12817         * sysdeps/powerpc/fpu/k_cosf.c: New file.
12818         * sysdeps/powerpc/fpu/k_sinf.c: New file.
12819         * sysdeps/powerpc/fpu/s_cosf.c: New file.
12820         * sysdeps/powerpc/fpu/s_sinf.c: New file.
12821         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
12822         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
12823
12824 2011-08-15  Alan Modra  <amodra@gmail.com>
12825
12826         [BZ #13092]
12827         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
12828         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
12829         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
12830         ppc_mcount to static-only-routines.
12831         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
12832         __mcount_internal.
12833         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
12834         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
12835
12836 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
12837
12838         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
12839         for finite and infinity parameters.
12840
12841 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12842
12843         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
12844         and add nop instructions for throughput optimization.
12845         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
12846
12847 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
12848
12849         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
12850         aligned copy for power7 with vector-scalar instructions.
12851         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
12852
12853 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
12854
12855         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
12856         AVX check.
12857
12858 2011-09-07  Andreas Schwab  <schwab@redhat.com>
12859
12860         [BZ #13144]
12861         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
12862         last change.
12863
12864 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
12865
12866         * sysdeps/unix/sysv/linux/x86_64/init-first.c
12867         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
12868         syscall wrapper around clock_gettime in __vdso_clock_gettime.
12869         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
12870         clock_gettime.
12871
12872 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
12873
12874         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
12875         Forgot to demangle the pointer.
12876
12877         * sysdeps/i386/sysdep.h: Define atom_text_section.
12878         * sysdeps/x86_64/sysdep.h: Likewise.
12879         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
12880         section with atom_text_section.
12881         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
12882         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
12883         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
12884         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
12885         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
12886
12887         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
12888         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
12889         already be defined.  Change to take two parameters and don't assign
12890         result to variable.  Adjust all users.
12891         Define INTERNAL_GETTIME if not already defined.
12892         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
12893         call.
12894         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
12895         HAVE_CLOCK_GETTIME_VSYSCALL.
12896         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
12897
12898         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
12899         gettimeofday vsyscall, just use time.
12900
12901 2011-09-06  Andreas Schwab  <schwab@redhat.com>
12902
12903         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
12904         <errno.h>.
12905
12906 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
12907
12908         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
12909         syscall on x86-64.
12910         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
12911         syscall.
12912         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
12913         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
12914         syscall if possible.
12915
12916 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
12917
12918         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
12919         e_ident.  Don't pass to find_mapsXX.
12920         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
12921
12922 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12923
12924         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12925         strchr-sse2-no-bsf strrchr-sse2-no-bsf
12926         * sysdeps/x86_64/multiarch/strchr.S: Update.
12927         Check bit_slow_BSF bit.
12928         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
12929         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
12930         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
12931
12932 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
12933
12934         [BZ #13134]
12935         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
12936         before glibc 2.15.
12937         (tryshell): Define.
12938         (__spawni): Change last parameter to be flag.  Test
12939         SPAWN_XFLAGS_USE_PATH flag to use path or not.
12940         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
12941         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
12942         * posix/spawni.c: Likewise.
12943         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
12944         * posix/spawnp.c: Likewise.  Change normal version to use
12945         SPAWN_XFLAGS_USE_PATH.
12946         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
12947         SPAWN_XFLAGS_TRY_SHELL.
12948
12949         [BZ #13150]
12950         * posix/glob.h: Remove gcc 1.x support.
12951
12952         [BZ #13068]
12953         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
12954
12955 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12956
12957         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12958         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
12959         strrchr-sse2-bsf
12960         * sysdeps/i386/i686/multiarch/strchr.S: New file.
12961         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
12962         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
12963         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
12964         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
12965         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
12966
12967 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12968
12969         * sysdeps/x86_64/wcscmp.S: New file.
12970
12971         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
12972         wcscmp-c wcscmp-sse2
12973         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
12974         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
12975         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
12976         * wcsmbs/wcscmp.c: Allow renaming.
12977
12978 2011-09-05  David S. Miller  <davem@davemloft.net>
12979
12980         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
12981         stack slot, rather than the struct return pointer slot.
12982         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
12983         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
12984         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
12985         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
12986
12987 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
12988
12989         * po/ja.po: Update from translation team.
12990
12991         [BZ #13144]
12992         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
12993         kernel in 64-bit binaries.
12994
12995 2011-09-01  David S. Miller  <davem@davemloft.net>
12996
12997         * elf/elf.h (HWCAP_SPARC_*): Move to..
12998         * sysdeps/sparc/sysdep.h: this new file and add new values.
12999         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
13000         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
13001         _DL_HWCAP_COUNT to 24.
13002         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
13003         entries.
13004         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
13005         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
13006         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
13007         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
13008         instead of magic constants.
13009         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13010
13011 2011-08-31  David S. Miller  <davem@davemloft.net>
13012
13013         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
13014         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
13015         Reimplement to do errno handling inline.
13016         (SYSCALL_ERROR_HANDLER): New macro.
13017         (__SYSCALL_STRING): Do not do errno handling in asm.
13018         (__CLONE_SYSCALL_STRING): Delete.
13019         (__INTERNAL_SYSCALL_STRING): Delete.
13020         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
13021         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
13022         (PSEUDO): Reimplement to do errno handling inline.
13023         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
13024         (SYSCALL_ERROR_HANDLER): New macro.
13025         (__SYSCALL_STRING): Do not do errno handling in asm.
13026         (__CLONE_SYSCALL_STRING): Delete.
13027         (__INTERNAL_SYSCALL_STRING): Delete.
13028         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
13029         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
13030         i386.
13031         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
13032         (inline_syscall*): Add 'err' argument.
13033         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
13034         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
13035         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
13036         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
13037
13038         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
13039         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
13040
13041 2011-08-30  Andreas Schwab  <schwab@redhat.com>
13042
13043         * elf/rtld.c (dl_main): Relocate objects in dependency order.
13044
13045 2011-08-29  Jiri Olsa <jolsa@redhat.com>
13046
13047         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
13048         directive.
13049
13050 2011-08-24  David S. Miller  <davem@davemloft.net>
13051
13052         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
13053
13054 2011-08-24  Andreas Schwab  <schwab@redhat.com>
13055
13056         * elf/Makefile: Add rules to build and run unload8 test.
13057         * elf/unload8.c: New file.
13058         * elf/unload8mod1.c: New file.
13059         * elf/unload8mod1x.c: New file.
13060         * elf/unload8mod2.c: New file.
13061         * elf/unload8mod3.c: New file.
13062
13063         * elf/dl-close.c (_dl_close_worker): Reset private search list if
13064         it wasn't used.
13065
13066 2011-08-23  David S. Miller  <davem@davemloft.net>
13067
13068         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
13069         subtract stack bias.
13070         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
13071         %sp not %fp in calculations.
13072         (_JMPBUF_UNWINDS_ADJ): Likewise.
13073
13074         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
13075         (aio_suspend): Call it to force an exception region around the
13076         AIO_MISC_WAIT() invocation.
13077
13078 2011-08-23  Andreas Schwab  <schwab@redhat.com>
13079
13080         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
13081         backslash.
13082
13083 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
13084
13085         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
13086         protection macro.
13087         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
13088         and <dl-machine.h>.
13089         (Elf64_FuncDesc): Remove.
13090
13091 2011-08-22  David S. Miller  <davem@davemloft.net>
13092
13093         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
13094         sigaltstack check, add missing cfi directives.
13095         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
13096         missing cfi directives, and sigaltstack handling.
13097
13098 2011-08-16  Andreas Schwab  <schwab@redhat.com>
13099
13100         [BZ #11724]
13101         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
13102         object is seen twice.
13103         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13104
13105         * elf/Makefile (distribute): Add tst-initorder2.c.
13106         (tests): Add tst-initorder2.
13107         (modules-names): Add tst-initorder2a tst-initorder2b
13108         tst-initorder2c tst-initorder2d.  Add rules to build them.
13109         ($(objpfx)tst-initorder2.out): New rule.
13110         * elf/tst-initorder2.c: New file.
13111         * elf/tst-initorder2.exp: New file.
13112
13113 2011-08-22  Andreas Schwab  <schwab@redhat.com>
13114
13115         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
13116
13117         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
13118         dependencies back to end of function.
13119
13120         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
13121         $(elfobjdir)/ld.so.
13122
13123 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
13124
13125         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
13126         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
13127         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
13128         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
13129         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
13130         of __vdso_gettimeofday.
13131         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
13132         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
13133         attribute_hidden.
13134         (_libc_vdso_platform_setup): Remove initialization of
13135         __vdso_gettimeofday and __vdso_time.
13136
13137 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
13138
13139         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
13140         and fgetc_unlocked.
13141         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
13142         getc_unlocked.
13143
13144         * elf/dl-open.c (add_to_global): Report additions to the global scope
13145         for LD_DEBUG=scopes.
13146         (dl_open_worker): Also print scope of newly loaded dependencies.
13147         (_dl_show_scope): Indicate if there is no scope.
13148
13149         [BZ #13114]
13150         * stdio-common/Makefile (tests): Add bug24.
13151         * stdio-common/bug24.c: New file.
13152
13153 2011-08-19  Andreas Jaeger  <aj@suse.de>
13154
13155         [BZ #13114]
13156         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
13157         non-existant file when using close-on-exec mode.
13158
13159 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
13160
13161         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
13162         the very first instruction.
13163
13164         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
13165         the CFI state in the end.
13166         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
13167         inclusion of dl-trampoline.h.
13168         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
13169
13170 2011-08-19  Andreas Schwab  <schwab@redhat.com>
13171
13172         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
13173         expectations for long double.
13174
13175         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
13176         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
13177
13178 2011-08-14  David S. Miller  <davem@davemloft.net>
13179
13180         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
13181         artificual limit depends upon the system page size.
13182
13183 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
13184
13185         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
13186         * resolv/Makefile: Define CFLAGS-libresolv.
13187
13188 2011-08-17  Andreas Schwab  <schwab@redhat.com>
13189
13190         * nss/makedb.c (compute_tables): Make variables used in nested
13191         function static.
13192
13193 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
13194
13195         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
13196         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
13197         if buffer was too small.
13198
13199         * elf/pldd.c (main): Attach to all threads in the process.
13200         Rewrite /proc handling to use *at functions.
13201
13202 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
13203
13204         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
13205         specifies first scope to show.
13206         (dl_open_worker): Update callers.  Move printing scope of new
13207         object to before the relocation.
13208         * elf/rtld.c (dl_main): Update _dl_show_scope call.
13209         * sysdeps/generic/ldsodefs.h: Update declaration.
13210
13211         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
13212         string for the scope number.
13213
13214 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
13215
13216         * nscd/servicescache.c (cache_addserv): Make sure written is always
13217         initialized.
13218
13219 2011-08-14  Roland McGrath  <roland@hack.frob.com>
13220
13221         * sysdeps/i386/i486/bits/atomic.h
13222         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
13223         statement expression, so as to suppress "set but not used" warning.
13224         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
13225
13226         * string/strncat.c (STRNCAT): Use prototype definition.
13227
13228         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
13229         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
13230         -Iprograms here.
13231         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
13232         (localedef-modules): Add localedef.
13233         (locale-modules): Add locale.
13234
13235         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
13236         * elf/rtld.c (dl_main): Invert order of assignment in last change,
13237         to avoid a warning.
13238
13239 2011-08-14  David S. Miller  <davem@davemloft.net>
13240
13241         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
13242         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
13243
13244 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
13245
13246         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
13247         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
13248         * elf/rtld.c (dl_main): Set l_name of vDSO.
13249         Call _dl_show_scope when DL_DEBUG_SCOPES.
13250         (process_dl_debug): Recognize scopes flag and also set it for all.
13251         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
13252         Declare _dl_show_scope.
13253
13254         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
13255         (do_dlopen): Pass caller_dlopen to dl_open.
13256         (__libc_dlopen_mode): Initialize caller_dlopen.
13257
13258         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
13259         of libc.  Make tolower call locale-independent.  Optimize a bit by
13260         using isdigit instead of isalnum.
13261         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
13262
13263 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
13264
13265         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
13266         was a dependency or dynamically loaded.
13267
13268 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
13269
13270         * intl/l10nflist.c: Allow architecture-specific pop function.
13271         * sysdeps/x86_64/l10nflist.c: New file.
13272
13273         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
13274         classification.
13275
13276 2011-08-10  Andreas Schwab  <schwab@redhat.com>
13277
13278         * include/dirent.h: Add libc_hidden_proto for scandirat and
13279         scandirat64.  Don't declare __scandirat64.
13280         * dirent/scandirat.c: Add libc_hidden_def.
13281         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
13282         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
13283
13284 2011-08-10  David S. Miller  <davem@davemloft.net>
13285
13286         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
13287         enum.
13288         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
13289         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
13290         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
13291
13292 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
13293
13294         * Versions.def [libc]: Add GLIBC_2.15.
13295         * dirent/Makefile (routines): Add scandirat and scandirat64.
13296         * dirent/Versions [libc]: Export scandirat and scandirat64 for
13297         GLIBC_2.15.
13298         * dirent/dirent.h: Declare scandirat and scandirat64.
13299         * dirent/scandirat.c: New file.
13300         * dirent/scandirat64.c: New file.
13301         * sysdeps/wordsize-64/scandirat.c: New file.
13302         * sysdeps/wordsize-64/scandirat64.c: New file.
13303         * dirent/opendir.c: Define opendirat.
13304         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
13305         using scandirat.
13306         * dirent/scandir64.c: Adjust for scandir.c change.
13307         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
13308         __scandirat64, and __scandir_cancel_handler.
13309         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
13310         additional parameter and use openat instead of open (outside of ld.so).
13311         Add new __opendir as wrapper around __opendirat.
13312         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
13313         here without requiring old scandirat implementation.
13314
13315 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
13316
13317         * dirent/scandir.c (cancel_handler): Renamed to
13318         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
13319         defined.  Adjust users.
13320         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
13321         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
13322
13323 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
13324
13325         * string/test-string.h (IMPL): Use __STRING to expand name and then
13326         stringify it.
13327
13328         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
13329         of cleanups.
13330
13331 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13332
13333         * string/Makefile: Update.
13334         (strop-tests): Append strncat.
13335         * string/test-wcscmp.c: New file.
13336         New comprehensive test for wcscmp.
13337         * string/test-strcmp.c: Update.
13338         (WIDE): New define.
13339
13340 2011-07-22  Andreas Schwab  <schwab@redhat.com>
13341
13342         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
13343         line.
13344
13345 2011-07-26  Andreas Schwab  <schwab@redhat.com>
13346
13347         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
13348         encoding to ACE if AI_IDN.
13349
13350 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
13351
13352         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
13353         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
13354
13355 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13356
13357         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
13358         Fix overflow bug in strncat.
13359         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
13360
13361         * string/test-strncat.c: Update.
13362         Add new tests for checking overflow bugs.
13363
13364 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13365
13366         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13367         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
13368         * sysdeps/i386/i686/multiarch/strcat.S: New file.
13369         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
13370         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
13371         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
13372         * sysdeps/i386/i686/multiarch/strncat.S: New file.
13373         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
13374         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
13375
13376         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
13377         (USE_AS_STRCAT): Define.
13378         Add strcat and strncat support.
13379         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
13380
13381 2011-07-25  Andreas Schwab  <schwab@redhat.com>
13382
13383         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
13384         __n bigger than INT_MAX+1.
13385         (__strncmp_g): Likewise.
13386
13387 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
13388
13389         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
13390         * libio/stido.h: Likewise.
13391
13392         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
13393         (AF_NFC): Define.
13394         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
13395         (AF_NFC): Define.
13396
13397         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
13398         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
13399         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
13400         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
13401         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
13402
13403         [BZ #13021]
13404         * scripts/test-installation.pl: Don't expect libnss_test1 to be
13405         installed.
13406
13407         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
13408         typo.
13409         (_dl_x86_64_save_sse): Likewise.
13410
13411 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
13412
13413         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
13414         OSXSAVE.
13415         (_dl_x86_64_save_sse): Likewise.
13416
13417         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
13418
13419         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
13420
13421 2011-07-21  Andreas Schwab  <schwab@redhat.com>
13422
13423         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
13424         change.
13425         (_dl_x86_64_save_sse): Use correct AVX check.
13426
13427 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13428
13429         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
13430         bug in strncpy/strncat.
13431         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
13432
13433 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
13434
13435         * string/tester.c (test_strcat): Add tests for different alignments
13436         of source and destination.
13437         (test_strncat): Likewise.
13438
13439 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
13440
13441         [BZ #12852]
13442         * posix/glob.c (glob): Check passed in values before using them in
13443         expressions to avoid some overflows.
13444         (glob_in_dir): Likewise.
13445
13446         [BZ #13007]
13447         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
13448         check for AVX enablement so that we don't crash with old kernels and
13449         new hardware.
13450         * elf/tst-audit4.c: Add same checks here.
13451         * elf/tst-audit6.c: Likewise.
13452
13453         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
13454
13455 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
13456
13457         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
13458
13459 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
13460
13461         * po/cs.po: Update from translation team.
13462         * po/bg.po: Likewise.
13463
13464 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
13465
13466         * misc/sys/cdefs.h: Add support for const attribute.
13467         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
13468         to gnu_dev_{major,minor,makedev} functions.
13469
13470 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
13471
13472         * intl/dcigettext.c (get_output_charset): Add missing bracket.
13473
13474 2011-07-20  Andreas Schwab  <schwab@redhat.com>
13475
13476         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
13477         strlen results.
13478
13479 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13480
13481         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
13482         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
13483         register in order to avoid conflicts with the soft frame pointer
13484         being held in r11 when necessary.
13485         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
13486         (INTERNAL_VSYSCALL_NCS): Likewise.
13487
13488 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
13489
13490         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
13491         * elf/dl-fini.c (_dl_fini): Adjust caller.
13492         * elf/dl-close.c (_dl_close_worker): Likewise.
13493         * sysdeps/generic/ldsodefs.h: Adjust declaration.
13494
13495 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
13496
13497         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
13498         "aux_cache->nlibs < 0".
13499
13500         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
13501         in the reload-count case.
13502
13503 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13504
13505         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13506         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
13507         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
13508         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
13509         * sysdeps/x86_64/multiarch/strcat.S: New file.
13510         * sysdeps/x86_64/multiarch/strncat.S: New file.
13511         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
13512         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
13513         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
13514         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
13515         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
13516         (USE_AS_STRCAT): Define.
13517         Add strcat and strncat support.
13518         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
13519         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
13520         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
13521         * string/strncat.c: Update.
13522         (USE_AS_STRNCAT): Define.
13523         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13524         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
13525         and i7.
13526         * sysdeps/x86_64/multiarch/init-arch.h
13527         (bit_Prefer_PMINUB_for_stringop): New.
13528         (index_Prefer_PMINUB_for_stringop): Likewise.
13529         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
13530         bit_Prefer_PMINUB_for_stringop.
13531
13532 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
13533
13534         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
13535         buffer64.
13536         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
13537         of casting of buffer.
13538         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
13539         buffer32 and buffer64.
13540         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
13541         writes instead of casting of buffer.
13542         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
13543         buffer32.
13544         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
13545         casting of buffer.
13546
13547 2011-07-19  Andreas Schwab  <schwab@redhat.com>
13548
13549         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
13550
13551 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
13552
13553         * nscd/nscd.c (termination_handler): Don't do anything for a database
13554         if it has not yet been initialized.
13555
13556 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
13557
13558         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
13559
13560 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
13561
13562         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
13563
13564 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
13565
13566         * po/nl.po: Update from translation team.
13567         * po/sv.po: Likewise.
13568
13569 2011-07-16  Roland McGrath  <roland@hack.frob.com>
13570
13571         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
13572         now disallowed by GCC.
13573
13574         * configure.in (use-default-link): Default to yes if a test -shared
13575         link meets our qualifications.
13576         * configure: Regenerated.
13577
13578         * config.make.in (output-format): New variable.
13579         * configure.in: Check for ld --print-output-format support.
13580         * configure: Regenerated.
13581         * Makerules ($(common-objpfx)format.lds)
13582         [$(output-format) != unknown]: Just use $(output-format),
13583         instead of the linker-script munging.
13584
13585 2011-07-14  Roland McGrath  <roland@hack.frob.com>
13586
13587         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
13588         of $(common-objpfx)shlib.lds.
13589         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
13590
13591         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
13592         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
13593
13594         * configure.in (-z relro check): Adjust test code to add a large
13595         writable data section after it.
13596         * configure: Regenerated.
13597
13598 2011-07-11  Roland McGrath  <roland@hack.frob.com>
13599
13600         * configure.in (-z relro check): Fix test code to make the variable
13601         truly const.
13602         * configure: Regenerated.
13603
13604 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
13605
13606         * nscd/nscd.h (struct traced_file): Define.
13607         (struct database_dyn): Remove inotify_descr, reset_res, and filename
13608         elements.  Add traced_files.
13609         (inotify_fd): Declare.
13610         (register_traced_file): Declare.
13611         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
13612         (inotify_fd): Export.
13613         (resolv_conf_descr): Remove.
13614         (nscd_init): Move inotify descriptor creation to main.
13615         Don't register files for notification here.
13616         (register_traced_file): New function.
13617         (invalidate_cache): Don't use reset_res to determine whether to call
13618         res_init, go through the list of registered files.
13619         (main_loop_poll): The inotify descriptors are now stored in the
13620         structures for the traced files.
13621         (main_loop_epoll): Likewise
13622         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
13623         to __nss_disable_nscd.
13624         * nscd/cache.c (prune_cache): There is no single inotify descriptor
13625         for a database anymore.  Check the records for all the registered
13626         files instead.
13627         * nss/Makefile (libnss_files-routines): Add files-init.
13628         (libnss_db-routines): Add db-init.
13629         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
13630         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
13631         * nss/nss_db/db-init.c: New file.
13632         * nss/nss_files/files-init.c: New file.
13633         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
13634         __nss_lookup_function.
13635         (__nss_lookup_function): Call nss_load_library.
13636         (nss_load_all_libraries): New function.
13637         (__nss_disable_nscd): Take parameter with callback function for files
13638         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
13639         used for the cached services.
13640         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
13641         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
13642         options for features to all the files in nscd.
13643
13644         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
13645
13646 2011-07-10  Roland McGrath  <roland@hack.frob.com>
13647
13648         * csu/elf-init.c (__libc_csu_init): Comment typo.
13649
13650 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
13651
13652         * po/pl.po: Update from translation team.
13653         * po/ja.po: Likewise.
13654         * po/ru.po: Likewise.
13655         * po/ko.po: Likewise.
13656         * po/fr.po: Likewise.
13657
13658 2011-07-09  Roland McGrath  <roland@hack.frob.com>
13659
13660         * configure.in (.ctors/.dtors header and trailer check):
13661         Use an empirical test on a built program.
13662         * configure: Regenerated.
13663
13664         * configure.in (-z relro check): Use an empirical test on a built DSO.
13665         Detect, but do not require, on ia64.
13666         * configure: Regenerated.
13667
13668         * configure.in (READELF): Find it with AC_CHECK_TOOL.
13669         Update tests that use readelf to use $READELF instead.
13670         * configure: Regenerated.
13671
13672 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
13673
13674         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
13675         if the result is not used.
13676
13677 2011-07-05  Andreas Jaeger  <aj@suse.de>
13678
13679         [BZ#9696]
13680         * stdlib/tst-strtod.c: Add testcase.
13681
13682 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
13683
13684         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
13685         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
13686         The latter has a higher limit.  Take additional parameter to pass to
13687         the new function.
13688         (__pathconf): Pass file to __statfs_link_max.
13689         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
13690         __statfs_link_max.
13691         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
13692         __statfs_link_max.
13693
13694         [BZ #12868]
13695         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
13696         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
13697         Handle Lustre.
13698         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
13699         (__statfs_filesize_max): Likewise.
13700         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
13701
13702 2011-07-05  Andreas Jaeger  <aj@suse.de>
13703
13704         * resolv/res_comp.c (dn_skipname): Remove unused variable.
13705
13706 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
13707
13708         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
13709         `status' variable.
13710         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
13711         Likewise.
13712
13713 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
13714
13715         * Makefile (strop-tests): Add strncat.
13716         * string/test-strncat.c: New file.
13717
13718 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
13719
13720         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
13721
13722 2011-06-21  Andreas Jaeger  <aj@suse.de>
13723
13724         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
13725         Copy rule from iconvdata/Makefile.
13726
13727 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
13728
13729         [BZ #12922]
13730         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
13731         but no long options are defined, just return 'W'.
13732
13733 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
13734
13735         [BZ #9696]
13736         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
13737
13738 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
13739
13740         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
13741         netgroups to read.
13742         (innetgr): Likewise.
13743
13744 2011-07-05  Roland McGrath  <roland@hack.frob.com>
13745
13746         * config.make.in (install_root): Default to $(DESTDIR).
13747
13748 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
13749
13750         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
13751
13752 2011-07-02  Roland McGrath  <roland@hack.frob.com>
13753
13754         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
13755
13756         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
13757         containing directory rather than embedding absolute directory names.
13758
13759         * scripts/check-local-headers.sh: Rewritten using awk.
13760         Match by word, not by line.  Print error messages for matches.
13761         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
13762
13763         * Makerules [shlib-lds-flags empty]:
13764         ($(common-objpfx)libc_pic.opts): New target.
13765         ($(common-objpfx)libc_pic.os.clean): New target.
13766         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
13767
13768         * config.make.in (OBJCOPY): New variable.
13769         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
13770         * configure: Regenerated.
13771
13772         * config.make.in (use-default-link): New variable.
13773         * configure.in (use_default_link): Grok --with-default-link to set it.
13774         * configure: Regenerated.
13775         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
13776         (shlib-lds, shlib-lds-flags): Define to empty.
13777
13778         * Makerules (shlib-lds): New variable.
13779         (shlib-lds-flags): New variable.
13780         (build-shlib, build-moduile, build-module-asneeded): Use it.
13781         ($(common-objpfx)libc.so): Use $(shlib-lds).
13782         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
13783         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
13784
13785         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
13786         DT_FLAGS/DT_FLAGS_1 with zero flags.
13787
13788         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
13789         linker script munging.
13790
13791 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
13792
13793         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
13794         as 128-bit value.
13795         * crypt/sha512.c (sha512_process_block): Perform total addition using
13796         128-bit if possible.
13797         (__sha512_finish_ctx): Likewise.
13798         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
13799         as 64-bit value.
13800         * crypt/sha256.c (SWAP64): Define.
13801         (sha256_process_block): Perform total addition using 64-bit if
13802         possible.
13803         (__sha256_finish_ctx): Likewise.
13804
13805 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
13806
13807         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
13808         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13809         * nscd/hstcache.c (cache_addhst): Likewise.
13810         * nscd/grpcache.c (cache_addgr): Likewise.
13811         * nscd/aicache.c (addhstaiX): Likewise
13812         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
13813
13814 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
13815
13816         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
13817         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13818         * nscd/hstcache.c (cache_addhst): Likewise.
13819         * nscd/grpcache.c (cache_addgr): Likewise.
13820         * nscd/aicache.c (addhstaiX): Likewise
13821
13822 2011-07-01  Andreas Schwab  <schwab@redhat.com>
13823
13824         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
13825         domain only when needed.
13826
13827 2011-06-30  Andreas Schwab  <schwab@redhat.com>
13828
13829         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
13830         is always restored.
13831
13832 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
13833
13834         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
13835         are re-adding the entry.
13836         * nscd/servicescache.c (cache_addserv): Likewise.
13837
13838 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
13839
13840         * sysdeps/generic/dl-irel.h: fix protection against multiple
13841         inclusions.
13842         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
13843
13844 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
13845
13846         [BZ #12935]
13847         * malloc/memusage.sh: Fix quoting in message.
13848         * debug/xtrace.sh: Likewise.
13849
13850         * configure.in: Remove support for --experimental-malloc option, make
13851         it the default.
13852         * config.make.in: Likewise.
13853         * malloc/Makefile: Likewise.
13854
13855 2011-06-27  Andreas Schwab  <schwab@redhat.com>
13856
13857         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
13858         two-byte characters.
13859
13860 2011-06-27  Roland McGrath  <roland@hack.frob.com>
13861
13862         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
13863         AC_CACHE_CHECK invocation.
13864         * configure: Regenerated.
13865
13866         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
13867
13868 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
13869
13870         [BZ #12350]
13871         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
13872         bit from old_res_options.
13873
13874         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
13875
13876         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
13877         value type for setfct.
13878
13879 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
13880
13881         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
13882         __gettimeofday instead of gettimeofday.
13883
13884 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
13885
13886         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
13887
13888 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
13889
13890         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
13891
13892         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
13893         info.
13894
13895 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13896
13897         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13898         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
13899         strcpy-sse2-unaligned strncpy-sse2-unaligned
13900         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
13901         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
13902         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
13903         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
13904         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
13905         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
13906         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
13907         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
13908         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
13909         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
13910         (STRCPY): Support SSE2 and SSSE3 versions.
13911
13912 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
13913
13914         [BZ #12874]
13915         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
13916         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
13917         kernels which artificially limit size of requests.
13918
13919 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13920
13921         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13922         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
13923         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
13924         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
13925         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
13926         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
13927         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
13928         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
13929         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
13930         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
13931         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
13932         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
13933         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
13934         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
13935         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
13936         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13937         Enable unaligned load optimization for Intel Core i3, i5 and i7
13938         processors.
13939         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
13940         Define.
13941         (index_Fast_Unaligned_Load): Define.
13942         (HAS_FAST_UNALIGNED_LOAD): Define.
13943
13944 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
13945
13946         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
13947
13948 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
13949
13950         [BZ #12907]
13951         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
13952         until it is clear that the information is realy needed.
13953         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
13954
13955 2011-06-22  Andreas Schwab  <schwab@redhat.com>
13956
13957         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
13958
13959 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
13960
13961         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
13962         /sys/devices/system/cpu/online if it is usable.
13963
13964         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
13965         reading the information from the /proc filesystem to once a second.
13966
13967 2011-06-21  Andreas Jaeger  <aj@suse.de>
13968
13969         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
13970         NULL after inclusion of kernel headers.
13971
13972 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
13973
13974         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
13975         calls to internal_setent.
13976
13977         [BZ #12885]
13978         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
13979         addresses using gethostbyname4_r ignore IPv4 addresses.
13980
13981         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
13982         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
13983
13984         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
13985
13986 2011-06-20  David S. Miller  <davem@davemloft.net>
13987
13988         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
13989         inclusions.
13990         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
13991
13992         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
13993         (elf_irel): Use it.
13994         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
13995         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
13996         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
13997         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
13998         * sysdeps/x86_64/dl-irel.h: Likewise.
13999
14000         * elf/dl-runtime.c: Use elf_ifunc_invoke.
14001         * elf/dl-sym.c: Likewise.
14002
14003 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
14004
14005         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
14006         need to dereference resplen2.
14007
14008 2011-06-14  Andreas Schwab  <schwab@redhat.com>
14009
14010         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
14011
14012 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
14013
14014         * Makeconfig: Define vardbdir and inst_vardbdir.
14015         * nss/Makefile: Add rules to install db-Makefile.
14016
14017         * nss/nss_db/db-XXX.c: Cleanup.
14018
14019         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
14020         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
14021         GLIBC_PRIVATE.
14022         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
14023         * nss/makedb.c: Implement -g option to specify that value strings
14024         are generated and should not be added to table iterated over for
14025         get*ent calls.
14026         * nss/nss_db/db-initgroups.c: New file.
14027
14028         * nss/getent.c: Add support for initgroups lookups through getgrouplist
14029         interface.
14030
14031         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
14032         (internal_getgrouplist): Adjust to name change.
14033         Update use_initgroups_entry if this is not the first call.
14034         * nss/databases.def: Add initgroups entry.
14035
14036         * nss/makedb.c (compute_tables): Check result of multiple hash table
14037         sizes to minimize maximum chain length.
14038
14039 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
14040
14041         * Versions.def: Add entry for libnss_db.
14042         * shlib-versions: Likewise.
14043         * nss/Makefile: Add rules to build libnss_db.
14044         * nss/Versions: Add libnss_db information.  Organize libnss_files
14045         entries better.
14046         * nss/db-Makefile: Add gshadow support.  Change rules for the new
14047         makedb progra.  Some minor improvements to generate smaller files.
14048         * nss/nss_db/nss_db.h: Move NSS database header data structures to
14049         here from...
14050         * nss/makedb.c: ...here.
14051         Improve database format to be smaller and require less memory at
14052         runtime.
14053         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
14054         db anymore.
14055         * nss/nss_db/db-netgrp.c: Likewise.
14056         * nss/nss_db/db-open.c: Likewise.
14057         * nss/nss_files/flies-XXX.x: Adjust comments.
14058         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
14059         * nss/nss_files/files-grp.c: Likewise.
14060         * nss/nss_files/files-hosts.c: Likewise.
14061         * nss/nss_files/files-network.c: Likewise.
14062         * nss/nss_files/files-proto.c: Likewise.
14063         * nss/nss_files/files-pwd.c: Likewise.
14064         * nss/nss_files/files-rpc.c: Likewise.
14065         * nss/nss_files/files-service.c: Likewise.
14066         * nss/nss_files/files-sgrp.c: Likewise.
14067         * nss/nss_files/files-spwd.c: Likewise.
14068         * nss/nss_db/db-alias.c: Removed.
14069         * nss/nss_db/dummy-db.h: Removed.
14070
14071 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
14072
14073         * nss/makedb.c: Rewritten to not use database library.
14074         * nss/Makefile: Update to build new makedb program.
14075
14076 2011-06-14  Andreas Jaeger  <aj@suse.de>
14077
14078         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
14079         memset declaration.
14080
14081 2011-06-10  Andreas Schwab  <schwab@redhat.com>
14082
14083         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
14084         tmpbuf.
14085
14086 2011-06-10  Roland McGrath  <roland@hack.frob.com>
14087
14088         * Makerules (shlib.lds): Fail if the linker script comes out empty.
14089         * elf/Makefile ($(objpfx)ld.so): Likewise.
14090
14091         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
14092         Don't list ld.so twice in dependencies.
14093
14094         * posix/bug-regex31.c: Include <stdlib.h>.
14095
14096         * nscd/hstcache.c (cache_addhst): Remove unused variable.
14097
14098         * nis/nss_compat/compat-spwd.c
14099         (getspent_next_nss_netgr): Remove unused variable.
14100         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
14101
14102         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
14103         nonmembers" output to use the right array.
14104
14105         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
14106
14107         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
14108
14109         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
14110         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
14111         * catgets/gencat.c (read_input_file): Likewise.
14112         * locale/programs/locarchive.c (enlarge_archive): Likewise.
14113
14114         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
14115         variable definition inside #if's controlling its use.
14116
14117         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
14118
14119         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
14120
14121         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
14122
14123         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
14124         unreachable code.
14125
14126         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
14127
14128         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
14129         * configure: Regenerated.
14130
14131         * Makerules: Revert last change.
14132         * elf/Makefile: Likewise.
14133
14134 2011-06-09  Roland McGrath  <roland@hack.frob.com>
14135
14136         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
14137         * elf/Makefile ($(objpfx)librtld.os): Likewise.
14138         (reloc-link): Likewise.
14139
14140 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
14141
14142         * elf/Makefile: Add rules to build pldd.
14143         * elf/pldd.c: New file.
14144         * elf/pldd-xx.c: New file.
14145
14146 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
14147
14148         * version.h: Update for 2.15 development version.
14149
14150 2011-06-07  David S. Miller  <davem@davemloft.net>
14151
14152         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
14153         ifuncs.
14154         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
14155         elf_machine_lazy_rel): Likewise.
14156         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
14157         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
14158         elf_machine_lazy_rel): Likewise.
14159         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
14160         dl_hwcap via passed in argument.
14161         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
14162         Likewise.
14163
14164 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14165
14166         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
14167
14168 2011-06-06  Roland McGrath  <roland@hack.frob.com>
14169
14170         [BZ #12849]
14171         * manual/fdl-1.1.texi: New file, verbatim from:
14172         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
14173         * manual/lgpl-2.1.texi: New file, verbatim from:
14174         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
14175         * manual/Makefile (licenses): New variable, list those new file names.
14176         (texis): Use it.
14177         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
14178
14179         * manual/fdl.texi: File removed.
14180         * manual/lesser.texi: File removed.
14181         * manual/libc.texinfo (Copying, Documentation License):
14182         Use new @include file names, put @appendix directive before @include.
14183
14184 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
14185
14186         [BZ #12841]
14187         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
14188         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
14189         (mq_open): Add __NTH.
14190
14191 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
14192
14193         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14194         Assume Intel Core i3/i5/i7 processor if AVX is available.
14195
14196 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
14197
14198         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
14199         typo.
14200
14201 2011-05-31  Andreas Schwab  <schwab@redhat.com>
14202
14203         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
14204         memory.  Use alloca_account.  Fix memory leak when retrying.
14205
14206 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
14207
14208         * version.h (RELEASE): Bump for 2.14 release.
14209         * include/features.h (__GLIBC_MINOR__): Bump to 14.
14210
14211         * config.make.in (RANLIB): Remove entry.
14212
14213 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
14214
14215         * po/Makefile (po-sed-cmd): Add ksh to extensions.
14216         (libc.pot): Work around missing support for .ksh extension in xgettext.
14217
14218         [BZ #12684]
14219         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
14220         if both request failed.
14221         (send_dg): In case of server errors clear resplen or *resplen2.
14222
14223         [BZ #12454]
14224         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
14225         when there are multiple maps.
14226         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
14227         (_dl_fini): Remove test here.
14228
14229         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
14230
14231 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
14232
14233         [BZ #12350]
14234         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
14235         bit from old_res_options.
14236         (gaih_inet): Likewise.
14237
14238         [BZ #11099]
14239         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
14240         as signed.
14241
14242         * resolv/res_init.c (res_setoptions): Make the code more compact.
14243
14244         [BZ #11558]
14245         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
14246         set RES_USEVC.
14247
14248         [BZ #11634]
14249         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
14250
14251         * malloc/malloc.h: Mark malloc hook variables as deprecated.
14252
14253         [BZ #11781]
14254         * malloc/malloc.h: Declare malloc hook variables as volatile.
14255
14256         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
14257         in last patch.
14258
14259         [BZ #11799]
14260         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
14261         raise in the comment.
14262         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
14263         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
14264         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
14265
14266 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
14267
14268         [BZ #12811]
14269         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
14270         grow the buffers more if it already has to be sufficient.
14271         (build_wcs_upper_buffer): Likewise.
14272         * posix/regexec.c (check_matching): Likewise.
14273         (clean_state_log_if_needed): Likewise.
14274         (extend_buffers): Don't enlarge buffers beyond size of the input
14275         buffer.
14276         Patches mostly by Emil Wojak <emil@wojak.eu>.
14277         * posix/bug-regex32.c: New file.
14278         * posix/Makefile (tests): Add bug-regex32.
14279
14280         * locale/findlocale.c (_nl_find_locale): Return right away if
14281         _nl_explode_name failed.
14282         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
14283
14284         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
14285
14286         * debug/xtrace.sh: Unify messages.
14287         * malloc/memusage.sh: Likewise.
14288
14289         [BZ #12813]
14290         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
14291         time symbol from vDSO.  Substitute with vsyscall if not available.
14292         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
14293         __vdso_time.
14294
14295         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
14296         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
14297         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
14298         Add sendmmsg and internal_sendmmsg.
14299         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
14300         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
14301         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
14302
14303         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
14304         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
14305         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
14306
14307 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
14308
14309         [BZ #12813]
14310         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
14311         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
14312         available.
14313         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
14314         __vdso_getcpu.
14315
14316         [BZ #12814]
14317         * iconvdata/Makefile (tests): Add bug-iconv9.
14318         * iconvdata/bug-iconv9.c: New file.
14319
14320 2011-05-27  Andreas Schwab  <schwab@redhat.com>
14321
14322         [BZ #12814]
14323         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
14324
14325 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
14326
14327         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
14328         (struct user_regs_struct): Change intcs field back to cs.
14329
14330 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
14331
14332         * po/ja.po: Update from translation team.
14333
14334 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
14335
14336         [BZ #12795]
14337         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
14338         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
14339
14340 2011-05-20  Andreas Schwab  <schwab@redhat.com>
14341
14342         * stdlib/longlong.h: Update from GCC.
14343
14344 2011-05-23  Andreas Schwab  <schwab@redhat.com>
14345
14346         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
14347         parameter name.
14348         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
14349         Add parameter name.
14350         (__sysconf): Pass it down.
14351
14352 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
14353
14354         [BZ #12671]
14355         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
14356         some situations.
14357         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
14358         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
14359         add in in __libc_use_alloca calls.  Adjust callers.
14360         (glob): Use malloc in some situations.
14361
14362         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
14363         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
14364         pltexit.
14365
14366 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
14367
14368         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
14369         and CLOCK_BOOTTIME_ALARM.
14370
14371         [BZ #12782]
14372         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
14373         is returned.
14374
14375         * string/_strerror.c (__strerror_r): Print negative errors as signed
14376         numbers.
14377
14378         [BZ #12777]
14379         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
14380         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
14381         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
14382
14383         * configure.in: Fix typo in redirection and correct removal of test
14384         files in two cases.
14385
14386         [BZ #12788]
14387         * locale/setlocale.c (new_composite_name): Fix test to check for
14388         identical name of all categories.
14389
14390         [BZ #12792]
14391         * libio/filedoalloc.c (local_isatty): New function.
14392         (_IO_file_doallocate): Use local_isatty.
14393         * stdio-common/perror.c (perror): In case a new stream is used
14394         forward the stream error.
14395         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
14396         error flag.
14397
14398 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
14399
14400         [BZ #11869]
14401         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
14402         alloca.
14403         * include/alloca.h (extend_alloca_account): Define.
14404
14405         [BZ #11857]
14406         * posix/regex.h: Fix comments with documentation of user-accessible
14407         fields after compilation and describe correct free'ing of pattern
14408         after re_compile_pattern.
14409         Patch by Reuben Thomas <rrt@sc3d.org>.
14410
14411 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
14412
14413         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
14414         and -mno-altivec to prevent the compiler from using Altivec and/or
14415         VSX instructions when the corresponding registers are not available.
14416
14417 2011-05-19  Andreas Schwab  <schwab@redhat.com>
14418
14419         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
14420
14421 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
14422
14423         * libio/freopen.c (freopen): Use __dup2, not dup2.
14424         * libio/freopen64.c (freopen64): Likewise.
14425
14426 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14427
14428         [BZ #12775]
14429         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
14430         * math/Makefile (tests): Add test-powl.
14431         (CFLAGS-test-powl.c): Define.
14432         * math/test-powl.c: New file.
14433
14434 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14435
14436         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
14437
14438 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
14439
14440         [BZ #11837]
14441         * iconvdata/gb18030.c: Update to GB18020-2005.
14442
14443 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
14444
14445         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
14446         RE_SYNTAX_POSIX_AWK): Update to match recent development.
14447         Patch by Aharon Robbins <arnold@skeeve.com>.
14448
14449         [BZ #11892]
14450         * stdlib/putenv.c (putenv): Don't always create copy of the variable
14451         on the stack.
14452
14453         [BZ #11895]
14454         * misc/pselect.c (__pselect): Handle timeout value errors hidden
14455         through underflows.
14456
14457         [BZ #12766]
14458         * misc/error.c (error_at_line): Ensure file_name and old_file_name
14459         point to strings before performing equality test for error_one_per_line
14460         mode.
14461
14462         [BZ #11697]
14463         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
14464
14465         [BZ #11820]
14466         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
14467         (struct user_fpregs_struct): Avoid __uint*_t types.
14468
14469         [BZ #6420]
14470         * malloc/mtrace.c (tr_where): Add additional parameter to point to
14471         symbol info.  Use it instead of calling _dl_addr locally.
14472         (lock_and_info): New function.
14473         (tr_freehook): Call lock_and_info and pass symbol info as additional
14474         parameter to tr_where.
14475         (tr_mallochook): Likewise.
14476         (tr_reallochook): Likewise.
14477         (tr_memalignhook): Likewise.
14478
14479         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
14480         used and couldn't be at all thread-safe.
14481
14482 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
14483
14484         * libio/freopen.c (freopen): Don't close old file descriptor
14485         before the new one is opened.  Instead dup the new file descriptor
14486         to the old one after the new stream is created.
14487         * libio/freopen64.c (freopen64): Likewise.
14488         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
14489         * libio/fileops.c (_IO_new_file_close_it): Handle new
14490         _IO_FLAGS2_NOCLOSE flag.
14491         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
14492         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
14493         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
14494         _IO_FLAGS2_NOCLOSE flag.
14495         * include/unistd.h: Add hidden_proto for dup3.
14496         Define __have_dup3.
14497         * io/dup3.c: Define hidden symbol.
14498         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
14499
14500         [BZ #7101]
14501         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
14502         when an incomplete long option is used.
14503         * posix/tst-getopt_long1.c: New file.
14504         * posix/Makefile (tests): Add tst-getopt_long1.
14505
14506         [BZ #10138]
14507         * scripts/config.guess: Update from autoconf-2.68.
14508         * scripts/config.sub: Likewise.
14509
14510         [BZ #10157]
14511         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
14512         tests into ...
14513         (has_cpuclock): ...this.  New function.
14514         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
14515         macro here based on has_cpuclock code.
14516
14517         [BZ #10149]
14518         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
14519         First byte (not low byte) is now always NUL.
14520         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
14521
14522         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
14523         Use non-cancelable interfaces.
14524
14525         [BZ #9809]
14526         * locale/iso-639.def: Add entry for Sorani.
14527
14528         [BZ #11901]
14529         * include/stdlib.h: Move include protection to the right place.
14530         Define abort_msg_s.  Declare __abort_msg with it.
14531         * stdlib/abort.c (__abort_msg): Adjust type.
14532         * assert/assert.c (__assert_fail_base): New function.  Majority
14533         of code from __assert_fail.  Allocate memory for __abort_msg with
14534         mmap.
14535         (__assert_fail): Now call __assert_fail_base.
14536         * assert/assert-perr.c: Remove bulk of implementation.  Use
14537         __assert_fail_base.
14538         * include/assert.hL Declare __assert_fail_base.
14539         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
14540         mmap.
14541         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
14542
14543 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
14544
14545         [BZ #11952]
14546         [BZ #12453]
14547         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
14548         until all modules are registered in the DTV.
14549         * elf/Makefile: Add rules to build and run tst-tls19.
14550         * elf/tst-tls19.c: New file.
14551         * elf/tst-tls19mod1.c: New file.
14552         * elf/tst-tls19mod2.c: New file.
14553         * elf/tst-tls19mod3.c: New file.
14554         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
14555
14556         [BZ #12083]
14557         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
14558         correctly.
14559
14560         [BZ #12601]
14561         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
14562         two-byte sequence errors.
14563         * iconvdata/Makefile (tests): Add bug-iconv8.
14564         * iconvdata/bug-iconv8.c: New file.
14565
14566         [BZ #12626]
14567         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
14568         buf2 definition.
14569
14570         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
14571
14572         [BZ #12432]
14573         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
14574         (dummy_getcfa): New function.
14575         (init): Get _Unwind_GetCFA address, use dummy if not found.
14576         (backtrace_helper): In recursion check, also check whether CFA changes.
14577         (__backtrace): Completely initialize arg.
14578
14579         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
14580         storing incomplete byte sequence in state object.  Avoid testing for
14581         guaranteed too small input if we know there is enough data available.
14582
14583 2011-05-11  Andreas Schwab  <schwab@redhat.com>
14584
14585         * Makeconfig (+link-pie): Indent.
14586         * Rules (binaries-pie): Define if $(have-fpie) and
14587         $(build-shared).
14588         (binaries-shared): Also filter out $(binaries-pie).
14589         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
14590         * nscd/Makefile (others-pie): Add nscd.
14591         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
14592         ($(objpfx)nscd): Remove command override.
14593         * login/Makefile (others-pie): Add pt_chown.
14594         ($(objpfx)pt_chown): Remove command override.
14595         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
14596         remove command overrides.
14597
14598 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
14599
14600         * libio/tst_putwc.c: Fix error messages.
14601
14602         [BZ #12724]
14603         * libio/fileops.c (_IO_new_file_close_it): Always flush when
14604         currently writing and seek to current position when not.
14605         * libio/Makefile (tests): Add bug-fclose1.
14606         * libio/bug-fclose1.c: New file.
14607
14608 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
14609
14610         [BZ #12511]
14611         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
14612         don't set DF_1_NODELETE here.
14613         (do_lookup_x): When entering new entry test for copy relocation
14614         and if necessary set DF_1_NODELETE flag.
14615         * elf/tst-unique4.cc: New file.
14616         * elf/tst-unique4.h: New file.
14617         * elf/tst-unique4lib.cc: New file.
14618         * elf/Makefile: Add rules to build and run tst-unique4.
14619         Patch by Piotr Bury <pbury@goahead.com>.
14620
14621 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
14622
14623         [BZ #12052]
14624         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
14625
14626         [BZ #12625]
14627         * misc/mntent_r.c (addmntent): Flush the stream after the output
14628
14629         [BZ #12393]
14630         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
14631         (is_trusted_path_normalize): Skip initial colon.  Append slash
14632         to empty buffer.  Duplicate is_trusted_path code but allow
14633         constructed patch to be prefix.
14634         (is_dst): Allow $ORIGIN followed by /.
14635         (_dl_dst_substitute): Correct clearing of check_for_trusted.
14636         Correct testing of result of is_trusted_path_normalize
14637         (decompose_rpath): Fix warning.
14638
14639 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
14640
14641         [BZ #11257]
14642         * grp/initgroups.c (internal_getgrouplist): When we found the service
14643         list through the initgroups entry in nsswitch.conf do not always
14644         continue on a successful lookup.  Don't always use the
14645         __nss_group_database value if it is set.
14646         * nss/nsswitch.conf (initgroups): Change action for successful db
14647         lookup to continue for compatibility.
14648
14649 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
14650
14651         [BZ #11532]
14652         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
14653         and CP774 modules.
14654         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
14655         and CP774 modules.
14656         * iconvdata/tst-tables.sh: Likewise.
14657         * iconvdata/cp770.c: New file.
14658         * iconvdata/cp771.c: New file.
14659         * iconvdata/cp772.c: New file.
14660         * iconvdata/cp773.c: New file.
14661         * iconvdata/cp774.c: New file.
14662         * iconvdata/testdata/CP770: New file.
14663         * iconvdata/testdata/CP770..UTF8: New file.
14664         * iconvdata/testdata/CP771: New file.
14665         * iconvdata/testdata/CP771..UTF8: New file.
14666         * iconvdata/testdata/CP772: New file.
14667         * iconvdata/testdata/CP772..UTF8: New file.
14668         * iconvdata/testdata/CP773: New file.
14669         * iconvdata/testdata/CP773..UTF8: New file.
14670         * iconvdata/testdata/CP774: New file.
14671         * iconvdata/testdata/CP774..UTF8: New file.
14672
14673         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
14674         END CHARMAP line.
14675         * iconvdata/gen-8bit-gap.sh: Likewise.
14676         * iconvdata/gen-8bit.sh: Likewise.
14677
14678         * locale/iso-639.def: Add ary entry.
14679
14680         [BZ #11258]
14681         * locale/C-translit.h.in: Add U20A1 transliteration.
14682
14683         [BZ #12178]
14684         * locale/iso-639.def: Add wae entry.
14685         Patch by Kevin Bortis <bortis@translate-wae.ch>.
14686
14687         [BZ #12545]
14688         * locale/programs/localedef.c (construct_output_path): Use ssize_t
14689         for n.
14690
14691         [BZ #12711]
14692         * locale/C-translit.h.in: Add entry for U20B9.
14693         Patch by pravin.d.s@gmail.com.
14694
14695 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
14696
14697         [BZ #12713]
14698         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
14699         ENAMETOOLONG use generic getcwd.
14700         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
14701         in rtld.  Use *stat64.
14702         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
14703         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
14704         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
14705         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
14706         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
14707         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
14708         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
14709         __fstatat64 macros.
14710         * include/dirent.h: Add libc_hidden_proto for rewinddir.
14711         * dirent/rewinddir.c: Add libc_hidden_def.
14712         * sysdeps/mach/hurd/rewinddir.c: Likewise.
14713         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
14714
14715         * include/dirent.h (__alloc_dir): Add flags parameter.
14716         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
14717         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
14718         __alloc_dir.
14719         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
14720         from fdopendir if O_CLOEXEC is already set.
14721
14722 2011-03-15  Alan Modra  <amodra@gmail.com>
14723
14724         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
14725         l_tls_firstbyte_offset non-zero.  Save padding offset in
14726         l_tls_firstbyte_offset for later use.
14727         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
14728         freeing static tls block.
14729
14730 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
14731
14732         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
14733         where #ifdef was intended.  The intent is to prevent ARG_MAX from
14734         being defined by the kernel headers.
14735
14736 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
14737
14738         [BZ #12734]
14739         * resolv/resolv.h: Define RES_NOTLDQUERY.
14740         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
14741         no-tld-query and set RES_NOTLDQUERY.
14742         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
14743         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
14744         modern BIND to search name as TLD unless forbidden.
14745
14746 2011-05-07  Petr Baudis  <pasky@suse.cz>
14747             Ulrich Drepper  <drepper@gmail.com>
14748
14749         [BZ #12393]
14750         * elf/dl-load.c (fillin_rpath): Move trusted path check...
14751         (is_trusted_path): ...to here.
14752         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
14753         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
14754         using is_trusted_path_normalize() in setuid scripts.
14755
14756 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14757
14758         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
14759         __BEGIN/__END_DECLS.
14760
14761 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
14762
14763         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
14764         NSS_STATUS_NOTFOUND if no record was found.
14765
14766 2011-05-05  Andreas Schwab  <schwab@redhat.com>
14767
14768         * sunrpc/Makefile (headers): Add rpc/netdb.h.
14769         (headers-not-in-tirpc): Remove rpc/netdb.h
14770         * resolv/netdb.h: Revert last change.
14771
14772 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14773
14774         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
14775         circular dependency between libgcc.a and libc.a.
14776
14777 2011-05-05  Andreas Schwab  <schwab@redhat.com>
14778
14779         * resolv/netdb.h: Don't include <rpc/netdb.h>.
14780         * nis/Makefile: Don't install rpcsvc/*.
14781         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
14782         instead of <rpc/types.h>.
14783         (MAXHOSTNAMELEN): Define.
14784
14785 2011-05-03  Andreas Schwab  <schwab@redhat.com>
14786
14787         * elf/ldconfig.c (add_dir): Don't crash on empty path.
14788
14789 2011-04-28  Maciej Babinski  <mbabinski@google.com>
14790
14791         [BZ #12714]
14792         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
14793         gethostbyname4_r when IPv6 results are possible.
14794
14795 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
14796
14797         [BZ #12723]
14798         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
14799         _PC_PIPE_BUF handling.
14800
14801 2011-04-30  Bruno Haible  <bruno@clisp.org>
14802
14803         [BZ #12717]
14804         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
14805         * resolv/netdb.h (getnameinfo): Change type of flags parameter
14806         to 'int'.
14807         * inet/getnameinfo.c (getnameinfo): Likewise.
14808
14809 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
14810
14811         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
14812         to groups setting in database lookup.
14813         * nss/nsswitch.conf: Add initgroups entry.
14814
14815 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
14816
14817         [BZ #12685]
14818         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
14819         mode string.
14820         Patch by Eric Blake <eblake@redhat.com>.
14821
14822 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
14823
14824         * sunrpc/Makefile (need-export-routines): Add svc_run.
14825         (routines): Remove svc_run.
14826         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
14827         * sunrpc/clnt_perr.c (clnt_perrno): Export.
14828         * sunrpc/svc_run.c (svc_run): Likewise.
14829         * sunrpc/svc_udp.c (svcudp_create): Likewise.
14830
14831 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
14832
14833         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
14834         problem in reallocation in last patch.
14835
14836 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
14837
14838         * sunrpc/Makefile: Move inclusion of Rules.
14839
14840 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
14841
14842         * nss/nss_files/files-initgroups.c: New file.
14843         * nss/Makefile (libnss_files-routines): Add files-initgroups.
14844         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
14845         _nss_files_initgroups_dyn.
14846
14847 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
14848
14849         * elf/elf.h (R_ARM_IRELATIVE): Define.
14850
14851 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
14852
14853         * po/ru.po: Update from translation team.
14854
14855 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
14856
14857         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
14858         dependencies.
14859
14860 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
14861
14862         [BZ #12653]
14863         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
14864         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
14865         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14866         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
14867         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
14868
14869 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
14870
14871         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
14872         differing bytes.
14873         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
14874         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
14875         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14876
14877 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
14878
14879         [BZ #12420]
14880         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
14881         storing it.
14882         * stdlib/bug-getcontext.c: New file.
14883         * stdlib/Makefile: Add rules to build and run bug-getcontext.
14884
14885 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14886
14887         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
14888         instructions into .machine "z9-109".
14889         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
14890         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
14891
14892 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14893
14894         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
14895         between environment variables and auxiliary vector.
14896
14897 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
14898
14899         * Makefile: Add rules to build linkobj/libc.so.
14900         * include/libc-symbols.h: Define libc_hidden_nolink.
14901         * include/rpc/auth.h: Mark functions which are to be hidden.
14902         * include/rpc/auth_des.h: Likewise.
14903         * include/rpc/auth_unix.h: Likewise.
14904         * include/rpc/clnt.h: Likewise.
14905         * include/rpc/des_crypt.h: Likewise.
14906         * include/rpc/key_prot.h: Likewise.
14907         * include/rpc/pmap_clnt.h: Likewise.
14908         * include/rpc/pmap_prot.h: Likewise.
14909         * include/rpc/pmap_rmt.h: Likewise.
14910         * include/rpc/rpc_msg.h: Likewise.
14911         * include/rpc/svc.h: Likewise.
14912         * include/rpc/svc_auth.h: Likewise.
14913         * include/rpc/xdr.h: Likewise.
14914         * nis/Makefile: Link all DSOs against linkobj/libc.so.
14915         * nss/Makefile: Likewise.
14916         * sunrpc/Makefile: Don't install headers.  Build library with normal
14917         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
14918         * sunrpc/auth_des.c: Hide exported symbols by default, export some
14919         for the compat linking library.  Remove use of INTDEF/INTUSE.
14920         * sunrpc/auth_none.c: Likewise.
14921         * sunrpc/auth_unix.c: Likewise.
14922         * sunrpc/authdes_prot.c: Likewise.
14923         * sunrpc/authuxprot.c: Likewise.
14924         * sunrpc/clnt_gen.c: Likewise.
14925         * sunrpc/clnt_perr.c: Likewise.
14926         * sunrpc/clnt_raw.c: Likewise.
14927         * sunrpc/clnt_simp.c: Likewise.
14928         * sunrpc/clnt_tcp.c: Likewise.
14929         * sunrpc/clnt_udp.c: Likewise.
14930         * sunrpc/clnt_unix.c: Likewise.
14931         * sunrpc/des_crypt.c: Likewise.
14932         * sunrpc/des_soft.c: Likewise.
14933         * sunrpc/get_myaddr.c: Likewise.
14934         * sunrpc/key_call.c: Likewise.
14935         * sunrpc/key_prot.c: Likewise.
14936         * sunrpc/netname.c: Likewise.
14937         * sunrpc/pm_getmaps.c: Likewise.
14938         * sunrpc/pm_getport.c: Likewise.
14939         * sunrpc/pmap_clnt.c: Likewise.
14940         * sunrpc/pmap_prot.c: Likewise.
14941         * sunrpc/pmap_prot2.c: Likewise.
14942         * sunrpc/pmap_rmt.c: Likewise.
14943         * sunrpc/publickey.c: Likewise.
14944         * sunrpc/rpc_cmsg.c: Likewise.
14945         * sunrpc/rpc_common.c: Likewise.
14946         * sunrpc/rpc_dtable.c: Likewise.
14947         * sunrpc/rpc_prot.c: Likewise.
14948         * sunrpc/rpc_thread.c: Likewise.
14949         * sunrpc/rtime.c: Likewise.
14950         * sunrpc/svc.c: Likewise.
14951         * sunrpc/svc_auth.c: Likewise.
14952         * sunrpc/svc_authux.c: Likewise.
14953         * sunrpc/svc_raw.c: Likewise.
14954         * sunrpc/svc_run.c: Likewise.
14955         * sunrpc/svc_simple.c: Likewise.
14956         * sunrpc/svc_tcp.c: Likewise.
14957         * sunrpc/svc_udp.c: Likewise.
14958         * sunrpc/svc_unix.c: Likewise.
14959         * sunrpc/svcauth_des.c: Likewise.
14960         * sunrpc/xcrypt.c: Likewise.
14961         * sunrpc/xdr.c: Likewise.
14962         * sunrpc/xdr_array.c: Likewise.
14963         * sunrpc/xdr_float.c: Likewise.
14964         * sunrpc/xdr_intXX_t.c: Likewise.
14965         * sunrpc/xdr_mem.c: Likewise.
14966         * sunrpc/xdr_rec.c: Likewise.
14967         * sunrpc/xdr_ref.c: Likewise.
14968         * sunrpc/xdr_sizeof.c: Likewise.
14969         * sunrpc/xdr_stdio.c: Likewise.
14970
14971 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
14972
14973         [BZ #12650]
14974         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
14975         * sysdeps/ia64/dl-tls.h: Likewise.
14976         * sysdeps/powerpc/dl-tls.h: Likewise.
14977         * sysdeps/s390/dl-tls.h: Likewise.
14978         * sysdeps/sh/dl-tls.h: Likewise.
14979         * sysdeps/sparc/dl-tls.h: Likewise.
14980         * sysdeps/x86_64/dl-tls.h: Likewise.
14981         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
14982
14983 2011-03-14  Andreas Schwab  <schwab@redhat.com>
14984
14985         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
14986         rpath element also skip the following colon.
14987         (expand_dynamic_string_token): Add is_path parameter and pass
14988         down to DL_DST_REQUIRED and _dl_dst_substitute.
14989         (decompose_rpath): Call expand_dynamic_string_token with
14990         non-zero is_path.  Ignore empty rpaths.
14991         (_dl_map_object_from_fd): Call expand_dynamic_string_token
14992         with zero is_path.
14993
14994 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
14995
14996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
14997         Make cancelable.
14998
14999 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
15000
15001         [BZ #12655]
15002         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
15003         Patch by Filipe David Manana <fdmanana@apache.org>.
15004
15005 2011-04-07  Andreas Schwab  <schwab@redhat.com>
15006
15007         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
15008         Maintain aligned stack.
15009         (CHECK_RSP): Remove unused macro.
15010
15011 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
15012
15013         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
15014         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
15015
15016 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
15017
15018         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
15019
15020         * include/features.h: Mention __USE_XOPEN2K8 in comment.
15021
15022 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
15023
15024         [BZ #12518]
15025         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
15026         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
15027         * sysdeps/x86_64/memmove.c: New file.
15028         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
15029         (memcpy): Renamed to ...
15030         (__new_memcpy): This.
15031         (memcpy): Provide GLIBC_2_14 memcpy.
15032         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
15033         (memcpy): Provide GLIBC_2_2_5 memcpy.
15034
15035 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
15036
15037         [BZ #12631]
15038         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
15039
15040 2011-03-30  Andreas Schwab  <schwab@redhat.com>
15041
15042         * misc/syncfs.c: New file.
15043         * misc/Makefile (routines): Add syncfs.
15044         * posix/unistd.h: Declare syncfs.
15045         * sysdeps/unix/syscalls.list: Add syncfs.
15046
15047 2011-04-01  Andreas Schwab  <schwab@redhat.com>
15048
15049         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
15050         open_by_handle_at.
15051         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
15052         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
15053         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
15054         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
15055         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
15056         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
15057         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
15058
15059 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
15060
15061         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
15062         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
15063         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
15064         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
15065         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
15066         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
15067         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
15068
15069         * io/Makefile: Compile fallocate.c, fallocate64.c, and
15070         sync_file_range.c with -fexceptions.
15071         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
15072         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
15073         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
15074         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
15075         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
15076         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
15077         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
15078         sync_file_range as cancellation point
15079         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
15080         now a wrapper around __call_sync_file_range with cancellation handling.
15081         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
15082         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
15083         function name to __call_sync_file_range.
15084         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
15085         Add call_sync_file_range.
15086
15087 2011-04-01  Andreas Schwab  <schwab@redhat.com>
15088
15089         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
15090         bits/timex.h.
15091
15092 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
15093
15094         * iconv/iconv.h: Fix typo in comment.
15095         * io/fcntl.h: Likewise.
15096         * libio/stdio.h: Likewise.
15097         * posix/spawn.h: Likewise.
15098         * posix/unistd.h: Likewise.
15099         * stdlib/stdlib.h: Likewise.
15100         * time/time.h: Likewise.
15101         * wcsmbs/wchar.h: Likewise.
15102
15103         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
15104         open_by_handle): Add.
15105         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
15106         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
15107         Augment a few comments.
15108         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
15109         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
15110         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
15111         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
15112         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
15113         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
15114         open_by_handle.
15115
15116         * io/fcntl.h (AT_EMPTY_PATH): Define.
15117
15118 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
15119
15120         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
15121         * sysdeps/unix/sysv/linux/bits/time.h: New file.
15122         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
15123         to...
15124         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
15125         * Versions.def: Add GLIBC_2.14.
15126         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
15127         Export.
15128
15129 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
15130
15131         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
15132         round counter.
15133         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
15134
15135 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
15136
15137         [BZ #12597]
15138         * string/test-strncmp.c (do_page_test): New function.
15139         (check2): Likewise.
15140         (test_main): Call check2.
15141         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
15142
15143 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
15144
15145         [BZ #12587]
15146         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
15147         Handle cache information in CPU leaf 4.
15148         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
15149
15150 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
15151
15152         [BZ #12583]
15153         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
15154         character representation.
15155         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
15156
15157 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
15158
15159         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
15160         END(__isnan) to END(__isnanf) to match function entry point/label
15161         EALIGN(__isnanf,...).
15162
15163 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
15164
15165         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
15166
15167 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
15168
15169         [BZ #12510]
15170         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
15171         copy from the symbol referenced in the relocation to initialize the
15172         used variable.
15173         Patch by Piotr Bury <pbury@goahead.com>.
15174         * elf/Makefile: Add rules to build and tst-unique3.
15175         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
15176         * elf/tst-unique3.cc: New file.
15177         * elf/tst-unique3.h: New file.
15178         * elf/tst-unique3lib.cc: New file.
15179         * elf/tst-unique3lib2.cc: New file.
15180
15181         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
15182
15183 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
15184
15185         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
15186         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
15187         to _start.
15188
15189 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
15190
15191         * elf/dl-load.c (_dl_map_object): If we are looking for the first
15192         to-be-loaded object along a path to loader is ld.so.
15193
15194 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
15195             Ulrich Drepper  <drepper@gmail.com>
15196
15197         * sysdeps/x86_64/memset.S: After aligning destination, code
15198         branches to different locations depending on the value of
15199         misalignment, when multiarch is enabled. Fix this.
15200
15201 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
15202
15203         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
15204         Set _x86_64_preferred_memory_instruction for AMD processsors.
15205         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15206         Set bit_Prefer_SSE_for_memop for AMD processors.
15207
15208 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
15209
15210         * libio/fmemopen.c (fmemopen): Optimize a bit.
15211
15212 2011-03-03  Andreas Schwab  <schwab@redhat.com>
15213
15214         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
15215
15216 2011-03-03  Roland McGrath  <roland@redhat.com>
15217
15218         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
15219
15220 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
15221
15222         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
15223         __bzero_ultra1 instead of __memset_ultra1.
15224
15225 2011-02-23  Andreas Schwab  <schwab@redhat.com>
15226             Ulrich Drepper  <drepper@gmail.com>
15227
15228         [BZ #12509]
15229         * include/link.h (struct link_map): Add l_orig_initfini.
15230         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
15231         returning unsuccessfully.
15232         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
15233         close of a file loaded at startup, restore the original l_initfini
15234         list.
15235         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
15236         list, store the pointer.
15237         * elf/Makefile ($(objpfx)noload-mem): New rule.
15238         (noload-ENV): Define.
15239         (tests): Add $(objpfx)noload-mem.
15240         * elf/noload.c: Include <memcheck.h>.
15241         (main): Call mtrace.  Close all opened handles.
15242
15243 2011-02-17  Andreas Schwab  <schwab@redhat.com>
15244
15245         [BZ #12454]
15246         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
15247         dependencies are missing.
15248
15249 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15250
15251         Fix __if_freereq crash: Unlike the generic version which uses free,
15252         Hurd needs munmap.
15253         * sysdeps/mach/hurd/ifreq.h: New file.
15254
15255 2011-01-27  Petr Baudis  <pasky@suse.cz>
15256             Ulrich Drepper  <drepper@gmail.com>
15257
15258         [BZ 12445]#
15259         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
15260         to extend_alloca().
15261         * stdio-common/bug23.c: New file.
15262         * stdio-common/Makefile (tests): Add bug23.
15263
15264 2010-09-28  Andreas Schwab  <schwab@redhat.com>
15265             Ulrich Drepper  <drepper@gmail.com>
15266
15267         [BZ #12489]
15268         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
15269         before performing relro protection.  At old place add assertion
15270         to make sure nothing changed.
15271
15272 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
15273             Glauber de Oliveira Costa  <glommer@gmail.com>
15274
15275         * elf/elf.h: Add new ARM TLS relocs.
15276
15277 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
15278
15279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
15280         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
15281         cast from r3.
15282         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
15283         'tests' variable.
15284         * sysdeps/wordsize-64/tst-writev.c: New file.
15285
15286 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
15287
15288         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
15289         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
15290         insns in _dl_start to prevent a TOC reference before relocs are
15291         resolved.
15292
15293 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
15294
15295         [BZ #12469]
15296         * Makeconfig: Remove RANLIB definition.
15297         * Makerules: Don't use RANLIB.
15298         * aclocal.m4: Remove ranlib test.
15299         * configure.in: No need to check for ranlib.
15300         * elf/rtld-Rules: Don't use RANLIB.
15301
15302 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15303
15304         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
15305         protection macro.
15306         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
15307         inclusion protection macro.
15308
15309         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
15310         SIGRTMIN and SIGRTMAX and print information in that case only when
15311         SIGRTMIN is defined.
15312
15313 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
15314
15315         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
15316         arginfo fn returning -1.
15317
15318         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
15319         and thousands string is zero terminated.
15320
15321 2011-02-03  Andreas Schwab  <schwab@redhat.com>
15322
15323         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
15324         sysdeps/unix/sysv/linux/bits/socket.h.
15325
15326 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15327
15328         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
15329         (__CPU_COUNT): Remove old macros.
15330         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
15331         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
15332         (__CPU_ALLOC, __CPU_FREE): Add macros.
15333         (__sched_cpualloc, __sched_cpufree): Add declarations.
15334
15335 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
15336
15337         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
15338         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
15339         * nscd/aicache.c (addhstaiX): Return timeout of added value.
15340         (readdhstai): Return value of addhstaiX call.
15341         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
15342         (addgrbyX): Return value returned by cache_addgr.
15343         (readdgrbyname): Return value returned by addgrbyX.
15344         (readdgrbygid): Likewise.
15345         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
15346         (addpwbyX): Return value returned by cache_addpw.
15347         (readdpwbyname): Return value returned by addhstbyX.
15348         (readdpwbyuid): Likewise.
15349         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
15350         (addservbyX): Return value returned by cache_addserv.
15351         (readdservbyname): Return value returned by addservbyX:
15352         (readdservbyport): Likewise.
15353         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
15354         (addhstbyX): Return value returned by cache_addhst.
15355         (readdhstbyname): Return value returned by addhstbyX.
15356         (readdhstbyaddr): Likewise.
15357         (readdhstbynamev6): Likewise.
15358         (readdhstbyaddrv6): Likewise.
15359         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
15360         (readdinitgroups): Return value returned by addinitgroupsX.
15361         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
15362         (prune_cache): Keep track of timeout value of re-added entries.
15363         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
15364         * nscd/nscd.h: Adjust prototypes of readd* functions.
15365
15366 2011-02-04  Roland McGrath  <roland@redhat.com>
15367
15368         * nis/nis_server.c (nis_servstate): Use the right name for 0.
15369         (nis_stats): Likewise.
15370         * nis/nis_modify.c (nis_modify): Likewise.
15371         * nis/nis_remove.c (nis_remove): Likewise.
15372         * nis/nis_add.c (nis_add): Likewise.
15373
15374         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
15375
15376         * posix/fnmatch_loop.c: Add some consts.
15377
15378         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
15379
15380 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
15381
15382         [BZ #12460]
15383         * config.make.in (config-cflags-novzeroupper): Define.
15384         * configure.in: Substitute libc_cv_cc_novzeroupper.
15385         * elf/Makefile (AVX-CFLAGS): Define.
15386         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
15387         (CFLAGS-tst-auditmod4a.c): Likewise.
15388         (CFLAGS-tst-auditmod4b.c): Likewise.
15389         (CFLAGS-tst-auditmod6b.c): Likewise.
15390         (CFLAGS-tst-auditmod6c.c): Likewise.
15391         (CFLAGS-tst-auditmod7b.c): Likewise.
15392         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
15393
15394 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
15395
15396         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
15397         function to the callback.
15398         Patch partly by Jiri Olsa <jolsa@redhat.com>.
15399
15400 2011-02-02  Andreas Schwab  <schwab@redhat.com>
15401
15402         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
15403         of errno.
15404
15405 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
15406
15407         [BZ #11724]
15408         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
15409         of constructors.
15410         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
15411         of destructors.
15412         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
15413
15414         [BZ #11724]
15415         * elf/Makefile: Add rules to build and run new test.
15416         * elf/tst-initorder.c: New file.
15417         * elf/tst-initorder.exp: New file.
15418         * elf/tst-initordera1.c: New file.
15419         * elf/tst-initordera2.c: New file.
15420         * elf/tst-initordera3.c: New file.
15421         * elf/tst-initordera4.c: New file.
15422         * elf/tst-initorderb1.c: New file.
15423         * elf/tst-initorderb2.c: New file.
15424         * elf/tst-order-a1.c: New file.
15425         * elf/tst-order-a2.c: New file.
15426         * elf/tst-order-a3.c: New file.
15427         * elf/tst-order-a4.c: New file.
15428         * elf/tst-order-b1.c: New file.
15429         * elf/tst-order-b2.c: New file.
15430         * elf/tst-order-main.c: New file.
15431         New test case by George Gensure <werkt0@gmail.com>.
15432
15433 2010-10-01  Andreas Schwab  <schwab@redhat.com>
15434
15435         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
15436         decoding ACE if AI_CANONIDN.
15437
15438 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
15439
15440         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
15441
15442 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
15443
15444         * version.h (RELEASE): Bump for 2.13 release.
15445         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
15446
15447         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
15448
15449         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
15450         MADV_NOHUGEPAGE.
15451         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
15452         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
15453         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
15454         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
15455         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
15456         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
15457
15458         * posix/getconf.c: Update copyright year.
15459         * catgets/gencat.c: Likewise.
15460         * csu/version.c: Likewise.
15461         * debug/catchsegv.sh: Likewise.
15462         * debug/xtrace.sh: Likewise.
15463         * elf/ldconfig.c: Likewise.
15464         * elf/ldd.bash.in: Likewise.
15465         * elf/sprof.c (print_version): Likewise.
15466         * iconv/iconv_prog.c: Likewise.
15467         * iconv/iconvconfig.c: Likewise.
15468         * locale/programs/locale.c: Likewise.
15469         * locale/programs/localedef.c: Likewise.
15470         * malloc/memusage.sh: Likewise.
15471         * malloc/mtrace.pl: Likewise.
15472         * nscd/nscd.c (print_version): Likewise.
15473         * nss/getent.c: Likewise.
15474
15475         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
15476         PF_CAIF, and PF_ALG.
15477         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15478
15479 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
15480
15481         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
15482         (modules-names): Use them.
15483         (ifunc-test-modules, ifunc-pie-tests): Define.
15484         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
15485         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
15486         (test-extras): Likewise.
15487         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
15488         $(compile-command.c).
15489         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
15490         (all-built-dso): Define.
15491         (check-textrel.out, check-execstack.out): Depend on it.
15492
15493         * configure.in: Don't override --enable-multi-arch.
15494
15495 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
15496
15497         [BZ #6812]
15498         * nscd/hstcache.c (tryagain): Define.
15499         (cache_addhst): Return tryagain not notfound for temporary errors.
15500         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
15501         failed.
15502
15503 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
15504
15505         [BZ #10563]
15506         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
15507         to make the syscall.
15508         * sysdeps/unix/sysv/linux/setgroups.c: New file.
15509
15510         [BZ #12378]
15511         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
15512         and fall back to matching as normal character if the string ends before
15513         the matching ']' is found.  This is what POSIX requires.
15514         * posix/testfnm.c: Adjust test result.
15515         * posix/globtest.sh: Adjust test result.  Add new test.
15516         * posix/tst-fnmatch.input: Likewise.
15517         * posix/tst-fnmatch2.c: Add new test.
15518
15519 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
15520
15521         * elf/Makefile (check-execstack): Revert last change.  Depend on
15522         check-execstack.h.
15523         (check-execstack.h): New target.
15524         (generated): Add check-execstack.h.
15525         * elf/check-execstack.c: Include "check-execstack.h".
15526         (main): Revert last change.
15527         (handle_file): Return zero if GNU_STACK is absent and
15528         DEFAULT_STACK_PERMS doesn't include PF_X.
15529
15530 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
15531
15532         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
15533         in child fails because the descriptor is already closed.
15534         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
15535         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
15536         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
15537
15538         [BZ #12397]
15539         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
15540         syscall.
15541
15542         [BZ #10484]
15543         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
15544         temporary buffer used to handle multi lookups locally.
15545         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
15546
15547 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
15548
15549         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
15550         loader is ld.so.
15551
15552 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
15553
15554         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
15555         alignment for SSE2.
15556
15557 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
15558
15559         [BZ #12394]
15560         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
15561         characters.  When rounding increased number of integer digits recompute
15562         number of groups.
15563         * stdio-common/tst-grouping.c: New file.
15564         * stdio-common/Makefile: Add rules to build and run tst-grouping.
15565
15566 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
15567
15568         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
15569         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
15570
15571         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
15572         void.
15573         * bits/select.h: Likewise.
15574
15575 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
15576
15577         * po/ja.po: Update from translation team.
15578
15579 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
15580
15581         [BZ #11155]
15582         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
15583         implementation just like for lxstat, fxstatat, et al.
15584
15585 2010-12-27  Jim Meyering  <meyering@redhat.com>
15586
15587         [BZ #12348]
15588         * posix/regexec.c (build_trtable): Return failure indication upon
15589         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
15590
15591 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
15592
15593         [BZ #12201]
15594         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
15595         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
15596         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
15597         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
15598
15599         [BZ #12207]
15600         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
15601
15602         [BZ #12204]
15603         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
15604         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
15605
15606 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
15607
15608         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
15609         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
15610         script has SORT_BY_INIT_PRIORITY.
15611         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
15612         NO_CTORS_DTORS_SECTIONS is defined.
15613         * elf/soinit.c: Likewise.
15614         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
15615         NO_CTORS_DTORS_SECTIONS is defined.
15616         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
15617         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
15618         * sysdeps/sh/init-first.c: Likewise.
15619         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
15620
15621 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
15622
15623         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
15624         always use the slow path.
15625
15626 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
15627
15628         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
15629         similar rule which adds the sysdep directories to the header search in
15630         order to pick up the correct platform stackinfo.h.
15631         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
15632         perform test if it is, otherwise return successfully without testing.
15633         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
15634         DEFAULT_STACK_PERMS define in stackinfo.h.
15635         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
15636         defined in stackinfo.h.
15637         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
15638         DEFAULT_STACK_PERMS defined in stackinfo.h.
15639         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
15640         * sysdeps/ia64/stackinfo.h: Likewise.
15641         * sysdeps/s390/stackinfo.h: Likewise.
15642         * sysdeps/sh/stackinfo.h: Likewise.
15643         * sysdeps/sparc/stackinfo.h: Likewise.
15644         * sysdeps/x86_64/stackinfo.h: Likewise.
15645         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
15646         PF_X for powerpc64.  Retain PF_X for powerpc32.
15647
15648 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
15649
15650         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
15651         accurately.
15652         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
15653         GETDENTS_64BIT_ALIGNED.
15654
15655 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
15656
15657         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
15658
15659 2010-12-10  Andreas Schwab  <schwab@redhat.com>
15660
15661         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
15662         _GNU_SOURCE.
15663
15664         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
15665         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
15666         Remove __restrict.
15667         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
15668         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
15669
15670 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
15671
15672         [BZ #11655]
15673         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
15674         are initialized.
15675
15676 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
15677
15678         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
15679
15680 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
15681
15682         * po/it.po: Update from translation team.
15683
15684 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
15685
15686         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
15687         unused codes.
15688
15689 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
15690
15691         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
15692
15693 2010-11-24  Andreas Schwab  <schwab@redhat.com>
15694
15695         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
15696         specially.
15697         (gaih_getanswer_slice): Likewise.
15698
15699 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
15700
15701         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
15702
15703 2010-05-31  Petr Baudis  <pasky@suse.cz>
15704
15705         [BZ #11149]
15706         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
15707         silently even in the chroot mode.
15708
15709 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
15710
15711         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
15712         last patch a bit.  Pretty printing
15713
15714 2010-05-31  Petr Baudis <pasky@suse.cz>
15715
15716         [BZ #10085]
15717         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
15718         initialization of skip_initgroups_dyn.
15719
15720 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
15721
15722         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
15723         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
15724
15725 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
15726
15727         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
15728
15729 2010-11-11  Andreas Schwab  <schwab@redhat.com>
15730
15731         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
15732         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
15733         (tst-fnmatch-ENV): Set MALLOC_TRACE.
15734         ($(objpfx)tst-fnmatch-mem): New rule.
15735         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
15736         * posix/tst-fnmatch.c (main): Call mtrace.
15737
15738 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
15739
15740         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15741         Support Intel processor model 6 and model 0x2c.
15742
15743 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
15744
15745         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
15746           signed comparison.
15747
15748 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
15749
15750         [BZ #12205]
15751         * string/test-strncasecmp.c (check_result): New function.
15752         (do_one_test): Use it.
15753         (check1): New function.
15754         (test_main): Use it.
15755         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
15756         Support strcasecmp and strncasecmp.
15757
15758 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
15759
15760         [BZ #12194]
15761         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
15762         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15763
15764 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
15765
15766         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
15767         IFUNC support.
15768         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15769         memset-x86-64.
15770         * sysdeps/x86_64/multiarch/bzero.S: New file.
15771         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
15772         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
15773         * sysdeps/x86_64/multiarch/memset.S: New file.
15774         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
15775         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15776         Set bit_Prefer_SSE_for_memop for Intel processors.
15777         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
15778         Define.
15779         (index_Prefer_SSE_for_memop): Define.
15780         (HAS_PREFER_SSE_FOR_MEMOP): Define.
15781
15782 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
15783
15784         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
15785         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
15786
15787 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
15788
15789         [BZ #12191]
15790         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
15791         (__x86_64_raw_data_cache_size_half): Likewise.
15792         (__x86_64_raw_shared_cache_size): Likewise.
15793         (__x86_64_raw_shared_cache_size_half): Likewise.
15794
15795         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
15796         (__x86_64_raw_data_cache_size_half): Likewise.
15797         (__x86_64_raw_shared_cache_size): Likewise.
15798         (__x86_64_raw_shared_cache_size_half): Likewise.
15799         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
15800         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
15801         and __x86_64_raw_shared_cache_size_half.  Round
15802         __x86_64_data_cache_size_half, __x86_64_data_cache_size
15803         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
15804         to multiple of 256 bytes.
15805
15806 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
15807
15808         [BZ #12167]
15809         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
15810         of inacessible symlinks.  Verify result of symlink before returning it.
15811         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
15812         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
15813
15814 2010-10-28  Erich Ritz  <erichritz@gmail.com>
15815
15816         * math/math.h (isinf): Fix typo in comment.
15817
15818 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
15819
15820         * po/da.po: Update from translation team.
15821
15822 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
15823
15824         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
15825         is added to the list.
15826
15827 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15828             Ulrich Drepper  <drepper@gmail.com>
15829
15830         * elf/dl-object.c (_dl_new_object): Don't append the new object to
15831         the global list here.  Move code to...
15832         (_dl_add_to_namespace_list): ...here.  New function.
15833         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
15834         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
15835         * elf/dl-load.c (lose): Don't remove the element from the list.
15836         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
15837         (_dl_map_object): Likewise.
15838
15839 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
15840
15841         [BZ #12159]
15842         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
15843         into all bytes of SSE register.
15844         Patch by Richard Li <richardpku@gmail.com>.
15845
15846 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
15847
15848         [BZ #12140]
15849         * malloc/malloc.c (_int_free): Fill correct number of bytes when
15850         perturbing.
15851
15852 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
15853
15854         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
15855         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
15856         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
15857         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
15858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
15859         submachine.
15860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
15861
15862 2010-10-22  Andreas Schwab  <schwab@redhat.com>
15863
15864         * include/dlfcn.h (__RTLD_SECURE): Define.
15865         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
15866         mode & __RTLD_SECURE instead.
15867         (open_path): Rename preloaded parameter to secure.
15868         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
15869         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
15870         * elf/dl-deps.c (openaux): Likewise.
15871         * elf/rtld.c (struct map_args): Remove is_preloaded.
15872         (map_doit): Don't use it.
15873         (dl_main): Likewise.
15874         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
15875         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
15876
15877 2010-09-09  Andreas Schwab  <schwab@redhat.com>
15878
15879         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
15880         (sysd-rules-targets): Remove duplicates.
15881         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
15882         rtld-%.$o dependency.
15883
15884 2010-10-18  Andreas Schwab  <schwab@redhat.com>
15885
15886         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
15887         _dl_map_object do it.
15888
15889 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
15890
15891         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
15892         fast fma builtins, define the macros in the C99 standard.
15893         (FP_FAST_FMAF): Likewise.
15894         (FP_FAST_FMAL): Likewise.
15895         * sysdeps/x86_64/bits/mathdef.h: Likewise.
15896
15897         * bits/mathdef.h: Update copyright year.
15898         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15899
15900 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
15901
15902         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
15903         builtins, define the macros in the C99 standard.
15904         (FP_FAST_FMAF): Likewise.
15905         (FP_FAST_FMAL): Likewise.
15906         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
15907         multiply/add.
15908         (FP_FAST_FMAF): Likewise.
15909
15910 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
15911
15912         [BZ #3268]
15913         * math/libm-test.inc (fma_test): Some new testcases.
15914         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
15915         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
15916         y and infinite z.  Do multiplication by C already in long double.
15917         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
15918         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
15919         y and infinite z.  Do bitwise or of inexact bit into u.d.
15920         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
15921         * sysdeps/i386/fpu/s_fmaf.S: Removed.
15922         * sysdeps/i386/fpu/s_fma.S: Removed.
15923         * sysdeps/i386/fpu/s_fmal.S: Removed.
15924
15925 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
15926
15927         [BZ #3268]
15928         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
15929         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
15930         computation is not scheduled after fetestexcept.  Fix value
15931         of minimum denormal long double.
15932
15933 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
15934
15935         [BZ #3268]
15936         * math/libm-test.inc (fma_test): Add some more tests.
15937         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
15938         correctly.
15939
15940 2010-10-15  Andreas Schwab  <schwab@redhat.com>
15941
15942         * scripts/data/localplt-s390-linux-gnu.data: New file.
15943         * scripts/data/localplt-s390x-linux-gnu.data: New file.
15944
15945 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
15946
15947         [BZ #3268]
15948         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
15949         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
15950         instead of dbl-64.
15951         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
15952         inlines.
15953         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
15954         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
15955         if one of x and y is very large and the other is subnormal.
15956         * sysdeps/s390/fpu/s_fmaf.c: New file.
15957         * sysdeps/s390/fpu/s_fma.c: New file.
15958         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
15959         * sysdeps/powerpc/fpu/s_fma.S: New file.
15960         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
15961         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
15962         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
15963
15964 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
15965
15966         [BZ #3268]
15967         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
15968         fma tests.
15969         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
15970         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
15971         * sysdeps/i386/i686/multiarch/s_fma.c: Include
15972         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
15973         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
15974         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
15975         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
15976
15977 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
15978
15979         [BZ #12078]
15980         * posix/regcomp.c (parse_branch): One more memory leak plugged.
15981         * posix/bug-regex31.input: Add test case.
15982
15983 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
15984
15985         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
15986         * posix/bug-regex31.input: New file.
15987
15988         [BZ #12078]
15989         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
15990         (parse_sub_exp): Fix last change, use postorder.
15991
15992         * posix/bug-regex31.c: New file.
15993         * posix/Makefile: Add rules to build and run bug-regex31.
15994
15995         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
15996
15997         [BZ #12078]
15998         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
15999
16000         [BZ #12108]
16001         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
16002         to have entries in sys_siglist.
16003
16004         [BZ #12093]
16005         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
16006         be NULL.
16007
16008 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
16009
16010         [BZ #3268]
16011         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
16012         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
16013         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
16014         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
16015         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16016         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
16017         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
16018         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
16019         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
16020         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
16021         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
16022         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
16023         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
16024         * math/ftestexcept.c (fetestexcept): Likewise.
16025         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
16026         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
16027         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
16028         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
16029         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
16030         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
16031         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
16032
16033 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
16034
16035         [BZ #12107]
16036         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
16037         newline.
16038
16039 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
16040
16041         * string/bug-strstr1.c: New file.
16042         * string/Makefile: Add rules to build and run bug-strstr1.
16043
16044 2010-10-05  Eric Blake  <eblake@redhat.com>
16045
16046         [BZ #12092]
16047         * string/str-two-way.h (two_way_long_needle): Always clear memory
16048         when skipping input due to the shift table.
16049
16050 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
16051
16052         [BZ #12005]
16053         * malloc/mcheck.c: Handle large requests.
16054
16055         [BZ #12077]
16056         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
16057         for strncmp and strncasecmp.
16058         * string/stratcliff.c: Add tests for strcmp and strncmp.
16059         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
16060
16061 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
16062
16063         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
16064         __set_fpscr.
16065
16066 2010-09-30  Andreas Jaeger  <aj@suse.de>
16067
16068         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
16069         (CGROUP_SUPER_MAGIC): Define.
16070         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16071         Handle btrfs and cgroup file systems.
16072         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
16073         Likewise.
16074
16075 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
16076
16077         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
16078         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
16079
16080 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16081
16082         [BZ #12067]
16083         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
16084         trying to locate the ELF header.
16085
16086 2010-09-27  Andreas Schwab  <schwab@redhat.com>
16087
16088         [BZ #11611]
16089         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
16090         Mask out sign-bit copies when constructing f_fsid.
16091
16092 2010-09-24  Petr Baudis <pasky@suse.cz>
16093
16094         * debug/stack_chk_fail_local.c: Add missing licence exception.
16095         * debug/warning-nop.c: Likewise.
16096
16097 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
16098
16099         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
16100         implementing getdents64 using getdents syscall, set d_type if
16101         __ASSUME_GETDENTS32_D_TYPE.
16102
16103 2010-09-16  Andreas Schwab  <schwab@redhat.com>
16104
16105         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
16106         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
16107
16108 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
16109
16110         [BZ #12037]
16111         * posix/unistd.h: Undo change of feature selection for ftruncate from
16112         2010-01-11.
16113
16114 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
16115
16116         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
16117         detection.
16118
16119 2010-09-20  Andreas Schwab  <schwab@redhat.com>
16120
16121         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
16122         fanotify_mark.
16123         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
16124
16125 2010-09-14  Andreas Schwab  <schwab@redhat.com>
16126
16127         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
16128         variables after CHECK_SP call.
16129         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
16130
16131 2010-09-13  Andreas Schwab  <schwab@redhat.com>
16132             Ulrich Drepper  <drepper@redhat.com>
16133
16134         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
16135         re-relocationg ld.so.
16136         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
16137         _dl_init_paths call.
16138         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
16139         here anymore.
16140
16141 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
16142
16143         * resolv/res_init.c (__res_vinit): Count the default server we added.
16144
16145 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
16146             Ulrich Drepper  <drepper@redhat.com>
16147
16148         [BZ #11968]
16149         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
16150         (____longjmp_chk): Use %ebx for saving value across system call.
16151         Add unwind info.
16152
16153 2010-09-06  Andreas Schwab  <schwab@redhat.com>
16154
16155         * manual/Makefile: Don't mix pattern rules with normal rules.
16156
16157 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
16158
16159         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
16160         operation.
16161         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
16162         * libio/iofopncook.c (_IO_cookie_init): Likewise.
16163         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
16164         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
16165         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16166         Likewise.
16167
16168 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
16169
16170         [BZ #11979]
16171         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
16172         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
16173
16174 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
16175
16176         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
16177         * sysdeps/x86_64/addmul_1.S: Likewise.
16178         * sysdeps/x86_64/lshift.S: Likewise.
16179         * sysdeps/x86_64/mul_1.S: Likewise.
16180         * sysdeps/x86_64/rshift.S: Likewise.
16181         * sysdeps/x86_64/sub_n.S: Likewise.
16182         * sysdeps/x86_64/submul_1.S: Likewise.
16183
16184 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16185
16186         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
16187         Define __sched_param instead of SCHED_* and sched_param when
16188         <bits/sched.h> is included with __need_schedparam defined.
16189         * bits/sched.h [__need_schedparam]
16190         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
16191         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
16192         (__defined_schedparam): Define to 1.
16193         (__sched_param): New structure, identical to sched_param.
16194         (__need_schedparam): Undefine.
16195
16196 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
16197
16198         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
16199         (epoll_create1): Declare.
16200
16201         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
16202
16203 2010-08-31  Andreas Schwab  <schwab@redhat.com>
16204
16205         [BZ #7066]
16206         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
16207         shifting retval into place.
16208
16209 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
16210
16211         * nis/rpcsvc/nis.h: Update copyright notice.
16212         * nis/rpcsvc/nis.x: Likewise.
16213         * nis/rpcsvc/nis_callback.h: Likewise.
16214         * nis/rpcsvc/nis_callback.x: Likewise.
16215         * nis/rpcsvc/nis_object.x: Likewise.
16216         * nis/rpcsvc/nis_tags.h: Likewise.
16217         * nis/rpcsvc/yp.h: Likewise.
16218         * nis/rpcsvc/yp.x: Likewise.
16219         * nis/rpcsvc/ypupd.h: Likewise.
16220         * nis/yp_xdr.c: Likewise.
16221         * nis/ypupdate_xdr.c: Likewise.
16222
16223         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
16224         mainly the body of pmap_getport.  Add parameters to specify timeouts.
16225         (pmap_getport): Use __libc_rpc_getport.
16226         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
16227         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
16228         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
16229
16230 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
16231
16232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
16233         fanotify_mark.
16234
16235 2010-08-27  Roland McGrath  <roland@redhat.com>
16236
16237         * sysdeps/i386/i686/multiarch/Makefile
16238         (CFLAGS-varshift.c): New variable.
16239
16240 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
16241
16242         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
16243         * sysdeps/i386/i686/multiarch/varshift.c: New file.
16244
16245         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
16246
16247         * sysdeps/x86_64/strlen.S: Minimal code improvement.
16248
16249 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
16250
16251         * sysdeps/x86_64/strlen.S: Unroll the loop.
16252         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16253         strlen-sse2 strlen-sse2-bsf.
16254         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
16255         __strlen_no_bsf if bit_Slow_BSF is set.
16256         (__strlen_sse42): Removed.
16257         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
16258         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
16259
16260 2010-08-25  Roland McGrath  <roland@redhat.com>
16261
16262         * sysdeps/x86_64/multiarch/varshift.S: File removed.
16263         * sysdeps/x86_64/multiarch/varshift.c: New file.
16264         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
16265         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
16266         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
16267         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
16268
16269 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
16270
16271         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16272         strlen-sse2 strlen-sse2-bsf.
16273         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
16274         __strlen_sse2_bsf if bit_Slow_BSF is unset.
16275         (__strlen_sse2): Removed.
16276         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
16277         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
16278         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
16279         bit_Slow_BSF for Atom.
16280         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
16281         (index_Slow_BSF): Define.
16282         (HAS_SLOW_BSF): Define.
16283
16284 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
16285
16286         [BZ #10851]
16287         * resolv/res_init.c (__res_vinit): When no server address at all
16288         is given default to loopback.
16289
16290 2010-08-24  Roland McGrath  <roland@redhat.com>
16291
16292         * configure.in: Remove config-name.h generation.
16293         * configure: Regenerated.
16294         * config-name.in: File removed.
16295         * scripts/config-uname.sh: New file.
16296         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
16297         ($(objdir)config-name.h): New target.
16298
16299         * sunrpc/rpc_parse.h: Avoid nested comment.
16300
16301 2010-08-24  Richard Henderson  <rth@redhat.com>
16302             Ulrich Drepper  <drepper@redhat.com>
16303             H.J. Lu  <hongjiu.lu@intel.com>
16304
16305         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
16306         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
16307         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
16308         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
16309         _mm_alignr_epi8 with _mm_loadu_si128.
16310         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
16311         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
16312         (__m128i_shift_right): Removed.
16313         * sysdeps/i386/i686/multiarch/varshift.h: New file.
16314         * sysdeps/i386/i686/multiarch/varshift.S: New file.
16315         * sysdeps/x86_64/multiarch/varshift.h: New file.
16316         * sysdeps/x86_64/multiarch/varshift.S: New file.
16317
16318 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
16319
16320         * configure.in: Move assembler checks to before sysdep dir checking.
16321
16322 2010-08-20  Petr Baudis  <pasky@suse.cz>
16323
16324         * LICENSES: Sync the sunrpc license.
16325
16326 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
16327
16328         * sunrpc/auth_des.c: Update copyright notice once again.
16329         * sunrpc/auth_none.c: Likewise.
16330         * sunrpc/auth_unix.c: Likewise.
16331         * sunrpc/authdes_prot.c: Likewise.
16332         * sunrpc/authuxprot.c: Likewise.
16333         * sunrpc/bindrsvprt.c: Likewise.
16334         * sunrpc/clnt_gen.c: Likewise.
16335         * sunrpc/clnt_perr.c: Likewise.
16336         * sunrpc/clnt_raw.c: Likewise.
16337         * sunrpc/clnt_simp.c: Likewise.
16338         * sunrpc/clnt_tcp.c: Likewise.
16339         * sunrpc/clnt_udp.c: Likewise.
16340         * sunrpc/clnt_unix.c: Likewise.
16341         * sunrpc/des_crypt.c: Likewise.
16342         * sunrpc/des_soft.c: Likewise.
16343         * sunrpc/get_myaddr.c: Likewise.
16344         * sunrpc/getrpcport.c: Likewise.
16345         * sunrpc/key_call.c: Likewise.
16346         * sunrpc/key_prot.c: Likewise.
16347         * sunrpc/openchild.c: Likewise.
16348         * sunrpc/pm_getmaps.c: Likewise.
16349         * sunrpc/pm_getport.c: Likewise.
16350         * sunrpc/pmap_clnt.c: Likewise.
16351         * sunrpc/pmap_prot.c: Likewise.
16352         * sunrpc/pmap_prot2.c: Likewise.
16353         * sunrpc/pmap_rmt.c: Likewise.
16354         * sunrpc/rpc/auth.h: Likewise.
16355         * sunrpc/rpc/auth_unix.h: Likewise.
16356         * sunrpc/rpc/clnt.h: Likewise.
16357         * sunrpc/rpc/des_crypt.h: Likewise.
16358         * sunrpc/rpc/key_prot.h: Likewise.
16359         * sunrpc/rpc/netdb.h: Likewise.
16360         * sunrpc/rpc/pmap_clnt.h: Likewise.
16361         * sunrpc/rpc/pmap_prot.h: Likewise.
16362         * sunrpc/rpc/pmap_rmt.h: Likewise.
16363         * sunrpc/rpc/rpc.h: Likewise.
16364         * sunrpc/rpc/rpc_des.h: Likewise.
16365         * sunrpc/rpc/rpc_msg.h: Likewise.
16366         * sunrpc/rpc/svc.h: Likewise.
16367         * sunrpc/rpc/svc_auth.h: Likewise.
16368         * sunrpc/rpc/types.h: Likewise.
16369         * sunrpc/rpc/xdr.h: Likewise.
16370         * sunrpc/rpc_clntout.c: Likewise.
16371         * sunrpc/rpc_cmsg.c: Likewise.
16372         * sunrpc/rpc_common.c: Likewise.
16373         * sunrpc/rpc_cout.c: Likewise.
16374         * sunrpc/rpc_dtable.c: Likewise.
16375         * sunrpc/rpc_hout.c: Likewise.
16376         * sunrpc/rpc_main.c: Likewise.
16377         * sunrpc/rpc_parse.c: Likewise.
16378         * sunrpc/rpc_parse.h: Likewise.
16379         * sunrpc/rpc_prot.c: Likewise.
16380         * sunrpc/rpc_sample.c: Likewise.
16381         * sunrpc/rpc_scan.c: Likewise.
16382         * sunrpc/rpc_scan.h: Likewise.
16383         * sunrpc/rpc_svcout.c: Likewise.
16384         * sunrpc/rpc_tblout.c: Likewise.
16385         * sunrpc/rpc_util.c: Likewise.
16386         * sunrpc/rpc_util.h: Likewise.
16387         * sunrpc/rpcinfo.c: Likewise.
16388         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
16389         * sunrpc/rpcsvc/key_prot.x: Likewise.
16390         * sunrpc/rpcsvc/klm_prot.x: Likewise.
16391         * sunrpc/rpcsvc/mount.x: Likewise.
16392         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
16393         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
16394         * sunrpc/rpcsvc/rex.x: Likewise.
16395         * sunrpc/rpcsvc/rstat.x: Likewise.
16396         * sunrpc/rpcsvc/rusers.x: Likewise.
16397         * sunrpc/rpcsvc/sm_inter.x: Likewise.
16398         * sunrpc/rpcsvc/spray.x: Likewise.
16399         * sunrpc/rpcsvc/yppasswd.x: Likewise.
16400         * sunrpc/rtime.c: Likewise.
16401         * sunrpc/svc.c: Likewise.
16402         * sunrpc/svc_auth.c: Likewise.
16403         * sunrpc/svc_authux.c: Likewise.
16404         * sunrpc/svc_raw.c: Likewise.
16405         * sunrpc/svc_run.c: Likewise.
16406         * sunrpc/svc_simple.c: Likewise.
16407         * sunrpc/svc_tcp.c: Likewise.
16408         * sunrpc/svc_udp.c: Likewise.
16409         * sunrpc/svc_unix.c: Likewise.
16410         * sunrpc/svcauth_des.c: Likewise.
16411         * sunrpc/xcrypt.c: Likewise.
16412         * sunrpc/xdr.c: Likewise.
16413         * sunrpc/xdr_array.c: Likewise.
16414         * sunrpc/xdr_float.c: Likewise.
16415         * sunrpc/xdr_mem.c: Likewise.
16416         * sunrpc/xdr_rec.c: Likewise.
16417         * sunrpc/xdr_ref.c: Likewise.
16418         * sunrpc/xdr_sizeof.c: Likewise.
16419         * sunrpc/xdr_stdio.c: Likewise.
16420
16421         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
16422         handling.
16423
16424 2010-08-19  Andreas Schwab  <schwab@redhat.com>
16425
16426         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
16427
16428 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
16429
16430         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
16431         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
16432         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
16433         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
16434         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
16435         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
16436         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
16437         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
16438         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
16439         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
16440         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
16441         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
16442         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
16443         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
16444
16445 2010-07-26  Anton Blanchard  <anton@samba.org>
16446
16447         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
16448         * malloc/arena.c (heap_trim): Likewise.
16449
16450 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
16451
16452         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
16453         here.  Not...
16454         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
16455         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
16456
16457 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
16458
16459         * sysdeps/i386/elf/Makefile: New file.
16460
16461 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
16462
16463         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
16464         from fanotify_init.
16465         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
16466         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
16467
16468 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
16469
16470         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
16471         of strncasecmp_l.
16472         * sysdeps/multiarch/strcmp.S: Likewise.
16473
16474 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
16475
16476         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
16477         strncase_l-nonascii.
16478         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
16479         Add strncase_l-ssse3.
16480         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
16481         * sysdeps/x86_64/strcmp.S: Likewise.
16482         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
16483         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
16484         * sysdeps/x86_64/strncase.S: New file.
16485         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
16486         * sysdeps/x86_64/strncase_l.S: New file.
16487         * string/Makefile (strop-tests): Add strncasecmp.
16488         * string/test-strncasecmp.c: New file.
16489
16490         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
16491         warning.
16492
16493         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
16494         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
16495
16496 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
16497
16498         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
16499
16500 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
16501
16502         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
16503         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
16504         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
16505
16506 2010-05-01  Alan Modra  <amodra@gmail.com>
16507
16508         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
16509         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
16510         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
16511         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
16512         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
16513         tidying.  Don't tail-call __sigjmp_save for static lib.
16514         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
16515         save location.
16516         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
16517         (CALL_MCOUNT): Add eh info, and nop after bl.
16518         (TAIL_CALL_SYSCALL_ERROR): New macro.
16519         (PSEUDO_RET): Use it.
16520         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
16521         Correct save location of integer regs and cr.
16522         (_dl_profile_resolve): Correct cr save location.  Delete nops
16523         after bl when SHARED.  Reduce cfi size a little by better
16524         placement of cfi directives.
16525         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
16526         make a stack frame.  Instead use parm save area as a temp.
16527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
16528         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
16529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
16530         Don't make a stack frame for parent, use parm save area.
16531         Increase child stack frame to 112 bytes.  Don't save unused reg,
16532         and adjust reg usage.  Set up cfi on error recovery and
16533         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
16534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
16535         (__makecontext): Add dummy nop after jump to exit.
16536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
16537         Use correct parm save area and cr save, reduce stack frame.
16538         Correct cfi for possible PSEUDO_RET frame setup.
16539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
16540         Branch to local label emitted by PSEUDO_RET rather than
16541         __syscall_error.
16542
16543 2010-08-12  Andreas Schwab  <schwab@redhat.com>
16544
16545         [BZ #11904]
16546         * locale/programs/locale.c (print_assignment): New function.
16547         (show_locale_vars): Use it.
16548
16549 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
16550
16551         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
16552         field.
16553         (struct statfs64): Likewise.
16554         (_STATFS_F_FLAGS): Define.
16555         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
16556         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16557         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
16558         (ST_VALID): Define locally.
16559         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
16560         __statvfs_getflags, use the provided value.
16561         * sysdeps/unix/sysv/linux/kernel-features.h: Define
16562         __ASSUME_STATFS_F_FLAGS.
16563
16564         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
16565
16566         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
16567         Add sys/fanotify.h.
16568         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
16569         fanotify_mask for GLIBC_2.13.
16570         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
16571         fanotify_init and fanotify_mark.
16572         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
16573         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
16574
16575         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
16576         Add prlimit.
16577         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
16578         prlimit64 for GLIBC_2.13.
16579         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
16580         prlimit64.
16581         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
16582         syscall.
16583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
16584         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
16585         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
16586         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
16587         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
16588         add prlimit alias.
16589         * sysdeps/unix/sysv/linux/prlimit.c: New file.
16590
16591         [BZ #11903]
16592         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
16593         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
16594
16595         * nss/Makefile: Add rules to build and run tst-nss-test1.
16596         * shlib-versions: Add entry for libnss_test1.
16597         * nss/nss_test1.c: New file.
16598         * nss/tst-nss-test1.c: New file.
16599
16600         * nss/nsswitch.c (__nss_database_custom): Define new variable.
16601         (__nss_configure_lookup): Set appropriate entry in
16602         __nss_configure_lookup to true.
16603         * nss/nsswitch.h: Define enum with indeces of databases in
16604         databases and __nss_database_custom arrays.  Declare
16605         __nss_database_custom.
16606         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
16607         to avoid using nscd when custom rules are installed.
16608         * nss/getXXbyYY_r.c: Likewise.
16609         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
16610
16611         * nss/nss_files/files-parse.c: Whitespace fixes.
16612
16613 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
16614
16615         [BZ #11883]
16616         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
16617         * posix/fnmatch_loop.c: Likewise.
16618
16619 2010-07-17  Andi Kleen  <ak@linux.intel.com>
16620
16621         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
16622         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
16623         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
16624         * Versions.def [GLIBC_2.13]: Add.
16625
16626 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
16627
16628         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16629         Also fail if tpwd after pwuid call is NULL.
16630
16631 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16632
16633         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
16634         when converting to ms.
16635
16636 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16637
16638         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
16639         EOPNOTSUPP errors with ENOTTY.
16640         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
16641         EOPNOTSUPP errors with ENOTTY.
16642
16643 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
16644
16645         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
16646         Add strcasecmp_l-ssse3.
16647         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
16648         strcasecmp.
16649         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
16650         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
16651         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
16652
16653 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
16654
16655         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
16656
16657         * string/Makefile (strop-tests): Add strcasecmp.
16658         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
16659         strcasecmp_l-nonascii.
16660         (gen-as-const-headers): Add locale-defines.sym.
16661         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
16662         * sysdeps/x86_64/strcasecmp.S: New file.
16663         * sysdeps/x86_64/strcasecmp_l.S: New file.
16664         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
16665         * sysdeps/x86_64/locale-defines.sym: New file.
16666         * string/test-strcasecmp.c: New file.
16667
16668         * string/test-strcasestr.c: Test both ends of the range of characters.
16669         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
16670
16671 2010-07-29  Roland McGrath  <roland@redhat.com>
16672
16673         [BZ #11856]
16674         * manual/locale.texi (Yes-or-No Questions): Fix example code.
16675
16676 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
16677
16678         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
16679         for ld.so.
16680
16681 2010-07-27  Andreas Schwab  <schwab@redhat.com>
16682
16683         * manual/memory.texi (Malloc Tunable Parameters): Document
16684         M_PERTURB.
16685
16686 2010-07-26  Roland McGrath  <roland@redhat.com>
16687
16688         [BZ #11840]
16689         * configure.in (-fgnu89-inline check): Set and substitute
16690         gnu89_inline, not libc_cv_gnu89_inline.
16691         * configure: Regenerated.
16692         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
16693
16694 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
16695
16696         * string/test-strnlen.c: New file.
16697         * string/Makefile (strop-tests): Add strnlen.
16698         * string/tester.c (test_strnlen): Add a few more test cases.
16699         * string/tst-strlen.c: Better error reporting.
16700
16701         * sysdeps/x86_64/strnlen.S: New file.
16702
16703 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
16704
16705         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
16706         lower-latency instructions.
16707
16708 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
16709
16710         * string/test-strcasestr.c: New file.
16711         * string/test-strstr.c: New file.
16712         * string/Makefile (strop-tests): Add strstr and strcasestr.
16713         * string/str-two-way.h: Don't undefine MAX.
16714         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
16715
16716 2010-07-21  Andreas Schwab  <schwab@redhat.com>
16717
16718         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16719         strcasestr-nonascii.
16720         (CFLAGS-strcasestr-nonascii.c): Define.
16721         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
16722         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
16723         Remove unused attribute.
16724
16725 2010-07-20  Roland McGrath  <roland@redhat.com>
16726
16727         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
16728         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
16729         ld.so.cache was broken.  With it, there is no way to disable dsocaps
16730         like LD_HWCAP_MASK can disable hwcaps.
16731
16732 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
16733
16734         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
16735
16736 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
16737
16738         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
16739         call in strcasestr.
16740         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
16741         __strcasestr_sse42_nonascii.
16742         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
16743         strcasestr-nonascii.c.
16744         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
16745
16746 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
16747
16748         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
16749         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
16750         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
16751         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
16752
16753 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
16754
16755         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
16756         fcntl.
16757
16758 2010-07-06  Andreas Schwab  <schwab@redhat.com>
16759
16760         [BZ #11577]
16761         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
16762         dl_signal_cerror.
16763
16764 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
16765
16766         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
16767         _PC_PIPE_BUF using F_GETPIPE_SZ.
16768
16769 2010-07-05  Roland McGrath  <roland@redhat.com>
16770
16771         * manual/arith.texi (Rounding Functions): Fix rint description
16772         implicit in round description.
16773
16774 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
16775
16776         * elf/Makefile: Fix linking for a few tests to make recent linker
16777         happy.
16778
16779 2010-06-30  Andreas Schwab  <schwab@redhat.com>
16780
16781         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16782         $(common-objpfx)libc_nonshared.a.
16783
16784 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
16785
16786         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
16787         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
16788         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
16789         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
16790         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
16791         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
16792         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
16793         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
16794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
16795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
16796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
16797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
16798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
16799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
16800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
16801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
16802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
16803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
16804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
16805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
16806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
16807         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
16808         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
16809         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
16810         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
16811         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
16812         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
16813         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
16814         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
16815         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
16816         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
16817         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
16818         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
16819         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
16820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
16821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
16822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
16823         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
16824         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
16825         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
16826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
16827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
16828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
16829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
16830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
16831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
16832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
16833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
16834
16835 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
16836
16837         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
16838         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
16839         * string/memmove.c (memmove): Renamed to ...
16840         (MEMMOVE): ...this.  Default to memmove.
16841         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
16842         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
16843         (END_CHK): Define.
16844         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16845         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
16846         mempcpy-ssse3-back memmove-ssse3-back.
16847         * sysdeps/x86_64/multiarch/bcopy.S: New file .
16848         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
16849         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
16850         * sysdeps/x86_64/multiarch/memcpy.S: New file.
16851         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
16852         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
16853         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
16854         * sysdeps/x86_64/multiarch/memmove.c: New file.
16855         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
16856         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
16857         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
16858         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
16859         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
16860         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
16861         Define.
16862         (index_Fast_Copy_Backward): Define.
16863         (HAS_ARCH_FEATURE): Define.
16864         (HAS_FAST_REP_STRING): Define.
16865         (HAS_FAST_COPY_BACKWARD): Define.
16866
16867 2010-06-21  Andreas Schwab  <schwab@redhat.com>
16868
16869         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16870         Restore proper fallback handling.
16871
16872 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
16873
16874         [BZ #11701]
16875         * posix/group_member.c (__group_member): Correct checking loop.
16876
16877         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
16878         OOM in getpwuid_r correctly.  Return error number when the caller
16879         should return, otherwise -1.
16880         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
16881         call returning > 0 value.
16882         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
16883
16884 2010-06-07  Andreas Schwab  <schwab@redhat.com>
16885
16886         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
16887         libc_nonshared.a from targets in modules-names.
16888
16889 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
16890
16891         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
16892         requires it.
16893
16894 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
16895
16896         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
16897         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
16898         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
16899         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
16900
16901 2010-06-02  Andreas Schwab  <schwab@redhat.com>
16902
16903         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
16904
16905 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
16906
16907         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
16908         and F_GETPIPE_SZ.
16909         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
16910         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16911         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16912         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16913         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16914         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
16915
16916 2010-06-14  Roland McGrath  <roland@redhat.com>
16917
16918         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
16919
16920 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
16921
16922         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
16923         __REDIRECT followed by __THROW.
16924         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
16925         * posix/getopt.h (getopt): Likewise.
16926
16927 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
16928
16929         * hurd/lookup-at.c (__file_name_lookup_at): Accept
16930         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
16931         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
16932         in AT_FLAGS.
16933         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
16934         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
16935
16936 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
16937
16938         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
16939
16940 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
16941
16942         [BZ #11640]
16943         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16944         Properly check family and model.
16945
16946 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
16947
16948         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
16949
16950 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
16951
16952         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
16953
16954 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
16955
16956         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
16957         symbol reference.
16958
16959 2010-05-19  Andreas Schwab  <schwab@redhat.com>
16960
16961         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
16962         symbol reference.
16963
16964 2010-05-21  Andreas Schwab  <schwab@redhat.com>
16965
16966         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
16967         and internal_recvmmsg.
16968         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
16969         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
16970         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
16971         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
16972
16973         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
16974         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
16975         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
16976
16977 2010-05-20  Andreas Schwab  <schwab@redhat.com>
16978
16979         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
16980
16981 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
16982
16983         POWER7 optimizations.
16984         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
16985         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
16986
16987 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
16988
16989         * version.h: Update for 2.13 development version.
16990
16991 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
16992
16993         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
16994         exceptions.  Return 0.
16995
16996 2010-05-07  Roland McGrath  <roland@redhat.com>
16997
16998         * elf/ldconfig.c (main): Add a const.
16999
17000 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
17001
17002         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
17003         (args_options): Add no-idn option.
17004         (ahosts_keys_int): Add idn_flags to ai_flags.
17005         (parse_option): Handle 'i' option to clear idn_flags.
17006
17007         * malloc/malloc.c (_int_free): Possible race in the most recently
17008         added check.  Only act on the data if no current modification
17009         happened.
17010
17011 See ChangeLog.17 for earlier changes.