Update NEWS
[glibc.git] / ChangeLog
blob8e6f0132f384be75562c51fdd6a8082d8f833307
1 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3         [BZ #14283]
4         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
5         by 7 not 8 to examine high bit of fractional part.
7         [BZ #14042]
8         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
9         for call to __mcount_internal.
10         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
11         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
12         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
14 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
16         [BZ #14154]
17         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
18         approximation for values within 0x1p-13f of an odd multiple of
19         pi/4.
20         * math/libm-test.inc (tan_test): Do not allow spurious underflow
21         exception.  Add more tests.
22         * sysdeps/i386/fpu/libm-test-ulps: Update.
24         [BZ #6778]
25         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
26         inputs and return -1 for them.  Do not check for +Inf in case not
27         reachable for +Inf.
28         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
29         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
30         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
31         and return -1 for them.  Do not check for +Inf in case not
32         reachable for +Inf.
33         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
34         define.
35         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
36         and return -1 for them.  Do not check for +Inf in case not
37         reachable for +Inf.
38         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
39         spurious underflow.
40         * sysdeps/i386/fpu/libm-test-ulps: Update.
41         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
45         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
47 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
49         [BZ #14157]
50         [BZ #14331]
51         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
52         could result in spurious underflow.  Scale down values above
53         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
54         * math/s_csqrtf.c (__csqrtf): Likewise.
55         * math/s_csqrtl.c (__csqrtl): Likewise.
56         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
57         spurious underflow.
58         * sysdeps/i386/fpu/libm-test-ulps: Update.
59         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
63         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
64         xopen-msg.sed.
65         * catgets/xopen-msg.awk: New file.
66         * catgets/xopen-msg.sed: Removed.
68         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
69         po2text.sed.
70         * intl/po2test.awk: New file.
71         * intl/po2test.sed: Removed.
73 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
75         [BZ #14328]
76         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
77         or multiply small sinh result by itself.
78         * math/s_ctanf.c (__ctanf): Likewise.
79         * math/s_ctanh.c (__ctanh): Likewise.
80         * math/s_ctanhf.c (__ctanhf): Likewise.
81         * math/s_ctanhl.c (__ctanhl): Likewise.
82         * math/s_ctanl.c (__ctanl): Likewise.
83         * math/libm-test.inc (ctan_test_tonearest): New function.
84         (ctan_test_towardzero): Likewise.
85         (ctan_test_downward): Likewise.
86         (ctan_test_upward): Likewise.
87         (ctanh_test_tonearest): Likewise.
88         (ctanh_test_towardzero): Likewise.
89         (ctanh_test_downward): Likewise.
90         (ctanh_test_upward): Likewise.
91         (main): Call these new functions.
92         * sysdeps/i386/fpu/libm-test-ulps: Update.
93         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
95 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
97         * .gitignore: Delete /ports entry.
99 2012-07-03  Andreas Jaeger  <aj@suse.de>
101         * po/bg.po: Update from translation team.
102         * po/cs.po: Likewise.
103         * po/de.po: Likewise.
104         * po/hr.po: Likewise.
105         * po/nl.pl: Likewise.
106         * po/pl.po: Likewise.
107         * po/vi.po: Likewise.
109 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
111         * Makeconfig [!+link] (+link-before-libc): New variable.
112         [!+link] (+link-after-libc): Likewise.
113         [!+link] (+link-tests): Likewise.
114         [!+link] (+link): Define in terms of $(+link-before-libc) and
115         $(+link-after-libc).
116         [!+link-static] (+link-static-before-libc): New variable.
117         [!+link-static] (+link-static-after-libc): Likewise.
118         [!+link-static] (+link-static-tests): Likewise.
119         [!+link-static] (+link-static): Define in terms of
120         $(+link-static-before-libc) and $(+link-static-after-libc).
121         [build-shared] (link-libc-before-gnulib): New variable.
122         [build-shared] (link-libc-tests): Likewise.
123         [build-shared] (link-libc): Define in terms of
124         $(link-libc-before-gnulib).
125         [!build-shared] (link-libc-tests): New variable.
126         (link-libc-static-tests): New variable.
127         [!gnulib] (gnulib-arch): New variable.
128         [!gnulib] (gnulib-tests): Likewise.
129         [!gnulib] (static-gnulib-arch): Likewise.
130         [!gnulib] (static-gnulib-tests): Likewise.
131         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
132         Define with "=" instead of ":=".
133         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
134         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
135         * Rules (binaries-all-notests): New variable.
136         (binaries-all-tests): Likewise.
137         (binaries-static-notests): Likewise.
138         (binaries-static-tests): Likewise.
139         (binaries-all): Define using $(binaries-all-notests) and
140         $(binaries-all-tests).
141         (binaries-static): Define using $(binaries-static-notests) and
142         $(binaries-static-tests).
143         (binaries-shared-tests): New variable.
144         (binaries-shared-notests): Likewise.
145         (binaries-shared): Remove variable.
146         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
147         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
148         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
149         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
150         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
151         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
152         * elf/Makefile (sln-modules): New variable.
153         (extra-objs): Add $(sln-modules:=.o).
154         (ldconfig-modules): Add static-stubs.
155         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
156         * elf/static-stubs.c: New file.
158         [BZ #14283]
159         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
160         by 7 not 8 to examine high bit of fractional part.  Use volatile
161         variables when splitting into final array of floats if
162         __FLT_EVAL_METHOD__ != 0.
163         * math/libm-test.inc (cos_test): Add another test.
164         (sin_test): Likewise.
165         * sysdeps/i386/fpu/libm-test-ulps: Update.
167         [BZ #14273]
168         * math/libm-test.inc (cosh_test): Add more tests.
170         * version.h (RELEASE): Set to "development".
171         (VERSION): Set to "2.16.90".
173 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
175         * NEWS: Update copyright. Remove last-updated date.
176         Mention math library bug fixes and timezone data changes.
177         * README: Mention GNU/Hurd, x32, and HPPA support status.
179 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
181         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
183 2012-06-27  Andreas Jaeger  <aj@suse.de>
185         * manual/contrib.texi (Contributors): Add Samuel Thibault.
187 2012-06-25  Andreas Jaeger  <aj@suse.de>
189         * sysdeps/s390/fpu/libm-test-ulps: Update.
191 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
192             Thomas Schwinge  <thomas@codesourcery.com>
194         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
195         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
196         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
197         fanotify_mark.
199 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
201         * sysdeps/mach/start.c: Remove file.
202         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
203         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
204         * sysdeps/sh/init-first.c: Likewise.
206         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
207         registers for frame unwinding purposes, add CFI directives.
208         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
209         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
210         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
211         Likewise.
213         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
214         __fortify_fail returning.
215         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
217         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
218         sysdeps/sh/____longjmp_chk.S.
219         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
220         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
221         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
222         (gen-as-const-headers): Append sigaltstack-offsets.sym.
224         * sysdeps/sh/abort-instr.h: New file.
225         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
226         process in case exit returns.
228         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
229         initialize the GOT register before use.
231         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
232         calculation of ARGC > 4.
234         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
235         meaningful names to some local labels.
237 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
238             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
240         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
241         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
242         (__arch_compare_and_exchange_val_16_acq): Likewise.
243         (__arch_compare_and_exchange_val_32_acq): Likewise.
244         (atomic_exchange_and_add): Fix gUSA sequence.
245         (atomic_add): Likewise.
246         (atomic_add_negative): Likewise.
247         (atomic_add_zero): Likewise.
248         (atomic_bit_test_set): Likewise.
250 2012-06-22  Andreas Schwab  <schwab@redhat.com>
252         [BZ #13579]
253         * include/link.h (struct link_map): Add l_free_initfini.
254         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
255         l_initfini.
256         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
257         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
258         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
259         set.
261 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
263         * configure.in: Use AC_LANG_SOURCE.
264         * configure: Regenerate.
266 2012-06-22  Roland McGrath  <roland@hack.frob.com>
268         * configure.in (libc_cv_localstatedir): New substituted variable.
269         * configure: Regenerated.
270         * config.make.in (localstatedir): New variable, substituted from
271         libc_cv_localstatedir.
272         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
273         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
274         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
275         * sysdeps/gnu/configure: Regenerated.
277 2012-06-21  Jeff Law  <law@redhat.com>
279         [BZ #14277]
280         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
281         free.  Simplify list management for _LIBC case.
283 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
285         [BZ #14273]
286         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
287         Clear sign bit of 64-bit integer value before comparing against
288         overflow value.
290         * sysdeps/mach/configure: Regenerated.
292 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
294         [BZ #14278]
295         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
297 2012-06-21  Jeff Law  <law@redhat.com>
299         [BZ #13882]
300         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
301         uint16_t for elements in the "seen" array to avoid char overflows.
302         * elf/dl-fini.c (_dl_sort_fini): Likewise.
303         * elf/dl-open.c (dl_open_worker): Likewise.
305 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
307         * scripts/list-sources.sh: Scan PORTS for translations.
308         * po/libc.pot: Regenerated.
310 2012-06-21  Andreas Jaeger  <aj@suse.de>
312         [BZ #12194]
313         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
314         warning.
315         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
316         * bits/byteswap-16.h (__bswap_16): Likewise.
317         * bits/byteswap.h (__bswap_constant_16): Likewise.
319 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
321         [BZ #14117]
322         * sysdeps/i386/fpu_control.h: Removed.
323         * sysdeps/x86_64/fpu_control.h: Moved to ...
324         * sysdeps/x86/fpu_control.h: Here.
326         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
327         (_FPU_SETCW): Likewise.
329 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
331         [BZ #14117]
332         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
333         * sysdeps/x86/fpu/bits/mathinline.h: This.
334         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
336         [BZ #14050]
337         [BZ #14117]
338         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
339         functions if __x86_64__ is defined.
341 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
343         * string/endian.h: Add !__ASSEMBLER__ condition for including
344         conversion interfaces.
346 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
348         [BZ #14241]
349         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
350         of ABS(x) in calculating zero to negative powers other than odd
351         integers.
352         * math/libm-test.inc (pow_test): Add more tests.
354 2012-06-15  Andreas Jaeger  <aj@suse.de>
356         * manual/contrib.texi (Contributors): Update entry of Liubov
357         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
358         Machado Filho.
360 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
362         * string/string.h: Add __wur to GNU version of strerror_r.
364 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
366         [BZ #14229]
367         * string/Makefile (tests): Add tst-strtok_r.
368         * string/tst-strtok_r.c: New file.
369         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
370         RAX_LP/RDX_LP on SAVE_PTR.
372 2012-06-14  Roland McGrath  <roland@hack.frob.com>
374         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
376 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
378         * libm_test.inc (csqrt_test): Allow more spurious underflow
379         exceptions.
380         (j0_test): Likewise.
381         (j1_test): Likewise.
382         (y0_test): Likewise.
383         (y1_test): Likewise.
385 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
387         * po/Makefile (libc.pot): Use UTF-8 charset.
389 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
391         [BZ #14210]
392         Suppress sign-conversion warning from FD_SET.
393         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
394         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
395         not unsigned long int.
396         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
398 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
400         [BZ #14050]
401         [BZ #14117]
402         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
403         __extern_always_inline instead of __extern_inline.
404         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
405         (__signbit): Likewise.
406         (__signbitl): Support C++ namespace.
407         (lrintf): New inline function.
408         (lrint): Likewise.
409         (llrintf): Likewise.
410         (llrint): Likewise.
411         (fmaxf): Likewise.
412         (fmax): Likewise.
413         (fminf): Likewise.
414         (fmin): Likewise.
415         (rint): Likewise.
416         (rintf): Likewise.
417         (ceil): Likewise.
418         (ceilf): Likewise.
419         (floor): Likewise.
420         (floorf): Likewise.
421         (nearbyint): Likewise.
422         (nearbyintf): Likewise.
424 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
426         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
427         non-default versions.
429 2012-06-11  Roland McGrath  <roland@hack.frob.com>
431         [BZ #14218]
432         * manual/argp.texi (Argp): Reword argp_parse description slightly.
434 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
436         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
437         (FE_UPWARD, FE_DOWNWARD): Don't define.
438         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
439         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
441         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
442         reading it.
443         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
444         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
446 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
448         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
449         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
450         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
451         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
453 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
455         [BZ #14117]
456         * sysdeps/i386/fpu/bits/fenv.h: Removed.
457         * sysdeps/i386/fpu/Implies: New file.
458         * sysdeps/x86_64/fpu/Implies: Likewise.
459         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
460         * sysdeps/x86/fpu/bits/fenv.h: This.
462         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
463         __SSE_MATH__.
465 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
467         [BZ #14134]
468         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
469         character 0xffff that matches the last element of the
470         conversion table.
472 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
474         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
475         fmodl commit.
477 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
479         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
480         values higher than 25.6283.
482 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
484         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
485         subnormal exponent extraction and add some __builtin_expect.
486         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
487         Fix for subnormal mantissa calculation.
489 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
491         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
492         cpu2 is -1 and errno is not ENOSYS.
494 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
496         [BZ #14117]
497         * sysdeps/i386/i486/bits/string.h: Renamed to ...
498         * sysdeps/x86/bits/string.h: This.
499         * sysdeps/x86_64/bits/string.h: Removed.
501         * sysdeps/i386/i486/bits/string.h: Define inline functions only
502         if not compiling for x86-64, but compiling for >= i486.
504         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
505         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
507         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
508         New macro from Linux kernel 3.4.0.
509         (FP_XSTATE_MAGIC2): Likewise.
510         (FP_XSTATE_MAGIC2_SIZE): Likewise.
511         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
512         (struct _fpx_sw_bytes): New struct.
513         (struct _xsave_hdr): Likewise.
514         (struct _ymmh_state): Likewise.
515         (struct _xstate): Likewise.
517         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
518         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
519         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
520         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
521         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
522         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
524         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
525         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
526         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
527         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
528         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
529         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
531 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
533         [BZ #13743]
534         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
535         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
536         (sysdep_headers): Include sys/platform/ppc.h.
537         * sysdeps/powerpc/test-gettimebase.c: Test for
538         __ppc_get_timebase() to catch future ISA opcode/insn changes.
539         * manual/Makefile (appendices): Include platform.texi.
540         * manual/contrib.texi (Contributors): Update @node pointers.
541         * manual/maint.texi (Maintenance): Likewise.
542         (Platform): New node.
543         * manual/platform.texi: New file.  Document the new features.
545 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
546             Jakub Jelinek  <jakub@redhat.com>
548         [BZ #14188]
549         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
550         where __builtin_expect is unavailable.
552 2012-06-03  David S. Miller  <davem@davemloft.net>
554         * stdlib/longlong.h: Updated from GCC.
556 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
558         [BZ #14042]
559         * sysdeps/powerpc/powerpc32/mcount.c: New file.
560         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
561         __mcount_internal.
562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
563         (GLIBC_2.16): Likewise.
565 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
567         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
569 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
572         (default-abi): New variable.
573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
574         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
575         variable.
576         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
577         Likewise.
578         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
579         Likewise.
580         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
581         Likewise.
583         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
584         definition.  Document in comment.
586 2012-06-01  David S. Miller  <davem@davemloft.net>
588         * stdlib/longlong.h: Updated from GCC.
590 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
592         [BZ #14117]
593         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
594         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
595         sys/debugreg.h sys/io.h here.
596         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
597         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
598         sys/io.h.
599         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
600         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
601         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
602         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
603         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
604         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
606         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
607         Define only if __x86_64__ is defined.
609 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
611         [BZ #14048]
612         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
613         Use int64_t for variable i.
614         * math/libm-test.inc (fmod_test): Add more tests.
616         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
617         z computation is not scheduled after fetestexcept.
618         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
619         Use math_force_eval instead of asm to ensure calculation scheduled
620         before exception test.
621         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
622         Ensure a1 + u.d computation is not scheduled after fetestexcept.
624 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
626         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
627         computation is not scheduled after fetestexcept.
629 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
631         [BZ #14117]
632         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
633         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
635 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
637         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
638         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
640 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
642         [BZ #14117]
643         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
644         <bits/wordsize.h>.
645         (__WCHAR_MIN): Support __WORDSIZE == 64.
646         (__WCHAR_MAX): Likewise.
648         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
649         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
651         [BZ #14183]
652         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
653         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
655         [BZ #14117]
656         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
657         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
659         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
660         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
662         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
663         Defined to 1 if __x86_64__ isn't defined.
664         (_STAT_VER_LINUX_OLD): New.
665         (st_atime): Remove duplicate.
666         (st_mtime): Likewise.
667         (st_ctime): Likewise.
669 2012-05-31  David S. Miller  <davem@davemloft.net>
671         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
672         entries.
674 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
676         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
677         gen-libm-test.pl.
679         [BZ #14132]
680         * elf/dl-reloc.c: Include <_itoa.h>.
681         (_dl_reloc_bad_type): Remove use of INTUSE.
682         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
683         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
684         * stdio-common/psiginfo.c (psiginfo): Likewise.
685         * stdio-common/psignal.c (psignal): Likewise.
686         * string/strsignal.c (strsignal): Likewise.
687         * include/signal.h (_sys_siglist): Declare hidden proto.
688         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
689         INTVARDEF with libc_hidden_data_def.
690         * stdio-common/itoa-udigits.c: Likewise.
691         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
692         (_itoa_lower_digits_internal): Remove declaration.
693         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
694         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
695         (_sys_sigabbrev_internal): Remove aliases.
696         (_sys_siglist): Define hidden alias.
698 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
700         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
701         bits/sysctl.h.
703 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
705         [BZ #14117]
706         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
707         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
709         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
710         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
711         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
712         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
713         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
714         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
716         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
717         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
718         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
720         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
721         with __addr.
722         (insw): Likewise.
723         (insl): Likewise.
724         (outsb): Likewise.
725         (outsw): Likewise.
726         (outsl): Likewise.
728         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
729         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
730         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
732         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
733         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
734         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
735         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
736         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
737         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
739         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
740         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
742         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
743         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
745         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
746         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
747         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
749         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
750         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
751         to ...
752         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
754         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
755         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
756         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
758         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
759         for x86-64.
760         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
762 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
764         * math/math.h (M_El): Use two more decimal places.
765         (M_LOG2El): Likewise.
766         (M_LOG10El): Likewise.
767         (M_LN2l): Likewise.
768         (M_LN10l): Likewise.
769         (M_PIl): Likewise.
770         (M_PI_2l): Likewise.
771         (M_PI_4l): Likewise.
772         (M_1_PIl): Likewise.
773         (M_2_PIl): Likewise.
774         (M_2_SQRTPIl): Likewise.
775         (M_SQRT2l): Likewise.
776         (M_SQRT1_2l): Likewise.
778 2012-05-31  David S. Miller  <davem@davemloft.net>
780         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
781         values between float registers.
782         * sysdeps/sparc/sparc64/memset.S: Likewise.
783         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
785 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
787         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
788         -D_FORTIFY_SOURCE=1.
789         (CPPFLAGS-tst-longjmp_chk.c): Define.
790         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
791         (CPPFLAGS-tst-longjmp_chk2.c): Define.
792         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
793         CFLAGS-tst-wchar-h.c.
795 2012-05-31  Marek Polacek  <polacek@redhat.com>
797         [BZ #14132]
798         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
799         __endmntent_internal): Remove declaration.
800         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
801         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
802         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
804 2012-05-30  David S. Miller  <davem@davemloft.net>
806         * sysdeps/sparc/sparc32/soft-fp/q_util.c
807         (___Q_simulate_exceptions): Use real FP ops rather than writing
808         into the %fsr.
809         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
810         Likewise.
812 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
814         [BZ #14117]
815         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
816         * sysdeps/x86/bits/xtitypes.h: This.
818         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
819         * sysdeps/x86/bits/wordsize.h: This.
821         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
822         * sysdeps/x86/bits/huge_vall.h: This.
824         * sysdeps/i386/bits/select.h: Removed.
825         * sysdeps/x86_64/bits/select.h: Renamed to ...
826         * sysdeps/x86/bits/select.h: This.
828         * sysdeps/i386/bits/setjmp.h: Removed.
829         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
830         * sysdeps/x86/bits/setjmp.h: This.
832         * sysdeps/i386/bits/mathdef.h: Removed.
833         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
834         * sysdeps/x86/bits/mathdef.h: This.
836 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
838         [BZ #14132]
839         * include/sys/socket.h (__connect_internal)
840         (__libc_sa_len_internal): Remove declaration.
841         (__connect, __libc_sa_len): Declare hidden_proto.
842         (SA_LEN): Remove use of INTUSE.
843         * socket/connect.c: Add libc_hidden_def.
844         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
845         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
846         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
847         alias.
848         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
849         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
850         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
851         of adding _internal alias.
853 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
855         [BZ #14117]
856         * sysdeps/i386/bits/link.h: Removed.
857         * sysdeps/i386/bits/linkmap.h: Likewise.
858         * sysdeps/x86_64/bits/link.h: Renamed to ...
859         * sysdeps/x86/bits/link.h: This.
860         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
861         * sysdeps/x86/bits/linkmap.h: This.
863         * sysdeps/i386/bits/endian.h: Removed.
864         * sysdeps/x86_64/bits/endian.h: Renamed to ...
865         * sysdeps/x86/bits/endian.h: This.
867         * sysdeps/i386/bits/byteswap.h: Removed.
868         * sysdeps/i386/bits/byteswap-16.h: Likewise.
869         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
870         * sysdeps/x86/bits/byteswap.h: This.
871         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
872         * sysdeps/x86/bits/byteswap-16.h: This.
873         * sysdeps/i386/Implies: Add x86.
874         * sysdeps/x86_64/Implies: Likewise.
876 2012-05-30  David S. Miller  <davem@davemloft.net>
878         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
879         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
880         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
881         (FP_TRAPPING_EXCEPTIONS): Define.
882         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
883         (FP_TRAPPING_EXCEPTIONS): Define.
884         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
885         subnormals only when inexact has been signalled or underflow
886         exceptions are enabled.
887         (_FP_PACK_CANONICAL): Likewise.
889 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
891         [BZ #14183]
892         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
893         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
895 2012-05-30  Richard Henderson  <rth@twiddle.net>
897         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
898         with #ifndef NOT_IN_libc.
900         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
901         marked to avoid plt entry.
903 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
905         [BZ #14112]
906         * Makeconfig (default-abi): New macro.
907         (abi-includes): Likewise.
908         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
909         $(abi-$(default-abi)-lib-soname) for soname if defined.
910         ($(common-objpfx)gnu/lib-names.stmp): Generate from
911         abi-variants.
912         * Makefile (installed-stubs): Likewise.
913         * include/stubs-biarch.h: Removed.
914         * scripts/lib-names.awk: Only handle one library at a time.
915         * scripts/soversions.awk: Remove WORDSIZE support.
916         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
917         entries.
918         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
919         Removed.
920         (syscall-list-default-condition): Likewise.
921         (syscall-list-default-condition): Likewise.
922         (syscall-list-includes): Likewise.
923         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
924         syscall-list-* with abi-*.  Handle undefined abi-variants.
925         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
926         * sysdeps/unix/sysv/linux/i386/Implies: New file.
927         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
928         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
929         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
930         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
931         Removed.
932         (syscall-list-32-options): Likewise.
933         (syscall-list-32-condition): Likewise.
934         (syscall-list-64-options): Likewise.
935         (syscall-list-64-condition): Likewise.
936         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
937         macro.
938         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
939         Renamed to ...
940         (abi-*): This.
941         (abi-64-ld-soname): New macro.
942         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
943         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
944         Renamed to ...
945         (abi-*): This.
946         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
947         * sysdeps/x86_64/x32/shlib-versions: Likewise.
949 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
951         * sysdeps/unix/sysv/linux/kernel-features.h
952         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
953         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
954         include <kernel-features.h>.
955         [!__NR_ftruncate64]: Remove conditional code.
956         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
957         [__NR_ftruncate64]: Make code unconditional.
958         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
959         * sysdeps/unix/sysv/linux/truncate64.c: Do not
960         include <kernel-features.h>.
961         [!__NR_ftruncate64]: Remove conditional code.
962         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
963         [__NR_ftruncate64]: Make code unconditional.
964         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
966         include <kernel-features.h>.
967         [!__NR_ftruncate64]: Remove conditional code.
968         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
969         [__NR_ftruncate64]: Make code unconditional.
970         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
972         include <kernel-features.h>.
973         [!__NR_ftruncate64]: Remove conditional code.
974         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
975         [__NR_ftruncate64]: Make code unconditional.
976         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
978         * configure.in (libc_cv_fpie): Weaken to a compile test using
979         LIBC_TRY_CC_OPTION.
980         * configure: Regenerated.
982 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
984         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
985         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
986         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
987         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
988         Refreshed.
989         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
990         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
991         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
992         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
993         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
994         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
995         Refreshed.
997 2012-05-27  David S. Miller  <davem@davemloft.net>
999         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
1000         (___Q_zero): New.
1001         (__Q_simulate_exceptions): Return void.  Change to simulate
1002         exceptions by writing into the %fsr.
1003         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
1004         (__Qp_handle_exceptions): Likewise.
1005         (numbers): Delete.
1006         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
1007         __Qp_handle_exceptions.
1008         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
1009         __Qp_handle_exceptions.
1010         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
1011         as unused and give dummy FP_RND_NEAREST initializer.
1012         (FP_INHIBIT_RESULTS): Define.
1013         (___Q_simulate_exceptions): Update declaration.
1014         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
1015         formatting.
1016         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
1017         as unused and give dummy FP_RND_NEAREST initializer.
1018         (__Qp_handle_exceptions): Update declaration.
1019         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
1020         formatting.
1022 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
1024         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
1025         the temporary FPU control word.
1026         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1027         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
1028         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
1029         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
1030         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
1031         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
1032         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
1033         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
1034         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
1035         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
1036         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
1038 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1040         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
1041         fields.
1043 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
1045         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
1046         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
1047         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
1048         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
1049         Likewise.
1050         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
1051         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
1052         Likewise.
1054 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
1056         * po/h.po: Update from translation team.
1058 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
1060         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
1062         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
1063         handling of denormals.
1064         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
1065         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
1066         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
1067         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
1068         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
1069         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
1070         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
1071         Likewise.
1073 2012-05-26  Marek Polacek  <polacek@redhat.com>
1075         [BZ #14152]
1076         * math/libm-test.inc (fma_test): Don't always expect underflow
1077         exception.
1079 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1081         [BZ #12416]
1082         * elf/tst-execstack.c: Include stackinfo.h.
1083         (do_test): Adjust test case to ensure that pthread_getattr_np
1084         behaviour remains the same after marking stack executable.
1086 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
1088         * sysdeps/unix/sysv/linux/kernel-features.h
1089         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
1090         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
1091         kernel-features.h.
1092         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
1093         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
1094         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
1095         kernel-features.h.
1096         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
1097         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
1099 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1101         * configure.in: Define the default includes to being none.
1102         * configure: Regenerated.
1104 2012-05-25  Roland McGrath  <roland@hack.frob.com>
1106         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
1107         * sysdeps/x86_64/setjmp.S: Likewise.
1108         * sysdeps/i386/bsd-setjmp.S: Likewise.
1109         * sysdeps/i386/bsd-_setjmp.S: Likewise.
1110         * sysdeps/i386/setjmp.S: Likewise.
1111         * sysdeps/i386/__longjmp.S: Likewise.
1112         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
1113         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1115         * include/stap-probe.h: New file.
1116         * configure.in: Handle --enable-systemtap.
1117         * configure: Regenerated.
1118         * config.h.in (USE_STAP_PROBE): New #undef.
1119         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
1120         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
1121         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
1123 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
1125         [BZ #13717]
1126         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
1127         to 2.4.0 where earlier.
1128         * sysdeps/unix/sysv/linux/configure: Regenerated.
1129         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
1130         <kernel-features.h>.
1131         [__ASSUME_32BITUIDS]: Make code unconditional.
1132         [!__ASSUME_32BITUIDS]: Remove conditional code.
1133         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
1134         <kernel-features.h>.
1135         [__ASSUME_32BITUIDS]: Make code unconditional.
1136         [!__ASSUME_32BITUIDS]: Remove conditional code.
1137         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
1138         [__ASSUME_32BITUIDS]: Make code unconditional.
1139         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
1140         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
1141         <kernel-features.h>.
1142         [__ASSUME_32BITUIDS]: Make code unconditional.
1143         [!__ASSUME_32BITUIDS]: Remove conditional code.
1144         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
1145         <kernel-features.h>.
1146         [__ASSUME_32BITUIDS]: Make code unconditional.
1147         [!__ASSUME_32BITUIDS]: Remove conditional code.
1148         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
1149         <kernel-features.h>.
1150         [__ASSUME_32BITUIDS]: Make code unconditional.
1151         [!__ASSUME_32BITUIDS]: Remove conditional code.
1152         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
1153         <kernel-features.h>.
1154         [__ASSUME_32BITUIDS]: Make code unconditional.
1155         [!__ASSUME_32BITUIDS]: Remove conditional code.
1156         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
1157         <kernel-features.h>.
1158         [__ASSUME_32BITUIDS]: Make code unconditional.
1159         [!__ASSUME_32BITUIDS]: Remove conditional code.
1160         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
1161         <kernel-features.h>.
1162         [__ASSUME_32BITUIDS]: Make code unconditional.
1163         [!__ASSUME_32BITUIDS]: Remove conditional code.
1164         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
1165         <kernel-features.h>.
1166         [__ASSUME_32BITUIDS]: Make code unconditional.
1167         [!__ASSUME_32BITUIDS]: Remove conditional code.
1168         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
1169         <kernel-features.h>.
1170         [__ASSUME_32BITUIDS]: Make code unconditional.
1171         [!__ASSUME_32BITUIDS]: Remove conditional code.
1172         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
1173         <kernel-features.h>.
1174         [__ASSUME_32BITUIDS]: Make code unconditional.
1175         [!__ASSUME_32BITUIDS]: Remove conditional code.
1176         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
1177         <kernel-features.h>.
1178         [__ASSUME_32BITUIDS]: Make code unconditional.
1179         [!__ASSUME_32BITUIDS]: Remove conditional code.
1180         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
1181         <kernel-features.h>.
1182         [__NR_setresgid] (__setresgid): Do not declare.
1183         [__ASSUME_32BITUIDS]: Make code unconditional.
1184         [!__ASSUME_32BITUIDS]: Remove conditional code.
1185         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
1186         <kernel-features.h>.
1187         [__NR_setresuid] (__setresuid): Do not declare.
1188         [__ASSUME_32BITUIDS]: Make code unconditional.
1189         [!__ASSUME_32BITUIDS]: Remove conditional code.
1190         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
1191         <kernel-features.h>.
1192         [__ASSUME_32BITUIDS]: Make code unconditional.
1193         [!__ASSUME_32BITUIDS]: Remove conditional code.
1194         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
1195         <kernel-features.h>.
1196         [__ASSUME_32BITUIDS]: Make code unconditional.
1197         [!__ASSUME_32BITUIDS]: Remove conditional code.
1198         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
1199         <kernel-features.h>.
1200         [__ASSUME_32BITUIDS]: Make code unconditional.
1201         [!__ASSUME_32BITUIDS]: Remove conditional code.
1202         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
1203         <kernel-features.h>.
1204         [__ASSUME_32BITUIDS]: Make code unconditional.
1205         [!__ASSUME_32BITUIDS]: Remove conditional code.
1206         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
1207         <kernel-features.h>.
1208         [__ASSUME_32BITUIDS]: Make code unconditional.
1209         [!__ASSUME_32BITUIDS]: Remove conditional code.
1210         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
1211         <kernel-features.h>.
1212         [__ASSUME_32BITUIDS]: Make code unconditional.
1213         [!__ASSUME_32BITUIDS]: Remove conditional code.
1214         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
1215         <kernel-features.h>.
1216         [__ASSUME_32BITUIDS]: Make code unconditional.
1217         [!__ASSUME_32BITUIDS]: Remove conditional code.
1218         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
1219         <kernel-features.h>.
1220         [__ASSUME_32BITUIDS]: Make code unconditional.
1221         [!__ASSUME_32BITUIDS]: Remove conditional code.
1222         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
1223         <kernel-features.h>.
1224         [__ASSUME_32BITUIDS]: Make code unconditional.
1225         [!__ASSUME_32BITUIDS]: Remove conditional code.
1226         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
1227         <kernel-features.h>.
1228         [__ASSUME_32BITUIDS]: Make code unconditional.
1229         [!__ASSUME_32BITUIDS]: Remove conditional code.
1230         * sysdeps/unix/sysv/linux/kernel-features.h
1231         (__ASSUME_SETRESUID_SYSCALL): Remove.
1232         (__ASSUME_SETRESGID_SYSCALL): Likewise.
1233         (__ASSUME_32BITUIDS): Likewise.
1234         (__ASSUME_LDT_WORKS): Likewise.
1235         (__ASSUME_O_DIRECTORY): Likewise.
1236         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
1237         architecture but not kernel version.
1238         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
1239         (__ASSUME_MMAP2_SYSCALL): Likewise.
1240         (__ASSUME_STAT64_SYSCALL): Likewise.
1241         (__ASSUME_IPC64): Likewise.
1242         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
1243         <kernel-features.h>.
1244         [__ASSUME_32BITUIDS]: Make code unconditional.
1245         [!__ASSUME_32BITUIDS]: Remove conditional code.
1246         * sysdeps/unix/sysv/linux/opendir.c: Do not include
1247         <kernel-features.h>.
1248         [__ASSUME_O_DIRECTORY]: Make code unconditional.
1249         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
1250         132096]: Remove conditional code.
1251         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
1252         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
1253         <kernel-features.h>.
1254         [__ASSUME_32BITUIDS]: Make code unconditional.
1255         [!__ASSUME_32BITUIDS]: Remove conditional code.
1256         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
1257         <kernel-features.h>.
1258         [__ASSUME_32BITUIDS]: Make code unconditional.
1259         [!__ASSUME_32BITUIDS]: Remove conditional code.
1260         * sysdeps/unix/sysv/linux/setegid.c: Do not include
1261         <kernel-features.h>.
1262         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
1263         unconditional.
1264         (__setresgid): Do not declare.
1265         [__ASSUME_32BITUIDS]: Make code unconditional.
1266         [!__ASSUME_32BITUIDS]: Remove conditional code.
1267         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
1268         <kernel-features.h>.
1269         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
1270         unconditional.
1271         (__setresuid): Do not declare.
1272         [__ASSUME_32BITUIDS]: Make code unconditional.
1273         [!__ASSUME_32BITUIDS]: Remove conditional code.
1274         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
1275         <kernel-features.h>.
1276         [__ASSUME_32BITUIDS]: Make code unconditional.
1277         [!__ASSUME_32BITUIDS]: Remove conditional code.
1278         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
1279         <kernel-features.h>.
1280         [__ASSUME_32BITUIDS]: Make code unconditional.
1281         [!__ASSUME_32BITUIDS]: Remove conditional code.
1283 2012-05-25  Richard Henderson  <rth@twiddle.net>
1285         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
1286         dl_hwcap to ifunc resolver.
1287         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
1288         elf_ifunc_invoke.
1289         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
1290         dl_hwcap to ifunc resolver.
1291         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
1293 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
1295         [BZ #14153]
1296         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
1297         for |x| <= 2**-26, not 2**-57.
1298         * math/libm-test.inc (acos_test): Do not allow spurious underflow
1299         exception.
1301 2012-05-24  Jeff Law  <law@redhat.com>
1303         * stdio-common/Makefile (tests): Add bug25.
1304         * stdio-common/bug25.c: New test.
1306 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1308         [BZ #13576]
1309         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
1310         multiple of MALLOC_ALIGNMENT in size.
1311         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
1313 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
1315         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
1316         Require >= 256.
1317         (FILENAME_MAX): Use macro-int-constant.
1318         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
1319         (_IOFBF): Use macro-int-constant.
1320         (_IOLBF): Likewise.
1321         (_IONBF): Likewise.
1322         (SEEK_CUR): Likewise.
1323         (SEEK_END): Likewise.
1324         (SEEK_SET): Likewise.
1325         (TMP_MAX): Likewise.
1326         (EOF): Use macro-int-constant.  Require < 0.
1327         (NULL): Use macro-constant.  Require == 0.
1328         (stdin): Require type to be FILE *.
1329         (stdout): Likewise.
1330         (stderr): Likewise.
1331         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
1332         macro-int-constant.
1333         (EXIT_SUCCESS): Likewise.
1334         (NULL): Use macro-constant.  Require == 0.
1335         (RAND_MAX): Use macro-int-constant.
1336         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
1337         [C99-based standards] (strtof): Require function.
1338         [C99-based standards] (strtold): Likewise.
1339         [C99-based standards] (strtoll): Likewise.
1340         [C99-based standards] (strtoull): Likewise.
1341         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
1342         [ISO || ISO99 || ISO11] (limits.h): Likewise.
1343         [ISO || ISO99 || ISO11] (math.h): Likewise.
1344         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
1345         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
1346         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1348 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
1350         [BZ #14132]
1351         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
1352         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
1353         * intl/dgettext.c (DCGETTEXT): Likewise.
1354         * intl/gettext.c (DCGETTEXT): Likewise.
1355         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
1356         * posix/regex_internal.h (gettext): Likewise.
1357         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
1358         Remove declaration.
1359         * include/argz.h (__argz_count_internal)
1360         (__argz_stringify_internal): Remove declaration.
1361         (__argz_count, __argz_stringify): Declare hidden proto.
1362         * intl/dcgettext.c: Remove use of INTDEF.
1363         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
1364         * string/argz-stringify.c: Likewise.
1365         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
1366         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
1367         Declare hidden proto.
1368         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
1369         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
1370         Declare hidden proto.
1371         * include/stdio.h (__asprintf_internal): Don't declare.
1372         (__asprintf): Don't define as macro.  Declare hidden proto.
1373         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
1374         (__fsetlocking): Declare hidden proto.
1375         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
1376         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
1377         hidden proto.
1378         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
1379         (_IO_setlinebuf): Remove use of INTUSE.
1380         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
1381         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
1382         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
1383         Remove declaration.
1384         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
1385         (_IO_do_flush): Remove use of INTUSE.
1386         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
1387         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
1388         (_IO_adjust_column, _IO_least_wmarker)
1389         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
1390         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
1391         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
1392         (_IO_default_doallocate, _IO_wdefault_doallocate)
1393         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
1394         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
1395         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
1396         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
1397         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
1398         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
1399         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
1400         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
1401         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
1402         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
1403         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
1404         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
1405         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
1406         proto.
1407         (_IO_flush_all_internal, _IO_adjust_column_internal)
1408         (_IO_default_uflow_internal, _IO_default_finish_internal)
1409         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
1410         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
1411         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
1412         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
1413         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
1414         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
1415         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
1416         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
1417         (_IO_file_close_internal, _IO_file_close_it_internal)
1418         (_IO_file_underflow_internal, _IO_file_overflow_internal)
1419         (_IO_file_init_internal, _IO_file_attach_internal)
1420         (_IO_file_fopen_internal, _IO_file_read_internal)
1421         (_IO_file_sync_internal, _IO_file_seek_internal)
1422         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
1423         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
1424         (_IO_str_underflow_internal, _IO_str_overflow_internal)
1425         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
1426         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
1427         (_IO_list_all_internal, _IO_link_in_internal)
1428         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
1429         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
1430         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
1431         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
1432         (_IO_do_write_internal, _IO_padn_internal)
1433         (_IO_getline_info_internal, _IO_getline_internal)
1434         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
1435         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
1436         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
1437         (_IO_vfscanf_internal, _IO_vfprintf_internal)
1438         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
1439         (_IO_init_internal, _IO_un_link_internal): Don't declare.
1440         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
1441         with libc_hidden_ver, remove use of INTUSE.
1442         * libio/genops.c: Likewise.
1443         * libio/freopen.c: Likewise.
1444         * libio/freopen64.c: Likewise.
1445         * libio/iofclose.c: Likewise.
1446         * libio/iofdopen.c: Likewise.
1447         * libio/iofflush.c: Likewise.
1448         * libio/iofflush_u.c: Likewise.
1449         * libio/iofgets.c: Likewise.
1450         * libio/iofgets_u.c: Likewise.
1451         * libio/iofopen.c: Likewise.
1452         * libio/iofopncook.c: Likewise.
1453         * libio/iofread.c: Likewise.
1454         * libio/iofread_u.c: Likewise.
1455         * libio/ioftell.c: Likewise.
1456         * libio/iofwrite.c: Likewise.
1457         * libio/iogetline.c: Likewise.
1458         * libio/iogets.c: Likewise.
1459         * libio/iogetwline.c: Likewise.
1460         * libio/iopadn.c: Likewise.
1461         * libio/iopopen.c: Likewise.
1462         * libio/ioseekoff.c: Likewise.
1463         * libio/ioseekpos.c: Likewise.
1464         * libio/iosetbuffer.c: Likewise.
1465         * libio/iosetvbuf.c: Likewise.
1466         * libio/ioungetc.c: Likewise.
1467         * libio/ioungetwc.c: Likewise.
1468         * libio/iovdprintf.c: Likewise.
1469         * libio/iovsprintf.c: Likewise.
1470         * libio/iovsscanf.c: Likewise.
1471         * libio/memstream.c: Likewise.
1472         * libio/obprintf.c: Likewise.
1473         * libio/oldfileops.c: Likewise.
1474         * libio/oldiofclose.c: Likewise.
1475         * libio/oldiofdopen.c: Likewise.
1476         * libio/oldiofopen.c: Likewise.
1477         * libio/oldiopopen.c: Likewise.
1478         * libio/oldstdfiles.c: Likewise.
1479         * libio/putc.c: Likewise.
1480         * libio/setbuf.c: Likewise.
1481         * libio/setlinebuf.c: Likewise.
1482         * libio/stdfiles.c: Likewise.
1483         * libio/strops.c: Likewise.
1484         * libio/vasprintf.c: Likewise.
1485         * libio/vscanf.c: Likewise.
1486         * libio/vsnprintf.c: Likewise.
1487         * libio/vswprintf.c: Likewise.
1488         * libio/wfiledoalloc.c: Likewise.
1489         * libio/wfileops.c: Likewise.
1490         * libio/wgenops.c: Likewise.
1491         * libio/wmemstream.c: Likewise.
1492         * libio/wstrops.c: Likewise.
1493         * libio/__fpurge.c: Likewise.
1494         * libio/__fsetlocking.c: Likewise.
1495         * assert/assert.c: Likewise.
1496         * debug/fgets_chk.c: Likewise.
1497         * debug/fgets_u_chk.c: Likewise.
1498         * debug/fread_chk.c: Likewise.
1499         * debug/fread_u_chk.c: Likewise.
1500         * debug/gets_chk.c: Likewise.
1501         * debug/obprintf_chk.c: Likewise.
1502         * debug/vasprintf_chk.c: Likewise.
1503         * debug/vdprintf_chk.c: Likewise.
1504         * debug/vsnprintf_chk.c: Likewise.
1505         * debug/vsprintf_chk.c: Likewise.
1506         * malloc/mtrace.c: Likewise.
1507         * misc/error.c: Likewise.
1508         * misc/syslog.c: Likewise.
1509         * stdio-common/asprintf.c: Likewise.
1510         * stdio-common/fxprintf.c: Likewise.
1511         * stdio-common/getw.c: Likewise.
1512         * stdio-common/isoc99_fscanf.c: Likewise.
1513         * stdio-common/isoc99_scanf.c: Likewise.
1514         * stdio-common/isoc99_vfscanf.c: Likewise.
1515         * stdio-common/isoc99_vscanf.c: Likewise.
1516         * stdio-common/isoc99_vsscanf.c: Likewise.
1517         * stdio-common/printf-prs.c: Likewise.
1518         * stdio-common/printf_fp.c: Likewise.
1519         * stdio-common/printf_fphex.c: Likewise.
1520         * stdio-common/printf_size.c: Likewise.
1521         * stdio-common/putw.c: Likewise.
1522         * stdio-common/scanf.c: Likewise.
1523         * stdio-common/sprintf.c: Likewise.
1524         * stdio-common/tmpfile.c: Likewise.
1525         * stdio-common/vfprintf.c: Likewise.
1526         * stdio-common/vfscanf.c: Likewise.
1527         * stdlib/strfmon_l.c: Likewise.
1528         * sunrpc/openchild.c: Likewise.
1529         * sunrpc/xdr_stdio.c: Likewise.
1530         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
1531         * sysdeps/mach/hurd/tmpfile.c: Likewise.
1533 2012-05-24  Roland McGrath  <roland@hack.frob.com>
1535         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
1537         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
1538         in the third column, to generate for the shared library an IFUNC
1539         that uses _dl_vdso_vsym.
1540         * Makerules (COMPILE.c, compile-stdin.c): New variables.
1541         * Makeconfig (object-suffixes-noshared): New variable.
1543         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
1544         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
1545         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
1546         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
1548         [BZ #14132]
1549         * include/sys/time.h (__gettimeofday): Remove macro.
1550         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
1551         * time/gettimeofday.c (__gettimeofday): Remove #undef.
1552         Remove INTDEF.
1553         (__gettimeofday): Add libc_hidden_def.
1554         (gettimeofday): Add libc_hidden_weak.
1555         * sysdeps/mach/gettimeofday.c: Likewise.
1556         * sysdeps/posix/gettimeofday.c: Likewise.
1557         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
1558         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
1559         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
1560         (__gettimeofday_internal): Remove strong_alias.
1561         (__gettimeofday): Add libc_hidden_def.
1562         (gettimeofday): Add libc_hidden_weak.
1563         * sysdeps/unix/syscalls.list (gettimeofday):
1564         Remove __gettimeofday_internal alias.
1566 2012-05-24  Daniel Jacobowitz  <drow@false.org>
1567             H.J. Lu  <hongjiu.lu@intel.com>
1569         [BZ #12495]
1570         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
1571         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
1572         (largebin_index_32_big): New.
1573         (largebin_index): Use it for 16-byte alignment.
1574         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
1575         correction with front_misalign.
1577 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1579         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
1580         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
1581         Likewise.
1582         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
1583         Likewise.
1584         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
1585         Likewise.
1586         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
1587         Likewise.
1588         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
1589         Likewise.
1590         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
1591         Likewise.
1592         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
1593         Likewise.
1594         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
1595         Likewise.
1596         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
1597         Likewise.
1598         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
1599         Likewise.
1600         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
1601         Likewise.
1602         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
1603         Likewise.
1605         * scripts/data/c++-types-x32-linux-gnu.data: New file.
1606         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
1608 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
1610         [BZ #10846]
1611         [BZ #14036]
1612         * math/libm-test.inc (exp_test): Add test from bug 14036.
1613         (pow_test): Add test from bug 10846.
1615         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
1616         and other flags.
1617         (special_function): Do not include flags in test name.
1618         (parse_args): Likewise.
1619         * sysdeps/i386/fpu/libm-test-ulps: Update.
1620         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
1621         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
1622         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
1623         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1625         * math/gen-libm-test.pl (%beautify): Add entries for underflow
1626         exceptions.
1627         * math/libm-test.inc ("Philosophy"): Update comment about
1628         exception testing.
1629         (UNDERFLOW_EXCEPTION): New macro.
1630         (UNDERFLOW_EXCEPTION_OK): Likewise.
1631         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
1632         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
1633         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
1634         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
1635         (INVALID_EXCEPTION_OK): Update value.
1636         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
1637         (OVERFLOW_EXCEPTION_OK): Likewise.
1638         (IGNORE_ZERO_INF_SIGN): Likewise.
1639         (test_exceptions): Handle underflow exceptions.
1640         (acos_test): Update for underflow exception expectations.
1641         (cexp_test): Likewise.
1642         (clog_test): Likewise.
1643         (clog10_test): Likewise.
1644         (csqrt_test): Likewise.
1645         (ctan_test): Likewise.
1646         (ctanh_test): Likewise.
1647         (exp_test): Likewise.
1648         (exp10_test): Likewise.
1649         (exp2_test): Likewise.
1650         (expm1_test): Likewise.
1651         (fma_test): Likewise.
1652         (j0_test): Likewise.
1653         (jn_test): Likewise.
1654         (nexttoward_test): Likewise.
1655         (pow_test): Likewise.
1656         (scalbn_test): Likewise.
1657         (scalbln_test): Likewise.
1658         (tan_test): Likewise.
1659         (y1_test): Likewise.
1660         * sysdeps/i386/fpu/libm-test-ulps: Update.
1661         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1663 2012-05-23  David S. Miller  <davem@davemloft.net>
1665         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
1666         (__libc_sigaction): Remove unused local variables.
1668 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1670         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
1672 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1674         mktime: avoid signed integer overflow
1675         * time/mktime.c (__mktime_internal): Do not mishandle the case
1676         where diff == INT_MIN.
1678         mktime: simplify computation of average
1679         * time/mktime.c (ranged_convert): Use new time_t_avg function
1680         instead of rolling our own (probably-slower) code.
1682         mktime: do not assume signed right shift propagates sign bit
1683         * time/mktime.c (isdst_differ): New static function.
1684         (__mktime_internal): No need to normalize tm_isdst now.
1685         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
1686         tm_isdst values.
1688         mktime: merge another wrapv change from gnulib
1689         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
1690         from some compilers.
1692         mktime: remove incorrect attempt at unusual arithmetics
1693         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
1694         The code didn't really work on such machines anyway.
1695         (TYPE_MINIMUM): Assume two's complement.
1696         (twos_complement_arithmetic): Verify that long_int and time_t
1697         are two's complement (or unsigned, in the latter case).
1699         mktime: check signed shifts on long_int and time_t, too
1700         * time/mktime.c (SHR): Check that shifts work as desired
1701         on the types long_int and time_t too, as SHR is used on
1702         such types.
1704         mktime: do not assume 'long' is wide enough
1705         * time/mktime.c (verify): Move decl up.
1706         (long_int): New type.
1707         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
1708         to remove assumption in the code that 'long' is wide enough to
1709         store year values.  This assumption is not true on x32 and on
1710         some non-glibc platforms.
1712         mktime: merge wrapv change from gnulib
1713         * time/mktime.c (WRAPV): New macro.
1714         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
1715         (guess_time_tm, __mktime_internal): Do not assume that signed
1716         integer overflow wraps around; modern compilers generate code
1717         where this assumption is no longer valid.
1719 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1721         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1722         Replace "jmp L(pseudo_end)" with "ret".
1723         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1724         Likewise.
1726 2012-05-23  Andreas Jaeger  <aj@suse.de>
1728         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
1729         * sysdeps/unix/sysv/linux/poll.c: Remove file.
1731 2012-05-23  Andreas Jaeger  <aj@suse.de>
1732             Maximilian Attems  <max@stro.at>
1734         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
1735         New macros.
1737 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1739         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
1740         code so that pseudo_end is just ret and the stack pointer is
1741         correct also for static library in error case.
1743 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
1745         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
1746         move to syscalls.list.
1747         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
1748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
1749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
1750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
1752         * manual/install.texi (Running make install): Do not mention Linux
1753         kernel version for which pt_chown is not needed.
1754         (Linux): Do not mention problems with nscd with 2.0 kernels.
1755         * INSTALL: Regenerated.
1757 2012-05-23  Andreas Jaeger  <aj@suse.de>
1759         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
1760         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
1761         macro.
1762         * sysdeps/unix/sysv/linux/s390/bits/mman.h
1763         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1764         * sysdeps/unix/sysv/linux/sh/bits/mman.h
1765         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1766         * sysdeps/unix/sysv/linux/i386/bits/mman.h
1767         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1768         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
1769         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1770         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
1771         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1772         * sysdeps/unix/sysv/linux/bits/in.h
1773         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
1775 2012-05-22  Roland McGrath  <roland@hack.frob.com>
1777         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
1778         (PREPARE_VERSION): Just use assert instead, it will be elided
1779         under [NDEBUG] anyway.
1781 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1783         * sysdeps/unix/sysv/linux/Makefile: Include
1784         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
1785         (sysdep_routines): Remove sysctl.
1786         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
1787         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
1788         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
1789         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
1790         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
1792 2012-05-22  Andreas Jaeger  <aj@suse.de>
1794         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
1795         that pseudo_end is just ret and the stack pointer is correct also
1796         for static library in error case.
1798 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
1800         [BZ #14122]
1801         * nss/nsswitch.c (defconfig_entries): New variable.
1802         (__nss_database_lookup): Don't leak defconfig entries.
1803         (nss_parse_service_list): Don't leak on error paths.
1804         (free_database_entries): New function.
1805         (free_defconfig): New function.
1806         (free_mem): Move common code to free_database_entries.
1808 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1810         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
1811         Add arch_prctl.
1812         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
1814         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
1815         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
1816         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
1817         New macro.
1818         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
1819         (INTERNAL_SYSCALL_TYPES): Likewise.
1820         (LOAD_ARGS_TYPES_[1-6]): Likewise.
1821         (LOAD_REGS_TYPES_[1-6]): Likewise.
1822         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
1823         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
1825 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1827         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
1828         copysignl for GLIBC_2_0.
1829         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
1830         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
1831         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
1832         logbl for GLIBC_2_0.
1833         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
1834         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
1836 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1838         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
1839         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
1841         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1842         Use "neg %eax".
1844         * time/mktime.c: Update copyright years.
1846 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1848         mktime: merge comment-quoting-style change from gnulib
1849         * time/mktime.c: Quote 'like this' in comments.
1850         The GNU coding standards suggest that we no longer quote `like this',
1851         as "`" and "'" are typically rendered asymmetrically nowadays.
1852         The typical gnulib style is to quote 'like this' when quoting
1853         code, and "like this" when quoting English.
1855         * time/mktime.c (compile-command): Add "-I.".
1857         mktime: merge mktime-internal.h change from gnulib
1858         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
1860         mktime: merge time_r change from gnulib
1861         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
1863         mktime: merge DEBUG change from gnulib
1864         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
1865         case system <time.h> has a #define.
1867         mktime: merge <sys/types.h> change from gnulib
1868         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
1869         since <time.t> is now guaranteed to define time_t.
1871         mktime: merge HAVE_CONFIG_H change from gnulib
1872         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
1874 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1876         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
1877         Use "neg %eax".
1879         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
1880         __rlim_t cast.
1881         (struct rusage): Use anonymous union to pad each field to
1882         __syscall_slong_t.
1884 2012-05-21  David S. Miller  <davem@davemloft.net>
1886         * Makefules (o-iterator): Remove .s cases.
1887         (compile-command.s): Delete.
1888         (COMPILE.s): Delete.
1889         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
1891 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
1893         * configure.in (libc_cv_predef_stack_protector): Only consider
1894         "foobar" and "__stack_chk_fail" lines in libc_undefs.
1895         * configure: Regenerated.
1897 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1899         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
1900         New macro.  Use R*LP on int and pointer.
1901         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
1902         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
1903         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
1904         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
1906         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
1907         [__WORDSIZE_TIME64_COMPAT32] instead of
1908         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
1909         (struct utmp): Likewise.
1910         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
1911         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
1912         Renamed to ...
1913         (__WORDSIZE_TIME64_COMPAT32): This.
1914         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
1915         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
1916         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
1917         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
1918         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
1919         (__WORDSIZE_TIME64_COMPAT32): New macro.
1921 2012-05-21  Andreas Jaeger  <aj@suse.de>
1923         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
1924         only if [SHARED]. Add prototype for __wcschr_ia32.
1926 2012-05-21  Roland McGrath  <roland@hack.frob.com>
1928         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
1929         of %rbp unmolested in the jmp_buf while mangling the low bits.
1930         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
1931         unmolested high bits of %rbp while demangling the low bits.
1932         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
1934 2012-05-21  Andreas Jaeger  <aj@suse.de>
1936         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
1937         * sunrpc/svc_simple.c: Use it for registerrpc.
1938         * sunrpc/xcrypt.c: Use it for passwd2des.
1940         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
1942 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1944         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
1945         Don't define if [__SYSCALL_WORDSIZE != 32].
1946         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
1947         New macro.
1949 2012-05-21  Bruno Haible  <bruno@clisp.org>
1950             Andreas Jaeger  <aj@suse.de>
1952         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
1953         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
1954         inptr and inend for must_buffer_ch.
1955         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
1956         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
1957         * stdio-common/Makefile (tests): Remove bug15.
1958         (bug15-ENV): Remove macro.
1959         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
1960         anymore.
1962 2012-05-19  Andreas Jaeger  <aj@suse.de>
1963             Roland McGrath  <roland@hack.frob.com>
1965         * manual/contrib.texi: Completely rewritten. It contains now an
1966         alphabetical list of contributors and their contributions.
1968 2012-05-21  Richard Henderson  <rth@twiddle.net>
1970         * misc/getauxval.c (__getauxval): Use unsigned long int.
1971         * misc/sys/auxv.h: Include <sys/cdefs.h>.
1972         (getauxval): Use unsigned long int.
1974 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1976         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
1978 2012-05-21  Roland McGrath  <roland@hack.frob.com>
1980         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
1981         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
1982         __alignof__ (long double).
1984 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1986         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1988 2012-05-20  Richard Henderson  <rth@twiddle.net>
1990         * misc/getauxval.c: New file.
1991         * misc/sys/auxv.h: New file.
1992         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
1993         (routines): Add getauxval.
1994         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
1995         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
1996         * elf/dl-sysdep.c (_dl_auxv): Remove.
1997         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
1998         * elf/dl-support.c (_dl_auxv): New variable.
1999         (_dl_aux_init): Initialize it.
2000         * manual/startup.texi (Auxiliary Vector): New node.
2001         * sysdeps/generic/bits/hwcap.h: New file.
2002         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
2003         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
2004         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
2005         * sysdeps/sparc/sysdep.h: ... here.  Include it.
2006         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
2007         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
2008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2009         Update.
2010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
2011         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
2012         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
2013         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
2014         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
2015         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
2016         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
2017         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
2019 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2021         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2023 2012-05-19  David S. Miller  <davem@davemloft.net>
2025         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2027 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
2029         [BZ #14123]
2030         * math/s_ccosh.c: Include <float.h>
2031         (__ccosh): Avoid internal overflow calculating sinh and cosh
2032         values before multiplying by sin and cos values.
2033         * math/s_ccoshf.c: Likewise.
2034         * math/s_ccoshl.c: Likewise.
2035         * math/s_csin.c: Likewise.
2036         * math/s_csinf.c: Likewise.
2037         * math/s_csinl.c: Likewise.
2038         * math/s_csinh.c: Likewise.
2039         * math/s_csinhf.c: Likewise.
2040         * math/s_csinhl.c: Likewise.
2041         * math/libm-test.inc (ccos_test): Add more tests.
2042         (ccosh_test): Likewise.
2043         (csin_test): Likewise.
2044         (csinh_test): Likewise.
2045         * sysdeps/i386/fpu/libm-test-ulps: Update.
2046         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2048 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2050         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
2051         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
2053         * sysdeps/x86_64/x32/_itoa.h: Add comment.
2055 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
2057         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
2058         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
2059         * sysdeps/powerpc/soft-fp/Versions: Likewise.
2060         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
2061         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
2062         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
2063         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
2064         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
2065         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
2066         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
2067         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
2068         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
2069         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
2070         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
2071         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
2072         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
2073         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
2074         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
2075         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
2076         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
2077         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
2078         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
2079         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
2080         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
2081         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
2082         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
2083         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
2084         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
2085         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
2086         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
2087         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
2089 2012-05-18  Andreas Jaeger  <aj@suse.de>
2091         * csu/.gitignore: Delete.
2093 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2095         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
2096         (timex): Use __syscall_slong_t.
2098 2012-05-18  Andreas Jaeger  <aj@suse.de>
2099             Carlos O'Donell  <carlos_odonell@mentor.com>
2101         * manual/install.texi (Configuring and compiling): Update
2102         description about files modified in the source directory.
2103         * INSTALL: Regenerated.
2105 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2107         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
2108         value.  Use "or" to set return value to -1.
2109         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
2110         negate return value.
2112 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2114         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
2115         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
2116         failure if the compiler has Graphite support disabled.
2117         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
2118         Likewise.
2119         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
2120         CFLAGS-memmove.c): Likewise.
2121         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
2122         Likewise.
2124 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2126         * sysdeps/x86_64/x32/_itoa.h: New file.
2128         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
2129         getdents system call only if kernel and user dirents have the
2130         same d_ino and d_off.
2132         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
2133         LLONG_MAX != LONG_MAX.
2134         (_itoa_word): Use _ITOA_WORD_TYPE on value.
2135         (_fitoa_word): Likewise.
2137         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
2138         years.
2139         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
2140         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
2141         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
2143         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
2144         include <bits/wordsize.h>.  Check __x86_64__ instead of
2145         __WORDSIZE.
2146         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
2147         if __x86_64__ is defined.  Use anonymous union on fpstate.
2149         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
2150         anonymous union.
2152 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
2154         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
2155         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
2156         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
2157         Refer to _rtld_local_ro instead of _rtld_global_ro.
2158         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
2159         Likewise.
2160         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
2161         Likewise.
2162         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
2163         Likewise.
2164         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
2165         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
2166         of _rtld_global, and rtld_progname instead of _dl_argv[0].
2168         * sysdeps/powerpc/powerpc32/dl-machine.c
2169         (__elf_machine_runtime_setup) [PROF]: Don't reference
2170         _dl_prof_resolve.
2172 2012-05-18  Andreas Jaeger  <aj@suse.de>
2174         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
2175         function only available for GCCs before 3.4 since GCC 3.4
2176         introduced a builtin.
2177         (lrint): Likewise.
2178         (llrintf): Likewise.
2179         (llrint): Likewise.
2180         (fmaxf): Likewise.
2181         (fmax): Likewise.
2182         (fminf): Likewise.
2183         (fmin): Likewise.
2184         (rint): Likewise.
2185         (rintf): Likewise.
2186         (nearbyint): Likewise.
2187         (nearbyintf): Likewise.
2188         (ceil): Likewise.
2189         (ceilf): Likewise.
2190         (floor): Likewise.
2191         (floorf): Likewise.
2193 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
2195         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
2196         on both fields and cast pointer to __syscall_ulong_t.
2198         * bits/types.h (__fsword_t): New type.
2199         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
2200         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
2201         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2202         (__FSWORD_T_TYPE): Likewise.
2203         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2204         (__FSWORD_T_TYPE): Likewise.
2205         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2206         (__FSWORD_T_TYPE): Likewise.
2207         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
2208         (__FSWORD_T_TYPE): Likewise.
2209         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
2210         __SWORD_TYPE with __fsword_t.
2211         (statfs64): Likewise.
2213 2012-05-17  David S. Miller  <davem@davemloft.net>
2215         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
2217 2012-05-17  Andreas Jaeger  <aj@suse.de>
2219         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
2220         warning.
2222 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
2224         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
2226 2012-05-17  Andreas Jaeger  <aj@suse.de>
2228         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
2229         when it is used.
2231 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
2233         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
2235 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
2237         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
2238         * sysdeps/x86_64/tst-mallocalign1.c: New file.
2240 2012-05-17  Andreas Jaeger  <aj@suse.de>
2241             Carlos O'Donell  <carlos_odonell@mentor.com>
2243         [BZ #14059]
2244         * sysdeps/x86_64/multiarch/init-arch.h
2245         (bit_YMM_Usable): Rename to...
2246         (bit_AVX_Usable): ... this.
2247         (bit_FMA4_Usable): New macro.
2248         (bit_XMM_state): New macro.
2249         (bit_YMM_state): New macro.
2250         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
2251         [__ASSEMBLER__] (index_AVX_Usable): ... this.
2252         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
2253         (CPUID_OSXSAVE): New macro.
2254         (CPUID_AVX): New macro.
2255         (CPUID_FMA4): New macro.
2256         (index_YMM_Usable): Rename to...
2257         (index_AVX_Usable): ... this.
2258         (HAS_AVX): Use HAS_ARCH_FEATURE.
2259         (HAS_FMA4): Likewise.
2260         (HAS_YMM_USABLE): Remove.
2261         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2262         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
2263         are present.
2264         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
2265         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
2266         * sysdeps/x86_64/multiarch/Makefile: Likewise.
2267         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
2268         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
2270 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
2272         * math/libm-test.c: Support platforms without multiple rounding modes.
2273         * math/bug-nextafter.c: Support platforms without FP exceptions.
2274         * math/bug-nexttoward.c: Likewise.
2275         * math/test-fenv.c: Likewise.
2276         * math/test-misc.c: Likewise.
2277         * stdlib/bug-getcontext.c: Likewise.
2279 2012-05-17  Andreas Jaeger  <aj@suse.de>
2281         * manual/examples/search.c (critter_cmp): Change signature to
2282         avoid warnings.
2283         * manual/string.texi (Collation Functions): Likewise.
2285 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2287         * bits/types.h: Fold copyright years.
2288         * bits/typesizes.h: Likewise.
2289         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
2290         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
2291         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
2292         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
2293         * time/time.h: Likewise.
2295 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
2297         [BZ #208]
2298         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
2299         in instead of returning them.  Return void.
2300         (__libc_mallinfo): Accumulate over all arenas.
2301         (__malloc_stats): Adjust for change in int_mallinfo interface.
2303 2012-05-16  Roland McGrath  <roland@hack.frob.com>
2305         [BZ #10375]
2306         * configure.in (NM): Add AC_CHECK_TOOL for it.
2307         (libc_extra_cflags): New substituted variable.
2308         Check for -fstack-protector being used implicitly.
2309         * configure: Regenerated.
2310         * config.make.in (config-extra-cflags): New variable,
2311         gets @libc_extra_cflags@.
2312         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
2314         [BZ #10375]
2315         * configure.in: Check for _FORTIFY_SOURCE being predefined.
2316         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
2317         * configure: Regenerated.
2318         * config.make.in (CPPUNDEFS): New substituted variable.
2319         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
2320         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
2321         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
2323 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2325         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
2326         (mq_attr): Use __syscall_slong_t.
2328 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2330         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
2331         Check __x86_64__ instead of __WORDSIZE.
2332         (_STAT_VER_LINUX): Likewise.
2333         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
2334         __syscall_ulong_t and __syscall_slong_t.
2335         (stat64): Likewise.
2337 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2339         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
2341 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2343         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
2345 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2347         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
2348         __syscall_ulong_t.
2350         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
2351         include <bits/wordsize.h>.  Check __x86_64__ instead of
2352         __WORDSIZE.
2353         (greg_t): Use "__extension__ long long int" if __x86_64__ is
2354         defined.
2355         (mcontext_t): Replace "unsigned long" with "unsigned long long".
2357         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
2358         include <bits/wordsize.h>.  Check __x86_64__ instead of
2359         __WORDSIZE.
2360         (user_regs_struct): Use "__extension__ unsigned long long"
2361         instead of "unsigned long" if __x86_64__ is defined.
2362         (user): Likewise.  Pad after pointer field if __ILP32__ is
2363         defined.
2365 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
2367         * configure.in (makeinfo): Require version 4.5 or later.  Allow
2368         versions 5 to 9.
2369         * configure: Regenerated.
2370         * manual/install.texi (texinfo): Increase version requirement to
2371         4.5 or later.
2372         * INSTALL: Regenerated.
2374         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
2376 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2378         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
2380         * sysdeps/x86_64/x32/ffs.c: New file.
2382         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
2383         __syscall_ulong_t.
2384         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
2385         defined.  Use __syscall_ulong_t.
2386         (shminfo): Use __syscall_ulong_t.
2387         (shm_info): Likewise.
2389         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
2390         __syscall_ulong_t.
2392         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
2393         <bits/wordsize.h>.
2394         (msgqnum_t): Use __syscall_ulong_t.
2395         (msglen_t): Likewise.
2396         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
2397         __syscall_ulong_t.
2399         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
2400         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
2402         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
2404         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
2405         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
2407         * sysvipc/sys/msg.h (msgbuf): Replace long int with
2408         __syscall_slong_t.
2410         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
2411         include <bits/wordsize.h>.  Check __x86_64__ instead of
2412         __WORDSIZE.
2414         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
2415         "unsigned long long int" if __x86_64__ is defined.
2416         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
2418         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
2419         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
2420         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
2422         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
2423         <stdint.h>.
2424         (GET_PC): Cast to uintptr_t first.
2425         (GET_FRAME): Likewise.
2426         (GET_STACK): Likewise.
2428         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
2429         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
2430         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
2431         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
2432         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
2433         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
2434         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
2435         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
2436         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
2437         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
2438         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
2439         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
2440         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
2441         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
2442         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
2443         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
2444         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
2445         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
2446         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
2447         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
2448         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
2449         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
2450         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
2451         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
2452         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
2453         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
2454         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
2455         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
2456         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
2458 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
2460         * Makerules (+depfiles): Also collect depfiles from .oS in
2461         $(extra-objs).
2462         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
2463         .oS, $(libnldbl-routines)).
2465         * Makerules (native-compile-mkdep-flags): Define.
2466         * sunrpc/Makefile (extra-objs): Add $(addprefix
2467         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
2468         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
2469         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
2470         calling $(make-target-directory).
2472 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2474         * bits/types.h (__snseconds_t): Removed.
2475         * time/time.h (struct timespec): Replace __snseconds_t with
2476         __syscall_slong_t.
2477         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
2478         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
2479         Likewise.
2480         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2481         (__SNSECONDS_T_TYPE): Likewise.
2482         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2483         (__SNSECONDS_T_TYPE): Likewise.
2484         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2485         (__SNSECONDS_T_TYPE): Likewise.
2487 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2489         * sysdeps/mach/hurd/bits/typesizes.h
2490         (__SYSCALL_SLONG_TYPE): New macro.
2491         (__SYSCALL_ULONG_TYPE): Likewise.
2493 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2495         * bits/types.h (__syscall_slong_t): New type.
2496         (__syscall_ulong_t): Likewise.
2498         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
2499         (__SYSCALL_ULONG_TYPE): Likewise.
2500         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2501         (__SYSCALL_SLONG_TYPE): Likewise.
2502         (__SYSCALL_ULONG_TYPE): Likewise.
2503         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2504         (__SYSCALL_SLONG_TYPE): Likewise.
2505         (__SYSCALL_ULONG_TYPE): Likewise.
2506         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2507         (__SYSCALL_SLONG_TYPE): Likewise.
2508         (__SYSCALL_ULONG_TYPE): Likewise.
2510 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2512         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
2513         Add sigaltstack-offsets.sym.
2514         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
2515         <sigaltstack-offsets.h>.
2516         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
2517         longjmp_msg pointer.
2518         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
2519         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
2520         signal stack.
2521         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
2523 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
2525         * elf/stackguard-macros.h: Remove file.
2526         * sysdeps/generic/stackguard-macros.h: New file.
2527         * sysdeps/i386/stackguard-macros.h: Likewise.
2528         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
2529         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
2530         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
2531         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
2532         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
2533         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
2534         * sysdeps/x86_64/stackguard-macros.h: Likewise.
2535         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
2536         <elf/stackguard-macros.h>.
2538         [BZ #14109]
2539         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
2540         __aligned__ in attribute.
2541         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
2542         (gregset_t): Likewise.
2544 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2546         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
2547         * sysdeps/x86_64/64/Implies-after: Here.  New file.
2548         * sysdeps/x86_64/x32/Implies-after: New file.
2550 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2552         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
2553         and access return value for _dl_profile_fixup.  Use R10_LP to
2554         load frame size.
2556 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2558         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
2560 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2562         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
2563         * sysdeps/x86_64/x32/sysdep.h: New file.
2565 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2567         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
2568         * sysdeps/x86_64/setjmp.S: Likewise.
2570 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2572         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
2573         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
2574         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
2575         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
2576         remove unused global constant.
2578 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
2580         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
2581         include of <not-cancel.h>.
2583 2012-05-15  Roland McGrath  <roland@hack.frob.com>
2585         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
2587 2012-05-15  Jeff Law  <law@redhat.com>
2588             Andreas Jaeger  <aj@suse.de>
2590         [BZ #13594]
2591         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
2592         out from...
2593         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
2594         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
2595         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
2596         code changing __hst_map_handle.map.
2598 2012-05-15  Roland McGrath  <roland@hack.frob.com>
2600         * configure.in (sysnames): Look for Implies-before and Implies-after
2601         files.
2602         * configure: Regenerated.
2604 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2606         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
2607         8-byte data alignment with LP_SIZE alignment.
2609 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2611         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
2612         into R10_LP.
2614 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2616         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
2618 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2620         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
2621         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
2622         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
2623         Likewise.
2624         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2626 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2628         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
2629         (stackinfo_sub_sp): Likewise.
2631 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2633         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
2634         RAX_LP.
2636 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2638         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
2639         into R*_LP.
2641 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2643         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
2644         sizes into R*_LP.
2646 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2648         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
2650 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2652         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
2653         into R11_LP and load __x86_64_shared_cache_size_half into
2654         R8_LP.
2656 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2658         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
2659         R8_LP.
2661 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2663         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
2664         logb for POWER7.
2665         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
2666         logbf for POWER7.
2667         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
2668         logbl for POWER7.
2669         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
2670         powerpc32/power7/fpu/s_logb.c via #include.
2671         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
2672         powerpc32/power7/fpu/s_logbf.c via #include.
2673         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
2674         powerpc32/power7/fpu/s_logbl.c via #include.
2676 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
2678         * README.libm: Remove file.
2680 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2682         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
2683         count for x32.  Use R*_LP and omit operand-size suffix.
2685 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2687         * shlib-versions: Move x86_64-.*-linux.* entries to ...
2688         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
2689         * sysdeps/x86_64/x32/shlib-versions: New file.
2691 2012-05-14  Roland McGrath  <roland@hack.frob.com>
2693         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
2694         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
2695         Use _dl_fatal_printf instead.
2697 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
2699         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
2700         set if not set by the user.  Do not allow for being unset.
2701         * sysdeps/unix/sysv/linux/configure: Regenerated.
2703 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2705         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
2706         the `q' suffix from lea and replace .quad with ASM_ADDR.
2708 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2710         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
2711         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
2712         instead of $17.
2713         (PTR_DEMANGLE): Likewise.
2715 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2717         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
2718         (LP_OP): Likewise.
2719         (ASM_ADDR): Likewise.
2720         (RAX_LP): Likewise.
2721         (RBP_LP): Likewise.
2722         (RBX_LP): Likewise.
2723         (RCX_LP): Likewise.
2724         (RDI_LP): Likewise.
2725         (RSI_LP): Likewise.
2726         (RSP_LP): Likewise.
2727         (R8_LP): Likewise.
2728         (R9_LP): Likewise.
2729         (R10_LP): Likewise.
2730         (R10_LP): Likewise.
2731         (R11_LP): Likewise.
2732         (R12_LP): Likewise.
2733         (R13_LP): Likewise.
2734         (R14_LP): Likewise.
2735         (R15_LP): Likewise.
2737 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2739         * sysdeps/x86_64/x32/dl-machine.h: New file.
2741 2012-05-14  Andreas Jaeger  <aj@suse.de>
2743         * manual/Makefile (subdir): Remove export of subdir.
2744         (all): Remove target.
2745         (.PHONY): Remove all from list.
2746         (mkinstalldirs): Remove.
2747         (.PHONY): Remove installdirs from list.
2748         ($(inst_infodir)/libc.info): Use make-target-directory.
2749         (installdirs): Remove.
2750         (subdir_%): Remove.
2751         (glibc-targets): Remove.
2752         (lib): Remove.
2753         (stubs): Remove.
2754         ($(objpfx)stubs ../po/manual.pot): Remove.
2755         ($(objpfx)stamp%): Remove.
2756         (make-target-directory): Remove.
2757         (subdir_install): Remove.
2758         (routines): Remove.
2759         (aux): Remove.
2760         (sources): Remove.
2761         (objects): Remove.
2762         (headers): Remove.
2764         [BZ #13750]
2765         * manual/.gitignore: Remove, it's not needed anymore.
2766         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
2767         all files in it.
2768         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
2769         directory.
2770         (texis): Renamed to $(objpfx)texis.
2771         (texis-path): New, contains path to generated files.
2772         (chapters.%): Use texis-path for complete path, add extra argument
2773         libc-texinfo.sh.
2774         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
2775         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
2776         (summary,texi, stamp-summary): Use complete path of
2777         files. Generate files in build dir.
2778         (dir-add.texi): Build in build dir.
2779         (libm-err.texi,stamp-libm-err): Likewise.
2780         (version.texi, stamp-version): Likewise.
2781         (.%c.texi): Likewise.
2782         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
2783         (mostlyclean): Remove target.
2784         (realclean): Remove target.
2785         (generated): Add new variable with contents from mostlyclean and
2786         realclean, remove entries duplicated in common-mostlyclean, add
2787         stamp-libm-err and stamp-version.
2788         (generated-dirs): Add libc directory.
2789         ($(inst_infodir)/libc.info): Install files from build dir.
2791         * manual/install.texi (Configuring and compiling): Adjust since
2792         the info files are not part of the tar ball anymore.
2794 2012-05-14  Andreas Jaeger  <aj@suse.de>
2796         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
2797         variable.
2799 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
2801         [BZ #13717]
2802         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
2803         to 2.2.0 where earlier.
2804         * sysdeps/unix/sysv/linux/configure: Regenerated.
2805         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
2806         Remove conditional code.
2807         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
2808         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
2809         Remove conditional code.
2810         [!__NR_lchown]: Likewise.
2811         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
2812         [__NR_lchown]: Likewise.
2813         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
2814         comment referencing __ASSUME_LCHOWN_SYSCALL.
2815         * sysdeps/unix/sysv/linux/i386/sigaction.c
2816         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2817         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2818         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
2819         Remove conditional code.
2820         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
2821         (__protocol_available): Remove #if 0 code.
2822         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
2823         conditional code.
2824         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
2825         * sysdeps/unix/sysv/linux/kernel-features.h
2826         (__ASSUME_GETCWD_SYSCALL): Don't define.
2827         (__ASSUME_REALTIME_SIGNALS): Likewise.
2828         (__ASSUME_PREAD_SYSCALL): Likewise.
2829         (__ASSUME_PWRITE_SYSCALL): Likewise.
2830         (__ASSUME_POLL_SYSCALL): Likewise.
2831         (__ASSUME_LCHOWN_SYSCALL): Likewise.
2832         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
2833         non-SPARC.
2834         (__ASSUME_SIOCGIFNAME): Don't define.
2835         (__ASSUME_MSG_NOSIGNAL): Likewise.
2836         (__ASSUME_SENDFILE): Define unconditionally.
2837         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
2838         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
2839         conditional code.
2840         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
2841         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
2842         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
2843         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
2844         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
2845         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
2846         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
2847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
2848         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2849         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2850         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
2851         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2852         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2853         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
2854         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2855         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
2857         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2858         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
2860         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2861         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
2863         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2864         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
2866         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2867         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
2869         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2870         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2871         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
2872         Remove conditional code.
2873         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2874         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
2875         Remove conditional code.
2876         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2877         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
2878         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
2879         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
2880         Remove conditional code.
2881         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2882         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
2883         Remove conditional code.
2884         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2885         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
2886         Remove conditional code.
2887         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2888         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
2889         Remove conditional code.
2890         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2891         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
2892         Remove conditional code.
2893         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2894         * sysdeps/unix/sysv/linux/sh/pwrite64.c
2895         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2896         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2897         * sysdeps/unix/sysv/linux/sigaction.c
2898         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2899         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2900         * sysdeps/unix/sysv/linux/sigpending.c
2901         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2902         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2903         * sysdeps/unix/sysv/linux/sigprocmask.c
2904         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2905         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2906         * sysdeps/unix/sysv/linux/sigsuspend.c
2907         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2908         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2909         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
2910         (__libc_missing_rt_sigs): Remove.
2911         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
2912         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
2913         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
2914         Remove conditional code.
2915         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
2916         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
2917         return 1.
2918         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
2919         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
2920         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
2921         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
2923 2012-05-14  Andreas Jaeger  <aj@suse.de>
2925         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
2926         it's not used in glibc.
2927         (__coshm1): Likewise.
2928         (__acosh1p): Likewise.
2929         (__sgn): Likewise.
2931         * manual/string.texi (Copying and Concatenation): Add missing
2932         variable in concat example.
2933         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
2935 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2937         [BZ #14103]
2938         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
2939         __builtin_clzl with __builtin_clzll.
2941 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2943         [BZ #14104]
2944         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
2945         libc_freeres_ptr.
2947 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2949         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
2950         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
2951         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
2952         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
2954 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
2956         * NEWS: Update ia64 info.
2958 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
2960         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
2961         used as bcopy.
2963 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2965         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
2966         * sysdeps/unix/syscalls.list (dup3): Likewise.
2967         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
2968         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
2970 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2972         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
2973         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
2975 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2977         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
2978         thread pointer.
2979         (TLS_IE): Use mov/add instead of movq/addq to load thread
2980         pointer.
2981         (TLS_GD_PREFIX): New.
2982         (TLS_GD): Use it.
2984 2012-05-11  David S. Miller  <davem@davemloft.net>
2986         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
2987         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
2988         (_FPU_SETCW): Likewise.
2990 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
2992         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
2993         is 32-byte aligned.
2995 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
2997         [BZ #11837]
2998         * iconvdata/gb18030.c: Update tables.
2999         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
3000         characters specially.
3001         (BODY for TO_LOOP): Add encoding of missing ranges.
3003 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3005         [BZ #13673]
3006         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
3007         * sysdeps/mach/hurd/dup3.c: Likewise.
3008         * sysdeps/mach/hurd/readlinkat.c: Likewise.
3009         * sysdeps/powerpc/memmove.c:: Likewise.
3011 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3013         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
3014         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
3016 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3018         * elf/elf.h (R_X86_64_RELATIVE64): New.
3019         (R_X86_64_NUM): Updated.
3020         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
3021         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
3022         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
3023         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
3024         tst-quad1pie tst-quad2pie
3025         (modules-names): Add tst-quadmod1 tst-quadmod2.
3026         ($(objpfx)tst-quad1): New dependency.
3027         ($(objpfx)tst-quad2): Likewise.
3028         ($(objpfx)tst-quad1pie): Likewise.
3029         ($(objpfx)tst-quad2pie): Likewise.
3030         * sysdeps/x86_64/tst-quad1.c: New file.
3031         * sysdeps/x86_64/tst-quad1pie.c: New file.
3032         * sysdeps/x86_64/tst-quad2.c: Likewise.
3033         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
3034         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
3035         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
3036         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
3037         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
3039 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3041         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
3042         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
3043         * streams/stropts.h (t_scalar_t): Define type.
3045         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
3046         (_PATH_PRESERVE): Set to "/var/lib".
3047         (_PATH_RWHODIR): Set to "/var/spool/rwho".
3049         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
3050         instead of int.
3052         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
3053         if __dir_mkfile succeeded.
3055         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
3056         checking for _hurd_dtablesize.  Unlock it right after having
3057         finished _hurd_dtable allocation.
3059 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3061         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
3062         * sysdeps/mach/hurd/configure: Regenerated.
3063         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
3064         special-casing to...
3065         * sysdeps/gnu/configure.in: ... this new file.
3066         * sysdeps/unix/sysv/linux/configure: Regenerated.
3067         * sysdeps/gnu/configure: New generated file.
3069         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
3070         for Linux: use nsec instead of usec, as well as:
3071         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
3072         members of type struct timespec.
3073         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
3074         New macros.
3075         (struct stat64): Likewise.
3076         (_STATBUF_ST_NSEC): New macro.
3077         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
3079         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3080         __strtoul_internal rather than strtoul.
3082 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
3084         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
3085         and reject them.
3087 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3089         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
3090         which preserves existing values.
3091         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
3093 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
3095         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
3096         TIMEOUT values.  Return EINVAL for NFDS values either negative or
3097         greater than FD_SETSIZE.
3099 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3101         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
3102         allocated, call __vm_protect to finish enabling the existing space, and
3103         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
3104         allocate the remainder.
3106 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
3108         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
3109         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
3111 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3113         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
3114         sysdeps/mach/hurd/readlink.c.
3116         * posix/tst-sysconf.c (posix_options): Only use
3117         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
3118         _POSIX_SYNCHRONIZED_IO when they are defined
3119         * sysdeps/mach/hurd/bits/posix_opt.h:
3120         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
3121         (_XOPEN_REALTIME): Undefine macro.
3122         (_XOPEN_REALTIME_THREADS): Undefine macro.
3123         (_XOPEN_SHM): Undefine macro.
3124         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
3125         macro to -1.
3126         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
3127         macro to -1.
3128         (_POSIX_ASYNC_IO): Undefine macro.
3129         (_POSIX_PRIORITIZED_IO): Undefine macro.
3130         (_POSIX_SPIN_LOCKS): Define macro to -1.
3132         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
3133         SA_NODEFER, SA_RESETHAND.
3134         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
3135         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
3136         F_DUPFD_CLOEXEC.
3138 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3140         * elf/Makefile (pldd-modules): Define unconditionally.
3142 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3144         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
3146 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3148         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
3149         Return ENOENT when name is empty.
3150         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
3152 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3154         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
3156         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
3158 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3160         Fix mlock in all cases except non-readable pages.
3161         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
3162         instead of VM_PROT_ALL as parameter to __vm_wire function.
3164         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
3165         (__mkdir): When path is `/', just fail with EEXIST.
3166         * sysdeps/mach/hurd/mkdirat.c: Likewise.
3168 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3170         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
3171         <sys/uio.h> (for writev).
3172         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
3173         and <sys/param.h> (for MIN).
3175 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
3177         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
3178         REQUESTED_TIME.  Properly set the remaining time and return EINTR
3179         if interrupted.
3181 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3183         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
3184         Depend on against $(link-rpcuserlibs).
3186 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3188         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
3189         (__libc_stack_end): Do not use attribute_relro.
3190         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
3191         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
3192         to libthread-provided value.
3193         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
3194         attribute_relro.
3196 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3198         [BZ #3748]
3199         * bits/libc-lock.h (__libc_once_get): New macro.
3200         * sysdeps/mach/bits/libc-lock.h: Likewise.
3201         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
3202         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
3203         instead of using implementation details.
3205         * libio/fileops.c: Unconditionally include <kernel-features.h>.
3206         * libio/freopen.c: Likewise.
3207         * libio/freopen64.c: Likewise.
3208         * misc/syslog.c: Likewise.
3209         * nscd/connections.c: Likewise.
3210         * nscd/netgroupcache.c: Likewise.
3211         * sysdeps/posix/getcwd.c: Likewise.
3213 2012-05-10  Roland McGrath  <roland@hack.frob.com>
3215         * math/w_ilogbf.c: Add #include <limits.h>.
3217 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3219         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
3220         path instead of returning without unlocking.
3222         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
3223         immediate-write ioctls.
3224         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
3226 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3228         * sysdeps/mach/hurd/i386/init-first.c (init): Use
3229         __builtin_frame_address instead of making assumptions about the
3230         location of the return address relative to DATA.  Force early load of
3231         the return address.
3232         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
3233         __builtin_frame_address.
3235         dup3 for GNU Hurd.
3236         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
3237         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
3238         implement dup3 and do some further code clean-ups.
3239         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
3240         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
3242 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3244         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
3246         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
3247         HURD_CRITICAL_END around holding _hurd_dtable_lock.
3248         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
3249         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
3250         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
3251         d->port.lock.
3253         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
3254         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
3255         when handler == SIG_ERR, not when handler != SIG_ERR.
3257 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3259         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
3260         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
3261         definitions.
3263         accept4 for GNU Hurd.
3264         * include/sys/socket.h (__libc_accept4): New prototype.
3265         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
3266         to implement __libc_accept4.
3267         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
3268         __libc_accept4.
3269         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
3271         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
3272         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
3273         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
3274         signal-defines.sym.
3276 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3278         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
3280 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
3282         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
3283         assertion on O_CLOEXEC flag.
3284         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
3285         * hurd/intern-fd.c: Likewise.
3286         * hurd/port2fd.c: Likewise.
3288 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3290         [BZ #3906]
3291         * bits/in.h (IPV6_PKTINFO): Define new macro.
3292         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
3294 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3296         [BZ #13954]
3297         [BZ #13955]
3298         [BZ #13956]
3299         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
3300         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3301         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
3302         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3303         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3304         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3305         * math/libm-test.inc (logb_test) : Additional logb tests.
3307 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
3308             Andreas Jaeger  <aj@suse.de>
3310         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
3311         * configure: Regenerated.
3312         * config.h.in (LINK_OBSOLETE_RPC): New macro.
3313         * config.make.in (link-obsolete-rpc): New substituted variable.
3314         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
3315         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
3316         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
3317         (shared-only-routines): Don't set it under [link-obsolete-rpc],
3318         so that libc.a contains the symbols.
3319         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
3320         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
3321         * sunrpc/auth_none.c: Likewise.
3322         * sunrpc/auth_unix.c: Likewise.
3323         * sunrpc/authdes_prot.c: Likewise.
3324         * sunrpc/authuxprot.c: Likewise.
3325         * sunrpc/clnt_gen.c: Likewise.
3326         * sunrpc/clnt_perr.c: Likewise.
3327         * sunrpc/clnt_raw.c: Likewise.
3328         * sunrpc/clnt_simp.c: Likewise.
3329         * sunrpc/clnt_tcp.c: Likewise.
3330         * sunrpc/clnt_udp.c: Likewise.
3331         * sunrpc/clnt_unix.c: Likewise.
3332         * sunrpc/des_crypt.c: Likewise.
3333         * sunrpc/des_soft.c: Likewise.
3334         * sunrpc/get_myaddr.c: Likewise.
3335         * sunrpc/key_call.c: Likewise.
3336         * sunrpc/key_prot.c: Likewise.
3337         * sunrpc/netname.c: Likewise.
3338         * sunrpc/pm_getmaps.c: Likewise.
3339         * sunrpc/pm_getport.c: Likewise.
3340         * sunrpc/pmap_clnt.c: Likewise.
3341         * sunrpc/pmap_prot.c: Likewise.
3342         * sunrpc/pmap_prot2.c: Likewise.
3343         * sunrpc/pmap_rmt.c: Likewise.
3344         * sunrpc/publickey.c: Likewise.
3345         * sunrpc/rpc_cmsg.c: Likewise.
3346         * sunrpc/rpc_common.c: Likewise.
3347         * sunrpc/rpc_dtable.c: Likewise.
3348         * sunrpc/rpc_prot.c: Likewise.
3349         * sunrpc/rpc_thread.c: Likewise.
3350         * sunrpc/rtime.c: Likewise.
3351         * sunrpc/svc.c: Likewise.
3352         * sunrpc/svc_auth.c: Likewise.
3353         * sunrpc/svc_raw.c: Likewise.
3354         * sunrpc/svc_run.c: Likewise.
3355         * sunrpc/svc_tcp.c: Likewise.
3356         * sunrpc/svc_udp.c: Likewise.
3357         * sunrpc/svc_unix.c: Likewise.
3358         * sunrpc/svcauth_des.c: Likewise.
3359         * sunrpc/xcrypt.c: Likewise.
3360         * sunrpc/xdr.c: Likewise.
3361         * sunrpc/xdr_array.c: Likewise.
3362         * sunrpc/xdr_float.c: Likewise.
3363         * sunrpc/xdr_intXX_t.c: Likewise.
3364         * sunrpc/xdr_mem.c: Likewise.
3365         * sunrpc/xdr_rec.c: Likewise.
3366         * sunrpc/xdr_ref.c: Likewise.
3367         * sunrpc/xdr_sizeof.c: Likewise.
3368         * sunrpc/xdr_stdio.c: Likewise.
3370 2012-05-10  Roland McGrath  <roland@hack.frob.com>
3372         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
3373         change.  Update copyright years.
3375 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
3377         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
3379 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
3380             Joseph Myers  <joseph@codesourcery.com>
3381             Paul Pluzhnikov  <ppluzhnikov@google.com>
3383         [BZ #14012]
3384         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
3385         requiring rpcgen.
3386         [cross-compiling] (extra-libs): Likewise.
3387         [cross-compiling] (extra-libs-others): Likewise.
3388         [cross-compiling] (librpcsvc-routines): Likewise.
3389         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
3390         [cross-compiling] (omit-deps): Likewise.
3391         (sunrpc-CPPFLAGS): New variable.
3392         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
3393         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
3394         (cross-rpcgen-objs): New variable.
3395         (extra-objs): Append $(cross-rpcgen-objs).
3396         ($(cross-rpcgen-objs)): New rule.
3397         ($(objpfx)cross-rpcgen): Likewise.
3398         (rpcgen-cmd): Define to use $(built-program-file).  Expand
3399         comment.
3400         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
3401         ($(objpfx)x%.stmp): Likewise.
3402         * sunrpc/proto.h [IS_IN_build] (_): Define.
3403         [IS_IN_build] (_libc_intl_domainname): Likewise.
3405 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3407         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
3408         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
3409         and R_X86_64_TPOFF64.
3411 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
3413         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
3414         sysdeps/unix/sysv/syscalls.list.
3415         (stime): Likewise.
3416         (utime): Likewise.
3417         * sysdeps/unix/sysv/syscalls.list: Remove file.
3419 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3421         [BZ #3440]
3422         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
3423         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
3424         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
3425         (__LC_IDENTIFICATION): Make these macros useful in #if
3426         expressions, as required by C99.
3428 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
3430         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
3431         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
3432         after this.
3434 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
3436         * stdlib/longlong.h: Updated from GCC.
3438 2012-05-09  Andreas Jaeger  <aj@suse.de>
3440         * nscd/nscd.c (run_modes): Make named enum, reorder so that
3441         default is first entry.
3442         (run_mode): Set type.
3443         (main): Remove informal message about syslog.
3444         (options): Fix typo.
3446         [BZ #14053]
3447         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
3448         to asm.
3449         (lrint): Likewise.
3450         (llrintf): Likewise.
3451         (llrint): Likewise.
3452         (rint): Likewise.
3453         (rintf): Likewise.
3454         (nearbyint): Likewise.
3455         (nearbyintf): Likewise.
3457 2012-05-09  Andreas Jaeger  <aj@suse.de>
3458             Pedro Alves  <palves@redhat.com>
3460         * nscd/nscd.c (run_mode): Use enum.
3461         (main): Cleanup coding style issue.
3463 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
3464             Andreas Jaeger  <aj@suse.de>
3466         * nscd/nscd.c (go_background): Replaced with...
3467         (run_mode): ... this.
3468         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
3469         (options): Add -F --foreground.
3470         (main): Implement it.
3471         (parse_opt): Parse it.
3473 2012-05-09  Andreas Jaeger  <aj@suse.de>
3475         [BZ #14083]
3476         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
3477         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
3478         -Wconversion warning.
3479         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
3480         Likewise.
3482 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
3484         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
3485         == 0.
3486         (LC_ALL): Use macro-int-constant.
3487         (LC_COLLATE): Likewise.
3488         (LC_CTYPE): Likewise.
3489         (LC_MESSAGES): Likewise.
3490         (LC_MONETARY): Likewise.
3491         (LC_NUMERIC): Likewise.
3492         (LC_TIME): Likewise.
3493         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
3494         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
3495         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3496         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
3497         Specify type.
3498         [C99-based standards] (float_t): Expect type.
3499         [C99-based standards] (double_t): Expect type.
3500         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
3501         type.
3502         [C99-based standards] (HUGE_VALL): Likewise.
3503         [C99-based standards] (INFINITY): Likewise.
3504         [C99-based standards] (NAN): Likewise.
3505         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
3506         [C99-based standards] (FP_NAN): Likewise.
3507         [C99-based standards] (FP_NORMAL): Likewise.
3508         [C99-based standards] (FP_SUBNORMAL): Likewise.
3509         [C99-based standards] (FP_ZERO): Likewise.
3510         [C99-based standards] (FP_FAST_FMA): Use
3511         optional-macro-int-constant.  Specify type.  Require == 1.
3512         [C99-based standards] (FP_FAST_FMAF): Likewise.
3513         [C99-based standards] (FP_FAST_FMAL): Likewise.
3514         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
3515         [C99-based standards] (FP_ILOGBNAN): Likewise.
3516         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
3517         Specify type.
3518         [C99-based standards] (MATH_ERREXCEPT): Likewise.
3519         [C99-based standards] (math_errhandling): Specify type.
3520         [ISO99 || ISO11] (signgam): Do not allow.
3521         [non-C99-based standards] (copysignf): Do not allow.
3522         [non-C99-based standards] (exp2f): Likewise.
3523         [non-C99-based standards] (log2f): Likewise.
3524         [non-C99-based standards] (modff): Allow.
3525         [non-C99-based standards] (erff): Do not allow.
3526         [non-C99-based standards] (erfcf): Likewise.
3527         [non-C99-based standards] (gammaf): Likewise.
3528         [non-C99-based standards] (hypotf): Likewise.
3529         [non-C99-based standards] (j0f): Likewise.
3530         [non-C99-based standards] (j1f): Likewise.
3531         [non-C99-based standards] (jnf): Likewise.
3532         [non-C99-based standards] (lgammaf): Likewise.
3533         [non-C99-based standards] (tgammaf): Likewise.
3534         [non-C99-based standards] (y0f): Likewise.
3535         [non-C99-based standards] (y1f): Likewise.
3536         [non-C99-based standards] (ynf): Likewise.
3537         [non-C99-based standards] (isnanf): Likewise.
3538         [non-C99-based standards] (acoshf): Likewise.
3539         [non-C99-based standards] (asinhf): Likewise.
3540         [non-C99-based standards] (atanhf): Likewise.
3541         [non-C99-based standards] (cbrtf): Likewise.
3542         [non-C99-based standards] (expm1f): Likewise.
3543         [non-C99-based standards] (ilogbf): Likewise.
3544         [non-C99-based standards] (log1pf): Likewise.
3545         [non-C99-based standards] (logbf): Likewise.
3546         [non-C99-based standards] (nextafterf): Likewise.
3547         [non-C99-based standards] (remainderf): Likewise.
3548         [non-C99-based standards] (rintf): Likewise.
3549         [non-C99-based standards] (scalbf): Likewise.
3550         [non-C99-based standards] (copysignl): Likewise.
3551         [non-C99-based standards] (exp2l): Likewise.
3552         [non-C99-based standards] (log2l): Likewise.
3553         [non-C99-based standards] (modfl): Allow.
3554         [non-C99-based standards] (erfl): Do not allow.
3555         [non-C99-based standards] (erfcl): Likewise.
3556         [non-C99-based standards] (gammal): Likewise.
3557         [non-C99-based standards] (hypotl): Likewise.
3558         [non-C99-based standards] (j0l): Likewise.
3559         [non-C99-based standards] (j1l): Likewise.
3560         [non-C99-based standards] (jnl): Likewise.
3561         [non-C99-based standards] (lgammal): Likewise.
3562         [non-C99-based standards] (tgammal): Likewise.
3563         [non-C99-based standards] (y0l): Likewise.
3564         [non-C99-based standards] (y1l): Likewise.
3565         [non-C99-based standards] (ynl): Likewise.
3566         [non-C99-based standards] (isnanl): Likewise.
3567         [non-C99-based standards] (acoshl): Likewise.
3568         [non-C99-based standards] (asinhl): Likewise.
3569         [non-C99-based standards] (atanhl): Likewise.
3570         [non-C99-based standards] (cbrtl): Likewise.
3571         [non-C99-based standards] (expm1l): Likewise.
3572         [non-C99-based standards] (ilogbl): Likewise.
3573         [non-C99-based standards] (log1pl): Likewise.
3574         [non-C99-based standards] (logbl): Likewise.
3575         [non-C99-based standards] (nextafterl): Likewise.
3576         [non-C99-based standards] (remainderl): Likewise.
3577         [non-C99-based standards] (rintl): Likewise.
3578         [non-C99-based standards] (scalbl): Likewise.
3579         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3580         [non-C99-based standards] (FP_*): Do not allow.
3581         [C99-based standards] (FP_*): Change to
3582         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
3583         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
3584         allow.
3585         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
3586         (SIG_ERR): Likewise.
3587         [X/Open-based standards] (SIG_HOLD): Likewise.
3588         (SIG_IGN): Likewise.
3589         (SIGABRT): Use macro-int-constant.  Specify type.  Require
3590         positive value.
3591         (SIGFPE): Likewise.
3592         (SIGILL): Likewise.
3593         (SIGINT): Likewise.
3594         (SIGSEGV): Likewise.
3595         (SIGTER): Likewise.
3596         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
3597         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
3598         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
3599         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
3600         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
3601         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
3602         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
3603         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
3604         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
3605         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
3606         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
3607         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
3608         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
3609         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
3610         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
3611         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
3612         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
3613         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
3614         [X/Open-based standards] (SIGTRAP): Likewise.
3615         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
3616         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
3617         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
3618         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
3619         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
3620         allow.
3622 2012-05-08  Ian Wienand  <ianw@vmware.com>
3624         [BZ #14080]
3625         * time/tzset.c (__tzset_parse_tz): Update default rules for
3626         daylight time changes in the Energy Policy Act of 2005.
3628 2012-05-09  Andreas Jaeger  <aj@suse.de>
3630         [BZ #13983]
3631         * elf/ldconfig.c (parse_conf): Change string to make clear that
3632         ldconfig only issued a warning if ld.so.conf does not exist.
3634 2012-05-08  David S. Miller  <davem@davemloft.net>
3636         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
3637         movxtod instead of popping the value on the stack.
3639         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3641 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
3643         * config.h.in: Add HAVE_ARM_PCS_VFP.
3645 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
3647         [BZ #13979]
3648         * include/features.h: Warn if user requests __FORTIFY_SOURCE
3649         checking but the checks are disabled for any reason.
3651 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
3653         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
3654         and ELF64_R_TYPE with ELFW(R_TYPE).
3656 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
3658         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
3659         (ulimit): Likewise.
3661         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
3662         (settimeofday): Likewise.
3664 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
3666         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
3667         a struct th_u2 inside the union, and move tu_block/tu_code into
3668         a new th_u3 union of tu_block/tu_code inside of that.  Move
3669         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
3670         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
3671         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
3672         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
3673         (th_stuff): Change to th_u1.tu_stuff.
3674         (th_data): Define.
3675         (th_msg): Change to th_u1.th_u2.tu_data.
3677 2012-05-07  David S. Miller  <davem@davemloft.net>
3679         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3681         [BZ #14074]
3682         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
3683         (SETUP_PIC_REG): Use it.
3684         (SETUP_PIC_REG_LEAF): Use it.
3686 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
3688         [BZ #13885]
3689         [BZ #13923]
3690         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3691         USE_AS_EXPM1L.
3692         (EXPL_FINITE): Likewise.
3693         (FLDLOG): Likewise.
3694         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
3695         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
3696         e_expl.S.
3697         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3698         USE_AS_EXPM1L.
3699         (EXPL_FINITE): Likewise.
3700         (FLDLOG): Likewise.
3701         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
3702         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
3703         e_expl.S.
3704         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
3705         test of -max_value argument for long double.
3706         * sysdeps/i386/fpu/libm-test-ulps: Update.
3707         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3709 2012-05-06  David S. Miller  <davem@davemloft.net>
3711         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
3712         quad soft-float symbols whose references which are compiler
3713         generated.
3714         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
3716 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
3718         [BZ #13884]
3719         [BZ #13914]
3720         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3721         USE_AS_EXP10L.
3722         (EXPL_FINITE): Likewise.
3723         (FLDLOG): Likewise.
3724         (c0): Likewise.
3725         (c1): Likewise.
3726         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
3727         Adjust comments for base varying.
3728         (__expl_finite): Change alias to EXPL_FINITE.
3729         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
3730         e_expl.S.
3731         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
3732         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
3733         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
3734         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
3735         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3736         USE_AS_EXP10L.
3737         (EXPL_FINITE): Likewise.
3738         (FLDLOG): Likewise.
3739         (c0): Likewise.
3740         (c1): Likewise.
3741         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
3742         Adjust comments for base varying.
3743         (__expl_finite): Change alias to EXPL_FINITE.
3744         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
3745         tests for bugs.
3746         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3748         [BZ #14064]
3749         * math/libm-test.inc (check_float_internal): Correct ulp
3750         calculation for subnormal expected results.
3752 2012-05-06  Andreas Jaeger  <aj@suse.de>
3754         * Makeconfig (+math-flags): New, set to -frounding-math.
3755         (+cflags): Add +math-flags so that all of glibc gets compiled with
3756         it.
3758         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
3760 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
3762         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
3763         Disable one test.
3765         [BZ #13787]
3766         [BZ #13922]
3767         [BZ #14036]
3768         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
3769         (__ieee754_expl): Allow for and saturate large arguments.
3770         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
3771         (u_threshold): Likewise.
3772         (__exp): Call __ieee754_exp before checking for overflow and
3773         underflow.
3774         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
3775         (u_threshold): Likewise.
3776         (__expf): Call __ieee754_expf before checking for overflow and
3777         underflow.
3778         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
3779         (u_threshold): Likewise.
3780         (__expl): Call __ieee754_expl before checking for overflow and
3781         underflow.
3782         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
3783         (__ieee754_expl): Allow for and saturate large arguments.
3784         * math/libm-test.inc (exp_test): Add another test.  Do not allow
3785         missing overflow exception on overflow.
3786         (expm1_test): Do not allow missing overflow exception on overflow.
3788         * sysdeps/i386/fpu/e_expl.c: Move to ...
3789         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
3790         rather than using inline asm.
3791         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
3792         * sysdeps/x86_64/fpu/e_expl.S: Copy from
3793         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
3795         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
3796         (nice): Likewise.
3797         (poll): Likewise.
3798         (signal): Likewise.
3799         (time): Likewise.
3800         (times): Likewise.
3802 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
3804         * sysdeps/unix/syscalls.list (adjtime): Add entry from
3805         sysdeps/unix/common/syscalls.list.
3806         (fchmod): Likewise.
3807         (fchown): Likewise.
3808         (ftruncate): Likewise.
3809         (getrusage): Likewise.
3810         (gettimeofday): Likewise.
3811         (setpgid): Likewise.
3812         (setregid): Likewise.
3813         (setreuid): Likewise.
3814         (sigaction): Likewise.
3815         (truncate): Likewise.
3816         (vhangup): Likewise.
3817         * sysdeps/unix/common/syscalls.list: Remove file.
3818         * sysdeps/unix/bsd/Implies: Don't include unix/common.
3819         * sysdeps/unix/sysv/linux/Implies: Likewise.
3821 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
3823         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
3824         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
3825         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
3826         Moved to ...
3827         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
3828         Here.
3829         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
3830         to ...
3831         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
3832         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
3833         to ...
3834         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
3835         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
3836         to ...
3837         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
3838         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
3839         to ...
3840         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
3841         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
3842         to ...
3843         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
3844         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
3845         to ...
3846         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
3847         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
3848         to ...
3849         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
3850         Here.
3851         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
3852         to ...
3853         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
3854         Here.
3855         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
3856         to ...
3857         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
3858         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
3859         Moved to ...
3860         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
3861         Here.
3862         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
3863         to ...
3864         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
3866 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
3868         * sysdeps/unix/common/bits/dirent.h: Remove file.
3869         * sysdeps/unix/common/bits/fcntl.h: Likewise.
3871         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
3872         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
3873         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
3874         * sysdeps/unix/bsd/isatty.c: Likewise.
3875         * sysdeps/unix/bsd/tcdrain.c: Likewise.
3876         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
3877         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
3879 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3881         [BZ #13563]
3882         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
3883         long double comparison inaccuracies.
3884         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
3885         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3887 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
3889         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
3890         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
3892 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
3894         [BZ #14049]
3895         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
3896         nonzero digits before rounding a hex value.
3897         * stdlib/tst-strtod.c (tests): Add another test.
3899 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3901         * sysdeps/s390/fpu/libm-test-ulps: Update.
3903 2012-05-03  Andreas Jaeger  <aj@suse.de>
3905         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
3906         does not get optimized out.
3907         (malloc_opt_barrier): New.
3909 2012-05-03  Andreas Jaeger  <aj@suse.de>
3910             Roland McGrath  <roland@hack.frob.com>
3912         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
3913         intermediate file deletion.
3914         (generated): Add .symlist files.
3916 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
3918         [BZ #13775]
3919         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
3920         Redirect under this condition.
3921         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
3922         [__USE_GNU] (__dprintf_chk): Not under this condition.
3923         [__USE_GNU] (__vdprintf_chk): Likewise.
3924         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
3925         under this condition.
3926         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
3927         [__USE_XOPEN2K8] (dprintf): Define under this condition.
3928         [__USE_XOPEN2K8] (vdprintf): Likewise.
3929         [__USE_GNU] (__dprintf_chk): Not under this condition.
3930         [__USE_GNU] (__vdprintf_chk): Likewise.
3931         [__USE_GNU] (dprintf): Likewise.
3932         [__USE_GNU] (vdprintf): Likewise.
3934 2012-05-03  Roland McGrath  <roland@hack.frob.com>
3936         * elf/Makefile (common-generated): Set this instead of generated for
3937         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
3938         $(all-built-dso)-derived lists.
3940 2012-05-03  Andreas Jaeger  <aj@suse.de>
3942         * sysdeps/i386/fpu/libm-test-ulps: Update.
3944         * FAQ: Removed.
3945         * FAQ.in: Likewise.
3946         * scripts/gen-FAQ.pl: Likewise.
3947         * manual/install.texi (Installation): Point to online location of
3948         FAQ.
3949         * Makefile (files-for-dist): Remove FAQ.
3950         (FAQ): Remove.
3952 2012-05-02  Allan McRae  <allan@archlinux.org>
3954         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
3955         (LDFLAGS-reldepmod5.so): Likewise.
3956         (LDFLAGS-reldep6mod1.so): Likewise.
3957         (LDFLAGS-reldep6mod4.so): Likewise.
3958         (LDFLAGS-reldep8mod3.so): Likewise.
3959         (LDFLAGS-unload4mod1.so): Likewise.
3960         (LDFLAGS-unload4mod2.so): Likewise.
3961         (LDFLAGS-tst-initorder): Likewise.
3962         (LDFLAGS-tst-initordera2.so): Likewise.
3963         (LDFLAGS-tst-initordera3.so): Likewise.
3964         (LDFLAGS-tst-initordera4.so): Likewise.
3965         (LDFLAGS-tst-initorderb2.so): Likewise.
3966         (LDFLAGS-noload): Likewise.
3967         (LDFLAGS-next): Likewise.
3968         (LDFLAGS-order2mod1.so): Likewise.
3969         (LDFLAGS-order2mod2.so): Likewise.
3970         (LDFLAGS-tst-initorder2): Likewise.
3971         (LDFLAGS-tst-initorder2a.so): Likewise.
3972         (LDFLAGS-tst-initorder2b.so): Likewise.
3973         (LDFLAGS-tst-initorder2c.so): Likewise.
3974         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
3976 2012-05-02  David S. Miller  <davem@davemloft.net>
3978         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3980 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
3982         [BZ #14055]
3983         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
3985 2012-05-02  Andreas Jaeger  <aj@suse.de>
3987         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
3988         since we manipulate rounding mode.
3989         (CPPFLAGS-test-idouble.c): Likewise.
3990         (CPPFLAGS-test-ifloat.c): Likewise.
3991         (CFLAGS-test-ldouble.c): Likewise.
3992         (CFLAGS-test-double.c): Likewise.
3993         (CFLAGS-test-float.c): Likewise.
3994         (CFLAGS-test-misc.c): Likewise.
3995         (CFLAGS-test-test-fenv.c): Likewise.
3997 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3999         [BZ #2550]
4000         [BZ #2570]
4001         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
4002         comparisons to determine direction to adjust input.
4004 2012-05-01  Roland McGrath  <roland@hack.frob.com>
4006         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
4007         output to the target.
4009         * scripts/localplt.awk: New file.
4010         * elf/Makefile ($(objpfx)check-localplt): Target removed.
4011         (check-localplt-CFLAGS): Variable removed.
4012         ($(all-built-dso:=.jmprel)): New static pattern rule.
4013         (generated): Add those targets.
4014         (localplt-built-dso): New variable.
4015         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
4017         * elf/check-localplt.c: File removed.
4019         * scripts/check-execstack.awk: New file.
4020         * elf/Makefile ($(objpfx)check-execstack): Target removed.
4021         (check-execstack-CFLAGS): Variable removed.
4022         ($(objpfx)check-execstack.h): Target removed.
4023         ($(objpfx)execstack-default): New target.
4024         (generated): Add that instead of check-execstack.h.
4025         ($(all-built-dso:=.phdr)): New static pattern rule.
4026         (generated): Add those targets.
4027         * elf/check-execstack.c: File removed.
4029         * scripts/check-textrel.awk: New file.
4030         * elf/Makefile ($(objpfx)check-textrel): Target removed.
4031         (check-textrel-CFLAGS): Variable removed.
4032         (all-built-dso): Use := to define.o
4033         ($(all-built-dso:=.dyn)): New static pattern rule.
4034         (generated): Add those targets.
4035         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
4036         * config.make.in (READELF): New substituted variable.
4037         * elf/check-textrel.c: File removed.
4039 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
4041         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
4042         allow.
4043         * conform/data/ctype.h-data [C99-based standards] (isblank):
4044         Expect function.
4045         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
4046         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
4047         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4048         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
4049         Specify type.  Require positive value.
4050         (EILSEQ): Likewise.
4051         (ERANGE): Likewise.
4052         [ISO || POSIX] (EILSEQ): Do not expect.
4053         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
4054         Specify type.  Require positive value.
4055         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
4056         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
4057         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
4058         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
4059         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
4060         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
4061         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
4062         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
4063         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
4064         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
4065         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
4066         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
4067         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
4068         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
4069         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
4070         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
4071         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
4072         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
4073         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
4074         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
4075         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
4076         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
4077         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
4078         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
4079         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
4080         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
4081         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
4082         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
4083         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
4084         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
4085         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
4086         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
4087         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
4088         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
4089         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
4090         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
4091         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
4092         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
4093         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
4094         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
4095         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
4096         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
4097         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
4098         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
4099         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
4100         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
4101         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
4102         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
4103         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
4104         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
4105         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
4106         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
4107         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
4108         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
4109         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
4110         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
4111         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
4112         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
4113         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
4114         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
4115         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
4116         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
4117         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
4118         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
4119         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
4120         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
4121         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
4122         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
4123         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
4124         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
4125         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
4126         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
4127         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
4128         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
4129         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
4130         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
4131         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
4132         Require >= 2.
4133         (FLT_ROUNDS): Expect as macro, not constant.
4134         (FLT_MANT_DIG): Use macro-int-constant.
4135         (DBL_MANT_DIG): Likewise.
4136         (LDBL_MANT_DIG): Likewise.
4137         (FLT_DIG): Likewise.
4138         (DBL_DIG): Likewise.
4139         (LDBL_DIG): Likewise.
4140         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
4141         (DBL_MIN_EXP): Likewise.
4142         (LDBL_MIN_EXP): Likewise.
4143         (FLT_MAX_EXP): Use macro-int-constant.
4144         (DBL_MAX_EXP): Likewise.
4145         (LDBL_MAX_EXP): Likewise.
4146         (FLT_MAX_10_EXP): Likewise.
4147         (DBL_MAX_10_EXP): Likewise.
4148         (LDBL_MAX_10_EXP): Likewise.
4149         (FLT_MAX): Use macro-constant.
4150         (DBL_MAX): Likewise.
4151         (LDBL_MAX): Likewise.
4152         (FLT_EPSILON): Use macro-constant.  Give upper bound.
4153         (DBL_EPSILON): Likewise.
4154         (LDBL_EPSILON): Likewise.
4155         (FLT_MIN): Likewise.
4156         (DBL_MIN): Likewise.
4157         (LDBL_MIN): Likewise.
4158         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
4159         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
4160         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
4161         [ISO11] (FLT_HAS_SUBNORM): Likewise.
4162         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
4163         [ISO11] (DBL_DECIMAL_DIG): Likewise.
4164         [ISO11] (FLT_DECIMAL_DIG): Likewise.
4165         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
4166         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
4167         [ISO11] (FLT_TRUE_MIN): Likewise.
4168         [ISO11] (LDBL_TRUE_MIN): Likewise.
4169         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4170         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
4171         (SCHAR_MIN): Use macro-int-constant.  Specify type.
4172         (SCHAR_MAX): Likewise.
4173         (UCHAR_MAX): Likewise.
4174         (CHAR_MIN): Likewise.
4175         (CHAR_MAX): Likewise.
4176         (MB_LEN_MAX): Use macro-int-constant.
4177         (SHRT_MIN): Use macro-int-constant.  Specify type.
4178         (SHRT_MAX): Likewise.
4179         (USHRT_MAX): Likewise.
4180         (INT_MAX): Likewise.
4181         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
4182         bound negative.
4183         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
4184         bound with "U".
4185         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
4186         bound with "L".
4187         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
4188         bound negative.  Suffix upper bound with "L".
4189         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
4190         bound with "UL".
4191         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
4192         Specify type.
4193         [C99-based standards] (LLONG_MAX): Likewise.
4194         [C99-based standards] (ULLONG_MAX): Likewise.
4195         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
4196         == 0.
4197         [ISO11] (max_align_t): Require type.
4198         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4200         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
4201         from $CFLAGS, without defining away __attribute__ calls.
4202         (checknamespace): Use $CFLAGS_namespace.
4204         * conform/conformtest.pl (@keywords): Only include C99 keywords
4205         for standards based on C99 or C11.
4207         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
4208         Disable tests.
4209         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
4210         UNIX98]: Likewise.
4212         * conform/conformtest.pl: Handle "macro-int-constant" and test for
4213         usability of symbols in #if.
4215         * conform/conformtest.pl: If macro or constant types start
4216         "promoted:", expect the symbol to be of the following type
4217         promoted by the integer promotions.
4219         * conform/conformtest.pl: Parse all "constant" and "macro" lines
4220         in one place.  Also handle "macro-constant".
4222         * conform/conformtest.pl: Only accept expected macro values with
4223         "==".  Parse all "macro" lines in one place.
4224         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
4226         * conform/conformtest.pl: Handle braced types on "constant" lines
4227         instead of handling "typed-constant".
4228         * conform/data/signal.h-data: Use "constant" instead of
4229         "typed-constant".
4231         * conform/conformtest.pl: Handle "optional-" at start of lines in
4232         one place rather than duplicating several cases.  Handle each
4233         format of "macro" line with initial "optional-".
4235         * conform/conformtest.pl: Only accept expected constant or
4236         optional-constant values with "==".  Parse all "constant" lines in
4237         one place.  Parse all "optional-constant" lines in one place.
4238         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
4239         * conform/data/fmtmsg.h-data: Likewise.
4240         * conform/data/netinet/in.h-data: Likewise.
4241         * conform/data/tar.h-data: Likewise.
4242         * conform/data/limits.h-data: Use "==" form on "constant" and
4243         "optional-constant" lines.
4245         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
4246         Use -std=c99 for XOPEN2K.
4247         (@knownproblems): Remove.
4248         (newtoken): Don't check %isknown.
4250         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
4251         Do not expect macro.
4252         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
4253         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
4254         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
4255         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
4256         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
4257         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
4258         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
4259         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
4260         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
4261         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
4262         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
4263         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
4264         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
4265         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
4266         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
4267         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
4268         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
4269         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
4270         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
4271         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
4272         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
4273         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
4274         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
4275         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
4276         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
4277         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
4278         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
4279         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
4280         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
4281         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
4282         [XPG3] (acosh): Likewise.
4283         [XPG3] (asinh): Likewise.
4284         [XPG3] (atanh): Likewise.
4285         [XPG3] (cbrt): Likewise.
4286         [XPG3] (expm1): Likewise.
4287         [XPG3] (ilogb): Likewise.
4288         [XPG3] (log1p): Likewise.
4289         [XPG3] (logb): Likewise.
4290         [XPG3] (nextafter): Likewise.
4291         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
4292         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
4293         [XPG3] (remainder): Likewise.
4294         [XPG3] (rint): Likewise.
4295         [XPG3 || XPG4 || UNIX98] (round): Likewise.
4296         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
4297         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
4298         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
4299         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
4300         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
4301         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
4302         [UNIX98 || XOPEN2K] (scalb): Expect.
4303         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
4304         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
4305         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
4306         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
4307         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
4308         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
4309         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
4310         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
4311         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
4312         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
4313         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
4314         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
4315         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
4316         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
4317         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
4318         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
4319         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
4320         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
4321         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
4322         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
4323         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
4324         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
4325         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
4326         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
4327         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
4328         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
4329         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
4330         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
4331         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
4332         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
4333         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
4334         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
4335         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
4336         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
4337         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
4338         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
4339         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
4340         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
4341         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
4342         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
4343         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
4344         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
4345         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
4346         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
4347         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
4348         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
4349         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
4350         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
4351         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
4352         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
4353         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
4354         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
4355         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
4356         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
4357         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
4358         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
4359         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
4360         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
4361         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
4362         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
4363         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
4364         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
4365         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
4366         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
4367         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
4368         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
4369         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
4370         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
4371         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
4372         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
4373         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
4374         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
4375         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
4376         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
4377         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
4378         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
4379         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
4380         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
4381         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
4382         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
4383         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
4384         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
4385         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
4386         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
4387         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
4388         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
4389         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
4390         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
4391         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
4392         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
4393         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
4394         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
4395         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
4396         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
4397         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
4398         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
4399         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
4400         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
4401         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
4402         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
4403         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
4404         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
4405         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
4406         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
4407         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
4408         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
4409         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
4410         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
4411         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
4412         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
4413         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
4414         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
4415         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
4416         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
4417         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
4418         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
4419         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
4420         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
4421         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
4422         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
4423         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
4424         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
4425         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
4426         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
4427         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
4428         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
4429         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
4430         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
4431         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
4432         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
4433         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
4434         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
4435         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
4436         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
4437         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
4438         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
4439         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
4441         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
4442         _XOPEN_SOURCE_EXTENDED for XPG4.
4444         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
4446         * Makeconfig (localtime): Remove variable.
4447         (inst_localtime-file): Likewise.
4449 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
4451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
4452         Update.
4453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4454         Update.
4455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
4456         Update.
4457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
4458         Update.
4459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
4460         Update.
4461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
4462         Update.
4463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4464         Update.
4465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
4466         Update.
4467         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
4468         Update.
4470 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
4472         [BZ #2550]
4473         [BZ #2570]
4474         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
4475         comparisons to determine direction to adjust input.
4476         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
4477         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
4478         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
4479         Likewise.
4480         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
4481         Likewise.
4482         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
4483         Likewise.
4484         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
4485         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
4486         Likewise.
4487         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
4488         Likewise.
4489         * math/libm-test.inc (nexttoward_test): Add more tests.
4491 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
4493         [BZ #14040]
4494         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
4495         in version GLIBC_2.1, not GLIBC_2.0.
4496         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
4497         Likewise.
4499 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
4501         [BZ #13942]
4502         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
4503         (1 - x) * (1 + x).
4504         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
4505         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
4506         * math/libm-test.inc (acos_test): Add more tests.
4507         (asin_test): Likewise.
4508         * sysdeps/i386/fpu/libm-test-ulps: Update.
4509         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4511         [BZ #14034]
4512         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
4513         of square root.
4514         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
4515         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
4516         * math/libm-test.inc (acos_test_tonearest): New function.
4517         (acos_test_towardzero): Likewise.
4518         (acos_test_downward): Likewise.
4519         (acos_test_upward): Likewise.
4520         (asin_test_tonearest): Likewise.
4521         (asin_test_towardzero): Likewise.
4522         (asin_test_downward): Likewise.
4523         (asin_test_upward): Likewise.
4524         (main): Call the new functions.
4525         * sysdeps/i386/fpu/libm-test-ulps: Update.
4526         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4528         [BZ #13884]
4529         [BZ #13924]
4530         * math/e_exp10.c: Include <float.h>.
4531         (__ieee754_exp10): Handle underflow here rather than multiplying
4532         large negative argument by M_LN10.
4533         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
4534         of __ieee754_expf.
4535         * math/e_exp10l.c: Include <float.h>.
4536         (__ieee754_exp10l): Handle underflow here rather than multiplying
4537         large negative argument by M_LN10l.
4538         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
4539         spurious overflow exception on underflow.
4541 2012-04-29  Marek Polacek  <polacek@redhat.com>
4543         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
4544         (__fortify_function): New macro.
4545         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
4546         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
4547         __extern_always_inline.
4548         * libio/bits/stdio2.h: Likewise.
4549         * libio/bits/stdio.h: Likewise.
4550         * string/string.h: Likewise.
4551         * string/bits/string3.h: Likewise.
4552         * include/stdio.h: Likewise.
4553         * stdlib/bits/stdlib.h: Likewise.
4554         * stdlib/stdlib.h: Likewise.
4555         * rt/bits/mqueue2.h: Likewise.
4556         * rt/mqueue.h: Likewise.
4557         * posix/bits/unistd.h: Likewise.
4558         * posix/unistd.h: Likewise.
4559         * io/bits/poll2.h: Likewise.
4560         * io/bits/fcntl2.h: Likewise.
4561         * io/fcntl.h: Likewise.
4562         * io/sys/poll.h: Likewise.
4563         * misc/bits/syslog.h: Likewise.
4564         * misc/bits/syslog-ldbl.h: Likewise.
4565         * misc/sys/syslog.h: Likewise.
4566         * socket/bits/socket2.h: Likewise.
4567         * socket/sys/socket.h: Likewise.
4568         * debug/tst-chk1.c: Likewise.
4569         * wcsmbs/bits/wchar2.h: Likewise.
4570         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4571         * wcsmbs/wchar.h: Likewise.
4573 2012-04-29  Andreas Jaeger  <aj@suse.de>
4575         * Makerules (tests): Remove enable-check-abi protection.
4576         (check-abi-warn): Remove.
4577         (check-abi-%): Remove check-abi-warn usage.
4579         * configure.in: Remove check-abi configure option.
4580         * configure: Regenerated.
4581         * config.make.in (enable-check-abi): Remove.
4583 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
4585         [BZ #14033]
4586         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
4587         double functions to double *_finite functions.
4589         [BZ #13941]
4590         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
4591         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
4592         LDBL_MIN_EXP.
4593         * stdio-common/Makefile (tests): Add tst-sprintf3.
4594         * stdio-common/tst-sprintf3.c: New file.
4596         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
4597         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
4599 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
4601         * conform/conformtest.pl: Remove duplicate typed-constant
4602         handling.
4604 2012-04-28  David S. Miller  <davem@davemloft.net>
4606         * Makerules (%.abilist): Add vpath on sysdep_dirs.
4607         (check-abi-%): Remove AWK script prerequisite and explicit
4608         abilist directory.
4609         (check-abi): Rewrite to just diff the symlist with the abilist.
4610         (config-tls, config-abi-config): Delete, no longer used.
4611         (update-abi-%): Remove AWK script and explicit abilist directory.
4612         (update-abi): Rewrite to simply compare and conditionally copy the
4613         symlist and the sysdep abilist file.  Remove update-abi-config
4614         checks.
4615         * abilist/ld.abilist: Remove.
4616         * abilist/libBrokenLocale.abilist: Remove.
4617         * abilist/libanl.abilist: Remove.
4618         * abilist/libcrypt.abilist: Remove.
4619         * abilist/libdl.abilist: Remove.
4620         * abilist/librt.abilist: Remove.
4621         * abilist/libthread_db.abilist: Remove.
4622         * abilist/libutil.abilist: Remove.
4623         * scripts/extract-abilist.awk: Remove.
4624         * scripts/merge-abilist.awk: Remove.
4625         * sysdeps/generic/libcidn.abilist: New file.
4626         * sysdeps/generic/libnss_compat.abilist: New file.
4627         * sysdeps/generic/libnss_db.abilist: New file.
4628         * sysdeps/generic/libnss_dns.abilist: New file.
4629         * sysdeps/generic/libnss_files.abilist: New file.
4630         * sysdeps/generic/libnss_hesiod.abilist: New file.
4631         * sysdeps/generic/libnss_nis.abilist: New file.
4632         * sysdeps/generic/libnss_nisplus.abilist: New file.
4633         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
4634         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
4635         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
4636         file.
4637         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
4638         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
4639         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
4640         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
4641         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
4642         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
4643         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
4644         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
4645         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
4646         file.
4647         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
4648         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
4649         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
4650         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
4651         file.
4652         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
4653         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
4654         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
4655         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
4656         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
4657         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
4658         file.
4659         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
4660         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
4661         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
4662         file.
4663         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
4664         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
4665         New file.
4666         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
4667         New file.
4668         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
4669         New file.
4670         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
4671         New file.
4672         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
4673         New file.
4674         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
4675         New file.
4676         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
4677         New file.
4678         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
4679         New file.
4680         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
4681         New file.
4682         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
4683         New file.
4684         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
4685         New file.
4686         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
4687         New file.
4688         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
4689         New file.
4690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
4691         file.
4692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
4693         New file.
4694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
4695         New file.
4696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
4697         file.
4698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
4699         New file.
4700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
4701         New file.
4702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
4703         file.
4704         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
4705         New file.
4706         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
4707         New file.
4708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
4709         New file.
4710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
4711         New file.
4712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
4713         New file.
4714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
4715         New file.
4716         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
4717         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
4718         file.
4719         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
4720         New file.
4721         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
4722         file.
4723         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
4724         file.
4725         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
4726         file.
4727         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
4728         file.
4729         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
4730         file.
4731         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4732         New file.
4733         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
4734         file.
4735         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
4736         file.
4737         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
4738         New file.
4739         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
4740         file.
4741         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
4742         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
4743         file.
4744         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
4745         New file.
4746         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
4747         file.
4748         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
4749         file.
4750         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
4751         file.
4752         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
4753         file.
4754         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
4755         file.
4756         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4757         New file.
4758         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
4759         file.
4760         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
4761         file.
4762         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
4763         New file.
4764         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
4765         file.
4766         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4767         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
4768         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
4769         file.
4770         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
4771         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
4772         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
4773         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
4774         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
4775         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
4776         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
4777         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
4778         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
4779         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
4780         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
4781         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
4782         file.
4783         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
4784         New file.
4785         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
4786         file.
4787         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
4788         file.
4789         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
4790         file.
4791         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
4792         file.
4793         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
4794         file.
4795         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
4796         New file.
4797         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
4798         New file.
4799         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
4800         file.
4801         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
4802         New file.
4803         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
4804         file.
4805         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
4806         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
4807         file.
4808         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
4809         New file.
4810         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
4811         file.
4812         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
4813         file.
4814         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
4815         file.
4816         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
4817         file.
4818         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
4819         file.
4820         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
4821         New file.
4822         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
4823         New file.
4824         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
4825         file.
4826         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
4827         New file.
4828         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
4829         file.
4831 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
4833         * conform/conformtest.pl: Fix typo in handling typed-constant from
4834         allow-header.
4836 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
4838         * README: Cut down references to pre-2.6 Linux kernels and
4839         Linuxthreads.  Update lists of configurations in libc and ports
4840         and sort alphabetically.  Say "or newer" with Linux kernel version
4841         requirements.
4843         * config.h.in [IS_IN_build]: Allow compiling without optimization.
4845 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4847         [BZ #887]
4848         * math/libm-test.inc (logb_test_downward): New test to expose
4849         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
4850         rounding mode.
4852 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
4854         [BZ #14027]
4855         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
4856         to be done.
4857         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
4858         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
4860 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
4862         * sysdeps/unix/i386/brk.S: Remove file.
4863         * sysdeps/unix/i386/dl-brk.S: Likewise.
4864         * sysdeps/unix/i386/pipe.S: Likewise.
4865         * sysdeps/unix/i386/sigreturn.S: Likewise.
4866         * sysdeps/unix/i386/syscall.S: Likewise.
4867         * sysdeps/unix/i386/vfork.S: Likewise.
4868         * sysdeps/unix/i386/wait.S: Likewise.
4870         * sysdeps/unix/common/tcsendbrk.c: Move to ...
4871         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
4873         * configure.in (arm*-none*): Do not allow without
4874         --enable-hacker-mode.
4875         (netbsd*): Remove case setting base_os.
4876         (386bsd*): Likewise.
4877         (freebsd*): Likewise.
4878         (bsdi*): Likewise.
4879         (osf*): Likewise.
4880         (sunos*): Likewise.
4881         (ultrix*): Likewise.
4882         (newsos*): Likewise.
4883         (dynix*): Likewise.
4884         (*bsd*): Likewise.
4885         (sysv*): Likewise.
4886         (isc*): Likewise.
4887         (esix*): Likewise.
4888         (sco*): Likewise.
4889         (minix*): Likewise.
4890         (irix4*): Likewise.
4891         (irix6*): Likewise.
4892         (solaris[2-9]*): Likewise.
4893         (none): Likewise.
4894         * configure: Regenerated.
4896 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4898         [BZ #11521]
4899         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
4900         overflow or cancellation in calculating denominator.
4901         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
4902         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
4903         down expression to avoid unexpected rounding in newer GCCs.
4904         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
4906 2012-04-26  David S. Miller  <davem@davemloft.net>
4908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
4909         long-double compat symbols.
4910         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
4911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
4912         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
4913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
4914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
4915         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
4916         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
4917         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
4918         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
4919         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
4920         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
4921         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
4922         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
4924 2012-04-25  David S. Miller  <davem@davemloft.net>
4926         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
4927         HWCAP_* values only after the memory barriers have been defined.
4928         (atomic_full_barrier): Define.
4929         (atomic_read_barrier): Define.
4930         (atomic_write_barrier): Define.
4932 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4934         * shlib-versions: Add libgcc_s version information.
4935         * sysdeps/generic/libgcc_s.h: Remove.
4936         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
4937         libgcc_s.h.
4938         * sysdeps/gnu/unwind-resume.c: Likewise.
4939         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
4941 2012-04-25  David S. Miller  <davem@davemloft.net>
4943         * sysdeps/unix/sparc/brk.S: Delete.
4944         * sysdeps/unix/sparc/dl-brk.S: Delete.
4945         * sysdeps/unix/sparc/pipe.S: Delete.
4946         * sysdeps/unix/sparc/sysdep.S: Delete.
4947         * sysdeps/unix/sparc/sysdep.h: Delete.
4948         * sysdeps/unix/sparc/vfork.S: Delete.
4949         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
4950         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
4951         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
4952         ret_ERRVAL, r0, r1, MOVE): Define.
4953         (JUMPTARGET): Remove.
4954         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
4955         sysdeps/unix/sparc/sysdep.h
4956         (ENTRY, END): Remove.
4957         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
4959 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
4961         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
4962         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
4963         -DIS_IN_build.
4965         * timezone/README: Update upstream location and email address for
4966         tzcode and tzdata.
4967         * timezone/zdump.c: Update from tzcode 2012b.
4968         * timezone/zic.c: Likewise.
4970         * configure.in (libc_cv_as_needed): Remove test.
4971         * configure: Regenerated.
4972         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
4973         conditional definition.
4974         [$(have-as-needed) != yes] (no-as-needed): Likewise.
4975         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
4976         * config.make.in (have-as-needed): Remove variable.
4978 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
4979             Paul Pluzhnikov  <ppluzhnikov@google.com>
4981         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
4982         strings correctly.
4984 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
4986         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
4987         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
4988         * sysdeps/sh/strlen.S: Likewise.
4990 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
4992         * sysdeps/unix/fork.S: Remove file.
4993         * sysdeps/unix/i386/fork.S: Likewise.
4994         * sysdeps/unix/sparc/fork.S: Likewise.
4996         * sysdeps/unix/system.c: Remove file.
4997         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
4999         * sysdeps/unix/getegid.S: Remove file.
5000         * sysdeps/unix/geteuid.S: Likewise.
5002 2012-04-24  Roland McGrath  <roland@hack.frob.com>
5004         * scripts/check-localplt.awk: New file.
5005         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
5006         of diff.
5007         * scripts/data/localplt-generic.data: Add a comment.
5009         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
5010         NODE when __dir_mkfile failed.
5011         * sysdeps/mach/hurd/symlinkat.c: Likewise.
5012         Reported by Ludovic Courtès <ludo@gnu.org>.
5014 2012-04-24  Andreas Jaeger  <aj@suse.de>
5016         * Makerules (common-clean): Also remove gen-as-const-headers
5017         files.
5019 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
5021         * Makerules (native-compile): Do not change working directory for
5022         build.  Use $(OUTPUT_OPTION) in command.
5023         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
5025 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5027         [BZ #13886]
5028         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
5029         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
5030         * math/libm-test.inc (floor_test): Add more tests.
5031         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
5033 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
5035         * sysdeps/unix/getdents.c: Remove file.
5036         * sysdeps/unix/sysv/getdents.c: Likewise.
5037         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
5039         * sysdeps/unix/syscalls.list (madvise): Add syscall from
5040         sysdeps/unix/mman/syscalls.list.
5041         (mmap): Likewise.
5042         (mprotect): Likewise.
5043         (msync): Likewise.
5044         (munmap): Likewise.
5045         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
5046         * sysdeps/unix/mman/syscalls.list: Remove.
5047         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
5049         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
5050         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
5051         * configure: Regenerated.
5052         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
5053         $(libgcc_s_suffix).
5054         * config.make.in (libgcc_s_suffix): Remove variable.
5056 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
5058         * sysdeps/unix/sysv/gethostname.c: Move to ...
5059         * sysdeps/posix/gethostname.c: ... here.
5061         * sysdeps/unix/execve.S: Remove file.
5063         * sysdeps/unix/_exit.S: Remove file.
5065 2012-04-23  Andreas Jaeger  <aj@suse.de>
5067         [BZ #13739]
5068         * manual/Makefile: Remove make dist support, there's no
5069         need for a stand-alone documentation tar ball.
5070         (TEXI2DVI): Define always, it's not in Makeconfig.
5071         (dist): Removed.
5072         (tar-it): Removed.
5073         (edition): Removed.
5074         (glibc-doc-$(edition).tar): Removed
5075         (%.Z): Removed.
5076         (%.gz): Removed.
5077         (%.uu): Removed.
5078         (ETAGS): Remove, it's in Makeconfig.
5079         (move-if-change): Remove, it's in Makeconfig.
5081 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
5083         [BZ #13970]
5084         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
5085         (strtod, strtof, strtold, strtol, strtoul, strtoq)
5086         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
5087         (strtod_l, strtof_l, strtold_l): Remove __wur.
5088         It is not necessarily an error to ignore strtol's return value.
5089         One can reliably look at the stored endptr to decide whether
5090         the number had valid syntax.
5092 2012-04-21  Andreas Jaeger  <aj@suse.de>
5094         [BZ #13739]
5095         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
5097 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
5099         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
5100         * sysdeps/unix/sysv/Versions: Remove file.
5102 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
5104         [BZ #13927]
5105         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5107 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
5109         [BZ #7064]
5110         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
5111         version from __vm86.
5113 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
5115         * sysdeps/unix/common/lxstat.c: Remove file.
5116         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
5118         * sysdeps/unix/sysv/Makefile: Remove file.
5120         * sysdeps/unix/sysv/direct.h: Remove file.
5122         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
5123         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
5124         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
5125         * sysdeps/unix/sysv/bits/signum.h: Likewise.
5126         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5127         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
5128         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
5130         * sysdeps/unix/sysv/setrlimit.c: Remove file.
5132         * sysdeps/unix/xmknod.c: Remove file.
5133         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
5135         * sysdeps/unix/sysv/settimeofday.c: Remove file.
5137         * sysdeps/unix/sysv/i386/time.S: Remove file.
5139         * sysdeps/unix/fxstat.c: Remove file.
5140         * sysdeps/unix/xstat.c: Likewise.
5141         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
5143         * sysdeps/unix/sysv/sigaction.c: Remove file.
5145         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
5146         (sysdep_headers): Remove variable.
5147         [termio.h not in sysdep_headers] (generated): Likewise.
5148         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
5149         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
5150         * sysdeps/unix/sysv/tcdrain.c: Likewise.
5151         * sysdeps/unix/sysv/tcflow.c: Likewise.
5152         * sysdeps/unix/sysv/tcflush.c: Likewise.
5153         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
5154         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
5155         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
5156         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
5157         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
5159         * sysdeps/unix/siglist.c: Remove file.
5161         * sysdeps/unix/getppid.S: Remove file.
5163         * sysdeps/unix/mkdir.c: Remove file.
5164         * sysdeps/unix/rmdir.c: Likewise.
5166 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
5168         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
5169         ERR_MAX value.
5170         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
5171         errlist-compat value.
5173 2012-04-18  David S. Miller  <davem@davemloft.net>
5175         * sysdeps/generic/memcopy.h (reg_char): Delete.
5176         * debug/strcat_chk.c: Use char, not reg_char.
5177         * debug/strcpy_chk.c: Likewise.
5178         * debug/strncat_chk.c: Likewise.
5179         * debug/strncpy_chk.c: Likewise.
5180         * string/memchr.c: Likewise.
5181         * string/memrchr.c: Likewise.
5182         * string/rawmemchr.c: Likewise.
5183         * string/strcat.c: Likewise.
5184         * string/strchr.c: Likewise.
5185         * string/strchrnul.c: Likewise.
5186         * string/strcmp.c: Likewise.
5187         * string/strcpy.c: Likewise.
5188         * string/strncat.c: Likewise.
5189         * string/strncmp.c: Likewise.
5190         * string/strncpy.c: Likewise.
5192 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
5194         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
5195         __builtin_memcopy is called when src and dest ranges are known to not
5196         overlap.
5198 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
5200         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
5201         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
5202         fwd_align_merge macro call.
5203         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
5204         bwd_align_merge macro call.
5205         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
5207 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
5209         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
5210         bwd_align_merge macros.
5211         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
5212         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
5213         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
5215 2012-04-18  David S. Miller  <davem@davemloft.net>
5217         * sysdeps/sparc/sparc64/memcopy.h: Delete.
5219 2012-04-18  Andreas Jaeger  <aj@suse.de>
5221         [BZ# 6794]
5222         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
5223         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
5224         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
5226         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
5227         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
5228         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
5230         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
5231         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
5232         Adjust for changed ldbl-128 files.
5234         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
5235         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
5236         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
5238 2012-04-17  David S. Miller  <davem@davemloft.net>
5240         * sysdeps/sparc/sparc32/memcopy.h: Delete.
5242 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
5244         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
5245         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
5246         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
5247         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
5248         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
5249         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
5251 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5253         [BZ #6794]
5254         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
5255         * math/libm-test.inc: Add ilogb errno and exception tests.
5256         * math/w_ilogb.c: New file: ilogb wrapper.
5257         * math/w_ilogbf.c: New file: ilogbf wrapper.
5258         * math/w_ilogbl.c: New file: ilogbl wrapper.
5259         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
5260         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
5261         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
5262         exception being thrown with 0.0 as argument.
5263         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
5264         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
5265         exception being thrown with 0.0 as argument.
5266         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
5267         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
5268         exception being thrown with 0.0 as argument.
5269         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
5270         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
5271         exception being thrown with 0.0 as argument.
5272         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
5273         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
5274         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
5275         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
5276         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
5277         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
5278         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
5279         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
5280         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
5282 2012-04-17  Petr Baudis  <pasky@ucw.cz>
5284         * include/sys/uio.h: Change __vector to __iovec to avoid clash
5285         with altivec.
5287 2012-04-16  Marek Polacek  <polacek@redhat.com>
5289         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
5291 2012-04-16  Marek Polacek  <polacek@redhat.com>
5293         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
5294         operands of fdivp instruction.
5296 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
5298         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
5299         * elf/tst-auditmod3b.c: Likewise.
5300         * elf/tst-auditmod4b.c: Likewise.
5301         * elf/tst-auditmod5b.c: Likewise.
5302         * elf/tst-auditmod6b.c: Likewise.
5303         * elf/tst-auditmod6c.c: Likewise.
5304         * elf/tst-auditmod7b.c: Likewise.
5305         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
5306         * sysdeps/x86_64/preconfigure.in: Likewise.
5307         * sysdeps/x86_64/preconfigure: Regenerated.
5309 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
5311         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
5312         __ILP32__.
5314 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
5316         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5317         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
5319 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
5321         [BZ #13973]
5322         * locale/iso-639.def: Fix gl language name. Spotted by
5323         Yaron Shahrabani.
5325 2012-04-12  Roland McGrath  <roland@hack.frob.com>
5327         [BZ #2074]
5328         * libio/libio.h (__io_write_fn): Update comment.
5330 2012-04-12  Petr Baudis  <pasky@ucw.cz>
5332         [BZ #2074]
5333         * stdio.texi (Hook Functions): The user provided writer function
5334         is not allowed to return -1.
5336 2012-04-11  David S. Miller  <davem@davemloft.net>
5338         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5340 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
5342         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
5343         Add a leading slash to rtkaio.
5345 2012-04-11  Jim Meyering  <meyering@redhat.com>
5347         [BZ #11959]
5348         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
5349         It is not necessarily an error to ignore fwrite's return
5350         value.  One can reliably use ferror to test for errors after
5351         the fact.
5353 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
5355         * bits/types.h (__snseconds_t): New type.
5356         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
5358         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
5359         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5360         (__SNSECONDS_T_TYPE): Likewise.
5361         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5362         (__SNSECONDS_T_TYPE): Likewise.
5363         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5364         (__SNSECONDS_T_TYPE): Likewise.
5366 2012-04-10  Andreas Jaeger  <aj@suse.de>
5368         [BZ #2636]
5369         * manual/time.texi (Processor Time): Return type of times is
5370         elapsed real time since an arbitrary point in the past.
5371         (CPU Time): Move CLK_TCK from here...
5372         (Processor Time): ...to here.  Correct description.
5373         * manual/conf.texi (Constants for Sysconf): Correct description of
5374         _SC_CLK_TCK.
5376 2012-04-10  David S. Miller  <davem@davemloft.net>
5378         [BZ #13967]
5379         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
5380         where the is a gap between DT_REL(A) and DT_JMPREL.
5382 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
5384         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
5385         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
5386         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
5388 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5390         * elf/dl-support.c (_dl_inhibit_cache): New variable.
5391         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
5392         (dl_main): Handle --inhibit-cache.
5393         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
5394         _dl_inhibit_cache.
5395         * elf/dl-load.c (_dl_map_object): Use it.
5396         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
5398 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
5400         [BZ #13872]
5401         * sysdeps/i386/fpu/e_powl.S (p78): New object.
5402         (__ieee754_powl): Saturate large exponents rather than testing for
5403         overflow of y*log2(x).
5404         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
5405         * math/libm-test.inc (pow_test): Do not permit spurious overflow
5406         exceptions.
5408         [BZ #11521]
5409         * math/s_ctan.c: Include <float.h>.
5410         (__ctan): Avoid internal overflow or cancellation in calculating
5411         denominator.
5412         * math/s_ctanf.c: Likewise.
5413         * math/s_ctanl.c: Likewise.
5414         * math/s_ctanh.c: Likewise.
5415         * math/s_ctanhf.c: Likewise.
5416         * math/s_ctanhl.c: Likewise.
5417         * math/libm-test.inc (ctan_test): Add more tests.
5418         (ctanh_test): Likewise.
5419         * sysdeps/i386/fpu/libm-test-ulps: Update.
5420         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5422 2012-04-09  Andreas Jaeger  <aj@suse.de>
5424         [BZ #6894]
5425         * manual/filesys.texi (Directory Entries): Mention that d_namlen
5426         is an optional BSD extension.
5428         [BZ #10254]
5429         * manual/stdio.texi (Opening Streams): Document additional fopen
5430         parameters.
5432 2012-04-09  Roland McGrath  <roland@hack.frob.com>
5434         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
5435         %eax without telling the compiler.
5437 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
5439         [BZ # 13963]
5440         * manual/install.texi: Use sourceware.org.
5442 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
5444         [BZ #13873]
5445         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
5446         (__ieee754_pow): Generate overflow and underflow using huge*huge
5447         and tiny*tiny rather than just returning constant infinity or zero
5448         for large exponents.
5449         * math/libm-test.inc (pow_test): Require overflow exceptions for
5450         applicable cases of large exponents.
5452         [BZ #706]
5453         * sysdeps/i386/fpu/e_pow.S (p10): New object.
5454         (__ieee754_pow): Use iterative multiplication algorithm only for
5455         integer exponents with absolute value below 1024.  Check for odd
5456         integer exponents when using algorithm for real exponents.
5457         * math/libm-test.inc (pow_test): Add more tests.
5458         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5460 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
5462         [BZ #13705]
5463         * math/libm-test.inc (exp_test): Do not allow overflow exception
5464         on underflow test.
5466 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
5468         [BZ #13705]
5469         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
5470         instead of __kernel_standard_f.
5472 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
5474         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
5475         * sysdeps/x86_64/memset_chk.S: Likewise.
5477 2012-04-08  Andreas Jaeger  <aj@suse.de>
5479         [BZ #10153]
5480         * manual/startup.texi (Environment Access): Describe return value
5481         for putenv and setenv.
5483         [BZ #6895]
5484         * manual/filesys.texi (Directory Entries): Add description for
5485         DT_LNK.
5487         [BZ #6890]
5488         * manual/filesys.texi (Directory Entries): Clarify that it's file
5489         system not operating system in the description of DT_UNKNOWN.
5491         [BZ #6578]
5492         * manual/syslog.texi (closelog): Fix reference, it's openlog.
5494 2012-04-08  Stephen Compall  <s11@member.fsf.org>
5496         [BZ #6649]
5497         * manual/llio.texi (Opening and Closing Files): Add cross
5498         reference to explain mode argument.
5500 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
5502         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
5503         * sysdeps/x86_64/memset_chk.S: Likewise.
5505 2012-04-07  David S. Miller  <davem@davemloft.net>
5507         * elf/elf.h (R_SPARC_WDISP10): Define.
5508         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
5509         R_SPARC_SIZE32.
5510         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
5511         R_SPARC_SIZE64 and R_SPARC_H34.
5513 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
5515         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
5516         conditions and remove no longer applicable assertion.
5518 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
5520         * bits/byteswap.h: Include <features.h>.
5521         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
5522         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
5524 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
5526         * bits/byteswap.h (__bswap_16): Removed.
5527         Include <bits/byteswap-16.h> to get __bswap_16.
5528         * sysdeps/i386/bits/byteswap.h: Likewise.
5529         * sysdeps/s390/bits/byteswap.h: Likewise.
5530         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5531         * bits/byteswap-16.h: New file.
5532         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5533         * sysdeps/s390/bits/byteswap-16.h: Likewise.
5534         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
5535         * string/Makefile (headers): Add bits/byteswap-16.h.
5537 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
5539         [BZ #13895]
5540         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
5541         extra indirection.
5542         * nss/Makefile (tests-static, tests): Add tst-nss-static.
5543         * nss/tst-nss-static.c: New.
5545 2012-04-06  Robert Millan  <rmh@gnu.org>
5547         [BZ #6486]
5548         * manual/llio.texi (File Position Primitive): lseek
5549         refers to WHENCE when it really means OFFSET.
5551 2012-04-06  Andreas Jaeger  <aj@suse.de>
5553         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
5554         strncmp declarations.
5556         * abilist/libc.abilist: Add __poll and __ppoll.
5558 2012-04-05  David S. Miller  <davem@davemloft.net>
5560         * scripts/check-local-headers.sh: Accept a host triplet in the
5561         path matched by the exclude regexp.
5563         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
5564         definition.
5565         * sysdeps/powerpc/powerpc32/dl-machine.h
5566         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
5567         * sysdeps/s390/s390-32/dl-machine.h
5568         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
5569         * sysdeps/sparc/sparc32/dl-machine.h
5570         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
5571         * sysdeps/sparc/sparc64/dl-machine.h
5572         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
5574         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
5575         lazy binding.
5576         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
5577         undefined symbol errors.
5579         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
5580         DT_NEEDED entries.
5582 2012-04-05  Michael Matz  <matz@suse.de>
5584         [BZ #13592]
5585         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
5587 2012-04-05  Andreas Jaeger  <aj@suse.de>
5589         [BZ #13908]
5590         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
5591         comment.
5593 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5595         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
5596         which ROUND is no valid rounding mode.
5598 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5600         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
5601         read again.
5602         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
5604 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5606         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
5607         an exception using FPU order intentionally.
5609 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5611         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
5612         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
5613         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
5614         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
5616 2012-04-05  Simon Josefsson  <simon@josefsson.org>
5618         [BZ #12340]
5619         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
5620         EINVAL when BUFLEN is too smal.
5622 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
5624         [BZ #13553]
5625         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
5626         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
5628 2012-04-03  Andreas Jaeger  <aj@suse.de>
5630         [BZ #13938]
5631         * manual/setjmp.texi (System V contexts): Fix sentence.
5633         [BZ #13926]
5634         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
5635         New macro for this case.
5636         [!__GNUC__] (__bswap_64): New inline function for this case.
5637         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5638         * bits/byteswap.h: Likewise.
5639         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
5640         ull, guard with __GLIBC_HAVE_LONG_LONG.
5642         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
5643         __GLIBC_HAVE_LONG_LONG.
5645         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
5646         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
5648 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
5650         [BZ #13691]
5651         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
5652         inptr and inend, rather than using last_ch.
5654 2012-04-02  David S. Miller  <davem@davemloft.net>
5656         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
5657         * stdio-common/printf-parse.h (read_int): Change return type to
5658         'int', return -1 on INT_MAX overflow.
5659         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
5660         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
5661         overflows INT_MAX.  Check for overflow of in-format-string precision
5662         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
5663         SIZE_MAX not INT_MAX for integer overflow test.
5664         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
5665         skip the construct in the format string but do not record anything.
5666         * stdio-common/bug22.c: Adjust to test both width/prevision
5667         INT_MAX overflow as well as total length INT_MAX overflow.  Check
5668         explicitly for proper errno values.
5670 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
5672         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
5673         CHAR_MAX.
5674         * string/test-strcmp.c [! WIDE]: Likewise.
5675         * time/tst-mktime2.c: Likewise for INT_MAX.
5676         * string/test-string.h: #include <sys/param.h> for MIN.
5678         * csu/init-first.c (__libc_init_first): Call __ctype_init.
5679         * sysdeps/i386/init-first.c (init): Likewise.
5680         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
5681         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
5682         * sysdeps/sh/init-first.c (init): Likewise.
5684 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
5686         * po/ru.po: Update from translation team.
5687         * po/vi.po: Likewise.
5689 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
5691         * resolv/nss_dns/dns-host.c: Merge copyright years.
5693 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5695         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
5696         Optimize memcpy with prefetch if
5697         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
5698         src, dst pointers have unequal 16 byte alignments.
5700 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
5702         [BZ #13928]
5703         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
5704         from a CNAME entry and return the minimum ttl for the query.
5705         (gaih_getanswer_slice): Likewise.
5707 2012-03-30  Jeff Law  <law@redhat.com>
5709         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
5710         due to long keys.
5711         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
5712         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
5714         * resolv/nss_dns/dns-host.c: Update copyright year.
5716 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
5718         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
5719         requests to save a system call.  Fix check that all bytes are sent.
5721         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
5722         comments for sendmmsg.
5724 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5726         [BZ #13691]
5727         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
5728         with only 1 character between 0x0041 and 0x01b0.
5729         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
5730         * wcsmbs/tst-mbsnrtowcs.c: New file.
5732 2012-03-29  David S. Miller  <davem@davemloft.net>
5734         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
5735         small copies by hand.
5737 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5739         [BZ #13761]
5740         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
5741         _nss_compat_initgroups_dyn): Fall back to malloc/free
5742         for large group memberships.
5744 2012-03-28  David S. Miller  <davem@davemloft.net>
5746         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
5747         that branches into memcpy.
5748         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
5749         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
5750         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
5751         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
5752         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
5753         bits.
5754         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
5755         implementation too.
5756         * sysdeps/sparc/mempcpy.S: New file.
5758         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
5759         the IFUNC routine in the libc case.
5760         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
5762         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
5763         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
5764         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
5765         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
5766         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
5767         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
5768         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
5769         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
5771         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
5772         loop to 256 bytes instead of 64 bytes and fix test signedness.
5774         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
5775         * sysdeps/sparc/sparc32/Makefile: rather than here...
5776         * sysdeps/sparc/sparc64/Makefile: and here.
5778 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
5780         * malloc/mallocbug.c: Avoid warnings about unused variables.
5782 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
5784         [BZ #13760]
5785         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
5786         in the right place. Discard and retry query if response is
5787         larger than input buffer size.
5789 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
5791         [BZ #369]
5792         [BZ #2678]
5793         [BZ #3866]
5794         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
5795         x for large integer exponent.
5796         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
5797         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
5798         sign of result as needed afterwards.
5799         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
5800         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
5801         result for underflowing pow the same as for overflow.
5802         (__kernel_standard_l): Handle powl overflow and underflow here
5803         rather than calling __kernel_standard.
5804         * math/libm-test.inc (pow_test): Add more tests.
5806         [BZ #3868]
5807         [BZ #13879]
5808         [BZ #13910]
5809         [BZ #13911]
5810         [BZ #13912]
5811         [BZ #13913]
5812         [BZ #13915]
5813         [BZ #13916]
5814         [BZ #13917]
5815         [BZ #13918]
5816         [BZ #13919]
5817         [BZ #13920]
5818         [BZ #13921]
5819         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
5820         * sysdeps/ieee754/k_standard.c: Include <float.h>.
5821         (__kernel_standard_l): New function.
5822         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
5823         __kernel_standard.
5824         * math/w_acosl.c (__acosl): Likewise.
5825         * math/w_asinl.c (__asinl): Likewise.
5826         * math/w_atan2l.c (__atan2l): Likewise.
5827         * math/w_atanhl.c (__atanhl): Likewise.
5828         * math/w_coshl.c (__coshl): Likewise.
5829         * math/w_exp10l.c (__exp10l): Likewise.
5830         * math/w_exp2l.c (__exp2l): Likewise.
5831         * math/w_fmodl.c (__fmodl): Likewise.
5832         * math/w_hypotl.c (__hypotl): Likewise.
5833         * math/w_j0l.c (__j0l, __y0l): Likewise.
5834         * math/w_j1l.c (__j1l, __y1l): Likewise.
5835         * math/w_jnl.c (__jnl, __ynl): Likewise.
5836         * math/w_lgammal.c (__lgammal): Likewise.
5837         * math/w_log10l.c (__log10l): Likewise.
5838         * math/w_log2l.c (__log2l): Likewise.
5839         * math/w_logl.c (__logl): Likewise.
5840         * math/w_powl.c (__powl): Likewise.
5841         * math/w_remainderl.c (__remainderl): Likewise.
5842         * math/w_scalbl.c (sysv_scalbl): Likewise.
5843         * math/w_sinhl.c (__sinhl): Likewise.
5844         * math/w_sqrtl.c (__sqrtl): Likewise.
5845         * math/w_tgammal.c (__tgammal): Likewise.
5846         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
5847         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
5848         * math/libm-test.inc (acos_test): Add more tests.
5849         (acosh_test): Likewise.
5850         (asin_test): Likewise.
5851         (atanh_test): Likewise.
5852         (exp_test): Likewise.
5853         (exp10_test): Likewise.
5854         (exp2_test): Likewise.
5855         (expm1_test): Likewise.
5856         (lgamma_test): Likewise.
5857         (log_test): Likewise.
5858         (log10_test): Likewise.
5859         (log1p_test): Likewise.
5860         (log2_test): Likewise.
5861         (pow_test): Do not allow some spurious overflow exceptions.
5862         (sqrt_test): Add more tests.
5863         (tgamma_test): Likewise.
5864         (y0_test): Likewise.
5865         (y1_test): Likewise.
5866         (yn_test): Likewise.
5868 2012-03-27  Anton Blanchard  <anton@samba.org>
5870         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
5871         MAP_HUGETLB.
5872         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
5873         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
5874         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
5876 2012-03-27  David S. Miller  <davem@davemloft.net>
5878         * conform/Makefile: Run run-conformtest.sh using $(BASH).
5880         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
5881         have-as-vis3 check.
5883 2012-03-27  Andreas Jaeger  <aj@suse.de>
5885         * sysdeps/x86_64/elf/configure.in: Moved to ...
5886         * sysdeps/x86_64/configure.in: ... here.
5887         * sysdeps/x86_64/elf/start.S: Moved to ...
5888         * sysdeps/x86_64/start.S: ... here.
5889         * sysdeps/x86_64/elf/configure: Delete.
5891         * sysdeps/x86_64/configure.in: Merge contents from
5892         sysdeps/i386/configure.in (without i686 check).
5894         * sysdeps/i386/elf/Versions: Merge into ...
5895         * sysdeps/i386/Versions: ... this.
5896         * sysdeps/i386/elf/Versions: Delete file.
5897         * sysdeps/i386/elf/start.S: Moved to ...
5898         * sysdeps/i386/start.S: ...here.
5899         * sysdeps/i386/elf/configure.in: Merge into...
5900         * sysdeps/i386/configure.in: ...here.
5901         * sysdeps/i386/elf/configure.in: Delete file.
5902         * sysdeps/i386/elf/configure: Delete file.
5904         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
5905         * debug/backtracesyms.c: ... here.
5906         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
5907         * debug/backtracesymsfd.c: ... here.
5908         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
5909         * sysdeps/generic/ifunc-sel.h: ... here.
5911         * sysdeps/unix/i386/start.c: Delete file.
5912         * sysdeps/unix/sparc/start.c: Delete file.
5913         * sysdeps/unix/start.c: Delete file.
5915         * sysdeps/sh/elf/configure.in: Moved to ...
5916         * sysdeps/sh/configure.in: ... here.
5917         * sysdeps/sh/elf/start.S: Moved to ...
5918         * sysdeps/sh/start.S: ... here.
5919         * sysdeps/sh/elf/configure: Delete file.
5921         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
5922         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
5923         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
5924         * sysdeps/powerpc/powerpc64/entry.h: ... here.
5925         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
5926         * sysdeps/powerpc/powerpc64/start.S: here.
5927         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
5928         * sysdeps/powerpc/powerpc64/Makefile: ... this.
5929         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
5930         * sysdeps/powerpc/powerpc64/configure.in: ... this.
5931         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
5933         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
5934         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
5935         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
5936         * sysdeps/powerpc/powerpc32/start.S: ... here.
5937         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
5938         * sysdeps/powerpc/powerpc32/configure.in: ... this.
5939         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
5941         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
5942         * sysdeps/powerpc/ifunc-sel.h: ... here.
5943         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
5944         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
5946         * sysdeps/sparc/elf/configure.in: Moved to ...
5947         * sysdeps/sparc/configure.in: ... here.
5948         * sysdeps/sparc/elf/configure: Delete file.
5949         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
5950         * sysdeps/sparc/sparc32/start.S: ... here.
5951         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
5952         * sysdeps/sparc/sparc64/start.S: ... here.
5953         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
5954         * sysdeps/sparc/sparc32/Makefile: ... this.
5955         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
5956         * sysdeps/sparc/sparc64/Makefile: ... this.
5958         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
5959         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
5960         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
5961         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
5962         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
5963         * sysdeps/s390/s390-32/setjmp.S: ... here.
5964         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
5965         * sysdeps/s390/s390-32/configure.in: ... here.
5966         * sysdeps/s390/s390-32/elf/configure: Delete file.
5967         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
5968         * sysdeps/s390/s390-32/start.S: ... here.
5970         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
5971         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
5972         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
5973         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
5974         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
5975         * sysdeps/s390/s390-64/setjmp.S: ... here.
5976         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
5977         * sysdeps/s390/s390-64/configure.in: ... here
5978         * sysdeps/s390/s390-64/elf/configure: Delete file.
5979         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
5980         * sysdeps/s390/s390-64/start.S: ... here.
5981         * sysdeps/s390/s390-64/elf/configure: Delete.
5983         * configure.in: Remove support for elf directories in sysdeps.
5985         * configure: Regenerated.
5986         * sysdeps/i386/configure: Regenerated.
5987         * sysdeps/powerpc/powerpc32/configure: Regenerated.
5988         * sysdeps/powerpc/powerpc64/configure: Regenerated.
5989         * sysdeps/s390/s390-32/configure: Regenerated.
5990         * sysdeps/s390/s390-64/configure: Regenerated.
5991         * sysdeps/sh/configure: Regenerated.
5992         * sysdeps/sparc/configure: Regenerated.
5993         * sysdeps/x86_64/configure: Regenerated.
5995 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
5997         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5999         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
6000         denormal result into account.
6002 2012-03-25  Roland McGrath  <roland@hack.frob.com>
6004         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
6005         Reported by Allan McRae <allan@archlinux.org>.
6007 2012-03-23  Jeff Law  <law@redhat.com>
6009         * nss/getnssent.c (__nss_getent): Fix typo.
6011 2012-03-23  David S. Miller  <davem@davemloft.net>
6013         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6015 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
6017         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
6018         to pad to uint64_t for each field.
6019         (dl_tls_index): Replace unsigned long with uint64_t.
6021 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
6022         Paul Pluzhnikov  <ppluzhnikov@google.com>
6024         [BZ #6528]
6025         * grp/Makefile (otherlibs): Don't set it.
6026         * inet/Makefile (otherlibs): Likewise.
6027         * login/Makefile (otherlibs): Likewise.
6028         * nscd/Makefile (otherlibs): Likewise.
6029         * posix/Makefile (otherlibs): Likewise.
6030         * pwd/Makefile (otherlibs): Likewise.
6031         * rt/Makefile (otherlibs): Likewise.
6032         * sunrpc/Makefile (otherlibs): Likewise.
6033         * nss/Makefile (otherlibs): Likewise.
6034         Add libnss_files to routines and static-only-routines.
6035         ($(objpfx)getent): Remove rule.
6036         * resolv/Makefile: Add libnss_dns and libresolv to routines and
6037         static-only-routines.
6039 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
6041         [BZ #13892]
6042         * math/s_cexp.c: Include <float.h>.
6043         (__cexp): Handle exp result overflowing not necessarily
6044         overflowing both real and imaginary parts of result.
6045         * math/s_cexpf.c: Likewise.
6046         * math/s_cexpl.c: Likewise.
6047         * math/libm-test.inc (cexp_test): Add more tests.
6048         * sysdeps/i386/fpu/libm-test-ulps: Update.
6049         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6051 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
6053         * include/link.h (ELFW): New macro.
6054         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
6055         Replace ELF64_R_TYPE with ELFW(R_TYPE).
6057 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
6059         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
6060         with uint64_t.
6062 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
6064         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
6065         declaration.
6066         (struct La_x32_retval): Likewise.
6068 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
6070         * sysdeps/x86_64/preconfigure.in: New file.
6071         * sysdeps/x86_64/preconfigure: New generated file.
6073 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
6075         [BZ #13824]
6076         * math/e_exp2l.c: Include <float.h>.
6077         (__ieee754_exp2l): Handle overflow and underflow cases
6078         separately.  Only pass fractional part of argument to
6079         __ieee754_expl.
6080         * math/libm-test.inc (exp2_test): Add more tests.
6082         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
6083         negating x to take absolute value.
6084         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
6085         Likewise.
6086         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
6087         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
6088         Likewise.
6089         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
6090         computing low part if x was negated.
6091         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
6093 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
6095         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
6096         la_x32_gnu_pltexit.
6097         (pltexit): Cast int_retval to ptrdiff_t.
6098         * elf/tst-auditmod3b.c: Likewise.
6099         * elf/tst-auditmod4b.c: Likewise.
6100         * elf/tst-auditmod5b.c: Likewise.
6101         * elf/tst-auditmod6b.c: Likewise.
6102         * elf/tst-auditmod6c.c: Likewise.
6103         * elf/tst-auditmod7b.c: Likewise.
6105         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
6106         and x32_gnu_pltexit.
6108         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
6109         __ELF_NATIVE_CLASS.
6110         (La_x32_regs): New macro.
6111         (La_x32_retval): Likewise.
6112         (la_x32_gnu_pltenter): New function prototype.
6113         (la_x32_gnu_pltexit): Likewise.
6115 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
6117         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
6118         exponent.
6120         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6122         * configure.in (libc_cv_cc_nofma): Check for option to disable
6123         generation of FMA instructions.
6124         * configure: Regenerate.
6125         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
6126         * sysdeps/ieee754/dbl-64/Makefile: New file.
6127         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
6128         Remove brandred-fma4.
6129         (CFLAGS-brandred-fma4.c): Remove.
6130         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
6131         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
6132         define.
6133         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
6134         define.
6136 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
6138         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6139         LLONG_MAX != LONG_MAX.
6140         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6141         (_fitoa_word): Likewise.
6142         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
6143         LLONG_MAX != LONG_MAX.
6144         * stdio-common/_itowa.h: Include <_itoa.h>.
6145         (_itowa_word): Use _ITOA_WORD_TYPE on value.
6146         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
6147         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
6148         only if not defined.
6149         (_ITOA_WORD_TYPE): Likewise.
6150         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6151         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
6153 2012-03-21  David S. Miller  <davem@davemloft.net>
6155         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6157 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
6159         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
6160         of x86_64 when setting libc_cv_slibdir, libdir and
6161         libc_cv_localedir.
6162         * sysdeps/unix/sysv/linux/configure: Regenerated.
6164 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
6166         * manual/lang.texi (Old Varargs): Remove section.
6167         (How Variadic): Update menu.
6168         (va_start): Do not mention varargs.h.
6170 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
6171             Joseph Myers  <joseph@codesourcery.com>
6173         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
6174         link test.
6175         * configure: Regenerated.
6177 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
6179         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
6180         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
6181         conformtest.pl
6183 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
6185         * NOTES: Remove.
6186         * Makefile (files-for-dist): Remove NOTES.
6187         (NOTES): Remove rule.
6188         * README: Don't refer to NOTES.
6189         * manual/creature.texi: Don't include macros.texi.
6190         * manual/intro.texi (creature.texi): Remove comment referring to
6191         NOTES.
6193         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
6194         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
6195         * configure: Regenerated.
6196         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
6197         LIBC_TRY_CC_OPTION.
6198         (libc_cv_as_i686): Likewise.
6199         (libc_cv_cc_avx): Likewise.
6200         (libc_cv_cc_sse2avx): Likewise.
6201         (libc_cv_cc_fma4): Likewise.
6202         (libc_cv_cc_novzeroupper): Likewise.
6203         * sysdeps/i386/configure: Regenerated.
6205         [BZ #13883]
6206         * sysdeps/i386/fpu/s_cexp.S: Remove.
6207         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
6208         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
6209         * math/libm-test.inc (cexp_test): Add more tests.
6210         * sysdeps/i386/fpu/libm-test-ulps: Update.
6211         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6213 2012-03-21  Allan McRae  <allan@archlinux.org>
6215         * timezone/Makefile: Do not install iso3166.tab and zone.tab
6217 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
6219         [BZ #13871]
6220         * math/w_exp2.c: Do not include <float.h>.
6221         (o_threshold, u_threshold): Remove.
6222         (__exp2): Calculate result before checking finiteness and calling
6223         __kernel_standard.
6224         * math/w_exp2f.c: Likewise.
6225         * math/w_exp2l.c: Likewise.
6226         * math/libm-test.inc (exp2_test): Require overflow exception for
6227         1e6 input.
6229         [BZ #3866]
6230         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
6231         range of signed 64-bit integers before using fistpll.  Remove
6232         checks for whether integers fit in mantissa bits.
6233         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
6234         the range of signed 32-bit integers before using fistpl.  Remove
6235         checks for whether integers fit in mantissa bits.
6236         * sysdeps/i386/fpu/e_powl.S (p64): New object.
6237         (__ieee754_powl): Test for y outside the range of signed 64-bit
6238         integers before using fistpll.  Reduce 64-bit values to 63-bit
6239         ones as needed.
6240         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
6241         divide-by-zero is raised for zero to large negative powers.
6242         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
6243         (__ieee754_powl): Test for y outside the range of signed 64-bit
6244         integers before using fistpll.  Reduce 64-bit values to 63-bit
6245         ones as needed.
6246         * math/libm-test.inc (pow_test): Add more tests.
6248 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
6250         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
6251         <stdio-common/_itoa.h>.
6252         * debug/segfault.c: Likewise.
6253         * elf/dl-cache.c: Likewise.
6254         * elf/dl-minimal.c: Likewise.
6255         * elf/dl-misc.c: Likewise.
6256         * elf/dl-sysdep.c: Likewise.
6257         * elf/dl-version.c: Likewise.
6258         * elf/rtld.c: Likewise.
6259         * hurd/hurdsock.c: Likewise.
6260         * hurd/lookup-retry.c: Likewise.
6261         * malloc/malloc.c: Likewise.
6262         * malloc/mtrace.c: Likewise.
6263         * nscd/nscd_getgr_r.c: Likewise.
6264         * nscd/nscd_getpw_r.c: Likewise.
6265         * nscd/nscd_getserv_r.c: Likewise.
6266         * posix/getopt_init.c: Likewise.
6267         * posix/wordexp.c: Likewise.
6268         * stdio-common/_itoa.c: Likewise.
6269         * stdio-common/printf_fphex.c: Likewise.
6270         * stdio-common/vfprintf.c: Likewise.
6271         * string/_strerror.c: Likewise.
6272         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
6273         * sysdeps/i386/i686/hp-timing.h: Likewise.
6274         * sysdeps/mach/_strerror.c: Likewise.
6275         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
6276         * sysdeps/mach/hurd/sethostid.c: Likewise.
6277         * sysdeps/mach/hurd/xmknodat.c: Likewise.
6278         * sysdeps/mach/xpg-strerror.c: Likewise.
6279         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
6280         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
6281         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
6282         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
6283         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
6284         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
6285         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
6286         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
6287         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
6288         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
6289         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
6290         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
6291         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
6292         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
6293         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
6294         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
6295         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
6296         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
6297         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
6298         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
6299         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
6301         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
6303         * stdio-common/_itoa.h: Moved to ...
6304         * sysdeps/generic/_itoa.h: Here.
6306         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
6308         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
6309         instead of "_itoa.h" and "_itowa.h".
6310         * stdio-common/vfprintf.: Likewise.
6312 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
6314         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
6315         <bits/wordsize.h>.
6316         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
6317         (__signbit): Likwise.
6318         (llrintf): Likwise.
6319         (llrint): Likwise.
6321 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
6323         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
6324         __WORDSIZE != 64.
6326 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
6328         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
6329         OVERFLOW_EXCEPTION_OK.
6330         * math/libm-test.inc ("Philosophy"): Update comment about
6331         exception testing.
6332         (OVERFLOW_EXCEPTION): Define.
6333         (OVERFLOW_EXCEPTION_OK): Likewise.
6334         (INVALID_EXCEPTION_OK): Renumber.
6335         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
6336         (IGNORE_ZERO_INF_SIGN): Likewise.
6337         (test_exceptions): Handle FE_OVERFLOW.
6338         (exp10_test): Expect overflow exceptions.
6339         (exp2_test): Likewise.
6340         (expm1_test): Likewise.
6341         (nextafter_test): Likewise.
6342         (pow_test): Likewise.
6343         (scalbn_test): Likewise.
6344         (scalbln_test): Likewise.
6346 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6348         * sysdeps/x86_64/bits/atomic.h
6349         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
6350         64bit integer.
6351         (atomic_exchange_acq): Likewise.
6352         (__arch_exchange_and_add_body): Likewise.
6353         (__arch_add_body): Likewise.
6354         (atomic_add_negative): Likewise.
6355         (atomic_add_zero): Likewise.
6357 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6359         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
6360         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
6362 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6364         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
6365         Check __x86_64__ instead of __WORDSIZE.
6367 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6369         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
6371 2012-03-19  David S. Miller  <davem@davemloft.net>
6373         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6375         * sysdeps/sparc/fpu/fenv_private.h: New file.
6376         * sysdeps/sparc/fpu/math_private.h: Use it.
6377         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
6378         Remove.
6379         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
6380         (libc_feholdexcept_setroundl): Remove.
6381         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
6382         Remove.
6383         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
6384         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
6386 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6388         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
6389         int64_t instead of long int.
6390         (INSERT_WORDS64): Likwise.
6392 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6394         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
6395         _Unwind_GetCFA return to _Unwind_Ptr first.
6397 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
6399         [BZ #13629]
6400         * math/s_clog.c: Include <float.h>.
6401         (__clog): Scale large or subnormal inputs.
6402         * math/s_clogf.c: Likewise.
6403         * math/s_clogl.c: Likewise.
6404         * math/s_clog10.c: Include <float.h>.
6405         (M_LOG10_2): Define.
6406         (__clog10): Scale large or subnormal inputs.
6407         * math/s_clog10f.c: Likewise.
6408         * math/s_clog10l.c: Likewise.
6409         * math/libm-test.inc (clog_test): Add more tests.
6410         (clog10_test): Likewise.
6411         * sysdeps/i386/fpu/libm-test-ulps: Update.
6412         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6414         [BZ #11451]
6415         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
6416         x and y.
6417         * math/libm-test.inc (atan2_test): Add another test.
6419         * Makerules (common-objdir-compile): Remove.
6420         * sysdeps/unix/Makefile (config-generated): Do not add
6421         $(unix-generated) to variable.
6422         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
6423         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
6424         Remove rule.
6425         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
6426         Likewise.
6427         [generic bits/local_lim.h] (before-compile): Do not append to
6428         variable.
6429         [generic bits/local_lim.h] (common-generated): Likewise.
6430         [generic sys/param.h] (before-compile): Do not append to variable.
6431         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
6432         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
6433         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
6434         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
6435         include.
6436         [generic sys/param.h] (sys/param.h-includes): Remove variable.
6437         [generic sys/param.h] (sys/param.h-includes): Remove rule.
6438         [generic sys/param.h] ($(addprefix
6439         $(common-objpfx),$(sys/param.h-includes))): Likewise.
6440         [generic sys/param.h] (common-generated): Do not append to
6441         variable.
6442         [generic sys/param.h] (sysdep_headers): Likewise.
6443         [generic bits/errno.h] (before-compile): Do not append to
6444         variable.
6445         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
6446         rule.
6447         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
6448         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
6449         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
6450         [generic bits/errno.h] (common-generated): Do not append to
6451         variable.
6452         [generic bits/ioctls.h] (before-compile): Do not append to
6453         variable.
6454         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
6455         rule.
6456         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
6457         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
6458         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
6459         rule.
6460         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
6461         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
6462         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
6463         [generic bits/ioctls.h] (common-generated): Do not append to
6464         variable.
6465         [generic sys/syscall.h] (syscall.h): Remove variable.
6466         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
6467         rule.
6468         [generic sys/syscall.h] (before-compile): Do not append to
6469         variable.
6470         [generic sys/syscall.h] (common-generated): Likewise.
6471         * sysdeps/unix/errnos-tmpl.c: Remove file.
6472         * sysdeps/unix/errnos.awk: Likewise.
6473         * sysdeps/unix/ioctls-tmpl.c: Likewise.
6474         * sysdeps/unix/ioctls.awk: Likewise.
6475         * sysdeps/unix/mk-local_lim.c: Likewise.
6476         * sysdeps/unix/snarf-ioctls: Likewise.
6478 2012-03-19  Richard Henderson  <rth@twiddle.net>
6480         * sysdeps/i386/fpu/fenv_private.h: New file.
6481         * sysdeps/i386/fpu/math_private.h: Use it.
6482         (math_opt_barrier, math_force_eval): Remove.
6483         (libc_feholdexcept_setround_53bit): Remove.
6484         (libc_feupdateenv_53bit): Remove.
6485         * sysdeps/x86_64/fpu/math_private.h: Likewise.
6486         (math_opt_barrier, math_force_eval): Remove.
6487         (libc_feholdexcept): Remove.
6488         (libc_feholdexcept_setround): Remove.
6489         (libc_fetestexcept, libc_fesetenv): Remove.
6490         (libc_feupdateenv_test): Remove.
6491         (libc_feupdateenv, libc_feholdsetround): Remove.
6492         (libc_feresetround): Remove.
6494         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
6495         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
6497         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
6498         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
6499         (libc_feupdateenv_testl): New.
6500         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
6501         (libc_feupdateenv_testf): New.
6502         (libc_feupdateenv): Use libc_feupdateenv_test.
6503         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
6504         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
6506         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
6507         (libc_feholdsetroundf, libc_feholdsetroundl): New.
6508         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
6509         (libc_feresetround_noex): New.
6510         (libc_feresetround_noexf): New.
6511         (libc_feresetround_noexl): New.
6512         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
6513         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
6514         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
6515         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
6516         SET_RESTORE_ROUND.
6517         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
6518         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
6519         (__cos): Likewise.
6520         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
6521         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
6522         SET_RESTORE_ROUND_NOEX.
6523         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
6524         SET_RESTORE_ROUND_NOEXF.
6525         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
6526         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
6527         (libc_feholdsetroundf): New.
6528         (libc_feresetround, libc_feresetroundf): New.
6530         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
6531         (libc_feholdexcept_setround_53bit): Convert from macro to function.
6532         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
6534         * sysdeps/generic/math_private.h: Include <fenv.h>.
6535         (default_libc_feholdexcept): New.
6536         (default_libc_feholdexcept_setround): New.
6537         (default_libc_fesetenv, default_libc_feupdateenv): New.
6538         (libc_feholdexcept): Only define if undefined.
6539         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
6540         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
6541         (libc_feholdexcept_setroundl): Likewise.
6542         (libc_feholdexcept_setround_53bit): Likewise.
6543         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
6544         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
6545         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
6546         (libc_feupdateenv_53bit): Likewise.
6547         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
6548         (libc_feholdexcept): Convert from macro to inline function.
6549         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
6550         (libc_fesetenv, libc_feupdateenv): Likewise.
6552         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
6553         not previously defined.
6554         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
6555         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
6556         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
6557         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
6558         * sysdeps/ieee754/flt-32/math_private.h: New file.
6559         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
6560         math_private.h below SET_FLOAT_WORD.
6561         (__isnan, __isinf_ns, __finite): Remove.
6562         (__isnanf, __isinf_nsf, __finitef): Remove.
6564 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
6566         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6568 2012-03-17  David S. Miller  <davem@davemloft.net>
6570         [BZ #6471]
6571         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
6572         for 2.16.
6574 2012-03-16  David S. Miller  <davem@davemloft.net>
6576         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
6577         warnings.
6579         [BZ #6471]
6580         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
6581         properly.
6582         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
6583         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
6584         sysdep_routines when subdir is sysvipc.
6585         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
6586         __getshmlba helper.
6588         * sysdeps/sparc/fpu/libm-test/ulps: Update.
6590 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6592         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
6593         [__LP64__].
6595 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6597         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
6598         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
6599         (__lround): Renamed to ...
6600         (__llround): This.  Replace long int with long long int.
6601         Define lround functions as aliases of llround functions.
6602         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
6604 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6606         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6607         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
6608         adresses to uintptr_t.  Replace "long int" and "unsigned long
6609         int" with "greg_t" on va_arg.
6611 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6613         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
6614         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
6616         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
6617         Move e_machine check before EI_CLASS check.  Handle x32
6618         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
6619         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
6620         SKIP_EM_IA_64 and include
6621         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
6623         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
6624         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
6625         (add_system_dir): New macro.
6627         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
6628         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
6630 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
6632         [BZ #2551]
6633         [BZ #2552]
6634         [BZ #2553]
6635         [BZ #2554]
6636         [BZ #2562]
6637         [BZ #2563]
6638         [BZ #2565]
6639         [BZ #2566]
6640         [BZ #2576]
6641         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
6642         (y0): Likewise.
6643         * math/w_j0f.c (j0f): Likewise.
6644         (y0f): Likewise.
6645         * math/w_j0l.c (__j0l): Likewise.
6646         (__y0l): Likewise.
6647         * math/w_j1.c (j1): Likewise.
6648         (y1): Likewise.
6649         * math/w_j1f.c (j1f): Likewise.
6650         (y1f): Likewise.
6651         * math/w_j1l.c (__j1l): Likewise.
6652         (__y1l): Likewise.
6653         * math/w_jn.c (jn): Likewise.
6654         (yn): Likewise.
6655         * math/w_jnf.c (jnf): Likewise.
6656         (ynf): Likewise.
6657         * math/w_jnl.c (__jnl): Likewise.
6658         (__ynl): Likewise.
6659         * math/libm-test.inc (j0_test): Add more tests.
6660         (j1_test): Likewise.
6661         (jn_test): Likewise.  Add trailing semicolon to existing test.
6662         (y0_test): Likewise.
6663         (y1_test): Likewise.
6664         * sysdeps/i386/fpu/libm-test-ulps: Update.
6665         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6667         [BZ #13851]
6668         [BZ #13854]
6669         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
6670         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
6671         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
6672         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
6673         (__tanl): Set errno for infinite argument.
6674         * sysdeps/i386/fpu/mptan.c: Remove.
6675         * sysdeps/i386/fpu/s_tan.S: Likewise.
6676         * sysdeps/i386/fpu/s_tanl.S: Likewise.
6677         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
6678         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
6679         * math/libm-test.inc (tan_test): Add more tests and enable more
6680         tests for double and long double.
6681         * sysdeps/i386/fpu/libm-test-ulps: Update.
6682         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6684 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
6686         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
6687         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
6689 2012-03-16  Roland McGrath  <roland@hack.frob.com>
6691         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
6692         * configure.in: Use it for both main tree and add-ons.
6693         * configure: Regenerated.
6695 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6697         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
6699 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
6701         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
6702         in comment.
6704         [BZ #13851]
6705         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
6706         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
6707         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
6708         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
6709         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
6710         infinite argument.
6711         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
6712         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
6713         != 0 for prec == 2.
6714         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
6715         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
6716         * sysdeps/i386/fpu/s_cosl.S: Likewise.
6717         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
6718         * sysdeps/i386/fpu/s_sinl.S: Likewise.
6719         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
6720         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
6721         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
6722         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
6723         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
6724         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
6725         * math/libm-test.inc (cos_test): Add more tests and enable more
6726         tests for long double.
6727         (sin_test): Likewise.
6728         (sincos_test): Likewise.
6729         * sysdeps/i386/fpu/libm-test-ulps: Update.
6730         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6732 2012-03-16  David S. Miller  <davem@davemloft.net>
6734         * sysdeps/sparc/fpu/math_private.h: New file.
6736 2012-03-15  David S. Miller  <davem@davemloft.net>
6738         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
6739         file.
6740         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
6741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
6742         file.
6743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
6744         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
6745         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
6746         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
6747         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
6748         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
6749         sysdep routines.
6750         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
6752         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
6753         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
6755         * sysdeps/sparc/sparc-ifunc.h: New file.
6756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
6757         sparc-ifunc.h
6758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
6759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
6760         Likewise.
6761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
6762         Likewise.
6763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
6764         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
6765         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
6766         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
6767         Likewise.
6768         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
6769         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
6770         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
6771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
6772         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
6773         Likewise.
6774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
6775         Likewise.
6776         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
6777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
6778         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
6779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
6780         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
6781         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
6782         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
6783         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
6784         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
6785         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
6786         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
6787         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
6788         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
6789         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
6790         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
6791         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
6792         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
6793         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
6794         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
6795         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
6796         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
6797         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
6798         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
6799         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
6801 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
6803         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
6804         scaling.
6805         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6807 2012-03-15  Andreas Jaeger  <aj@suse.de>
6809         [BZ #13852]
6810         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
6811         ieee754/flt-32 implementation for sin, cos and sincos.
6812         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
6813         * sysdeps/i386/fpu/s_cosf.S: Likewise.
6814         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
6815         * sysdeps/i386/fpu/s_sinf.S: Likewise.
6816         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
6817         ieee754/flt-32 implementation for tan.
6819         * math/libm-test.inc (cos_test): Enable some large input tests for
6820         float as well
6821         (sin_test): Likewise.
6822         (sincos_test): Likewise.
6823         (tan_test): Add tests for large input.
6825         * sysdeps/i386/fpu/libm-test-ulps: Update.
6827 2012-03-15  Andreas Jaeger  <aj@suse.de>
6829         [BZ #13658]
6830         * math/libm-test.inc (cos_test): Add more test cases.
6831         (sin_test): Likewise.
6832         (sincos_test): Likewise.
6834 2012-03-15  Andreas Jaeger  <aj@suse.de>
6836         [BZ #13837]
6837         * math/libm-test.inc (cos_test): Add a test case for large input
6838         value.
6839         (sin_test): Likewise.
6840         (sincos_test): Likewise.
6842 2012-03-15  Andreas Jaeger  <aj@suse.de>,
6843         Joseph Myers  <joseph@codesourcery.com>
6845         [BZ #13658]
6846         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
6847         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
6848         * sysdeps/i386/fpu/branred.c: Likewise.
6849         * sysdeps/i386/fpu/dosincos.c: Likewise.
6850         * sysdeps/i386/fpu/mpa.c: Likewise.
6851         * sysdeps/i386/fpu/s_cos.S: Likewise.
6852         * sysdeps/i386/fpu/s_sin.S: Likewise.
6853         * sysdeps/i386/fpu/s_sincos.S: Likewise.
6854         * sysdeps/i386/fpu/sincos32.c: Likewise.
6856         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
6857         Define.
6858         (libc_feupdateenv_53bit): Define.
6859         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
6860         Define.
6861         (libc_feupdateenv_53bit): Define.
6863         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
6864         53 bit (without extend i386 double precision).
6866         * math/libm-test.inc (sincos_test): Add tests for large input.
6867         (sin): Likewise.
6868         (cos): Likewise.
6870         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
6872 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
6874         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6876 2012-03-15  David S. Miller  <davem@davemloft.net>
6878         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
6879         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
6880         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
6881         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
6882         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
6883         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
6884         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
6885         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
6886         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
6887         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
6888         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
6889         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
6890         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
6891         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
6892         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
6893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
6894         file.
6895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
6896         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
6897         file.
6898         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
6899         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
6900         file.
6901         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
6902         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
6903         file.
6904         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
6905         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
6906         fmin/fmax sysdep routines.
6907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
6909 2012-03-14  David S. Miller  <davem@davemloft.net>
6911         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
6912         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
6913         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
6914         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
6915         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
6916         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
6917         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
6918         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
6919         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
6920         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
6921         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
6922         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
6923         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
6924         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
6925         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
6926         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
6927         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
6928         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
6929         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
6930         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
6931         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
6932         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
6933         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
6934         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
6935         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
6936         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
6937         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
6938         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
6939         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
6940         routines.
6941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
6942         file.
6943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
6944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
6945         file.
6946         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
6947         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
6948         file.
6949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
6950         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
6951         file.
6952         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
6953         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
6954         file.
6955         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
6956         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
6957         file.
6958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
6959         file.
6960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
6961         file.
6962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
6963         file.
6964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
6965         New file.
6966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
6967         file.
6968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
6969         file.
6970         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
6971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
6972         file.
6973         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
6974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
6975         file.
6976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
6977         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
6978         file.
6979         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
6980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
6981         VIS3 routines.
6983         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
6984         New file.
6986         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6988         * sysdeps/sparc/configure.in: New file.
6989         * sysdeps/sparc/configure: Generate.
6990         * configure.in (libc_cv_sparc_as_vis3): Substitute.
6991         * configure: Regenerate.
6992         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
6993         * config.make.in (have-as-vis3): New.
6994         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
6995         available use -Av9d instead of -Av9a.
6996         * sysdeps/sparc/sparc64/Makefile: Likewise.
6997         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
6998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
6999         New file.
7000         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
7001         file.
7002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
7003         New file.
7004         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
7005         file.
7006         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
7007         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
7008         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
7009         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
7010         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
7012         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
7013         fzeros/fnegs to load 0x80000000 into a float register instead of
7014         using the stack.
7015         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
7017 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
7019         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7020         bits/syscall.h.
7021         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
7022         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
7023         ($(inst_includedir)/bits/syscall.h): Remove rule.
7024         ($(objpfx)bits/syscall.d): Include instead of
7025         $(objpfx)syscall-list.d.
7026         (generated): Change syscall-list.h and syscall-list.d to
7027         bits/syscall.h and bits/syscall.d.
7029 2012-03-14  Roland McGrath  <roland@hack.frob.com>
7031         [BZ #13846]
7032         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
7034 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
7036         [BZ #13841]
7037         * math/s_csqrt.c: Include <float.h>.
7038         (__csqrt): Scale large or subnormal inputs.
7039         * math/s_csqrtf.c: Likewise.
7040         * math/s_csqrtl.c: Likewise.
7041         * math/libm-test.inc (csqrt_test): Add more tests.
7042         * sysdeps/i386/fpu/libm-test-ulps: Update.
7043         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7045         [BZ #13840]
7046         * math/libm-test.inc (hypot_test): Add more tests.
7048 2012-03-13  David S. Miller  <davem@davemloft.net>
7050         [BZ #13840]
7051         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
7052         double-precision for the calculation instead of scaling.
7054 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
7056         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
7057         manipulate bits before adding and subtracting TWO52[sx].
7058         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
7059         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
7060         Likewise.
7061         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
7063 2012-03-13  David S. Miller  <davem@davemloft.net>
7065         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
7066         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
7067         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
7068         rtld-global-offsets.h
7069         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
7071         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
7072         large parameters.
7074         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
7076         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
7077         'err' in the ifdef scope in which it is actually used.
7079         * nss/nss_db/db-init.c: Include string.h
7081 2012-03-12  David S. Miller  <davem@davemloft.net>
7083         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
7084         masking out of the most significant byte of random value used.
7085         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
7086         Fix coding style in previous change.
7088         * sysdeps/unix/sysv/linux/kernel-features.h
7089         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
7090         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
7091         expression.
7092         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
7093         later.
7095 2012-03-11  David S. Miller  <davem@davemloft.net>
7097         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
7098         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
7099         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
7100         for 'resultvar' otherwise things get truncated on 64-bit.
7102         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
7103         Fix masking out of the most significant byte of random value used.
7105         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7107 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
7109         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7111 2012-03-09  David S. Miller  <davem@davemloft.net>
7113         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
7114         variables with appropriate CPP guards.
7115         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
7116         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
7117         on resulting framesize and the management of the outregs buffer for pltexit.
7118         Preserve floating point return values across _dl_call_pltexit call.
7119         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
7120         framesize and the management of the outregs buffer for pltexit.
7121         Preserve floating point return values across _dl_call_pltexit
7122         call.
7123         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
7124         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
7125         (print_exit): Fix format string for return register value.
7127 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
7129         * sunrpc/Makefile (others): Add rpcgen.
7130         ($(objpfx)rpcgen): Remove special build rule and dependency on
7131         libc.
7132         * sunrpc/rpcgen.c: New file.
7134 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
7136         [BZ #13673]
7137         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
7138         * stdio-common/bug-vfprintf-nargs.c: Likewise.
7139         * sysdeps/i386/crti.S: Likewise.
7140         * sysdeps/i386/crtn.S: Likewise.
7141         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
7142         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
7143         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
7144         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
7145         * sysdeps/sh/crti.S: Likewise.
7146         * sysdeps/sh/crtn.S: Likewise.
7147         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
7149         [BZ #13673]
7150         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
7151         with URL.
7152         * locale/programs/locfile-kw.gperf: Likewise.
7153         * locale/programs/charmap-kw.h: Regenerated.
7154         * locale/programs/locfile-kw.h: Likewise.
7156         [BZ #13673]
7157         * intl/plural.y: Replace FSF snail mail address with URL.
7158         * intl/plural.c: Regenerated.
7160 2012-03-09  Richard Henderson  <rth@twiddle.net>
7162         * include/math_private.h: Remove file.
7163         * math/math_private.h: Move file ...
7164         * sysdeps/generic/math_private.h: ... here.
7166         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
7167         * sysdeps/powerpc/fpu/math_private.h: Likewise.
7168         * sysdeps/x86_64/fpu/math_private.h: Likewise.
7170         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
7171         and <math_private.h>.
7172         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
7173         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7174         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
7175         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
7176         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
7177         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
7178         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
7179         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
7180         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
7181         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
7182         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7183         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
7184         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
7185         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7186         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
7187         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
7188         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
7189         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
7190         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7191         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
7192         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
7193         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
7194         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
7195         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7196         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7197         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7198         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
7199         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7200         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
7201         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7202         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
7203         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7204         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
7205         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7206         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
7207         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
7208         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
7209         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
7210         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7211         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7212         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
7213         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
7214         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
7215         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
7216         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
7217         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7218         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7219         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7220         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
7221         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
7222         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7223         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7224         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
7225         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7226         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
7227         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7228         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7229         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
7230         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
7231         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
7232         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7233         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7234         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7235         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
7236         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
7237         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
7238         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
7239         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
7240         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
7241         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
7242         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
7243         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7244         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
7245         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7246         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
7247         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
7248         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
7249         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
7250         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
7251         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7252         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
7253         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7254         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
7255         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7256         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
7257         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
7258         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
7259         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
7260         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
7261         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
7262         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
7263         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
7264         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
7265         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
7266         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
7267         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
7268         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
7269         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7270         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7271         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7272         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
7273         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
7274         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
7275         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
7276         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7277         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
7278         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
7279         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
7280         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7281         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7282         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7283         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
7284         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
7285         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
7286         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
7287         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7288         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7289         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
7290         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7291         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
7292         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
7293         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7294         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7295         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
7296         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
7297         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
7298         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
7299         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
7300         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7301         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7302         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7303         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
7304         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
7305         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7306         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7307         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
7308         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7309         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
7310         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
7311         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7312         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7313         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
7314         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
7315         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
7316         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
7317         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
7318         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
7319         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
7320         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
7321         * sysdeps/ieee754/k_standard.c: Likewise.
7322         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
7323         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
7324         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
7325         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
7326         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
7327         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
7328         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
7329         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
7330         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
7331         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7332         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7333         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
7334         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
7335         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
7336         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
7337         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
7338         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
7339         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
7340         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
7341         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
7342         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
7343         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
7344         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
7345         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
7346         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
7347         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
7348         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7349         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
7350         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
7351         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
7352         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
7353         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
7354         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7355         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7356         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
7357         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
7358         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
7359         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
7360         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
7361         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7362         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7363         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7364         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
7365         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
7366         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7367         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7368         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
7369         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7370         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
7371         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
7372         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
7373         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
7374         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7375         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
7376         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
7377         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
7378         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
7379         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
7380         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
7381         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
7382         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
7383         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7384         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
7385         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
7386         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
7387         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
7388         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
7389         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
7390         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
7391         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
7392         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
7393         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7394         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
7395         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
7396         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
7397         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
7398         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
7399         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
7400         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
7401         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
7402         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
7403         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
7404         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
7405         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
7406         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
7407         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
7408         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
7409         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
7410         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
7411         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
7412         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
7413         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
7414         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
7415         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
7416         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
7417         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
7418         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
7419         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
7420         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
7421         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
7422         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
7423         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
7424         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7425         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
7426         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
7427         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7428         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7429         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
7430         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
7431         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
7432         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
7433         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
7434         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
7435         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
7436         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
7437         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
7438         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
7439         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
7440         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
7441         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
7442         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7443         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7444         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
7445         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
7446         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
7447         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
7448         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
7449         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
7450         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
7451         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7452         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
7453         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7454         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
7455         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
7456         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
7457         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
7458         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
7459         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7460         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
7461         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7462         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7463         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
7464         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7465         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7466         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
7467         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
7468         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
7469         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
7470         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
7471         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
7472         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
7473         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
7474         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
7475         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
7476         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
7477         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
7478         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
7479         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
7480         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
7481         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
7482         * sysdeps/ieee754/s_lib_version.c: Likewise.
7483         * sysdeps/ieee754/s_matherr.c: Likewise.
7484         * sysdeps/ieee754/s_signgam.c: Likewise.
7485         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
7486         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
7487         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7488         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7489         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7490         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7491         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
7492         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
7493         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7494         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7495         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7496         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7497         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
7498         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
7499         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
7500         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
7501         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
7502         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
7503         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
7504         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7505         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7507 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
7509         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
7510         * sunrpc/rpc_main.c: Likewise.
7511         * sunrpc/rpc_svcout.c: Likewise.
7513 2012-03-09  David S. Miller  <davem@davemloft.net>
7515         * include/math_private.h: New file.
7517 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
7519         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
7520         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
7521         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
7522         from <bits/socket_type.h>.
7523         (enum __socket_type): Don't define here.
7524         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
7525         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7526         bits/socket_type.h.
7528         [BZ #13566]
7529         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
7530         checking __USE_GNU.
7532         * Makerules ($(inst_includedir)/%.h): New rule.
7533         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
7534         (install-others): Remove variable setting.
7535         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
7537 2012-03-08  Richard Henderson  <rth@twiddle.net>
7539         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
7540         from macro to inline function; merge with the
7541         !__LIBC_INTERNAL_MATH_INLINES version.
7542         (__ieee754_sqrtf): Likewise.
7544         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
7545         to inline function.
7546         (__rintf, __floor, __floorf): Likewise.
7548         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
7549         macro to inline function.
7550         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
7552         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
7553         not <math/math_private.h>.
7555 2012-03-08  David S. Miller  <davem@davemloft.net>
7557         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
7558         copyright year.
7559         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
7561 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
7563         * resolv/gai_misc.c (handle_requests): Fix struct timespec
7564         normalization.
7565         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
7566         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
7568 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
7570         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
7571         be defined individually, they must be defined as a block.  Define
7572         S for printing a string instead of hidint the different by using a
7573         macro for adding the 'l'.
7574         * stdio-common/tst-fphex-wide.c: Adjust.
7576 2012-03-07  Marek Polacek  <polacek@redhat.com>
7578         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
7580 2012-03-08  Marek Polacek  <polacek@redhat.com>
7582         [BZ #13806]
7583         * stdio-common/Makefile (tests): Add tst-fphex-wide.
7584         * stdio-common/tst-fphex.c: Define a few macros to make the
7585         test reusable.  Use them.
7586         * stdio-common/tst-fphex-wide.c: New file.
7588 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
7590         [BZ #6911]
7591         * manual/macros.texi (gnusystems): New macro.
7592         (nongnusystems): Likewise.
7593         (gnulinuxhurdsystems): Likewise.
7594         (gnuhurdsystems): Likewise..
7595         (gnulinuxsystems): Likewise.
7596         * manual/charset.texi: Use new macros or @theglibc{} to refer to
7597         variants of the GNU system, not "GNU system".
7598         * manual/conf.texi: Likewise.
7599         * manual/errno.texi: Likewise.  Update example of errno macro
7600         expansion.
7601         * manual/filesys.texi: Likewise.
7602         (getumask): Document as specific to GNU/Hurd.
7603         * manual/install.texi: Likewise.  Reword some references to
7604         GNU/Linux.
7605         * manual/intro.texi: Likewise.
7606         * manual/io.texi: Likewise.
7607         (File Name Portability): Detail which constraints are inapplicable
7608         to all GNU systems and which are only inapplicable to GNU/Hurd.
7609         * manual/job.texi: Likewise.
7610         * manual/llio.texi: Likewise.
7611         (O_NOCTTY): Document as present on GNU/Linux.
7612         * manual/maint.texi: Likewise.
7613         * manual/memory.texi: Likewise.
7614         * manual/pattern.texi: Likewise.
7615         * manual/pipe.texi: Likewise.
7616         * manual/process.texi: Likewise.
7617         * manual/resource.texi: Likewise.
7618         (RUSAGE_CHILDREN): Remove statement about specifying a particular
7619         child on GNU/Hurd.
7620         * manual/setjmp.texi: Likewise.
7621         * manual/signal.texi: Likewise.
7622         * manual/startup.texi: Likewise.
7623         * manual/stdio.texi: Likewise.
7624         * manual/terminal.texi: Likewise.
7625         (ONLCR): Document as POSIX.
7626         (OXTABS): Document availability on GNU/Linux as XTABS.
7627         (ONOEOT): Document availability separately from other bits.
7628         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
7629         * manual/time.texi: Likewise.
7630         * manual/users.texi: Likewise.
7631         * INSTALL: Regenerated.
7632         * sysdeps/gnu/errlist.c: Regenerated.
7634         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
7635         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
7636         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
7637         puts.
7638         * configure: Regenerated.
7640 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
7642         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
7643         default includes instead of AC_HEADER_CHECK.
7644         * sysdeps/i386/configure: Regenerated.
7646         [BZ #10716]
7647         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
7648         * math/s_cacoshf.c (__cacoshf): Likewise.
7649         * math/s_cacoshl.c (__cacoshl): Likewise.
7650         * math/s_casinh.c (__casinh): Set signs of result from argument.
7651         * math/s_casinhf.c (__casinhf): Likewise.
7652         * math/s_casinhl.c (__casinhl): Likewise.
7653         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
7654         (casinh_test): Add more tests.
7655         * sysdeps/i386/fpu/libm-test-ulps: Update.
7656         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7658 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
7660         * po/zh_TW.po: Update from translation team.
7662         * login/Makefile (distribute): Remove variable.
7663         * catgets/Makefile: Likewise.
7664         * mach/Makefile: Likewise.
7665         * malloc/Makefile: Likewise.
7666         * misc/Makefile: Likewise.
7667         * iconv/Makefile: Likewise.
7668         * nscd/Makefile: Likewise.
7669         * hurd/Makefile: Likewise.
7670         * manual/Makefile: Likewise.
7671         * locale/Makefile: Likewise.
7672         * intl/Makefile: Likewise.
7673         * conform/Makefile: Likewise.
7674         * nss/Makefile: Likewise.
7675         * time/Makefile: Likewise.
7676         * soft-fp/Makefile: Likewise.
7677         * dirent/Makefile: Likewise.
7678         * gmon/Makefile: Likewise.
7679         * po/Makefile: Likewise.
7680         * rt/Makefile: Likewise.
7681         * socket/Makefile: Likewise.
7682         * math/Makefile: Likewise.
7683         * signal/Makefile: Likewise.
7684         * debug/Makefile: Likewise.
7685         * elf/Makefile: Likewise.
7686         * timezone/Makefile: Likewise.
7687         * stdlib/Makefile: Likewise.
7688         * iconvdata/Makefile: Likewise.
7689         * sunrpc/Makefile: Likewise.
7690         * io/Makefile: Likewise.
7691         * argp/Makefile: Likewise.
7692         * inet/Makefile: Likewise.
7693         * hesiod/Makefile: Likewise.
7694         * grp/Makefile: Likewise.
7695         * csu/Makefile: Likewise.
7696         * wctype/Makefile: Likewise.
7697         * crypt/Makefile: Likewise.
7698         * libio/Makefile: Likewise.
7699         * string/Makefile: Likewise.
7700         * nis/Makefile: Likewise.
7701         * resolv/Makefile: Likewise.
7702         * stdio-common/Makefile: Likewise.
7703         * wcsmbs/Makefile: Likewise.
7704         * dlfcn/Makefile: Likewise.
7705         * posix/Makefile: Likewise.
7707         [BZ #6959]
7708         * timezone/Makefile: Don't install timezone files, just the programs
7709         and scripts.
7711 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
7713         * nss/databases.def: Add missing gshadow entry.
7715         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
7717 2012-03-06  Marek Polacek  <polacek@redhat.com>
7719         [BZ #13726]
7720         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
7721         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
7722         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
7723         * stdio-common/tst-long-dbl-fphex.c: New file.
7725 2012-03-06  David S. Miller  <davem@davemloft.net>
7727         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7728         (set_obp_int): New function.
7729         (get_obp_int): New function.
7730         (__get_clockfreq_via_dev_openprom): Likewise.
7731         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7732         Avoid unused variable warnings on 'val' and use builtin_expect.
7733         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
7734         __builtin_expect.
7735         (INLINE_CLONE_SYSCALL): Likewise.
7737 2012-03-05  David S. Miller  <davem@davemloft.net>
7739         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7741 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
7743         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7745         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
7746         only for |x| >= 40.
7747         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
7749 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
7751         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
7752         Replace gettimeofday with __vdso_gettimeofday.
7754         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7755         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
7756         __vdso_clock_gettime and __vdso_getcpu.
7758         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
7759         time with __vdso_time.
7761 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
7763         * manual/lang.texi (size_t): Note types to which size_t may be
7764         equivalent with the GNU C Library, but do not describe when
7765         differences between them are significant.
7767 2012-03-05  Andreas Jaeger  <aj@suse.de>
7769         * sysdeps/i386/fpu/libm-test-ulps: Update.
7771 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
7773         [BZ #3976]
7774         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
7775         (__ieee754_pow): Save and restore rounding mode and use
7776         round-to-nearest for main computations.
7777         * math/libm-test.inc (pow_test_tonearest): New function.
7778         (pow_test_towardzero): Likewise.
7779         (pow_test_downward): Likewise.
7780         (pow_test_upward): Likewise.
7781         (main): Call the new functions.
7782         * sysdeps/i386/fpu/libm-test-ulps: Update.
7783         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7785         [BZ #3976]
7786         * math/libm-test.inc (cosh_test_tonearest): New function.
7787         (cosh_test_towardzero): Likewise.
7788         (cosh_test_downward): Likewise.
7789         (cosh_test_upward): Likewise.
7790         (sinh_test_tonearest): Likewise.
7791         (sinh_test_towardzero): Likewise.
7792         (sinh_test_downward): Likewise.
7793         (sinh_test_upward): Likewise.
7794         (main): Call the new functions.
7795         * sysdeps/i386/fpu/libm-test-ulps: Update.
7796         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7798 2012-03-05  Tom de Vries  <tom@codesourcery.com>
7800         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
7801         default stack guard is set in last bytes.
7802         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
7804 2012-03-05  Kees Cook  <keescook@chromium.org>
7806         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
7808         [BZ #13656]
7809         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
7810         possibly allocate from heap instead of stack.
7811         * stdio-common/bug-vfprintf-nargs.c: New file.
7812         * stdio-common/Makefile (tests): Add nargs overflow test.
7814 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
7816         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7818 2012-03-03  Marek Polacek  <polacek@redhat.com>
7820         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
7821         * math/math_private.h: Likewise.
7822         * stdlib/tst-strtod.c: Likewise.
7823         * sysdeps/i386/i486/bits/atomic.h: Likewise.
7824         * sysdeps/x86_64/bits/atomic.h: Likewise.
7826 2012-03-02  David S. Miller  <davem@davemloft.net>
7828         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
7829         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
7830         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
7831         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
7832         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
7833         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
7834         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
7835         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
7837 2012-03-02  Roland McGrath  <roland@hack.frob.com>
7839         [BZ #13792]
7840         * manual/examples/README: New file, says the example source files
7841         can be used under GPL>=2.
7842         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
7843         line containing just "*/".
7844         * manual/examples/add.c: Add copyright header (GPL>=2).
7845         * manual/examples/argp-ex1.c: Likewise.
7846         * manual/examples/argp-ex2.c: Likewise.
7847         * manual/examples/argp-ex3.c: Likewise.
7848         * manual/examples/argp-ex4.c: Likewise.
7849         * manual/examples/atexit.c: Likewise.
7850         * manual/examples/db.c: Likewise.
7851         * manual/examples/dir.c: Likewise.
7852         * manual/examples/dir2.c: Likewise.
7853         * manual/examples/execinfo.c: Likewise.
7854         * manual/examples/filecli.c: Likewise.
7855         * manual/examples/filesrv.c: Likewise.
7856         * manual/examples/fmtmsgexpl.c: Likewise.
7857         * manual/examples/genpass.c: Likewise.
7858         * manual/examples/inetcli.c: Likewise.
7859         * manual/examples/inetsrv.c: Likewise.
7860         * manual/examples/isockad.c: Likewise.
7861         * manual/examples/longopt.c: Likewise.
7862         * manual/examples/memopen.c: Likewise.
7863         * manual/examples/memstrm.c: Likewise.
7864         * manual/examples/mkfsock.c: Likewise.
7865         * manual/examples/mkisock.c: Likewise.
7866         * manual/examples/mygetpass.c: Likewise.
7867         * manual/examples/pipe.c: Likewise.
7868         * manual/examples/popen.c: Likewise.
7869         * manual/examples/rprintf.c: Likewise.
7870         * manual/examples/search.c: Likewise.
7871         * manual/examples/select.c: Likewise.
7872         * manual/examples/setjmp.c: Likewise.
7873         * manual/examples/sigh1.c: Likewise.
7874         * manual/examples/sigusr.c: Likewise.
7875         * manual/examples/stpcpy.c: Likewise.
7876         * manual/examples/strdupa.c: Likewise.
7877         * manual/examples/strftim.c: Likewise.
7878         * manual/examples/strncat.c: Likewise.
7879         * manual/examples/subopt.c: Likewise.
7880         * manual/examples/swapcontext.c: Likewise.
7881         * manual/examples/termios.c: Likewise.
7882         * manual/examples/testopt.c: Likewise.
7883         * manual/examples/testpass.c: Likewise.
7884         * manual/examples/timeval_subtract.c: Likewise.
7886         [BZ #13792]
7887         * manual/time.texi (Elapsed Time): Move timeval_subtract example
7888         function to ...
7889         * manual/timeval_subtract.c.texi: ... here, new file.
7891 2012-03-02  David S. Miller  <davem@davemloft.net>
7893         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
7895 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
7897         [BZ #3976]
7898         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
7899         (__sin): Save and restore rounding mode and use round-to-nearest
7900         for all computations.
7901         (__cos): Save and restore rounding mode and use round-to-nearest
7902         for all computations.
7903         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
7904         <fenv.h>.
7905         (tan): Save and restore rounding mode and use round-to-nearest for
7906         all computations.
7907         * math/libm-test.inc (cos_test_tonearest): New function.
7908         (cos_test_towardzero): Likewise.
7909         (cos_test_downward): Likewise.
7910         (cos_test_upward): Likewise.
7911         (sin_test_tonearest): Likewise.
7912         (sin_test_towardzero): Likewise.
7913         (sin_test_downward): Likewise.
7914         (sin_test_upward): Likewise.
7915         (tan_test_tonearest): Likewise.
7916         (tan_test_towardzero): Likewise.
7917         (tan_test_downward): Likewise.
7918         (tan_test_upward): Likewise.
7919         (main): Call the new functions.
7920         * sysdeps/i386/fpu/libm-test-ulps: Update.
7921         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7923         [BZ #10135]
7924         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
7925         small n, then large n, before computing and testing k+n.
7926         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
7927         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
7928         Likewise.
7929         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
7930         Likewise.
7931         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
7932         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
7933         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
7934         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
7935         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
7936         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
7937         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
7938         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
7939         * math/libm-test.inc (scalbn_test): Add more tests.
7940         (scalbln_test): Likewise.
7942         * manual/filesys.texi (mode_t): Describe constraints on size and
7943         signedness, not exact equivalence to a particular type.
7944         (ino_t): Likewise.
7945         (ino64_t): Likewise.
7946         (dev_t): Likewise.
7947         (nlink_t): Likewise.
7948         (blkcnt_t): Likewise.
7949         (blkcnt64_t): Likewise.
7950         * manual/llio.texi (off_t): Likewise.
7952         [BZ #3976]
7953         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
7954         (__ieee754_exp): Save and restore rounding mode and use
7955         round-to-nearest for all computations.
7956         * math/libm-test.inc (exp_test_tonearest): New function.
7957         (exp_test_towardzero): Likewise.
7958         (exp_test_downward): Likewise.
7959         (exp_test_upward): Likewise.
7960         (main): Call the new functions.
7961         * sysdeps/i386/fpu/libm-test-ulps: Update.
7962         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7964 2012-03-01  Chris Demetriou  <cgd@google.com>
7966         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
7967         have predictable order.
7969 2012-03-01  David S. Miller  <davem@davemloft.net>
7971         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
7973         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
7974         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
7975         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
7976         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
7978         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
7979         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
7980         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
7981         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
7982         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
7983         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
7984         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
7985         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
7986         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
7988         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7990         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
7991         * sysdeps/sparc/fpu/libm-test-ulps: to here.
7992         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
7994         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
7995         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7996         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
7997         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
7998         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
7999         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
8000         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
8001         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8002         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8003         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
8004         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
8005         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
8006         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
8007         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
8008         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
8009         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8010         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
8011         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
8012         * sysdeps/sparc/elf/configure: Regenerated.
8014 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
8016         * configure.in (AS, LD): Require binutils 2.20 or later.
8017         * configure: Regenerated.
8018         * manual/install.texi (Tools for Compilation): Give binutils 2.20
8019         as required minimum version.
8020         * INSTALL: Regenerated.
8022         [BZ #2541]
8023         [BZ #4108]
8024         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
8025         before squaring exponent.
8026         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
8027         bottom long double and 27 bits of top long double before squaring
8028         exponent.
8029         * math/libm-test.inc (erfc_test): Add more tests.
8030         * sysdeps/i386/fpu/libm-test-ulps: Update.
8031         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8032         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8034 2012-03-01  Kai Tietz  <ktietz@redhat.com>
8036         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
8037         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
8038         containing bit-fields.
8039         * soft-fp/extended.h (_FP_UNION_E): Likewise.
8040         * soft-fp/single.h (_FP_UNION_S): Likewise.
8041         * soft-fp/double.h (_FP_UNION_D): Likewise.
8043 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
8045         [BZ #13786]
8046         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
8047         not include ../strcmp.S.
8048         [USE_AS_STRNCASECMP_L]: Likewise.
8049         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
8050         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
8051         * sysdeps/i386/i686/multiarch/strncase_l-c.c
8052         (__strncasecmp_l_ia32): Define as alias to
8053         __strncasecmp_l_nonascii.
8055         [BZ #5794]
8056         * math/libm-test.inc (expm1_test): Add test for bug 5794.
8057         * sysdeps/i386/fpu/libm-test-ulps: Update.
8058         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8060         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
8061         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8063 2012-02-29  Jeff Law  <law@redhat.com>
8065         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
8066         out of bounds read.
8068 2012-02-29  Marek Polacek  <polacek@redhat.com>
8070         [BZ #13706]
8071         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
8072         * elf/Makefile: Add rules to run tst-unused-dep.out.
8074 2012-02-28  David S. Miller  <davem@davemloft.net>
8076         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
8077         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
8078         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
8079         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
8080         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
8081         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
8083 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
8085         * math/libm-test.inc (llround_test): Move one test from
8086         lround_test.  Use TEST_f_L in moved test.
8087         (lround_test): Move misplaced test to llround_test.  Add testcase
8088         from bug 2561.
8090 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
8092         * sysdeps/x86_64/fpu/e_expf.S: New file.
8093         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
8095 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
8097         [BZ #13637]
8098         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
8099         of remain_len that may cause incomplete multi-byte character and
8100         false match.
8101         * posix/bug-regex33.c: New file.
8102         * posix/Makefile (tests): Add bug-regex33.
8104 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
8106         * manual/macros.texi: New file.
8107         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
8108         * manual/libc.texinfo: Include macros.texi.
8109         * manual/creatute.texi: Likewise.
8110         * manual/install.texi: Likewise.
8111         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
8112         @glibcadj{} in references to the GNU C Library.
8113         * manual/charset.texi: Likewise.
8114         * manual/conf.texi: Likewise.
8115         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
8116         when not using those macros.
8117         * manual/creature.texi: Likewise.
8118         * manual/crypt.texi: Likewise.
8119         * manual/errno.texi: Likewise.
8120         * manual/filesys.texi: Likewise.
8121         * manual/header.texi: Likewise.
8122         * manual/install.texi: Likewise.
8123         * manual/intro.texi: Likewise.
8124         * manual/io.texi: Likewise.
8125         * manual/job.texi: Likewise.
8126         * manual/lang.texi: Likewise.
8127         * manual/libc.texiinfo: Likewise.
8128         * manual/llio.texi: Likewise.
8129         * manual/locale.texi: Likewise.
8130         * manual/maint.texi: Likewise.
8131         * manual/math.texi: Likewise.
8132         * manual/memory.texi: Likewise.
8133         * manual/message.texi: Likewise.
8134         * manual/nss.texi: Likewise.
8135         * manual/pattern.texi: Likewise.
8136         * manual/process.texi: Likewise.
8137         * manual/resource.texi: Likewise.
8138         * manual/search.texi: Likewise.
8139         * manual/setjmp.texi: Likewise.
8140         * manual/signal.texi: Likewise.
8141         * manual/socket.texi: Likewise.
8142         * manual/startup.texi: Likewise.
8143         * manual/stdio.texi: Likewise.
8144         * manual/string.texi: Likewise.
8145         * manual/sysinfo.texi: Likewise.
8146         * manual/syslog.texi: Likewise.
8147         * manual/terminal.texi: Likewise.
8148         * manual/time.texi: Likewise.
8149         * manual/users.texi: Likewise.
8150         * INSTALL: Regenerated.
8151         * NOTES: Regenerated.
8152         * sysdeps/gnu/errlist.c: Regenerated.
8154 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
8156         * include/dirent.h: Include <dirstream.h> before
8157         <dirent/dirent.h>.
8159 2012-02-28  David S. Miller  <davem@davemloft.net>
8161         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
8162         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
8163         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
8164         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
8166 2012-02-27  David S. Miller  <davem@davemloft.net>
8168         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
8169         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
8170         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
8171         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
8173         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
8174         frame pointer instead of stack pointer relative arg slot.
8175         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
8176         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
8177         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
8179 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
8181         [BZ #3992]
8182         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
8184 2012-02-27  David S. Miller  <davem@davemloft.net>
8186         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
8187         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
8188         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
8189         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
8190         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
8191         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
8192         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
8193         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
8195 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
8197         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
8198         later.  Allow versions 5-9.
8199         * configure: Regenerated.
8200         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
8201         required minimum version and 4.6 as recommended version.  Do not
8202         mention bugs in GCC 2.7 and 2.8.
8203         * INSTALL: Regenerated.
8205 2012-02-27  David S. Miller  <davem@davemloft.net>
8207         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
8208         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
8209         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
8210         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
8211         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
8212         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
8213         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
8214         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
8216         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
8217         manipulate bits before adding and subtracting TWO112[sx].
8218         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
8220 2012-02-27  Roland McGrath  <roland@hack.frob.com>
8222         [BZ #13775]
8223         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
8224         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
8225         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
8226         being in POSIX, because they are in 1003.1-2008.
8228         * rt/tst-aio.c: Include <fcntl.h>.
8229         * rt/tst-aio7.c: Likewise.
8230         * rt/tst-aio64.c: Likewise.
8232         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
8234 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
8236         * manual/install.texi (--with-headers): Describe headers as
8237         interface headers, not private headers.
8238         (Specific advice for GNU/Linux systems): Describe use of headers
8239         from "make headers_install", not private headers from older
8240         kernels.
8241         * INSTALL: Regenerated.
8242         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
8243         Change to 2.6.19.
8244         * sysdeps/unix/sysv/linux/configure: Regenerated.
8246         * manual/llio.texi (fclean): Remove documentation.
8248         * manual/Makefile (libc-texi-generated): New variable.  Include
8249         version.texi.
8250         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
8251         $(libc-texi-generated), not duplicated list of files.
8252         (version.texi, stamp-version): New rules.
8253         (realclean): Remove $(libc-texi-generated), not individual files
8254         from that list.  Do not remove dir-add.texinfo.
8255         * manual/libc.texinfo: Comment out uses of edition numbers and
8256         references to printed manual.  Remove last-updated dates.
8257         (EDITION): Comment out.
8258         (ISBN): Likewise.
8259         (VERSION, UPDATED): Remove.
8260         (version.texi): Include.
8262 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
8264         * sysdeps/posix/spawni.c: Include <signal.h>.
8265         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
8266         * sysdeps/pthread/aio_fsync.c: Likewise.
8268 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
8270         * conform/Makefile (tests): Run only when not cross-compiling and
8271         when fast-check is not defined.
8273         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
8274         * conform/data/limits.h-data: Fixes for POSIX2008.
8275         * conform/run-conformtest.sh: Run all tests.
8276         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
8277         headers.
8278         * include/bits/dlfcn.h: Likewise.
8279         * include/langinfo.h: Likewise.
8280         * include/monetary.h: Likewise.
8281         * include/sys/poll.h: Likewise.
8283         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
8284         for __USE_GNU.
8285         * posix/spawn.h: Define __need_sigset_t.
8286         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
8287         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
8288         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
8289         to get sigevent_t only.
8290         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
8291         only for __USE_GNU.
8292         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
8293         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
8294         process_vm_writev only for __USE_GNU.
8295         * termios/termios.h: Declare tcgetsid also for POSIX2008.
8297         * conform/Makefile: For now ignore errors from run-conformtest.
8298         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
8299         POSIX to avoid namespace pollution.  Don't prepend headers.
8300         * conform/data/aio.h-data: Fixes for POSIX testing.
8301         * conform/data/fcntl.h-data: Likewise.
8302         * conform/data/glob.h-data: Likewise.
8303         * conform/data/grp.h-data: Likewise.
8304         * conform/data/pthread.h-data: Likewise.
8305         * conform/data/pwd.h-data: Likewise.
8306         * conform/data/signal.h-data: Likewise.
8307         * conform/data/spawn.h-data: Likewise.
8308         * conform/data/stdio.h-data: Likewise.
8309         * conform/data/stdlib.h-data: Likewise.
8310         * conform/data/stropts.h-data: Likewise.
8311         * conform/data/sys/mman.h-data: Likewise.
8312         * conform/data/sys/stat.h-data: Likewise.
8313         * conform/data/sys/types.h-data: Likewise.
8314         * conform/data/sys/wait.h-data: Likewise.
8315         * conform/data/time.h-data: Likewise.
8316         * conform/data/unistd.h-data: Likewise.
8317         * conform/data/utime.h-data: Likewise.
8319         * io/sys/stat.h: fchmod was always in POSIX.
8320         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
8321         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
8322         * rt/aio.h: Define __need_timespec before including <time.h>.
8323         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
8324         struct.  Add forward declaration of pthread_attr_t and use it in
8325         sigevent.
8326         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
8327         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8328         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
8329         always remove CLK_TCK definition.
8331 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
8333         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
8335 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
8337         * conform/run-conformtest.sh: New file.
8338         * conform/Makefile: Run run-conformtest for tests.
8339         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
8340         support.
8342         * conform/data/uchar.h-data: New file.
8343         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
8344         * conform/data/arpa/inet.h-data: Likewise.
8345         * conform/data/assert.h-data: Likewise.
8346         * conform/data/complex.h-data: Likewise.
8347         * conform/data/cpio.h-data: Likewise.
8348         * conform/data/ctype.h-data: Likewise.
8349         * conform/data/dirent.h-data: Likewise.
8350         * conform/data/dlfcn.h-data: Likewise.
8351         * conform/data/errno.h-data: Likewise.
8352         * conform/data/fcntl.h-data: Likewise.
8353         * conform/data/float.h-data: Likewise.
8354         * conform/data/fmtmsg.h-data: Likewise.
8355         * conform/data/fnmatch.h-data: Likewise.
8356         * conform/data/ftw.h-data: Likewise.
8357         * conform/data/glob.h-data: Likewise.
8358         * conform/data/grp.h-data: Likewise.
8359         * conform/data/iconv.h-data: Likewise.
8360         * conform/data/inttypes.h-data: Likewise.
8361         * conform/data/langinfo.h-data: Likewise.
8362         * conform/data/libgen.h-data: Likewise.
8363         * conform/data/limits.h-data: Likewise.
8364         * conform/data/locale.h-data: Likewise.
8365         * conform/data/math.h-data: Likewise.
8366         * conform/data/monetary.h-data: Likewise.
8367         * conform/data/mqueue.h-data: Likewise.
8368         * conform/data/ndbm.h-data: Likewise.
8369         * conform/data/net/if.h-data: Likewise.
8370         * conform/data/netdb.h-data: Likewise.
8371         * conform/data/netinet/in.h-data: Likewise.
8372         * conform/data/nl_types.h-data: Likewise.
8373         * conform/data/poll.h-data: Likewise.
8374         * conform/data/pthread.h-data: Likewise.
8375         * conform/data/pwd.h-data: Likewise.
8376         * conform/data/regex.h-data: Likewise.
8377         * conform/data/sched.h-data: Likewise.
8378         * conform/data/search.h-data: Likewise.
8379         * conform/data/semaphore.h-data: Likewise.
8380         * conform/data/setjmp.h-data: Likewise.
8381         * conform/data/signal.h-data: Likewise.
8382         * conform/data/spawn.h-data: Likewise.
8383         * conform/data/stdarg.h-data: Likewise.
8384         * conform/data/stdio.h-data: Likewise.
8385         * conform/data/stdlib.h-data: Likewise.
8386         * conform/data/string.h-data: Likewise.
8387         * conform/data/strings.h-data: Likewise.
8388         * conform/data/stropts.h-data: Likewise.
8389         * conform/data/sys/ipc.h-data: Likewise.
8390         * conform/data/sys/mman.h-data: Likewise.
8391         * conform/data/sys/msg.h-data: Likewise.
8392         * conform/data/sys/resource.h-data: Likewise.
8393         * conform/data/sys/select.h-data: Likewise.
8394         * conform/data/sys/sem.h-data: Likewise.
8395         * conform/data/sys/shm.h-data: Likewise.
8396         * conform/data/sys/socket.h-data: Likewise.
8397         * conform/data/sys/stat.h-data: Likewise.
8398         * conform/data/sys/statvfs.h-data: Likewise.
8399         * conform/data/sys/time.h-data: Likewise.
8400         * conform/data/sys/timeb.h-data: Likewise.
8401         * conform/data/sys/times.h-data: Likewise.
8402         * conform/data/sys/types.h-data: Likewise.
8403         * conform/data/sys/uio.h-data: Likewise.
8404         * conform/data/sys/un.h-data: Likewise.
8405         * conform/data/sys/utsname.h-data: Likewise.
8406         * conform/data/sys/wait.h-data: Likewise.
8407         * conform/data/syslog.h-data: Likewise.
8408         * conform/data/tar.h-data: Likewise.
8409         * conform/data/termios.h-data: Likewise.
8410         * conform/data/utime.h-data: Likewise.
8411         * conform/data/utmpx.h-data: Likewise.
8412         * conform/data/varargs.h-data: Likewise.
8413         * conform/data/wchar.h-data: Likewise.
8414         * conform/data/wctype.h-data: Likewise.
8415         * conform/data/wordexp.h-data: Likewise.
8417         * include/stropts.h: New file.
8418         * include/uchar.h: New file.
8419         * include/aio.h: Changes to allow conformtest.pl to use the headers.
8420         * include/assert.h: Likewise.
8421         * include/ctype.h: Likewise.
8422         * include/dirent.h: Likewise.
8423         * include/dlfcn.h: Likewise.
8424         * include/fcntl.h: Likewise.
8425         * include/fnmatch.h: Likewise.
8426         * include/glob.h: Likewise.
8427         * include/grp.h: Likewise.
8428         * include/libio.h: Likewise.
8429         * include/locale.h: Likewise.
8430         * include/math.h: Likewise.
8431         * include/net/if.h: Likewise.
8432         * include/netdb.h: Likewise.
8433         * include/netinet/in.h: Likewise.
8434         * include/pthread.h: Likewise.
8435         * include/pwd.h: Likewise.
8436         * include/regex.h: Likewise.
8437         * include/sched.h: Likewise.
8438         * include/search.h: Likewise.
8439         * include/setjmp.h: Likewise.
8440         * include/signal.h: Likewise.
8441         * include/stdio.h: Likewise.
8442         * include/stdlib.h: Likewise.
8443         * include/string.h: Likewise.
8444         * include/sys/cdefs.h: Likewise.
8445         * include/sys/mman.h: Likewise.
8446         * include/sys/msg.h: Likewise.
8447         * include/sys/resource.h: Likewise.
8448         * include/sys/select.h: Likewise.
8449         * include/sys/socket.h: Likewise.
8450         * include/sys/stat.h: Likewise.
8451         * include/sys/statvfs.h: Likewise.
8452         * include/sys/time.h: Likewise.
8453         * include/sys/times.h: Likewise.
8454         * include/sys/uio.h: Likewise.
8455         * include/sys/utsname.h: Likewise.
8456         * include/sys/wait.h: Likewise.
8457         * include/termios.h: Likewise.
8458         * include/time.h: Likewise.
8459         * include/ulimit.h: Likewise.
8460         * include/unistd.h: Likewise.
8461         * include/utime.h: Likewise.
8462         * include/wchar.h: Likewise.
8463         * include/wctype.h: Likewise.
8464         * include/wordexp.h: Likewise.
8466         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
8468         * time/time.h: TIME_UTC must be a macro.
8469         Make timespec_get available for ISO C11 only as well.
8471 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
8473         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
8474         Reported by Peng Haitao <penght@cn.fujitsu.com>.
8476 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
8478         * configure.in: Use -o not -a in test for unsupported multi-arch.
8480 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
8482         * manual/texinfo.tex: Update to version 2012-01-19.16.
8484 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
8486         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
8488 2012-02-24  Roland McGrath  <roland@hack.frob.com>
8490         [BZ #13738]
8491         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
8492         * manual/fdl-1.3.texi: New file.
8493         * manual/fdl-1.1.texi: File removed.
8495         [BZ #13738]
8496         * manual/libc.texinfo (FDL_VERSION): New @set.
8497         Use it for mention of FDL in cover text.
8498         (Documentation License): Use it in @include file name.
8500 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8501             Roland McGrath  <roland@hack.frob.com>
8503         [BZ #5461]
8504         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
8505         not LONG_LONG_MAX and LONG_LONG_MIN.
8506         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
8507         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
8508         name.
8509         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
8511 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8513         [BZ #2547]
8514         [BZ #11365]
8515         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
8516         manipulate bits before adding and subtracting TWO23[sx].
8517         * math/libm-test.inc (nearbyint_test): Add more tests.
8519 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8521         [BZ #2548]
8522         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
8523         bits before adding and subtracting TWO23[sx].
8524         * math/libm-test.inc (rint_test): Add more tests.
8525         (rint_test_tonearest): Likewise.
8526         (rint_test_towardzero): Likewise.
8527         (rint_test_downward): Likewise.
8528         (rint_test_upward: Likewise.
8530 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8532         [BZ #10110]
8533         * include/stdc-predef.h: New file.  Extracted from features.h.
8534         * include/features.h: Include stdc-predef.h.
8535         * Makefile (headers): Add stdc-predef.h.
8536         * CONFORMANCE (Compiler limitations): Update.
8538 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8540         * manual/libc.texinfo (VERSION, UPDATED): Revert.
8542 2012-02-21  David S. Miller  <davem@davemloft.net>
8544         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
8545         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
8547 2012-02-20  David S. Miller  <davem@davemloft.net>
8549         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
8550         using a normal save/restore sequence, rather than allocating a
8551         dummy stack frame just to store a frame pointer and restore.
8552         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
8554 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
8556         * manual/install.texi: Fix stray word in line-wrapped comment.
8558 2012-02-20  David S. Miller  <davem@davemloft.net>
8560         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
8561         both binutils and gcc support GOTDATA.
8563         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
8564         "rd %pc" in the PIC register setup sequences.
8566         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
8567         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
8568         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
8569         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
8570         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8571         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8572         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8573         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
8574         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
8575         (SYSCALL_ERROR_HANDLER): Likewise.
8576         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
8577         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
8578         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
8579         (SYSCALL_ERROR_HANDLER): Likewise.
8581         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
8582         (HAVE_GCC_GOTDATA): New.
8583         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
8584         relocation support in both binutils and gcc.
8585         * sysdeps/sparc/elf/configure: Regenerate.
8587         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
8588         * sysdeps/sparc/sparc32/elf/configure: Delete.
8589         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
8590         * sysdeps/sparc/sparc64/elf/configure: Delete.
8591         * sysdeps/sparc/elf/configure.in: New file.
8592         * sysdeps/sparc/elf/configure: Generate.
8594         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
8595         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
8596         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
8597         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
8598         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
8600 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
8602         * manual/install.texi: Do not mention specific glibc version
8603         numbers.
8604         * manual/libc.texinfo (VERSION, UPDATED): Update.
8605         (@copying): Use @copyright{} and range of years.
8607 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
8609         [BZ #13695]
8610         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
8611         [crti.S not in sysdirs] (generated): Do not append.
8612         [crti.S not in sysdirs] (omit-deps): Likewise.
8613         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
8614         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
8615         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
8616         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
8617         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
8618         Likewise.
8619         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
8620         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
8621         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
8622         * csu/defs.awk: Remove file.
8623         * sysdeps/generic/initfini.c: Likewise.
8624         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
8625         variable.
8626         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
8627         Likewise.
8629 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
8631         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
8632         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
8633         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
8634         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
8635         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8636         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
8637         <bits/epoll.h>.
8638         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
8639         (__EPOLL_PACKED): Define to empty if not defined by
8640         <bits/epoll.h>.
8641         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
8642         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8643         bits/epoll.h.
8645 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
8647         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
8648         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
8649         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
8650         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
8651         <bits/timerfd.h>.
8652         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
8653         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8654         bits/timerfd.h.
8656 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
8658         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
8659         in C locale.
8660         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8661         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8662         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
8663         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8665 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
8667         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8668         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
8670 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
8672         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
8673         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
8674         defined.
8675         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
8676         Likewise.
8677         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
8678         entry for 2.16.
8680 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
8682         * math/w_acos.c: Use non-signaling floating-point comparisons.
8683         * math/w_acosf.c: Likewise.
8684         * math/w_acosh.c: Likewise.
8685         * math/w_acoshf.c: Likewise.
8686         * math/w_acoshl.c: Likewise.
8687         * math/w_acosl.c: Likewise.
8688         * math/w_asin.c: Likewise.
8689         * math/w_asinf.c: Likewise.
8690         * math/w_asinl.c: Likewise.
8691         * math/w_atanh.c: Likewise.
8692         * math/w_atanhf.c: Likewise.
8693         * math/w_atanhl.c: Likewise.
8694         * math/w_exp2.c: Likewise.
8695         * math/w_exp2f.c: Likewise.
8696         * math/w_exp2l.c: Likewise.
8697         * math/w_j0.c: Likewise.
8698         * math/w_j0f.c: Likewise.
8699         * math/w_j0l.c: Likewise.
8700         * math/w_j1.c: Likewise.
8701         * math/w_j1f.c: Likewise.
8702         * math/w_j1l.c: Likewise.
8703         * math/w_jn.c: Likewise.
8704         * math/w_jnf.c: Likewise.
8705         * math/w_log.c: Likewise.
8706         * math/w_log10.c: Likewise.
8707         * math/w_log10f.c: Likewise.
8708         * math/w_log10l.c: Likewise.
8709         * math/w_log2.c: Likewise.
8710         * math/w_log2f.c: Likewise.
8711         * math/w_log2l.c: Likewise.
8712         * math/w_logf.c: Likewise.
8713         * math/w_logl.c: Likewise.
8714         * math/w_sqrt.c: Likewise.
8715         * math/w_sqrtf.c: Likewise.
8716         * math/w_sqrtl.c: Likewise.
8717         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8718         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
8719         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8720         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
8721         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
8723 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
8725         [BZ #9739]
8726         * manual/string.texi (strnlen): Use correct parameter name in
8727         equivalent expression.
8729 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
8731         [BZ #11174]
8732         * manual/users.texi (seteuid): Consistently use neweuid for
8733         argument name.
8735 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
8737         [BZ #13704]
8738         * manual/nss.texi (Services in the NSS configuration): Correct
8739         list of services in example configuration file.
8741 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
8743         [BZ #11322]
8744         * manual/arith.texi: Remove statements about negative zero
8745         behaving identically to zero.
8747 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
8749         [BZ #5993]
8750         * manual/install.texi: Do not document upgrading from libc5.
8752 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
8754         [BZ #4596]
8755         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
8757 2012-02-18  David S. Miller  <davem@davemloft.net>
8759         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
8760         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
8761         %o7 across the call.
8762         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
8763         instead.
8764         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
8765         SETUP_PIC_REG_LEAF.
8766         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8767         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
8768         * sysdeps/sparc/crtn.S: Likewise.
8770 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
8772         * aout/Makefile: Remove.
8774 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
8776         [BZ #13058]
8777         * manual/examples/argp-ex1.c (main): Format definition in GNU
8778         style.
8779         * manual/examples/argp-ex2.c (main): Likewise.
8780         * manual/examples/argp-ex3.c (main): Likewise.
8781         * manual/examples/argp-ex4.c (main): Likewise.
8782         * manual/examples/longopt.c (main): Use new-style prototype
8783         definition.
8784         * manual/examples/strncat.c (main): Specify return type and use
8785         (void) for arguments.
8786         * manual/examples/subopt.c (main): Use char **argv argument.
8788 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8790         [BZ #5077]
8791         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
8792         rounding modes.
8794 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
8796         [BZ #6907]
8797         * manual/string.texi (strchr): Change when strchrnul is
8798         recommended.
8800 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
8802         [BZ #174]
8803         * manual/locale.texi (setlocale): Document LOCPATH.
8805 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8807         [BZ #10210]
8808         * manual/process.texi (execle): Move @dots{} before last argument.
8810 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
8812         [BZ #12047]
8813         * manual/charset.texi (Generic Charset Conversion): Fix typo
8814         (LC_TYPE -> LC_CTYPE).
8816 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
8818         [BZ #5805]
8819         * manual/arith.texi (scalbn): Use @var{} on parameter names.
8820         (scalbnf): Likewise.
8821         (scalbnl): Likewise.
8822         (scalbln): Likewise.
8823         (scalblnf): Likewise.
8824         (scalblnl): Likewise.
8825         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
8826         (vwarnx): Likewise.
8827         (verr): Likewise.
8828         (verrx): Likewise.
8829         * manual/filesys.texi (telldir): Use braces around return type.
8830         * manual/llio.texi (mmap): Add space after comma.
8831         (mmap64): Likewise.
8832         * manual/math.texi (jn): Use @var{} on parameter names.
8833         (jnf): Likewise.
8834         (jnl): Likewise.
8835         (yn): Likewise.
8836         (ynf): Likewise.
8837         (ynl): Likewise.
8838         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
8839         line.
8840         * manual/resource.texi (ulimit): Use @dots{} instead of literal
8841         "...".
8842         (sched_get_priority_min): Remove semicolon on @deftypefun line.
8843         (sched_get_priority_max): Likewise.
8844         * manual/signal.texi (sigvec): Add space after comma.
8845         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
8846         names.
8847         (if_indextoname): Likewise.
8848         (if_freenameindex): Likewise.
8849         (sendto): Use ',' instead of '.' in prototype.
8850         * manual/startup.texi (syscall): Use @dots{} instead of literal
8851         "...".
8852         * manual/stdio.texi (__fpending): Separate initial words of
8853         paragraph from @deftypefun line.
8854         * manual/syslog.texi (syslog): Use @dots{} instead of literal
8855         "...".
8856         (vsyslog): Use @var{} on parameter names.
8857         * manual/terminal.texi (stty): Use @var{} on parameter names.
8858         * manual/users.texi (getutmp): Use @var{} on parameter names.
8859         (getutmpx): Likewise.
8861 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8863         [BZ #6884]
8864         * manual/stdio.texi (fopen): Fix typos in description of
8865         ",ccs=STRING".
8867 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
8869         [BZ #4026]
8870         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
8871         get clock_id definition.
8873 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
8875         [BZ #4822]
8876         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
8877         (madvise): Cast every argument to void on its own.
8879 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8881         [BZ #9902]
8882         * manual/startup.texi (Exit Status): Fix typo.
8884 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8886         [BZ #10140]
8887         * manual/examples/argp-ex1.c: Include <stdlib.h>.
8888         * manual/examples/argp-ex2.c: Likewise.
8889         * manual/examples/argp-ex3.c: Likewise.
8891 2012-02-16  Richard Henderson  <rth@redhat.com>
8893         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
8894         * sysdeps/s390/s390-32/initfini.c: Remove.
8895         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
8896         * sysdeps/s390/s390-64/initfini.c: Remove.
8898 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8900         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
8901         compiler output for sysdeps/generic/initfini.c.
8902         * sysdeps/sh/elf/initfini.c: Remove file.
8904 2012-02-16  David S. Miller  <davem@davemloft.net>
8906         [BZ #11494]
8907         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
8909         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
8910         * sysdeps/sparc/crti.S: New file.
8911         * sysdeps/sparc/crtn.S: New file.
8912         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
8913         * sysdeps/sparc/sparc64/Makefile: Likewise.
8915 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
8917         [BZ #3335]
8918         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
8920 2012-02-15  Roland McGrath  <roland@hack.frob.com>
8922         [BZ #4822]
8923         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
8925         * mach/devstream.c (cookie_io_functions_t): Macro removed.
8926         (write, read, close): Likewise.
8927         Patch by Aurelien Jarno <aurelien@aurel32.net>.
8929 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
8931         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
8932         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
8933         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
8934         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
8935         <bits/signalfd.h>.
8936         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
8937         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8938         bits/signalfd.h.
8940 2012-02-14  Marek Polacek  <polacek@redhat.com>
8942         * sysdeps/x86_64/crti.S: New file.
8943         * sysdeps/x86_64/crtn.S: New file.
8944         * sysdeps/x86_64/elf/initfini.c: Remove file.
8946 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
8948         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
8949         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
8950         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
8951         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
8952         <bits/inotify.h>.
8953         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
8954         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8955         bits/inotify.h.
8957 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
8959         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
8960         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
8961         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
8962         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
8963         <bits/eventfd.h>.
8964         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
8965         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8966         bits/eventfd.h.
8968 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
8970         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
8971         __feraiseexcept instead of feraiseexcept.
8973         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
8974         nanosleep invocations.
8975         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
8976         strings, and add error checking for a nanosleep invocations.
8978 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8980         Replace FSF snail mail address with URLs, as per GNU coding standards.
8981         Most of the snail mail addresses were wrong anyway, and omitting
8982         them makes the source code easier to maintain.  Almost all of the
8983         changes are to license notices and to locale LC_IDENTIFICATION
8984         addresses, except for this one:
8985         * manual/libc.texinfo: In "Published by", give the FSF's URL,
8986         not its snail mail address.
8988 2012-02-09  Richard Henderson  <rth@twiddle.net>
8990         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
8991         of kernel-features.h.
8993         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
8995 2012-02-08  Marek Polacek  <polacek@redhat.com>
8997         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
8998         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
8999         * sysdeps/gnu/_G_config.h: Likewise.
9000         * sysdeps/generic/_G_config.h: Likewise.
9002 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
9004         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
9005         tests.
9006         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9008         * sysdeps/powerpc/powerpc32/crti.S: New file.
9009         * sysdeps/powerpc/powerpc32/crtn.S: New file.
9010         * sysdeps/powerpc/powerpc64/crti.S: New file.
9011         * sysdeps/powerpc/powerpc64/crtn.S: New file.
9013         * Makeconfig (have-initfini): Don't set.
9014         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
9015         * configure.in (nopic_initfini): Don't substitute.
9016         * config.h.in (HAVE_INITFINI): Don't #undef.
9017         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
9018         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
9020 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
9022         Support crti.S and crtn.S provided directly by architectures.
9023         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
9024         [crti.S in sysdirs] (omit-deps): Likewise.
9025         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
9026         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
9027         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
9028         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
9029         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
9030         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
9031         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
9032         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
9033         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
9034         compiler output for sysdeps/generic/initfini.c.
9035         * sysdeps/i386/elf/Makefile: Remove file.
9036         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
9038 2012-02-07  Marek Polacek  <polacek@redhat.com>
9040         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
9041         * sysdeps/gnu/_G_config.h: Likewise.
9042         * sysdeps/mach/hurd/_G_config.h: Likewise.
9044 2012-02-07  Marek Polacek  <polacek@redhat.com>
9046         * math/Makefile (tests): Add tst-CMPLX2.
9047         * math/tst-CMPLX2.c: New file.
9049 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
9051         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9053         * math/libm-test.inc (jn_test): Add missing L suffix.
9055 2012-02-06  Marek Polacek  <polacek@redhat.com>
9057         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
9058         * sysdeps/i386/fpu/e_powf.S: Likewise.
9059         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
9060         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9061         * sysdeps/i386/fpu/e_acosh.S: Likewise.
9062         * sysdeps/i386/fpu/e_pow.S: Likewise.
9063         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
9064         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
9065         * sysdeps/i386/fpu/s_expm1.S: Likewise.
9066         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
9067         * sysdeps/i386/fpu/e_log2.S: Likewise.
9068         * sysdeps/i386/fpu/e_log2l.S: Likewise.
9069         * sysdeps/i386/fpu/e_scalb.S: Likewise.
9070         * sysdeps/i386/fpu/e_powl.S: Likewise.
9071         * sysdeps/i386/fpu/s_log1p.S: Likewise.
9072         * sysdeps/i386/fpu/e_log10f.S: Likewise.
9073         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
9074         * sysdeps/i386/fpu/e_logl.S: Likewise.
9075         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
9076         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
9077         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
9078         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
9079         * sysdeps/i386/fpu/e_log2f.S: Likewise.
9080         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
9081         * sysdeps/i386/fpu/e_log.S: Likewise.
9082         * sysdeps/i386/fpu/s_cexp.S: Likewise.
9083         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
9084         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
9085         * sysdeps/i386/fpu/e_logf.S: Likewise.
9086         * sysdeps/i386/fpu/e_log10l.S: Likewise.
9087         * sysdeps/i386/fpu/e_atanh.S: Likewise.
9088         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
9089         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
9090         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9091         * sysdeps/i386/fpu/e_log10.S: Likewise.
9092         * sysdeps/i386/fpu/s_frexp.S: Likewise.
9093         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
9094         * sysdeps/i386/fpu/s_asinh.S: Likewise.
9095         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
9096         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
9097         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
9098         * sysdeps/i386/asm-syntax.h: Likewise.
9099         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
9100         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9101         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
9102         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
9103         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
9104         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
9105         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
9106         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
9107         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
9108         * sysdeps/powerpc/sysdep.h: Likewise.
9109         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
9110         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9112 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
9114         [BZ #411]
9115         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
9117 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
9119         * sysdeps/i386/sysdep.h: Include <features.h>.
9120         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
9121         version.
9123 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
9125         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
9126         Define.
9127         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
9128         LOAD_PIC_REG_STR.
9130 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
9132         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
9133         (SETUP_PIC_REG): Use GET_PC_THUNK.
9134         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
9135         macro.
9137 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
9139         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
9140         for non-PIC compilation.
9141         (SETUP_PIC_REG): Add .p2align directive.
9142         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
9143         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
9144         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
9145         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
9146         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
9147         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
9148         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
9149         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
9150         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
9151         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
9152         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
9153         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
9154         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
9155         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
9156         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
9157         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
9158         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
9159         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
9160         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
9161         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
9162         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
9163         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
9164         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
9165         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
9166         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
9167         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
9168         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
9169         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
9170         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
9171         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
9172         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
9173         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
9174         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
9175         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
9176         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
9177         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
9178         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
9179         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
9180         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
9181         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
9182         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
9184 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
9186         * math/tst-CMPLX.c: Include <stdio.h>.
9188 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
9190         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
9191         float.
9192         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
9193         * sysdeps/sparc/bits/mathdef.h: Likewise.
9195 2012-01-31  Marek Polacek  <polacek@redhat.com>
9197         * libio/libio.h: Don't define _PARAMS.
9198         * locale/programs/config.h: Don't define PARAMS.
9199         * stdlib/strtol_l.c: Likewise.
9200         (__strtol_l): Remove PARAMS from the prototype.
9202 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
9204         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
9205         names.  Just use the correct names.  Remove unnecessary wrapper
9206         functions.
9207         * malloc/arena.c: Likewise.
9208         * malloc/hooks.c: Likewise.
9210         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
9211         ARENA_TEST says not to.  Simplify test for creation of a new arena.
9212         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
9214 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
9216         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
9217         into tail calls.
9218         (update_get_addr): New function.
9219         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
9220         GET_ADDR_MODULE parameter.
9222 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
9224         * crypt/cert.c: Remove __STDC__ conditionals.
9225         * crypt/crypt-entry.c: Likewise.
9226         * crypt/crypt_util.c: Likewise.
9227         * libio/filedoalloc.c: Likewise.
9228         * libio/fileops.c: Likewise.
9229         * libio/genops.c: Likewise.
9230         * libio/iofclose.c: Likewise.
9231         * libio/iofdopen.c: Likewise.
9232         * libio/iofopen.c: Likewise.
9233         * libio/iofopen64.c: Likewise.
9234         * libio/iogetdelim.c: Likewise.
9235         * libio/iopopen.c: Likewise.
9236         * libio/obprintf.c: Likewise.
9237         * libio/oldfileops.c: Likewise.
9238         * libio/oldiofclose.c: Likewise.
9239         * libio/oldiofdopen.c: Likewise.
9240         * libio/oldiofopen.c: Likewise.
9241         * libio/oldiopopen.c: Likewise.
9242         * libio/wfiledoalloc.c: Likewise.
9243         * libio/wgenops.c: Likewise.
9244         * locale/programs/xmalloc.c: Likewise.
9245         * misc/syslog.c: Likewise.
9246         * stdio-common/xbug.c: Likewise.
9247         * string/memchr.c: Likewise.
9248         * string/memcmp.c: Likewise.
9249         * string/memrchr.c: Likewise.
9250         * string/rawmemchr.c: Likewise.
9251         * sysdeps/posix/getcwd.c: Likewise.
9252         * time/strftime_l.c: Likewise.
9254 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
9256         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
9257         * config.make.in (config-cflags-sse2avx): Define.
9258         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
9259         Fix typo.
9261 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
9263         * scripts/config.guess: Update from upstream config git repository.
9264         * scripts/config.sub: Likewise.
9266 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
9268         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
9269         (EM_NUM): Update.
9270         (R_TILEPRO_*, R_TILEGX_*): New macros.
9272         * scripts/firstversions.awk: Fix bug in version range handling.
9274         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
9276         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
9278         * include/sys/epoll.h: New file.
9279         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
9280         libc_hidden_def.
9282 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
9284         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
9285         Avoid unnecessary __WORDSIZE == 64 test.
9286         (fmaxf): Use VEX format if possible.
9287         (fmax): Likewise.
9288         (fminf): Likewise.
9289         (fmin): Likewise.
9291         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
9292         * math/math_private.h: Remove libc_fegetround* and
9293         libc_fesetround*.
9294         * sysdeps/i386/configure.in: Check for -msse2avx.
9295         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
9296         also if SSE2AVX is defined.
9297         Remove libc_fegetround* and libc_fesetround*.
9298         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
9299         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
9300         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
9301         of HAS_YMM_USABLE.
9302         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9303         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9304         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9305         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9306         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9308         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
9310 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9312         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
9313         size is not set.
9314         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
9316 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
9318         [BZ #13618]
9319         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
9320         relocation.
9321         * Makeconfig (libm): Define.
9322         * elf/Makefile: Add rules to build and run tst-relsort1.
9323         * elf/tst-relsort1.c: New file.
9324         * elf/tst-relsort1mod1.c: New file.
9325         * elf/tst-relsort1mod2.c: New file.
9327 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
9329         * math/s_ldexp.c: Remove __STDC__ conditionals.
9330         * math/s_ldexpf.c: Likewise.
9331         * math/s_ldexpl.c: Likewise.
9332         * math/s_nextafter.c: Likewise.
9333         * math/s_nexttowardf.c: Likewise.
9334         * math/s_significand.c: Likewise.
9335         * math/s_significandf.c: Likewise.
9336         * math/s_significandl.c: Likewise.
9337         * math/w_jnl.c: Likewise.
9338         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
9339         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
9340         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
9341         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
9342         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
9343         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
9344         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
9345         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9346         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
9347         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
9348         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
9349         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9350         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
9351         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
9352         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
9353         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
9354         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9355         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
9356         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9357         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9358         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9359         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9360         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9361         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9362         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9363         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
9364         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
9365         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9366         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
9367         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
9368         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
9369         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
9370         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
9371         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
9372         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
9373         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
9374         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
9375         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
9376         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
9377         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
9378         * sysdeps/ieee754/k_standard.c: Likewise.
9379         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9380         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
9381         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
9382         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9383         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9384         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
9385         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
9386         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
9387         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
9388         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9389         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
9390         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
9391         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
9392         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
9393         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
9394         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9395         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
9396         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
9397         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
9398         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9399         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
9400         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
9401         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
9402         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
9403         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
9404         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
9405         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9406         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9407         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9408         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
9409         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
9410         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
9411         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9412         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
9413         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
9414         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
9415         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9416         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
9417         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
9418         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9419         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9420         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
9421         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9422         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9423         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
9424         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
9425         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
9426         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
9427         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
9428         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9429         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9430         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
9431         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
9432         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
9433         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
9434         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
9435         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9436         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9437         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9438         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9439         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9440         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9441         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
9442         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
9443         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
9444         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
9445         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
9446         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
9447         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
9448         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
9449         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
9450         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
9451         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
9452         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
9453         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
9454         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
9455         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
9456         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
9457         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
9458         * sysdeps/ieee754/s_matherr.c: Likewise.
9459         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
9460         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
9461         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
9462         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
9464 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
9466         * crypt/md5.h: Remove __STDC__ conditionals.
9467         * libio/libioP.h: Likewise.
9468         * locale/programs/config.h: Likewise.
9469         * sysdeps/generic/sysdep.h: Likewise.
9470         * sysdeps/i386/asm-syntax.h: Likewise.
9471         * sysdeps/s390/asm-syntax.h: Likewise.
9472         * sysdeps/unix/sysdep.h: Likewise.
9473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
9474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9476 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
9478         * libio/libio.h: Remove __STDC__ conditionals.
9479         * malloc/obstack.h: Likewise.
9480         * math/complex.h: Likewise.
9481         * math/math.h: Likewise.
9482         * sysdeps/generic/_G_config.h: Likewise.
9483         * sysdeps/gnu/_G_config.h: Likewise.
9484         * sysdeps/mach/hurd/_G_config.h: Likewise.
9485         * sysdeps/powerpc/bits/mathdef.h: Likewise.
9486         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
9487         * sysdeps/sparc/bits/mathdef.h: Likewise.
9489 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
9491         [BZ #13583]
9492         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
9493         Clean up HAS_* macros.
9494         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
9495         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
9496         possible.
9497         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
9498         HAS_AVX.
9499         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9500         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9501         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9502         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9503         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9505 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
9507         * elf/tst-unique3.cc (gets): Remove declaration.
9508         * elf/tst-unique3lib.cc (gets): Likewise.
9509         * elf/tst-unique3lib2.cc (gets): Likewise.
9510         * elf/tst-unique4.cc (gets): Likewise.
9512 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
9514         * include/stdio.h: Add C++ protection.  Add gets declarations and
9515         definitions.
9516         * debug/tst-chk1.c: Don't declare gets here.
9517         * stdio-common/tst-gets.c: Likewise.
9519 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
9521         * posix/glob: Remove directory.
9523 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
9525         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
9527 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
9529         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
9530         of the non-standard EPFNOSUPPORT.
9532 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9534         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
9535         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
9536         ANYWHERE set to 1 only on KERN_NO_SPACE error.
9538 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
9540         * wcsmbs/uchar.h: Test __STDC_VERSION__.
9542 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
9544         * nscd/aicache.c (addhstaiX): Do not cache negative results of
9545         transient errors.
9546         * nscd/grpcache.c (cache_addgr): Likewise.
9547         * nscd/hstcache.c (cache_addhst): Likewise.
9548         * nscd/initgrcache.c (addinitgroupsX): Likewise.
9549         * nscd/pwdcache.c (cache_addpw): Likewise.
9550         * nscd/servicescache.c (cache_addserv): Likewise.
9552 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
9554         * malloc/malloc.c: Various cleanups.
9555         * malloc/hooks.c: Likewise.
9557         * stdlib/Makefile (tests): Add bug-fmtmsg1.
9558         * stdlib/bug-fmtmsg1.c: New file.
9560         * stdlib/fmtmsg.c (init): Add missing unlock.
9561         Patch by Peng Haitao <penght@cn.fujitsu.com>.
9563 2012-01-12  Marek Polacek  <polacek@redhat.com>
9565         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
9566         and _GNU_SOURCE.
9568 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
9570         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
9571         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
9572         macro to ensure uniqueness of label name.
9573         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
9574         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
9576 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
9578         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
9580         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
9581         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
9582         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
9583         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
9585 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
9587         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
9589         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
9590         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
9591         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
9593         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
9595         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
9596         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
9597         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
9598         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
9600         * math/bits/math-finite.h: Add ldexp support.
9602 2012-01-10  Marek Polacek  <polacek@redhat.com>
9604         * locale/programs/localedef.h (show_archive_content): Add noreturn
9605         attribute.
9607 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
9609         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
9611 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
9613         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
9615         * io/Makefile (headers): Add bits/poll2.h.
9617 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
9619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
9620         typo #include statement.
9622 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
9624         * include/sys/cdefs.h: Define __attribute_alloc_size.
9625         * catgets/gencat.c: Add alloc_size attribute and apply consistently
9626         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
9627         * elf/pldd.c: Likewise.
9628         * iconv/iconv_charmap.c: Likewise.
9629         * iconv/iconvconfig.c: Likewise.
9630         * iconv/strtab.c: Likewise.
9631         * locale/programs/locale.c: Likewise.
9632         * locale/programs/localedef.h: Likewise.
9633         * locale/programs/simple-hash.c: Likewise.
9634         * nscd/nscd.h: Likewise.
9635         * nss/makedb.c: Likewise.
9636         * sysdeps/generic/ldconfig.h: Likewise.
9637         * locale/programs/localedef.c: Remove xmalloc prototype.
9638         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
9640 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
9642         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
9643         appropriate.
9645 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
9647         * math/Makefile (tests): Add tst-CMPLX.
9648         * math/tst-CMPLX.c: New file.
9650         * math/complex.h (CMPLXL): Fix typo.
9652         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
9653         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
9654         GLIBC_2.16.
9655         * debug/tst-chk1.c: Add poll and ppoll tests.
9656         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
9657         * include/sys/poll.h: Add hidden proto for ppoll.
9658         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
9659         * sysdeps/mach/hurd/ppoll.c: Likewise.
9660         * io/ppoll.c: Likewise.
9661         * debug/poll_chk.c: New file.
9662         * debug/ppoll_chk.c: New file.
9663         * include/bits/poll2.h: New file.
9664         * io/bits/poll2.h: New file.
9666         [BZ #1350]
9667         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
9669         * configure.in: static is always set to yes.  Remove.
9670         * config.make.in: Don't set build-static.
9671         * Makeconfig: Remove use of build-static.
9672         * dlfcn/Makefile: Likewise.
9673         * elf/Makefile: Likewise.
9674         * math/Makefile: Likewise.
9675         * misc/Makefile: Likewise.
9676         * nptl/Makefile: Likewise.
9677         * sysdeps/mach/hurd/Makefile: Likewise.
9679         * configure.in: PWD_P is not used anymore.
9680         * config.make.in: Remove PWD_P entry.
9682         * configure.in: Remove last remnants of RANLIB.
9683         No need to check for signed size_t anymore.
9684         Don't set libc_commonpagesize and libc_relro_required here for Alpha
9685         and IA-64.
9686         Remove __builtin_expect test because we require at least gcc 3.4.
9687         * aclocal.m4: Likewise.
9689         * wcsmbs/mbrtoc16.c: Implement using towc function.
9690         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
9691         * wcsmbs/wcsmbsload.c: Likewise.
9692         * iconv/gconv_simple.c: Likewise.
9693         * iconv/gconv_int.h: Likewise.
9694         * iconv/gconv_builtin.h: Likewise.
9695         * iconv/iconv_prog.c: Remove CHAR16 handling.
9697         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
9699         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
9701         * configure.in: Remove --with-elf and --enable-bounded options.
9702         Dont set base_machine for ia64.  More non-ELF conditions removed.
9703         Remove testing and setting of leading underscore information.
9704         * config.make.in (build-bounded): Set to no.
9705         * config.h.in: Remove NO_UNDERSCORES entry.
9706         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
9707         them.
9708         * csu/start.c: Remove !NO_UNDERSCORE code.
9709         * locale/localeinfo.h: Likewise.
9710         * sysdeps/generic/machine-gmon.h: Likewise.
9711         * sysdeps/generic/sysdep.h: Likewise.
9712         * sysdeps/i386/sysdep.h: Likewise.
9713         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
9714         * sysdeps/mach/sysdep.h: Likewise.
9715         * sysdeps/s390/s390-32/sysdep.h: Likewise.
9716         * sysdeps/s390/s390-64/sysdep.h: Likewise.
9717         * sysdeps/sh/sysdep.h: Likewise.
9718         * sysdeps/sparc/sparc32/alloca.S: Likewise.
9719         * sysdeps/unix/i386/sysdep.S: Likewise.
9720         * sysdeps/unix/sparc/start.c: Likewise.
9721         * sysdeps/unix/sparc/sysdep.S: Likewise.
9722         * sysdeps/unix/sparc/sysdep.h: Likewise.
9723         * sysdeps/unix/start.c: Likewise.
9724         * sysdeps/unix/x86_64/sysdep.S: Likewise.
9725         * sysdeps/x86_64/sysdep.h: Likewise.
9727 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
9729         [BZ #13553]
9730         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
9731         for non-gcc.
9732         * argp/argp-fmtstream.h: Use const instead __const.
9733         * argp/argp.h: Likewise.
9734         * assert/assert.h: Likewise.
9735         * bits/fenv.h: Likewise.
9736         * bits/sched.h: Likewise.
9737         * bits/sigset.h: Likewise.
9738         * bits/sigthread.h: Likewise.
9739         * catgets/nl_types.h: Likewise.
9740         * conform/data/pthread.h-data: Likewise.
9741         * crypt/crypt-private.h: Likewise.
9742         * crypt/crypt.h: Likewise.
9743         * crypt/crypt_util.c: Likewise.
9744         * ctype/ctype.h: Likewise.
9745         * debug/execinfo.h: Likewise.
9746         * debug/mbsnrtowcs_chk.c: Likewise.
9747         * debug/mbsrtowcs_chk.c: Likewise.
9748         * debug/wcsnrtombs_chk.c: Likewise.
9749         * debug/wcsrtombs_chk.c: Likewise.
9750         * debug/wcstombs_chk.c: Likewise.
9751         * dirent/dirent.h: Likewise.
9752         * dlfcn/dlfcn.h: Likewise.
9753         * elf/neededtest4.c: Likewise.
9754         * grp/grp.h: Likewise.
9755         * gshadow/gshadow.h: Likewise.
9756         * iconv/gconv.h: Likewise.
9757         * iconv/gconv_int.h: Likewise.
9758         * iconv/gconv_simple.c: Likewise.
9759         * iconv/iconv.h: Likewise.
9760         * iconv/loop.c: Likewise.
9761         * iconv/skeleton.c: Likewise.
9762         * include/aio.h: Likewise.
9763         * include/aliases.h: Likewise.
9764         * include/argz.h: Likewise.
9765         * include/arpa/inet.h: Likewise.
9766         * include/assert.h: Likewise.
9767         * include/dirent.h: Likewise.
9768         * include/dlfcn.h: Likewise.
9769         * include/execinfo.h: Likewise.
9770         * include/fcntl.h: Likewise.
9771         * include/fenv.h: Likewise.
9772         * include/glob.h: Likewise.
9773         * include/grp.h: Likewise.
9774         * include/libintl.h: Likewise.
9775         * include/mntent.h: Likewise.
9776         * include/netdb.h: Likewise.
9777         * include/pwd.h: Likewise.
9778         * include/rpc/netdb.h: Likewise.
9779         * include/sched.h: Likewise.
9780         * include/search.h: Likewise.
9781         * include/shadow.h: Likewise.
9782         * include/signal.h: Likewise.
9783         * include/stdio.h: Likewise.
9784         * include/stdlib.h: Likewise.
9785         * include/string.h: Likewise.
9786         * include/sys/socket.h: Likewise.
9787         * include/sys/stat.h: Likewise.
9788         * include/sys/statfs.h: Likewise.
9789         * include/sys/statvfs.h: Likewise.
9790         * include/sys/syslog.h: Likewise.
9791         * include/sys/time.h: Likewise.
9792         * include/sys/uio.h: Likewise.
9793         * include/time.h: Likewise.
9794         * include/unistd.h: Likewise.
9795         * include/utmp.h: Likewise.
9796         * include/wchar.h: Likewise.
9797         * include/wctype.h: Likewise.
9798         * inet/aliases.h: Likewise.
9799         * inet/arpa/inet.h: Likewise.
9800         * inet/netinet/ether.h: Likewise.
9801         * inet/netinet/in.h: Likewise.
9802         * intl/libintl.h: Likewise.
9803         * io/bits/fcntl2.h: Likewise.
9804         * io/fcntl.h: Likewise.
9805         * io/ftw.h: Likewise.
9806         * io/sys/poll.h: Likewise.
9807         * io/sys/stat.h: Likewise.
9808         * io/sys/statfs.h: Likewise.
9809         * io/sys/statvfs.h: Likewise.
9810         * io/utime.h: Likewise.
9811         * libio/bits/stdio.h: Likewise.
9812         * libio/bits/stdio2.h: Likewise.
9813         * libio/libio.h: Likewise.
9814         * libio/libioP.h: Likewise.
9815         * libio/stdio.h: Likewise.
9816         * locale/lc-ctype.c: Likewise.
9817         * locale/locale.h: Likewise.
9818         * login/utmp.h: Likewise.
9819         * malloc/arena.c: Likewise.
9820         * malloc/malloc.c: Likewise.
9821         * malloc/malloc.h: Likewise.
9822         * malloc/mcheck.c: Likewise.
9823         * malloc/mtrace.c: Likewise.
9824         * math/bits/mathcalls.h: Likewise.
9825         * math/fenv.h: Likewise.
9826         * math/math_private.h: Likewise.
9827         * misc/bits/error.h: Likewise.
9828         * misc/bits/syslog.h: Likewise.
9829         * misc/err.h: Likewise.
9830         * misc/error.h: Likewise.
9831         * misc/fstab.h: Likewise.
9832         * misc/mntent.h: Likewise.
9833         * misc/regexp.h: Likewise.
9834         * misc/search.h: Likewise.
9835         * misc/sgtty.h: Likewise.
9836         * misc/sys/mman.h: Likewise.
9837         * misc/sys/syslog.h: Likewise.
9838         * misc/sys/uio.h: Likewise.
9839         * misc/sys/xattr.h: Likewise.
9840         * misc/ttyent.h: Likewise.
9841         * nis/rpcsvc/ypclnt.h: Likewise.
9842         * nss/nss.h: Likewise.
9843         * posix/bits/unistd.h: Likewise.
9844         * posix/fnmatch.h: Likewise.
9845         * posix/glob.h: Likewise.
9846         * posix/sched.h: Likewise.
9847         * posix/spawn.h: Likewise.
9848         * posix/sys/wait.h: Likewise.
9849         * posix/unistd.h: Likewise.
9850         * posix/wordexp.h: Likewise.
9851         * pwd/pwd.h: Likewise.
9852         * resolv/netdb.h: Likewise.
9853         * resource/sys/resource.h: Likewise.
9854         * rt/aio.h: Likewise.
9855         * rt/bits/mqueue2.h: Likewise.
9856         * rt/mqueue.h: Likewise.
9857         * shadow/shadow.h: Likewise.
9858         * signal/signal.h: Likewise.
9859         * socket/send.c: Likewise.
9860         * socket/sendto.c: Likewise.
9861         * socket/sys/socket.h: Likewise.
9862         * stdio-common/printf.h: Likewise.
9863         * stdlib/bits/stdlib.h: Likewise.
9864         * stdlib/fmtmsg.h: Likewise.
9865         * stdlib/monetary.h: Likewise.
9866         * stdlib/stdlib.h: Likewise.
9867         * stdlib/ucontext.h: Likewise.
9868         * streams/stropts.h: Likewise.
9869         * string/argz.h: Likewise.
9870         * string/bits/string2.h: Likewise.
9871         * string/string.h: Likewise.
9872         * string/strings.h: Likewise.
9873         * sunrpc/rpc/auth.h: Likewise.
9874         * sunrpc/rpc/auth_des.h: Likewise.
9875         * sunrpc/rpc/clnt.h: Likewise.
9876         * sunrpc/rpc/netdb.h: Likewise.
9877         * sunrpc/rpc/pmap_clnt.h: Likewise.
9878         * sunrpc/rpc/xdr.h: Likewise.
9879         * sysdeps/generic/inttypes.h: Likewise.
9880         * sysdeps/generic/net/if.h: Likewise.
9881         * sysdeps/generic/sys/swap.h: Likewise.
9882         * sysdeps/gnu/net/if.h: Likewise.
9883         * sysdeps/gnu/utmpx.h: Likewise.
9884         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
9885         * sysdeps/i386/i486/bits/string.h: Likewise.
9886         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
9887         * sysdeps/s390/bits/string.h: Likewise.
9888         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
9889         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
9890         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
9891         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
9892         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9893         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
9894         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9895         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
9896         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
9897         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
9898         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
9899         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
9900         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
9901         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
9902         * sysdeps/unix/sysv/linux/readv.c: Likewise.
9903         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
9904         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
9905         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9906         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
9907         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
9908         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
9909         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
9910         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
9911         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
9912         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
9913         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
9914         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
9915         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
9916         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
9917         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
9918         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
9919         * sysvipc/sys/ipc.h: Likewise.
9920         * sysvipc/sys/msg.h: Likewise.
9921         * sysvipc/sys/sem.h: Likewise.
9922         * sysvipc/sys/shm.h: Likewise.
9923         * termios/termios.h: Likewise.
9924         * time/sys/time.h: Likewise.
9925         * time/time.h: Likewise.
9926         * wcsmbs/bits/wchar2.h: Likewise.
9927         * wcsmbs/uchar.h: Likewise.
9928         * wcsmbs/wchar.h: Likewise.
9929         * wctype/wctype.h: Likewise.
9931         [BZ #13551]
9932         * Makeconfig: Remove all but ELF support including AIX support.
9933         * Makerules: Likewise.
9934         * config.h.in: Likewise.
9935         * config.make.in: Likewise.
9936         * configure: Likewise.
9937         * configure.in: Likewise.
9938         * csu/Makefile: Likewise.
9939         * csu/version.c: Likewise.
9940         * debug/Makefile: Likewise.
9941         * dlfcn/Makefile: Likewise.
9942         * elf/Makefile: Likewise.
9943         * extra-lib.mk: Likewise.
9944         * iconv/Makefile: Likewise.
9945         * include/libc-symbols.h: Likewise.
9946         * include/shlib-compat.h: Likewise.
9947         * resolv/Makefile: Likewise.
9948         * resolv/res_libc.c: Likewise.
9949         * rt/Makefile: Likewise.
9950         * sysdeps/i386/asm-syntax.h: Likewise.
9951         * sysdeps/i386/sysdep.h: Likewise.
9952         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
9953         * sysdeps/mach/sysdep.h: Likewise.
9954         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
9955         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
9956         * sysdeps/s390/asm-syntax.h: Likewise.
9957         * sysdeps/s390/s390-32/sysdep.h: Likewise.
9958         * sysdeps/s390/s390-64/sysdep.h: Likewise.
9959         * sysdeps/sh/sysdep.h: Likewise.
9960         * sysdeps/unix/sparc/sysdep.h: Likewise.
9961         * sysdeps/wordsize-32/divdi3.c: Likewise.
9962         * sysdeps/x86_64/sysdep.h: Likewise.
9964         * argp/Versions: Remove _argp_unlock_xxx.
9966         [BZ #13559]
9967         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
9968         * abilist/libBrokenLocale.abilist: Likewise.
9969         * abilist/libanl.abilist: Likewise.
9970         * abilist/libc.abilist: Likewise.
9971         * abilist/libcrypt.abilist: Likewise.
9972         * abilist/libdl.abilist: Likewise.
9973         * abilist/libm.abilist: Likewise.
9974         * abilist/libnsl.abilist: Likewise.
9975         * abilist/libpthread.abilist: Likewise.
9976         * abilist/libresolv.abilist: Likewise.
9977         * abilist/librt.abilist: Likewise.
9978         * abilist/libthread_db.abilist: Likewise.
9979         * abilist/libutil.abilist: Likewise.
9980         * abilist/libnss_db.abilist: New file.
9982         * scripts/abilist.awk: Add support for indirect functions.
9984         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
9986         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
9988         * shlib-versions: Remove entries for ports architectures.
9990         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
9991         files in ports.
9992         * elf/stackguard-macros.h: Remove support for IA-64.
9993         * elf/tst-auditmod1.c: Likewise.
9994         * sysdeps/generic/ldsodefs.h: Likewise.
9996         * sysdeps/unix/sysv/linux/configure.in: Ports should define
9997         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
9998         configure files.
10000         [BZ #13552]
10001         * configure.in: Remove --enable-omitfp support.
10002         * FAQ.in: Adjust.
10003         * config.make.in: Likewise.
10004         * Makeconfig: Likewise.
10005         * manual/install.texi: Likewise.
10007         In case anyone cares, the IA-64 architecture could move to ports.
10008         * sysdeps/ia64/*: Removed.
10009         * sysdeps/unix/sysv/linux/ia64/*: Removed.
10010         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
10012         [BZ #13555]
10013         * configure.in: Remove entries for unsupported architectures.
10015         [BZ #13533]
10016         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
10017         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
10018         routines.
10019         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
10020         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
10021         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
10022         fall back to using wcrtomb.
10023         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
10024         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
10025         renaming.
10026         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
10027         * wcsmbs/tst-c16c32-1.c: New file.
10029         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
10030         local variable.
10032         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
10034         * elf/tst-unique3.cc: Add explicit declaration of gets.
10035         * elf/tst-unique3lib.cc: Likewise.
10036         * elf/tst-unique3lib2.cc: Likewise.
10037         * elf/tst-unique4.cc: Likewise.
10039         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
10041 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
10043         [BZ #13566]
10044         * assert/assert.h (static_assert): Don't define for C++.
10045         * libio/stdio.h (gets): Do declare for C++ <= C++11.
10046         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
10048 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
10050         * iconv/loop.c (single loop): Fix assertion in storing of
10051         remaining bytes.
10053         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
10055 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
10057         * posix/getconf.c: Update copyright year.
10058         * nss/getent.c: Likewise.
10059         * nss/makedb.c: Likewise.
10060         * iconv/iconvconfig.c: Likewise.
10061         * iconv/iconv_prog.c: Likewise.
10062         * elf/ldconfig.c: Likewise.
10063         * elf/pldd.c: Likewise.
10064         * elf/sotruss.ksh: Likewise.
10065         * catgets/gencat.c: Likewise.
10066         * csu/version.c: Likewise.
10067         * elf/ldd.bash.in: Likewise.
10068         * elf/sprof.c (print_version): Likewise.
10069         * locale/programs/locale.c: Likewise.
10070         * locale/programs/localedef.c: Likewise.
10071         * login/programs/pt_chown.c: Likewise.
10072         * nscd/nscd.c (print_version): Likewise.
10073         * debug/xtrace.sh: Likewise.
10074         * malloc/memusage.sh: Likewise.
10075         * malloc/mtrace.pl: Likewise.
10076         * debug/catchsegv.sh: Likewise.
10078 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
10080         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
10081         pure attribute.
10083 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
10085         [BZ #13533]
10086         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
10087         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
10088         transformations.
10089         * iconv/gconv_int.h: Likewise.
10090         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
10091         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
10092         from libc for GLIBC_2.16.
10093         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
10094         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
10095         * wcsmbs/uchar.h: Really define mbstate_t.
10096         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
10097         * wcsmbs/c16rtomb.c: New file.
10098         * wcsmbs/mbrtoc16.c: New file.
10099         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
10100         for C/POSIX locale.
10101         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
10102         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
10104         * wcsmbs/wchar.h: Add missing __restrict.
10106 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
10108         [BZ #13532]
10109         * time/Makefile (routines): Add timespec_get.
10110         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
10111         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
10112         timespec for ISO C11.
10113         * time/timespec_get.c: New file.
10114         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
10115         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
10117         [BZ #13531]
10118         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
10119         * stdlib/stdlib.h: Declare aligned_alloc.
10120         * Versions.def: Add GLIBC_2.16 for libc.
10121         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
10123         [BZ 13527]
10124         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
10125         ISO C11.
10127         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
10128         code.
10130         [BZ #13528]
10131         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
10133         [BZ #13529]
10134         * assert/assert.h (static_assert): Define.
10136         * version.h: Update for 2.16 development version.
10138         [BZ #13526]
10139         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
10140         _ISOC11_SOURCE.
10142         * version.h (RELEASE): Bump for 2.15 release.
10143         * include/features.h (__GLIBC_MINOR__): Bump to 15.
10145         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
10146         Patch by Marek Polacek <mpolacek@redhat.com>.
10148         * bits/byteswap.h: Protect long long constants with __extension__.
10149         * sysdeps/i386/bits/byteswap.h: Likewise.
10150         * sysdeps/ia64/bits/byteswap.h: Likewise.
10151         * sysdeps/s390/bits/byteswap.h: Likewise.
10152         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10154 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10156         [BZ #13540]
10157         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
10158         destination buffer.
10159         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
10161 2011-12-23  Marek Polacek  <polacek@redhat.com>
10163         * elf/dl-addr.c (determine_info): Add inline keyword.
10164         * elf/tst-auditmod4b.c (check_avx): Likewise.
10165         * elf/tst-auditmod6b.c (check_avx): Likewise.
10166         * elf/tst-auditmod6c.c (check_avx): Likewise.
10167         * elf/tst-auditmod7b.c (check_avx): Likewise.
10169 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
10171         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
10172         !__SSE_MATH__.
10174 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10176         [BZ #13540]
10177         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
10178         processing for last bytes.
10180 2011-08-06  Bruno Haible  <bruno@clisp.org>
10182         [BZ #13061]
10183         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
10184         U+0385, not to U+1FEE.
10186         [BZ #13062]
10187         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
10188         entry for U+00A5 U+0301.
10190 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
10192         [BZ #13166]
10193         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
10194         buffer for the output is too small.
10196         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
10197         optimization.
10199         [BZ #13185]
10200         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
10201         SSE flags if possible.
10203 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10205         [BZ #13540]
10206         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
10207         processing for last bytes.
10209 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
10211         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
10212         (syscall-list-default-options, syscall-list-default-condition)
10213         (syscall-list-includes): Define.
10214         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
10215         list of ABIs and options and #if conditions for each ABI.  Do not
10216         handle common syscalls between ABIs specially.
10217         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
10218         Remove.
10219         (syscall-list-variants, syscall-list-32bit-options)
10220         (syscall-list-32bit-condition, syscall-list-64bit-options)
10221         (syscall-list-64bit-condition): Define.
10222         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
10223         (syscall-list-variants, syscall-list-32bit-options)
10224         (syscall-list-32bit-condition, syscall-list-64bit-options)
10225         (syscall-list-64bit-condition): Define.
10226         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
10227         Remove.
10228         (syscall-list-variants, syscall-list-32bit-options)
10229         (syscall-list-32bit-condition, syscall-list-64bit-options)
10230         (syscall-list-64bit-condition): Define.
10231         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
10232         Remove.
10233         (syscall-list-variants, syscall-list-32bit-options)
10234         (syscall-list-32bit-condition, syscall-list-64bit-options)
10235         (syscall-list-64bit-condition): Define.
10237 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
10239         * locale/iso-639.def: Add brx entry.
10241         [BZ #13328]
10242         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
10243         Proposed by Mariusz_Cukr <marcukr@op.pl>.
10245         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
10246         __feraiseexcept_renamed.
10248 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
10250         [BZ #13538]
10251         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
10252         EPOLLET with unsigned values.
10253         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
10254         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
10256         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
10257         to large cancellation.
10258         * math/s_cacoshf.c: Likewise.
10259         * math/s_cacoshl.c: Likewise.
10261 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
10263         [BZ #13305]
10264         [BZ #12786]
10265         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
10266         * math/s_cacoshf.c: Likewise.
10267         * math/s_cacoshl.c: Likewise.
10269 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
10271         [BZ #13439]
10272         * iconv/gconv.h: Define __GCONV_SWAP.
10273         * iconvdata/unicode.c: The swap bit must be stored in __flags.
10274         * iconvdata/utf-16.c: Likewise.
10275         * iconvdata/utf-32.c: Likewise.
10277 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
10279         [BZ #13524]
10280         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
10281         numerator after shifting it by one limb.
10283 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
10285         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
10286         under [__USE_EXTERN_INLINES].
10288 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
10290         [BZ #13446]
10291         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
10293 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10295         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
10296         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
10297         optimized code.
10298         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
10299         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
10300         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
10301         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
10302         for strncasecmp/strncasecmp_l compilation.
10303         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
10304         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
10306 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
10308         [BZ #13484]
10309         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
10310         of __asm__.
10312 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
10314         [BZ #13506]
10315         * time/tzfile.c (__tzfile_read): Check values from file header.
10317 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
10319         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
10320         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
10321         * powerpc/powerpc32/dl-start.S: Likewise.
10322         * powerpc/powerpc32/elf/start.S: Likewise.
10323         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
10324         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
10325         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
10326         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
10327         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
10328         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
10329         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
10330         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
10331         * powerpc/powerpc32/fpu/s_round.S: Likewise.
10332         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
10333         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
10334         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
10335         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
10336         * powerpc/powerpc32/memset.S: Likewise.
10337         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
10338         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
10339         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
10340         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
10341         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
10342         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
10343         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
10344         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
10345         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
10346         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
10347         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
10348         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
10349         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
10351 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10353         * math/libm-test.inc: Added more nearbyint tests.
10354         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
10355         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
10356         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
10357         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
10359 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
10361         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
10362         FD_CLOEXEC.
10364 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10366         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
10367         Add wcscpy-ssse3 wcscpy-c.
10368         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
10369         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
10370         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
10371         * sysdeps/x86_64/wcschr.S: New file.
10372         * sysdeps/x86_64/wcsrchr.S: New file.
10373         * string/test-strcmp.c: Remove checking of wcscmp function for
10374         wrong alignments.
10375         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
10376         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
10377         wcsrchr-sse2 wcsrchr-c.
10378         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
10379         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
10380         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
10381         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
10382         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
10383         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
10384         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
10385         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
10386         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
10387         * wcsmbc/wcschr.c (WCSCHR): New macro.
10389 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10391         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
10392         * wcsmbs/test-wcsrchr.c: New file.
10393         * string/test-strrchr.c: Add wcsrchr support.
10394         (WIDE): New macro.
10395         * wcsmbs/test-wcscpy.c: New file.
10396         * string/test-strcpy.c: Add wcscpy support.
10397         (WIDE): New macro.
10399 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
10401         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
10402         the inner loop.
10404 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
10406         [BZ #13472]
10407         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
10409 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
10411         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
10412         Minor optimizations.
10414         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
10415         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
10416         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
10418 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
10420         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
10421         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
10422         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
10423         for gcc to avoid warnings.
10424         * inet/Makefile (tests): Add tst-checks.
10425         * inet/tst-checks.c: New file.
10427         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
10428         warning.
10430         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
10431         __wmemcmp_sse2.
10433         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
10434         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
10436         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
10438 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
10440         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
10441         problem.
10443         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
10445 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
10447         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
10448         conditional on GCC version.
10449         (__arch_compare_and_exchange_val_8_acq)
10450         (__arch_compare_and_exchange_val_16_acq)
10451         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
10452         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
10453         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
10455 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
10457         * sysdeps/sh/backtrace.c: New file.
10459 2011-12-02  Andreas Schwab  <schwab@redhat.com>
10461         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
10462         parenthesis.
10464 2011-12-01  Andreas Schwab  <schwab@redhat.com>
10466         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
10467         falling back to utime.
10469 2011-11-30  Andreas Schwab  <schwab@redhat.com>
10471         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
10472         expectations for float.
10474 2011-11-29  Andreas Schwab  <schwab@redhat.com>
10476         * locale/weight.h (findidx): Add parameter len.
10477         * locale/weightwc.h (findidx): Likewise.
10478         * posix/fnmatch_loop.c (FCT): Adjust caller.
10479         * posix/regcomp.c (build_equiv_class): Likewise.
10480         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
10481         * posix/regexec.c (check_node_accept_bytes): Likewise.
10482         * string/strcoll_l.c (STRCOLL): Likewise.
10483         * string/strxfrm_l.c (STRXFRM): Likewise.
10485 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
10487         * Makefile.in: Remove CVSOPT handling.
10488         * configure.in: Remove use of AC_REVISION.
10489         * iconvdata/Makefile (distribute): No need to filter out CVS.
10490         * scripts/list-sources.sh: Remove CVS, subversion and monotone
10491         handling.
10493 2011-11-16  Andreas Schwab  <schwab@redhat.com>
10495         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
10496         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
10497         [USE_AS_STRNCASECMP_L]: Likewise.
10498         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
10499         NO_TLS_DIRECT_SEG_REFS.
10500         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
10501         Fix argument offsets for non-PIC.
10502         [USE_AS_STRNCASECMP_L]: Likewise.
10503         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
10504         NO_TLS_DIRECT_SEG_REFS.
10506 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
10508         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
10509         O_CLOEXEC.
10510         * locale/loadlocale.c (_nl_load_locale): Likewise.
10512 2011-11-15  Andreas Schwab  <schwab@redhat.com>
10514         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
10515         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
10516         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
10517         (SYSCALL_GETTIME): Set errno on error.
10519         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
10520         count references to noai6ai_cached.
10522 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
10524         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
10526         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
10527         FD_CLOEXEC for /proc/self/maps.
10529         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
10530         FD_CLOEXEC for /proc/meminfo.
10532         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
10533         gai.conf.
10535         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
10536         FD_CLOEXEC for given file.
10538         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
10540         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
10541         FD_CLOEXEC for /etc/hosts.
10542         (_gethtent): Likewise.
10544         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
10546         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
10547         cancellation and set FD_CLOEXEC for /etc/netgroup.
10549         * nss/nss_files/files-key.c (search): Don't allow cancellation when
10550         reading /etc/publickey.
10552         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
10553         allow cancellation when reading /etc/group.
10555         * nss/nss_files/files-alias.c (internal_setent): Don't allow
10556         cancellation.
10557         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
10559         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
10560         when using data file.
10562         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
10564         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
10565         (write_nis_obj): Use "c" and "e" in fopen.
10567         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
10569         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
10571         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
10573         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
10575         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
10576         locale.alias.
10578         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
10580         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
10582         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
10584         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
10585         file parsing and set FD_CLOEXEC.
10587 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
10589         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
10591 2011-11-14  Andreas Schwab  <schwab@redhat.com>
10593         * malloc/arena.c (arena_get2): Don't call reused_arena when
10594         _int_new_arena failed.
10596 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
10598         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
10599         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
10600         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
10601         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10602         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
10603         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
10604         to compile strcasecmp and strncasecmp.
10605         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
10606         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
10608         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
10610 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
10612         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
10613         locale-defines.sym to gen-as-const-headers.
10614         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
10615         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
10616         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
10617         to compile strcasecmp and strncasecmp.
10618         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
10619         strcasecmp_l and strncasecmp_l.
10620         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
10621         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
10622         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
10623         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
10624         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
10625         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
10626         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
10627         * sysdeps/i386/i686/multiarch/strncase.S: New file.
10628         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
10629         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
10630         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
10632 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
10634         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
10635         result of SYSDEP_GETTIME_CPU to retval.
10636         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
10637         parameter list to macro.  Remove trailing semicolon.  Adjust users.
10639         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
10640         variable.
10642         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
10643         mantissa words.
10644         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
10646         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
10647         from unused variable.
10649         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
10650         DWARF definitions.
10651         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
10652         for assembling.
10654         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
10655         over namespaces.
10657         * sunrpc/rpc_prot.c (rejected): Fix case value.
10659         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
10660         unsigned long long int to avoid warnings in shift.
10662         * posix/regex_internal.c (re_string_reconstruct): Actually use result
10663         of use of trans.
10664         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
10665         variable tmp.
10667         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
10668         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
10669         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
10671         * nis/nis_table.c (nis_list): Use variable of correct type for
10672         result of __follow_path call.
10674 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10676         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
10677         of math functions ceil, trunc, floor, round, and sqrt, when
10678         avaliable on the platform.
10679         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
10680         name clash.
10681         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10682         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
10683         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
10685 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
10687         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
10688         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
10690 2011-11-11  Roland McGrath  <roland@hack.frob.com>
10692         * include/unistd.h: Fix __readlink return type.
10693         Reported by Chris Metcalf <cmetcalf@tilera.com>.
10695 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
10697         * stdlib/ucontext.h: Undo last change for makecontext.
10699 2011-11-11  Andreas Schwab  <schwab@redhat.com>
10701         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
10703         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
10704         * setjmp/setjmp.h: Mark functions as non-leaf.
10705         * setjmp/bits/setjmp2.h: Likewise.
10706         * stdlib/ucontext.h: Likewise.
10708 2011-11-10  Andreas Schwab  <schwab@redhat.com>
10710         * malloc/arena.c (_int_new_arena): Don't increment narenas.
10711         (reused_arena): Don't check arena limit.
10712         (arena_get2): Atomically check arena limit.
10714 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
10716         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
10717         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
10719         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
10720         instructions.
10722 2011-11-07  Andreas Schwab  <schwab@redhat.com>
10724         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
10725         handler when locking.
10727         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10728         Fix size of allocated buffer.
10730 2011-11-04  Andreas Schwab  <schwab@redhat.com>
10732         [BZ #10103]
10733         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
10734         declarations for long double functions.
10735         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
10737         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
10739 2011-11-03  Andreas Schwab  <schwab@redhat.com>
10741         * nscd/nscd.c (main): Don't start AVC thread until credentials are
10742         installed.
10744         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
10745         is disabled.
10747 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10749         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
10751 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
10753         * include/alloca.h (stackinfo_alloca_round): Define.
10754         (extend_alloca): Use it.
10755         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
10756         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
10757         here.
10759         * scripts/check-local-headers.sh: Ignore libaudit.h.
10761         * nscd/Makefile (extra-objs): Make recursively expanded.
10763 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
10765         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
10766         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
10768         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
10769         * posix/tst-rfc3484-2.c: Likewise.
10770         * posix/tst-rfc3484-3.c: Likewise.
10772         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
10773         process_vm_writev.
10774         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
10775         process_vm_writev.
10776         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
10777         process_vm_writev from libc using GLIBC_2.15 version.
10779         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
10781 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
10783         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
10784         stack usage.
10786 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
10788         [BZ #13367]
10789         * nss/getent.c (initgroups_keys): Show error message in case no group
10790         names are given.
10792         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
10793         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
10794         __bump_nl_timestamp.
10795         * nscd/connections (nscd_init): When host database is served open
10796         netlink socket and request notification about configuration changes.
10797         (main_loop_poll): Track netlink file descriptor and bump timestamp
10798         in case data becomes available.
10799         (main_loop_epoll): Likewise.
10800         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
10801         (database_pers_head): Add extra_data fileds.
10802         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
10803         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
10804         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
10805         Adjust caller.
10806         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
10807         in6ai data, call __free_in6ai.
10808         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
10809         Add -DHAVE_NETLINK.
10810         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
10811         interface information.  Reuse previous data if netlink timestamp
10812         is not changed.
10813         (__bump_nl_timestamp): New function.
10814         (__free_in6ai): New function.
10816 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
10818         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
10819         close_not_cancel_no_status here.
10820         (__check_pf): Reorganize code a bit to not call close twice if OOM.
10822 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
10824         [BZ #13276]
10825         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
10826         return value.
10828         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
10829         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
10830         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
10832 2011-07-03  Andreas Jaeger  <aj@suse.de>
10834         [BZ #10709]
10835         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
10836         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
10837         * math/libm-test.inc (sin_test): Add test case.
10839 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
10841         [BZ #13337]
10842         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
10843         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
10845         * elf/chroot_canon.c (chroot_canon): Cleanups.
10847         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
10849         [BZ #13335]
10850         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
10851         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
10853         * string/test-strchr.c: Make usable for strchrnul testing.
10854         * string/test-strchrnul.c: New file.
10855         * string/Makefile (strop-tests): Add strchrnul.
10857         * po/it.po: Update from translation team.
10858         * po/es.po: Likewise.
10860 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
10862         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
10863         the three constants needed as parameters.  Drop the others.
10864         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
10865         __m128i_strloadu_tolower.
10866         Create and initialize variable zero and use it in all the places
10867         where _mm_setzero_si128 was used.
10869         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
10870         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
10871         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
10872         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
10873         anymore.
10874         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
10875         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
10876         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
10877         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
10878         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
10879         __mpranred, __mptan.
10880         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
10881         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
10882         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
10883         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
10884         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
10885         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
10886         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
10887         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
10888         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
10890 2011-10-28  Andreas Schwab  <schwab@redhat.com>
10892         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
10893         redefine if SHARED.
10894         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
10896         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
10897         wide char related routines to wcsmbs subdir.
10899 2011-10-27  Andreas Schwab  <schwab@redhat.com>
10901         [BZ #13344]
10902         * misc/sys/cdefs.h (__THROWNL): Define.
10903         * posix/unistd.h: Use __THREADNL instead of __THREAD
10904         for memory synchronization functions.
10906 2011-10-26  Roland McGrath  <roland@hack.frob.com>
10908         [BZ #13349]
10909         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
10910         doesn't exist.
10911         * manual/stdio.texi (Obstack Streams): Node removed.
10913 2011-10-26  Andreas Schwab  <schwab@redhat.com>
10915         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
10916         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10917         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10919         * math/math_private.h (math_force_eval): Allow non-addressable
10920         arguments.
10921         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
10923 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
10925         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
10926         file is not needed.
10928         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
10929         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
10930         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10931         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10932         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10933         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10934         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10935         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
10936         Add AVX variants.
10937         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
10938         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
10939         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
10940         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
10941         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
10942         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
10943         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
10944         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
10945         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
10946         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
10947         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
10948         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
10949         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
10950         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
10951         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
10952         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
10953         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
10954         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
10955         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
10957         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
10958         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
10960         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
10961         place.  Use VEX encoding when compiling for AVX.
10963 2011-10-25  Andreas Schwab  <schwab@redhat.com>
10965         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
10966         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
10968         * string/test-strchr.c (do_test): Don't generate NUL bytes.
10970 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
10972         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
10973         useless if() expression.
10974         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10975         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10976         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10977         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10978         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10979         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10980         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10981         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10982         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10983         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10984         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10985         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10986         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10987         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10988         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10989         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10990         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10991         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10992         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10994         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
10996 2011-10-25  Andreas Schwab  <schwab@redhat.com>
10998         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
10999         condition.
11000         * elf/dl-fini.c (_dl_sort_fini): Likewise.
11002 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
11004         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
11005         .text section.  Avoid duplicate constants.
11006         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11007         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11008         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11009         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11010         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11011         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11012         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11013         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11014         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
11015         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
11016         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
11017         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
11018         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
11019         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
11020         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
11021         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
11022         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
11023         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
11024         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11025         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11026         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11027         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11028         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11029         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
11030         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
11031         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
11032         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
11033         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
11034         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
11035         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
11036         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
11037         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
11038         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
11039         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
11040         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
11041         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
11042         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
11043         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
11044         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
11045         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
11046         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
11047         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
11048         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
11049         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
11050         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
11052 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
11054         * sysdeps/x86_64/dla.h: Move to ...
11055         * sysdeps/x86_64/fpu/dla.h: ...here.
11056         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
11057         situations.  Use __builtin_fma only for gcc 4.6 and up.
11059         * config.make.in: Add have-mfma4 entry.
11060         * configure.in: Substitute libc_cv_cc_fma4.
11061         * math/Makefile (dbl-only-routines): Add sincostab.
11062         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
11063         Use __sincostab not sincos.
11064         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
11065         name is a macro.
11066         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11067         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11068         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11069         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
11070         using __copysign.
11071         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
11072         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
11073         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
11074         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
11075         and __inv.
11076         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
11077         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
11078         __copysign.
11079         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
11080         define aliases when function name is a macro.
11081         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
11082         sysdeps/ieee754/dbl-64/sincos.tbl.
11083         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
11084         fma4-enabled routines.
11085         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
11086         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
11087         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
11088         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
11089         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
11090         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
11091         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
11092         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
11093         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
11094         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
11095         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
11096         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
11097         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
11098         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
11099         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
11100         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
11101         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
11102         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
11103         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
11104         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
11105         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
11106         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
11107         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
11108         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
11109         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
11110         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
11111         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
11112         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
11113         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
11114         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
11116         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
11117         rename.
11118         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11119         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11120         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11121         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11122         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11123         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11124         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11125         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11127 2011-10-24  Andreas Schwab  <schwab@redhat.com>
11129         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
11131 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
11133         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
11135         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
11136         prediction.
11137         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
11139         * string/strnlen.c: Don't define STRNLEN, reverse logic.
11140         Remove unused variable magic_bits.
11141         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
11143         * string/strnlen.c: Define and use STRNLEN macro.
11144         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
11145         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
11146         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
11147         * wcsmbs/wcslen.c: Define and use WCSLEN.
11148         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
11149         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
11150         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
11151         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
11152         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
11153         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
11154         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
11156 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11158         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11159         strnlen-sse2-no-bsf.
11160         Rename strlen-no-bsf to strlen-sse2-no-bsf.
11161         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
11162         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
11163         Add strnlen support.
11164         (USE_AS_STRNLEN): New macro.
11165         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
11166         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
11167         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
11168         * sysdeps/x86_64/wcslen.S: New file.
11170 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
11172         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
11173         XMM-moves are used for copying on small sizes.
11175 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11177         * wcsmbs/Makefile (strop-tests): Add wcschr.
11178         * wcsmbs/test-wcschr.c: New file.
11179         * string/test-strchr.c: Update.
11180         Add wcschr support.
11181         (WIDE): New macro.
11183 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11185         * wcsmbs/Makefile (strop-tests): Add wcslen.
11186         * wcsmbs/test-wcslen.c: New file.
11187         * string/test-strlen.c: Update.
11188         Add wcslen support.
11189         (WIDE): New macro.
11191 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
11193         * po/it.po: Update from translation team.
11195 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11197         * sysdeps/x86_64/wcscmp.S: Update.
11198         Fix wrong comparison semantics.
11199         wcscmp shall use signed comparison not unsigned.
11200         Don't use substraction to avoid overflow bug.
11201         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
11202         * wcsmbc/wcscmp.c: Likewise.
11203         * string/test-strcmp.c: Likewise.
11204         Add new tests to check cases with negative values.
11206 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
11208         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
11209         * sysdeps/x86_64/dla.h: ...here.  New file.
11210         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
11211         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11212         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11213         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11214         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11215         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11216         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11217         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11218         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11220 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
11222         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
11223         __ynl_finite aliases.
11225 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
11227         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11229         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
11230         define DLA_FMA.
11231         [DLA_FMA] (EMULV): Use DLA_FMA.
11232         [DLA_FMA] (MUL12): Use EMULV.
11233         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
11234         that are not needed.
11235         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11236         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11237         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11238         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11239         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11240         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11241         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11243 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
11245         * math/s_nan.c: Undef __nan.
11246         * math/s_nanf.c: Undef __nanf.
11247         * math/s_nanl.c: Undef __nanl.
11248         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
11249         "math_private.h".
11251 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
11253         * math/s_catan.c: Add branch predictions.
11254         * math/s_catanf.c: Likewise.
11255         * math/s_catanh.c: Likewise.
11256         * math/s_catanhf.c: Likewise.
11257         * math/s_catanhl.c: Likewise.
11258         * math/s_catanl.c: Likewise.
11259         * math/s_cexp.c: Likewise.
11260         * math/s_cexpf.c: Likewise.
11261         * math/s_cexpl.c: Likewise.
11262         * math/s_clog.c: Likewise.
11263         * math/s_clog10.c: Likewise.
11264         * math/s_clog10f.c: Likewise.
11265         * math/s_clog10l.c: Likewise.
11266         * math/s_clogf.c: Likewise.
11267         * math/s_clogl.c: Likewise.
11268         * math/s_csqrt.c: Likewise.
11269         * math/s_csqrtf.c: Likewise.
11270         * math/s_csqrtl.c: Likewise.
11271         * math/s_ctanf.c: Likewise.
11272         * math/s_ctanh.c: Likewise.
11273         * math/s_ctanhf.c: Likewise.
11274         * math/s_ctanhl.c: Likewise.
11275         * math/s_ctanl.c: Likewise.
11277         * math/math_private.h: Define __nan, __nanf, __nanl.
11278         * math/s_cacosh.c: Include <math_private.h>.
11279         * math/s_cacoshl.c: Likewise.
11280         * math/s_casinh.c: Likewise.
11281         * math/s_casinhf.c: Likewise.
11282         * math/s_casinhl.c: Likewise.
11283         * math/s_ccos.c: Rely entire on ccosh.
11284         * math/s_ccosf.c: Rely entire on ccoshf.
11285         * math/s_ccosl.c: Rely entirely on ccoshl.
11286         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
11287         Remove tests for FE_INVALID.
11288         * math/s_ccoshf.c: Likewise.
11289         * math/s_ccoshl.c: Likewise.
11290         * math/s_csin.c: Likewise.
11291         * math/s_csinf.c: Likewise.
11292         * math/s_csinh.c Likewise.
11293         * math/s_csinhf.c: Likewise.
11294         * math/s_csinhl.c: Likewise.
11295         * math/s_csinl.c: Likewise.
11296         * math/s_ctan.c: Likewise.
11297         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
11298         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
11299         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
11301 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
11303         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
11304         compilation problems.
11306         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
11307         __builtin_expect.
11309 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
11311         * sysdeps/i386/configure.in: Test for -mfma4 option.
11312         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
11313         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
11314         COMMON_CPUID_INDEX_80000001.
11315         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
11316         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
11317         use it if FMA3 is not supported.
11318         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
11320         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
11321         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
11323 2011-10-20  Andreas Schwab  <schwab@redhat.com>
11325         [BZ #12892]
11326         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
11327         it would create a cycle with a link time dependency.
11329 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
11331         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
11332         instruction.
11333         * string/Makefile (strop-tests): Add rawmemchr.
11334         * string/test-rawmemchr.c: New file.
11336         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
11337         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
11338         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
11339         when compiling str{,n}casecmp and when AVX is available.  Hook up
11340         new optimized code in initializers.
11342 2011-10-19  Andreas Schwab  <schwab@redhat.com>
11344         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
11345         __feraiseexcept instead of feraiseexcept.
11347 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
11349         * math/math_private.h: Define defaults for libc_fetestexcept and
11350         libc_feupdateenv.
11351         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
11352         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11353         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11354         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11355         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11356         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
11357         libc_fetestexcept and libc_feupdateenv.
11359         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
11360         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
11361         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
11362         * sysdeps/x86_64/fpu/math_private.h: Define special version of
11363         libc_feholdexcept_setround.
11365         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
11366         Add s_nearbyint-c and s_nearbyintf-c.
11367         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
11368         nearbyintf inlines.
11369         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
11370         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
11371         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
11372         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
11374         * math/math_private.h: Define defaults for libc_fegetround,
11375         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
11376         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
11377         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
11378         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
11379         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
11380         standard functions.
11381         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11382         Remove comments and hacks for old compiler versions.
11383         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
11384         libc_fegetround, libc_fesetround, libc_feholdexcept, and
11385         libc_feholdexceptl.
11387 2011-10-18  Andreas Schwab  <schwab@redhat.com>
11389         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
11390         (__feraiseexcept_renamed): Add __NTH.
11391         (feraiseexcept): Add __NTH.  Rename local variables to fix
11392         namespace violations.
11394 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
11396         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
11398         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
11400         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
11401         recently added interfaces.
11402         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11404         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
11405         about macro parameter expansion.
11407         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
11408         __NO_MATH_INLINES is defined.  Cleanups.
11410         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
11411         and __floorf is target has SSE4.1.
11412         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
11413         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
11414         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
11415         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
11417         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
11418         name.
11419         (floorf): Likewise.
11421         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
11423 2011-10-17  Andreas Schwab  <schwab@redhat.com>
11425         * misc/sys/cdefs.h: Fix last change.
11427         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
11428         database lookup.
11430 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
11432         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
11434         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
11435         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11436         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11437         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11438         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11439         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11440         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11441         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11442         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11443         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
11444         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
11445         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
11446         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
11447         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
11448         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
11449         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
11450         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
11451         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
11452         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
11453         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
11454         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
11455         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
11457         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
11458         ceil, ceilf, floor, floorf.
11460         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
11461         Perform IRELATIVE relocations last.
11463         * elf/do-rel.h: Add another parameter nrelative, replacing the
11464         local variable with the same name.  Change name of the function
11465         to end in Rel or Rela (uppercase).
11466         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
11467         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
11468         elf_dynamic_do_##reloc function.
11470 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
11472         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
11473         is sufficient, at least on modern CPUs.
11475         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
11477         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
11478         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
11480         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
11481         __expl_finite.
11482         * math/bits/math-finite.h: Add entries for exp.
11483         * math/e_expl.c: Add __*_finite alias.
11484         * sysdeps/i386/fpu/e_exp.S: Likewise.
11485         * sysdeps/i386/fpu/e_expf.S: Likewise.
11486         * sysdeps/i386/fpu/e_expl.c: Likewise.
11487         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11488         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11489         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11490         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
11491         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
11492         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11493         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11495         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
11496         is sufficient, at least on modern CPUs.
11498         * ctype/ctype-info.c (__ctype_init): Define.
11499         * include/ctype.h (__ctype_init): Declare.
11500         (__ctype_b_loc): The variable is always initialized.
11501         (__ctype_toupper_loc): Likewise.
11502         (__ctype_tolower_loc): Likewise.
11503         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
11504         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
11506 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
11508         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
11510         * configure.in: Also look in $cxxmachine/include for C++ system
11511         headers.
11513 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11515         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
11516         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
11517         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
11518         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
11519         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
11520         (USE_AS_WMEMCMP): New macro.
11521         Fixing indents.
11522         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
11523         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
11524         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
11525         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
11526         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11527         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
11528         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
11529         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
11530         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
11531         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
11532         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
11533         (USE_AS_WMEMCMP): New macro.
11534         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
11535         * sysdeps/string/test-memcmp.c: Update.
11536         Fix simple_wmemcmp.
11537         Add new tests.
11538         * wcsmbs/wmemcmp.c: Update.
11539         (WMEMCMP): New macro.
11540         Fix overflow bug.
11542 2011-10-12  Andreas Jaeger  <aj@suse.de>
11544         [BZ #13268]
11545         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
11547 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
11549         * libio/iofwide.c (do_length): Avoid warning.
11551         * ctype/ctype.h (__isctype_f): Add missing __THROW.
11553 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
11555         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
11557         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
11558         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
11559         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
11560         * sysdeps/i386/i686/fpu/e_log.S: New file.
11561         * sysdeps/i386/i686/fpu/e_logf.S: New file.
11562         * sysdeps/i386/i686/fpu/e_logl.S: New file.
11564         * ctype/ctype.h: Add support for inlined isXXX functions when
11565         compiling C++ code.
11567 2011-10-14  Andreas Schwab  <schwab@redhat.com>
11569         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11571         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
11573 2011-10-13  Roland McGrath  <roland@hack.frob.com>
11575         [BZ #13291]
11576         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
11578 2011-10-13  Andreas Schwab  <schwab@redhat.com>
11580         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
11581         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
11582         feraiseexcept.
11584         * sysdeps/x86_64/memrchr.S: Check for zero size.
11586         * string/stratcliff.c: Add memrchr tests.
11588 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11590         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11591         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
11592         rawmemchr-sse2 rawmemchr-sse2-bsf.
11593         * sysdeps/i386/i686/multiarch/memchr.S: New file.
11594         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
11595         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
11596         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
11597         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
11598         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
11599         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
11600         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
11601         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
11602         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
11603         * string/memrchr.c (MEMRCHR): New macro.
11605 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
11607         Add integration with gcc's -ffinite-math-only and optimize wrapper
11608         functions in libm.
11609         * Versions.def: Define GLIBC_2.15 version for libm.
11610         * math/Makefile (headers): Add bits/math-finite.h.
11611         * math/bits/math-finite.h: New file.
11612         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
11613         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
11614         * math/e_acoshl.c: Add __*_finite alias.
11615         * math/e_acosl.c: Likewise.
11616         * math/e_asinl.c: Likewise.
11617         * math/e_atan2l.c: Likewise.
11618         * math/e_atanhl.c: Likewise.
11619         * math/e_coshl.c: Likewise.
11620         * math/e_exp10.c: Likewise.
11621         * math/e_exp10f.c: Likewise.
11622         * math/e_exp10l.c: Likewise.
11623         * math/e_exp2l.c: Likewise.
11624         * math/e_fmodl.c: Likewise.
11625         * math/e_gammal_r.c: Likewise.
11626         * math/e_hypotl.c: Likewise.
11627         * math/e_j0l.c: Likewise.
11628         * math/e_j1l.c: Likewise.
11629         * math/e_jnl.c: Likewise.
11630         * math/e_lgammal_r.c: Likewise.
11631         * math/e_log10l.c: Likewise.
11632         * math/e_log2l.c: Likewise.
11633         * math/e_logl.c: Likewise.
11634         * math/e_powl.c: Likewise.
11635         * math/e_sinhl.c: Likewise.
11636         * math/e_sqrtl.c: Likewise.
11637         * math/e_scalb.c: Completely rewritten and optimized.
11638         * math/e_scalbf.c: Likewise.
11639         * math/e_scalbl.c: Likewise.
11640         * math/w_acos.c: Likewise.
11641         * math/w_acosf.c: Likewise.
11642         * math/w_acosl.c: Likewise.
11643         * math/w_acosh.c: Likewise.
11644         * math/w_acoshf.c: Likewise.
11645         * math/w_acoshl.c: Likewise.
11646         * math/w_asin.c: Likewise.
11647         * math/w_asinf.c: Likewise.
11648         * math/w_asinl.c: Likewise.
11649         * math/w_atan2.c: Likewise.
11650         * math/w_atan2f.c: Likewise.
11651         * math/w_atan2l.c: Likewise.
11652         * math/w_atanh.c: Likewise.
11653         * math/w_atanhf.c: Likewise.
11654         * math/w_atanhl.c: Likewise.
11655         * math/w_exp10.c: Likewise.
11656         * math/w_exp10f.c: Likewise.
11657         * math/w_exp10l.c: Likewise.
11658         * math/w_fmod.c: Likewise.
11659         * math/w_fmodf.c: Likewise.
11660         * math/w_fmodl.c: Likewise.
11661         * math/w_j0.c: Likewise.
11662         * math/w_j0f.c: Likewise.
11663         * math/w_j0l.c: Likewise.
11664         * math/w_j1.c: Likewise.
11665         * math/w_j1f.c: Likewise.
11666         * math/w_j1l.c: Likewise.
11667         * math/w_jn.c: Likewise.
11668         * math/w_jnf.c: Likewise.
11669         * math/w_log.c: Likewise.
11670         * math/w_logf.c: Likewise.
11671         * math/w_logl.c: Likewise.
11672         * math/w_log10.c: Likewise.
11673         * math/w_log10f.c: Likewise.
11674         * math/w_log10l.c: Likewise.
11675         * math/w_log2.c: Likewise.
11676         * math/w_log2f.c: Likewise.
11677         * math/w_log2l.c: Likewise.
11678         * math/w_pow.c: Likewise.
11679         * math/w_powf.c: Likewise.
11680         * math/w_powl.c: Likewise.
11681         * math/w_remainder.c: Likewise.
11682         * math/w_remainderf.c: Likewise.
11683         * math/w_remainderl.c: Likewise.
11684         * math/w_scalb.c: Likewise.
11685         * math/w_scalbf.c: Likewise.
11686         * math/w_scalbl.c: Likewise.
11687         * math/w_sqrt.c: Likewise.
11688         * math/w_sqrtf.c: Likewise.
11689         * math/w_sqrtl.c: Likewise.
11690         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
11691         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
11692         used.
11693         * math/math_private.h: Declare __kernel_standard_f.
11694         * math/w_cosh.c: Remove cruft and optimize a bit.
11695         * math/w_coshf.c: Likewise.
11696         * math/w_coshl.c: Likewise.
11697         * math/w_exp2.c: Likewise.
11698         * math/w_exp2f.c: Likewise.
11699         * math/w_exp2l.c: Likewise.
11700         * math/w_hypot.c: Likewise.
11701         * math/w_hypotf.c: Likewise.
11702         * math/w_hypotl.c: Likewise.
11703         * math/w_lgamma.c: Likewise.
11704         * math/w_lgamma_r.c: Likewise.
11705         * math/w_lgammaf.c: Likewise.
11706         * math/w_lgammaf_r.c: Likewise.
11707         * math/w_lgammal.c: Likewise.
11708         * math/w_lgammal_r.c: Likewise.
11709         * math/w_sinh.c: Likewise.
11710         * math/w_sinhf.c: Likewise.
11711         * math/w_sinhl.c: Likewise.
11712         * math/w_tgamma.c: Likewise.
11713         * math/w_tgammaf.c: Likewise.
11714         * math/w_tgammal.c: Likewise.
11715         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11716         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11717         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
11718         Minor optimizations.  Pretty printing.  Remove cruft.
11719         * sysdeps/i386/fpu/e_acosf.S: Likewise.
11720         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11721         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11722         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11723         * sysdeps/i386/fpu/e_acosl.c: Likewise.
11724         * sysdeps/i386/fpu/e_asin.S: Likewise.
11725         * sysdeps/i386/fpu/e_asinf.S: Likewise.
11726         * sysdeps/i386/fpu/e_atan2.S: Likewise.
11727         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
11728         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
11729         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11730         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11731         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11732         * sysdeps/i386/fpu/e_exp10.S: Likewise.
11733         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
11734         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
11735         * sysdeps/i386/fpu/e_exp2.S: Likewise.
11736         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
11737         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
11738         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11739         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
11740         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11741         * sysdeps/i386/fpu/e_hypot.S: Likewise.
11742         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
11743         * sysdeps/i386/fpu/e_log.S: Likewise.
11744         * sysdeps/i386/fpu/e_log10.S: Likewise.
11745         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11746         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11747         * sysdeps/i386/fpu/e_log2.S: Likewise.
11748         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11749         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11750         * sysdeps/i386/fpu/e_logf.S: Likewise.
11751         * sysdeps/i386/fpu/e_logl.S: Likewise.
11752         * sysdeps/i386/fpu/e_pow.S: Likewise.
11753         * sysdeps/i386/fpu/e_powf.S: Likewise.
11754         * sysdeps/i386/fpu/e_powl.S: Likewise.
11755         * sysdeps/i386/fpu/e_remainder.S: Likewise.
11756         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
11757         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
11758         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11759         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11760         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11761         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
11762         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
11763         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
11764         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11765         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11766         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11767         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11768         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11769         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11770         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11771         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11772         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11773         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11774         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11775         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11776         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11777         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11778         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11779         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11780         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11781         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11782         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11783         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11784         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11785         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11786         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11787         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11788         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11789         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11790         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11791         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11792         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11793         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11794         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11795         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11796         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11797         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11798         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11799         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11800         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11801         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11802         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11803         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11804         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11805         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11806         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11807         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11808         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11809         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11810         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11811         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11812         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11813         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11814         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11815         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11816         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11817         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11818         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11819         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11820         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11821         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11822         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11823         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11824         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11825         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11826         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11827         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11828         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11829         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11830         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11831         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11832         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11833         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11834         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11835         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11836         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11837         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11838         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11839         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11840         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
11841         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11842         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11843         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11844         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11845         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11846         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11847         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11848         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11849         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11850         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11851         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11852         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11853         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11854         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11855         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11856         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11857         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
11858         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
11859         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
11860         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
11861         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
11862         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
11863         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
11864         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
11865         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
11866         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
11867         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
11868         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11869         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11870         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11871         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11872         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
11873         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11874         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
11875         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
11876         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
11877         (__isnanf): Likewise.
11878         (__isinf_ns): Likewise.
11879         (__isinf_nsf): Likewise.
11880         (__finite): Likewise.
11881         (__finitef): Likewise.
11882         (__ieee754_sqrt): Define as macro.
11883         (__ieee754_sqrtf): Define as macro.
11884         (__ieee754_sqrtl): Define as macro.
11885         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
11886         inlined copy.
11887         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
11888         __FINITE_MATH_ONLY__ consistent.
11889         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
11891 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
11893         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
11894         of rawmemchr.
11896         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
11898 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
11900         * po/ja.po: Update from translation team.
11902 2011-10-08  Roland McGrath  <roland@hack.frob.com>
11904         * locale/programs/locarchive.c (prepare_address_space): New function.
11905         (create_archive, enlarge_archive, open_archive): Use it.
11907         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
11908         inside [SHARED], where it is used.
11910         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
11912         * nss/getent.c (netgroup_keys): Remove unused variable.
11913         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11915 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
11917         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
11918         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
11919         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
11920         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
11921         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
11922         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
11923         * math/Makefile (libm-calls): Add s_isinf_ns.
11924         * math/divtc3.c: Use __isinf_nsl instead of isinf.
11925         * math/multc3.c: Likewise.
11926         * math/s_casin.c: Likewise.
11927         * math/s_casinf.c: Likewise.
11928         * math/s_casinl.c: Likewise.
11929         * math/s_ccos.c: Likewise.
11930         * math/s_ccosf.c: Likewise.
11931         * math/s_ccosl.c: Likewise.
11932         * math/s_ctan.c: Likewise.
11933         * math/s_ctanf.c: Likewise.
11934         * math/s_ctanh.c: Likewise.
11935         * math/s_ctanhf.c: Likewise.
11936         * math/s_ctanhl.c: Likewise.
11937         * math/s_ctanl.c: Likewise.
11938         * math/w_fmod.c: Likewise.
11939         * math/w_fmodf.c: Likewise.
11940         * math/w_fmodl.c: Likewise.
11941         * math/w_remainder.c: Likewise.
11942         * math/w_remainderf.c: Likewise.
11943         * math/w_remainderl.c: Likewise.
11944         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
11945         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
11946         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
11947         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
11948         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
11949         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
11950         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
11951         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
11953         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
11954         of the number.
11955         * stdio-common/printf_fphex.c: Likewise.
11956         * stdio-common/printf_size.c: Likewise.
11958         * math/e_exp10.c: Include math_private.h using <...> not "...".
11959         * math/e_exp10f.c: Likewise.
11960         * math/e_exp10l.c: Likewise.
11961         * math/e_exp2l.c: Likewise.
11962         * math/e_j0l.c: Likewise.
11963         * math/e_j1l.c: Likewise.
11964         * math/e_jnl.c: Likewise.
11965         * math/e_lgammal_r.c: Likewise.
11966         * math/e_rem_pio2l.c: Likewise.
11967         * math/e_scalb.c: Likewise.
11968         * math/e_scalbf.c: Likewise.
11969         * math/e_scalbl.c: Likewise.
11970         * math/k_cosl.c: Likewise.
11971         * math/k_sinl.c: Likewise.
11972         * math/k_tanl.c: Likewise.
11973         * math/s_cacoshf.c: Likewise.
11974         * math/s_catan.c: Likewise.
11975         * math/s_catanf.c: Likewise.
11976         * math/s_catanh.c: Likewise.
11977         * math/s_catanhf.c: Likewise.
11978         * math/s_catanhl.c: Likewise.
11979         * math/s_catanl.c: Likewise.
11980         * math/s_ccosh.c: Likewise.
11981         * math/s_ccoshf.c: Likewise.
11982         * math/s_ccoshl.c: Likewise.
11983         * math/s_cexp.c: Likewise.
11984         * math/s_cexpf.c: Likewise.
11985         * math/s_cexpl.c: Likewise.
11986         * math/s_clog.c: Likewise.
11987         * math/s_clog10.c: Likewise.
11988         * math/s_clog10f.c: Likewise.
11989         * math/s_clog10l.c: Likewise.
11990         * math/s_clogf.c: Likewise.
11991         * math/s_clogl.c: Likewise.
11992         * math/s_csin.c: Likewise.
11993         * math/s_csinf.c: Likewise.
11994         * math/s_csinh.c: Likewise.
11995         * math/s_csinhf.c: Likewise.
11996         * math/s_csinhl.c: Likewise.
11997         * math/s_csinl.c: Likewise.
11998         * math/s_csqrt.c: Likewise.
11999         * math/s_csqrtf.c: Likewise.
12000         * math/s_csqrtl.c: Likewise.
12001         * math/s_ctan.c: Likewise.
12002         * math/s_ctanf.c: Likewise.
12003         * math/s_ctanh.c: Likewise.
12004         * math/s_ctanhf.c: Likewise.
12005         * math/s_ctanhl.c: Likewise.
12006         * math/s_ctanl.c: Likewise.
12007         * math/s_ldexp.c: Likewise.
12008         * math/s_ldexpf.c: Likewise.
12009         * math/s_ldexpl.c: Likewise.
12010         * math/s_significand.c: Likewise.
12011         * math/s_significandf.c: Likewise.
12012         * math/s_significandl.c: Likewise.
12013         * math/w_acos.c: Likewise.
12014         * math/w_acosf.c: Likewise.
12015         * math/w_acosh.c: Likewise.
12016         * math/w_acoshf.c: Likewise.
12017         * math/w_acoshl.c: Likewise.
12018         * math/w_acosl.c: Likewise.
12019         * math/w_asin.c: Likewise.
12020         * math/w_asinf.c: Likewise.
12021         * math/w_asinl.c: Likewise.
12022         * math/w_atan2.c: Likewise.
12023         * math/w_atan2f.c: Likewise.
12024         * math/w_atan2l.c: Likewise.
12025         * math/w_atanh.c: Likewise.
12026         * math/w_atanhf.c: Likewise.
12027         * math/w_atanhl.c: Likewise.
12028         * math/w_cosh.c: Likewise.
12029         * math/w_coshf.c: Likewise.
12030         * math/w_coshl.c: Likewise.
12031         * math/w_dremf.c: Likewise.
12032         * math/w_exp10.c: Likewise.
12033         * math/w_exp10f.c: Likewise.
12034         * math/w_exp10l.c: Likewise.
12035         * math/w_exp2.c: Likewise.
12036         * math/w_exp2f.c: Likewise.
12037         * math/w_fmod.c: Likewise.
12038         * math/w_fmodf.c: Likewise.
12039         * math/w_fmodl.c: Likewise.
12040         * math/w_hypot.c: Likewise.
12041         * math/w_hypotf.c: Likewise.
12042         * math/w_hypotl.c: Likewise.
12043         * math/w_j0.c: Likewise.
12044         * math/w_j0f.c: Likewise.
12045         * math/w_j0l.c: Likewise.
12046         * math/w_j1.c: Likewise.
12047         * math/w_j1f.c: Likewise.
12048         * math/w_j1l.c: Likewise.
12049         * math/w_jn.c: Likewise.
12050         * math/w_jnf.c: Likewise.
12051         * math/w_jnl.c: Likewise.
12052         * math/w_lgamma.c: Likewise.
12053         * math/w_lgamma_r.c: Likewise.
12054         * math/w_lgammaf.c: Likewise.
12055         * math/w_lgammaf_r.c: Likewise.
12056         * math/w_lgammal.c: Likewise.
12057         * math/w_lgammal_r.c: Likewise.
12058         * math/w_log.c: Likewise.
12059         * math/w_log10.c: Likewise.
12060         * math/w_log10f.c: Likewise.
12061         * math/w_log10l.c: Likewise.
12062         * math/w_log2.c: Likewise.
12063         * math/w_log2f.c: Likewise.
12064         * math/w_log2l.c: Likewise.
12065         * math/w_logf.c: Likewise.
12066         * math/w_logl.c: Likewise.
12067         * math/w_pow.c: Likewise.
12068         * math/w_powf.c: Likewise.
12069         * math/w_powl.c: Likewise.
12070         * math/w_remainder.c: Likewise.
12071         * math/w_remainderf.c: Likewise.
12072         * math/w_remainderl.c: Likewise.
12073         * math/w_scalb.c: Likewise.
12074         * math/w_scalbf.c: Likewise.
12075         * math/w_scalbl.c: Likewise.
12076         * math/w_sinh.c: Likewise.
12077         * math/w_sinhf.c: Likewise.
12078         * math/w_sinhl.c: Likewise.
12079         * math/w_sqrt.c: Likewise.
12080         * math/w_sqrtf.c: Likewise.
12081         * math/w_sqrtl.c: Likewise.
12082         * math/w_tgamma.c: Likewise.
12083         * math/w_tgammaf.c: Likewise.
12084         * math/w_tgammal.c: Likewise.
12086         * po/ja.po: Update from translation team.
12088 2011-09-29  Andreas Jaeger  <aj@suse.de>
12090         [BZ #13179]
12091         * sunrpc/netname.c (netname2host): Fix logic.
12093         [BZ #6779]
12094         [BZ #6783]
12095         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
12096         correctly.
12097         * math/w_remainder.c (__remainder): Likewise.
12098         * math/w_remainderf.c (__remainderf): Likewise.
12099         * math/libm-test.inc (remainder_test): Add test cases.
12101 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12103         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
12104         sdiv_qrnnd.
12106 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
12108         * string/test-memcmp.c: Avoid unncessary #defines.
12109         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
12111 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12113         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
12114         Use new sse2 version for core i3 - i7 as it's faster
12115         than sse42 version.
12116         (bit_Prefer_PMINUB_for_stringop): New.
12117         * sysdeps/x86_64/rawmemchr.S: Update.
12118         Replace with faster SSE2 version.
12119         * sysdeps/x86_64/memrchr.S: New file.
12120         * sysdeps/x86_64/memchr.S: Update.
12121         Replace with faster SSE2 version.
12123 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
12125         * elf/dl-load.c (lose): Add cast to avoid warning.
12127 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
12129         * po/ca.po: Update from translation team.
12131         * inet/getnetgrent_r.c: Hook up nscd.
12132         * nscd/Makefile (routines): Add nscd_netgroup.
12133         (nscd-modules): Add netgroupcache.
12134         (CFLAGS-netgroupcache.c): Define.
12135         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
12136         (cache_search): Add const to second parameter.
12137         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
12138         INNETGR.
12139         (dbs): Add netgrdb entry.
12140         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
12141         (verify_persistent_db): Handle netgrdb.
12142         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
12143         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
12144         GETFDNETGR.
12145         (netgroup_response_header): Define.
12146         (innetgroup_response_header): Define.
12147         (datahead): Add netgroup_response_header and innetgroup_response_header
12148         elements.
12149         * nscd/nscd.conf: Add entries for netgroup cache.
12150         * nscd/nscd.h (dbtype): Add netgrdb.
12151         (_PATH_NSCD_NETGROUP_DB): Define.
12152         (netgroup_iov_disabled): Declare.
12153         (xmalloc, xcalloc, xrealloc): Move declarations here.
12154         (cache_search): Adjust prototype.
12155         Add netgroup-related prototypes.
12156         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
12157         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
12158         (__nscd_innetgr): Declare.
12159         * nscd/selinux.c (perms): Use access_vector_t as element type and
12160         add netgroup-related initializers.
12161         * nscd/netgroupcache.c: New file.
12162         * nscd/nscd_netgroup.c: New file.
12163         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
12164         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
12165         For four parameters use innetgr.
12166         * nss/nss_files/files-init.c: Add definition and callback for netgr.
12167         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
12168         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
12169         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
12171         * nscd/connections.c (register_traced_file): Don't register file
12172         for disabled databases.
12174 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
12176         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
12178         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
12179         from tree and freeing node.
12181 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
12183         * nss/nsswitch.c (__nss_database_lookup): Handle
12184         nss_parse_service_list out of memory case.
12186 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
12188         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
12189         out of memory case.
12191 2011-10-04  Andreas Schwab  <schwab@redhat.com>
12193         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
12194         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
12195         pass it down.
12196         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
12197         elf_machine_rela, elf_machine_lazy_rel.
12198         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
12199         (ELF_DYNAMIC_DO_REL): Likewise.
12200         (ELF_DYNAMIC_DO_RELA): Likewise.
12201         (ELF_DYNAMIC_RELOCATE): Likewise.
12202         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
12203         to ELF_DYNAMIC_DO_REL.
12204         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
12205         (dl_main): In trace mode always set __RTLD_NOIFUNC.
12206         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
12207         elf_machine_rela.
12208         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
12209         skip_ifunc, don't call ifunc function if non-zero.
12210         (elf_machine_rela): Likewise.
12211         (elf_machine_lazy_rel): Likewise.
12212         (elf_machine_lazy_rela): Likewise.
12213         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12214         (elf_machine_lazy_rel): Likewise.
12215         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12216         Likewise.
12217         (elf_machine_lazy_rel): Likewise.
12218         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12219         Likewise.
12220         (elf_machine_lazy_rel): Likewise.
12221         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
12222         (elf_machine_lazy_rel): Likewise.
12223         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
12224         (elf_machine_lazy_rel): Likewise.
12225         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12226         (elf_machine_lazy_rel): Likewise.
12227         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
12228         (elf_machine_lazy_rel): Likewise.
12229         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
12230         (elf_machine_lazy_rel): Likewise.
12231         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12232         (elf_machine_lazy_rel): Likewise.
12234 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
12236         * nss/nss_files/files-init.c (_nss_files_init): Use static
12237         initialization for all the *_traced_file variables.
12239 2011-09-28  Andreas Schwab  <schwab@redhat.com>
12241         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12243 2011-09-27  Roland McGrath  <roland@hack.frob.com>
12245         [BZ #13226]
12246         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
12248 2011-09-27  Andreas Schwab  <schwab@redhat.com>
12250         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12251         Reread the line before reparsing it.
12253 2011-09-26  Andreas Schwab  <schwab@redhat.com>
12255         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
12257 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
12258             Maxim Kuvyrkov  <maxim@codesourcery.com>
12259             Joseph Myers  <joseph@codesourcery.com>
12261         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
12262         if needed for __stack_chk_guard.
12264 2011-09-19  Roland McGrath  <roland@hack.frob.com>
12266         * sysdeps/posix/spawni.c (script_execute): Always define it.
12267         It will be optimized away if unused.
12268         (maybe_script_execute): New function.
12269         (__spawni): Call it.
12271         * Makerules: Don't include tls.make.
12272         (config-tls): Always set to thread.
12273         * tls.make.c: File removed.
12275 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
12277         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
12278         * config.make.in (CPPFLAGS-config): New substituted variable.
12280 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
12282         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
12284         [BZ #13192]
12285         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
12286         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
12288 2011-09-15  Roland McGrath  <roland@hack.frob.com>
12290         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
12291         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
12292         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
12293         (CALL_FAIL): Likewise.
12294         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
12295         (CALL_FAIL): Macro removed.
12296         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
12298 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
12300         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
12301         for __FINITE_MATH_ONLY__ == 1.
12303 2011-09-15  Andreas Schwab  <schwab@redhat.com>
12305         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
12306         __ieee754_sqrt instead of sqrt.
12307         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
12308         __ieee754_sqrtf instead of sqrtf.
12309         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
12310         __floorf instead of floorf.
12311         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
12312         __floorf, __truncf instead of floorf, truncf.
12314 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
12316         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
12318         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
12319         __extern_always_inline.
12320         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
12321         32-bit.
12323 2011-09-14  Andreas Schwab  <schwab@redhat.com>
12325         * elf/rtld.c (dl_main): Also relocate in dependency order when
12326         doing symbol dependency testing.
12328 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
12330         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12331         Always define `refsym'.
12333 2011-09-13  Andreas Schwab  <schwab@redhat.com>
12335         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
12336         (__FD_ELT): Renamed from __FDELT.
12337         * misc/bits/select2.h (__FD_ELT): Likewise.
12338         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
12339         __FD_MASK instead of __FDELT, __FDMASK.
12340         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
12341         Likewise.
12342         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
12343         Likewise.
12345         * elf/Makefile (gen-ldd): Fix pattern.
12347         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
12348         (init_tls): Likewise.
12350 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
12352         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
12354 2011-09-12  Andreas Schwab  <schwab@redhat.com>
12356         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
12357         `struct cmsghdr *' instead of `void *'.
12358         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
12359         Likewise.
12361 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
12363         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
12364         if non-absolute.
12365         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
12366         ldd_rewrite_script.
12368 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
12370         * configure.in: Remove --with-tls option.
12371         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
12372         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
12373         out in case it is missing.
12374         * sysdeps/ia64/elf/configure.in: Likewise.
12375         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
12376         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
12377         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
12378         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
12379         * sysdeps/sh/elf/configure.in: Likewise.
12380         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
12381         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12382         * sysdeps/x86_64/elf/configure.in: Likewise.
12383         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
12384         * sysdeps/mach/hurd/tls.h: Likewise.
12386         [BZ #13067]
12387         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
12389         [BZ #13090]
12390         * configure.in: Fix use of AC_INIT.
12392         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
12394 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
12396         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
12397         __set_errno.
12398         * malloc/hooks.c: Likewise.
12400         [BZ #11929]
12401         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
12402         variables statically.
12403         (narenas): Initialize.
12404         (list_lock): Initialize.
12405         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
12406         initializtion of main_arena and list_lock.  Small cleanups.
12407         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
12408         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
12409         Add initializers to main_arena and mp_.
12410         (malloc_state): Remove pagesize member.  Change all users to use
12411         GLRO(dl_pagesize).
12413         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
12414         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
12415         is always initialized.
12417         * malloc/malloc.c: Removed unused configurations and dead code.
12418         * malloc/arena.c: Likewise.
12419         * malloc/hooks.c: Likewise.
12420         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
12422         * include/tls.h: Removed.  USE___THREAD must always be defined.
12423         * bits/libc-tsd.h: Don't handle !USE___THREAD.
12424         * elf/dl-libc.c: Likewise.
12425         * elf/dl-tsd.c: Likewise.
12426         * include/errno.h: Likewise.
12427         * include/netdb.h: Likewise.
12428         * include/resolv.h: Likewise.
12429         * inet/herrno-loc.c: Likewise.
12430         * inet/herrno.c: Likewise.
12431         * malloc/arena.c: Likewise.
12432         * malloc/hooks.c: Likewise.
12433         * malloc/malloc.c: Likewise.
12434         * resolv/res-state.c: Likewise.
12435         * resolv/res_libc.c: Likewise.
12436         * sysdeps/i386/dl-machine.h: Likewise.
12437         * sysdeps/ia64/dl-machine.h: Likewise.
12438         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12439         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12440         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12441         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12442         * sysdeps/sh/dl-machine.h: Likewise.
12443         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12444         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12445         * sysdeps/unix/i386/sysdep.S: Likewise.
12446         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
12447         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
12448         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
12449         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
12450         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
12451         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
12452         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
12453         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12454         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12455         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12456         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12457         * sysdeps/x86_64/dl-machine.h: Likewise.
12458         * tls.make.c: Likewise.
12460         * configure.in: Remove --with-__thread option.  Make tests for
12461         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
12462         tls_model attribute fail if no support is available.  Remove
12463         USE_IN_LIBIO.
12464         * Makeconfig: Adjust for dropped configure option.  All features are
12465         now mandatory.
12466         * Makerules: Likewise.
12467         * Versions.def: Likewise.
12468         * argp/argp-fmtstream.c: Likewise.
12469         * argp/argp-fmtstream.h: Likewise.
12470         * argp/argp-help.c: Likewise.
12471         * assert/assert.c: Likewise.
12472         * config.h.in: Likewise.
12473         * config.make.in: Likewise.
12474         * configure: Likewise.
12475         * configure.in: Likewise.
12476         * csu/Versions: Likewise.
12477         * csu/init.c: Likewise.
12478         * elf/tst-audit2.c: Likewise.
12479         * elf/tst-tls10.c: Likewise.
12480         * elf/tst-tls10.h: Likewise.
12481         * elf/tst-tls11.c: Likewise.
12482         * elf/tst-tls12.c: Likewise.
12483         * elf/tst-tls14.c: Likewise.
12484         * elf/tst-tlsmod11.c: Likewise.
12485         * elf/tst-tlsmod12.c: Likewise.
12486         * elf/tst-tlsmod13.c: Likewise.
12487         * elf/tst-tlsmod13a.c: Likewise.
12488         * elf/tst-tlsmod14a.c: Likewise.
12489         * elf/tst-tlsmod15b.c: Likewise.
12490         * elf/tst-tlsmod16a.c: Likewise.
12491         * elf/tst-tlsmod16b.c: Likewise.
12492         * elf/tst-tlsmod7.c: Likewise.
12493         * elf/tst-tlsmod8.c: Likewise.
12494         * elf/tst-tlsmod9.c: Likewise.
12495         * gmon/gmon.c: Likewise.
12496         * grp/fgetgrent_r.c: Likewise.
12497         * grp/putgrent.c: Likewise.
12498         * hurd/fopenport.c: Likewise.
12499         * include/libc-symbols.h: Likewise.
12500         * include/tls.h: Likewise.
12501         * intl/gettextP.h: Likewise.
12502         * intl/loadinfo.h: Likewise.
12503         * locale/global-locale.c: Likewise.
12504         * locale/localeinfo.h: Likewise.
12505         * mach/devstream.c: Likewise.
12506         * malloc/arena.c: Likewise.
12507         * malloc/set-freeres.c: Likewise.
12508         * misc/err.c: Likewise.
12509         * misc/getttyent.c: Likewise.
12510         * misc/mntent_r.c: Likewise.
12511         * posix/getopt.c: Likewise.
12512         * posix/wordexp.c: Likewise.
12513         * pwd/fgetpwent_r.c: Likewise.
12514         * resolv/Versions: Likewise.
12515         * resolv/res_hconf.c: Likewise.
12516         * shadow/fgetspent_r.c: Likewise.
12517         * shadow/putspent.c: Likewise.
12518         * stdio-common/printf_fphex.c: Likewise.
12519         * stdio-common/tmpfile.c: Likewise.
12520         * stdlib/abort.c: Likewise.
12521         * stdlib/fmtmsg.c: Likewise.
12522         * sunrpc/auth_unix.c: Likewise.
12523         * sunrpc/clnt_perr.c: Likewise.
12524         * sunrpc/clnt_tcp.c: Likewise.
12525         * sunrpc/clnt_udp.c: Likewise.
12526         * sunrpc/clnt_unix.c: Likewise.
12527         * sunrpc/openchild.c: Likewise.
12528         * sunrpc/svc_simple.c: Likewise.
12529         * sunrpc/svc_tcp.c: Likewise.
12530         * sunrpc/svc_udp.c: Likewise.
12531         * sunrpc/svc_unix.c: Likewise.
12532         * sunrpc/xdr.c: Likewise.
12533         * sunrpc/xdr_array.c: Likewise.
12534         * sunrpc/xdr_rec.c: Likewise.
12535         * sunrpc/xdr_ref.c: Likewise.
12536         * sunrpc/xdr_stdio.c: Likewise.
12538 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
12540         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12542 2011-07-03  Andreas Jaeger  <aj@suse.de>
12544         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
12545         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
12546         regenerate with gen-libm-tests.pl.
12548 2010-05-12  Petr Baudis  <pasky@suse.cz>
12550         [BZ #11589]
12551         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
12552         around j0() zero points by switching to j1().
12553         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12554         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12555         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12556         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12558 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
12560         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
12561         instead of 0.
12562         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
12563         instead of 0.                              .
12564         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12565         Patch in part by Pavel Roskin <proski@gnu.org>.
12567         [BZ #13138]
12568         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
12569         realloc.
12570         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
12571         Free memory block if necessary.
12573         [BZ #12847]
12574         * libio/genops.c (INTDEF): For string streams the _lock pointer can
12575         be NULL.  Don't lock in this case.
12577 2011-09-09  Roland McGrath  <roland@hack.frob.com>
12579         * elf/elf.h (ELFOSABI_GNU): New macro.
12580         (ELFOSABI_LINUX): Define to that.
12582 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
12584         * string/strncat.c (strncat): Undef the symbol in case it has been
12585         defined in bits/string.h.
12587 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
12589         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
12591         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
12592         link map.
12594 2011-08-17  Andreas Jaeger  <aj@suse.de>
12596         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
12598 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
12599             Ian Lance Taylor  <iant@google.com>
12601         * math/libm-test.inc (lround_test): New testcase.
12602         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
12604 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
12606         * Makefile: Remove support for automatic cvs check-ins.
12607         * Makerules: Likewise.
12608         * config.make.in: Likewise.
12609         * configure.in: Likewise.
12610         * intl/Makefile: Likewise.
12611         * locale/Makefile: Likewise.
12612         * po/Makefile: Likewise.
12613         * posix/Makefile: Likewise.
12614         * sysdeps/gnu/Makefile: Likewise.
12615         * sysdeps/mach/hurd/Makefile: Likewise.
12616         * sysdeps/sparc/sparc32/Makefile: Likewise.
12618         [BZ #13118]
12619         * posix/Makefile (bug-regex32-ENV): Define.
12620         Patch by John Stanley <jpsinthemix@verizon.net>.
12622         * misc/Makefile (headers): Add bits/select2.h.
12623         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
12624         * misc/bits/select2.h: New file.
12625         * include/bits/select2.h: New file.
12626         * debug/Makefile (routines): Add fdelt_chk.
12627         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
12628         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
12629         FD_ISSET.
12630         * debug/fdelt_chk.c: New file.
12632         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
12633         * wcsmbs/test-wmemcmp.c: Likewise.
12634         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
12635         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
12637 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12639         * string/Makefile (strop-tests): Add memcmp.
12640         * string/test-wmemcmp.c: New file.
12641         * string/test-memcmp.c: Add wmemcmp support.
12643 2011-09-08  Roland McGrath  <roland@hack.frob.com>
12645         [BZ #13153]
12646         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
12647         2011-07-19 change.
12649         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
12650         garbage value in a __mach_port_mod_refs call in the cases of the
12651         task-self and thread-self ports.
12653 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12655         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
12657 2011-09-08  Andreas Schwab  <schwab@redhat.com>
12659         * elf/dl-load.c (lose): Check for non-null L.
12661 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
12663         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
12665         * elf/dl-libc.c (dlerror_run): Pass back error code from
12666         dl_catch_error.
12668         [BZ #13123]
12669         * elf/dl-load.c (lose): Free l_origin if it is valid.
12671         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
12672         names.
12673         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
12674         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
12675         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
12676         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
12677         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
12678         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
12680 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12682         * sysdeps/powerpc/fpu/e_hypot.c: New file.
12683         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
12684         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
12685         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
12686         * sysdeps/powerpc/fpu/k_cosf.c: New file.
12687         * sysdeps/powerpc/fpu/k_sinf.c: New file.
12688         * sysdeps/powerpc/fpu/s_cosf.c: New file.
12689         * sysdeps/powerpc/fpu/s_sinf.c: New file.
12690         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
12691         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
12693 2011-08-15  Alan Modra  <amodra@gmail.com>
12695         [BZ #13092]
12696         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
12697         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
12698         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
12699         ppc_mcount to static-only-routines.
12700         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
12701         __mcount_internal.
12702         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
12703         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
12705 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
12707         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
12708         for finite and infinity parameters.
12710 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12712         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
12713         and add nop instructions for throughput optimization.
12714         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
12716 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
12718         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
12719         aligned copy for power7 with vector-scalar instructions.
12720         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
12722 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
12724         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
12725         AVX check.
12727 2011-09-07  Andreas Schwab  <schwab@redhat.com>
12729         [BZ #13144]
12730         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
12731         last change.
12733 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
12735         * sysdeps/unix/sysv/linux/x86_64/init-first.c
12736         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
12737         syscall wrapper around clock_gettime in __vdso_clock_gettime.
12738         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
12739         clock_gettime.
12741 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
12743         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
12744         Forgot to demangle the pointer.
12746         * sysdeps/i386/sysdep.h: Define atom_text_section.
12747         * sysdeps/x86_64/sysdep.h: Likewise.
12748         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
12749         section with atom_text_section.
12750         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
12751         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
12752         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
12753         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
12754         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
12756         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
12757         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
12758         already be defined.  Change to take two parameters and don't assign
12759         result to variable.  Adjust all users.
12760         Define INTERNAL_GETTIME if not already defined.
12761         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
12762         call.
12763         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
12764         HAVE_CLOCK_GETTIME_VSYSCALL.
12765         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
12767         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
12768         gettimeofday vsyscall, just use time.
12770 2011-09-06  Andreas Schwab  <schwab@redhat.com>
12772         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
12773         <errno.h>.
12775 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
12777         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
12778         syscall on x86-64.
12779         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
12780         syscall.
12781         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
12782         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
12783         syscall if possible.
12785 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
12787         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
12788         e_ident.  Don't pass to find_mapsXX.
12789         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
12791 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12793         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12794         strchr-sse2-no-bsf strrchr-sse2-no-bsf
12795         * sysdeps/x86_64/multiarch/strchr.S: Update.
12796         Check bit_slow_BSF bit.
12797         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
12798         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
12799         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
12801 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
12803         [BZ #13134]
12804         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
12805         before glibc 2.15.
12806         (tryshell): Define.
12807         (__spawni): Change last parameter to be flag.  Test
12808         SPAWN_XFLAGS_USE_PATH flag to use path or not.
12809         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
12810         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
12811         * posix/spawni.c: Likewise.
12812         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
12813         * posix/spawnp.c: Likewise.  Change normal version to use
12814         SPAWN_XFLAGS_USE_PATH.
12815         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
12816         SPAWN_XFLAGS_TRY_SHELL.
12818         [BZ #13150]
12819         * posix/glob.h: Remove gcc 1.x support.
12821         [BZ #13068]
12822         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
12824 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12826         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12827         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
12828         strrchr-sse2-bsf
12829         * sysdeps/i386/i686/multiarch/strchr.S: New file.
12830         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
12831         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
12832         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
12833         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
12834         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
12836 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12838         * sysdeps/x86_64/wcscmp.S: New file.
12840         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
12841         wcscmp-c wcscmp-sse2
12842         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
12843         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
12844         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
12845         * wcsmbs/wcscmp.c: Allow renaming.
12847 2011-09-05  David S. Miller  <davem@davemloft.net>
12849         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
12850         stack slot, rather than the struct return pointer slot.
12851         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
12852         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
12853         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
12854         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
12856 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
12858         * po/ja.po: Update from translation team.
12860         [BZ #13144]
12861         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
12862         kernel in 64-bit binaries.
12864 2011-09-01  David S. Miller  <davem@davemloft.net>
12866         * elf/elf.h (HWCAP_SPARC_*): Move to..
12867         * sysdeps/sparc/sysdep.h: this new file and add new values.
12868         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
12869         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
12870         _DL_HWCAP_COUNT to 24.
12871         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
12872         entries.
12873         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
12874         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
12875         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
12876         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
12877         instead of magic constants.
12878         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12880 2011-08-31  David S. Miller  <davem@davemloft.net>
12882         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
12883         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
12884         Reimplement to do errno handling inline.
12885         (SYSCALL_ERROR_HANDLER): New macro.
12886         (__SYSCALL_STRING): Do not do errno handling in asm.
12887         (__CLONE_SYSCALL_STRING): Delete.
12888         (__INTERNAL_SYSCALL_STRING): Delete.
12889         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
12890         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
12891         (PSEUDO): Reimplement to do errno handling inline.
12892         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
12893         (SYSCALL_ERROR_HANDLER): New macro.
12894         (__SYSCALL_STRING): Do not do errno handling in asm.
12895         (__CLONE_SYSCALL_STRING): Delete.
12896         (__INTERNAL_SYSCALL_STRING): Delete.
12897         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
12898         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
12899         i386.
12900         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
12901         (inline_syscall*): Add 'err' argument.
12902         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
12903         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
12904         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
12905         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
12907         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
12908         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
12910 2011-08-30  Andreas Schwab  <schwab@redhat.com>
12912         * elf/rtld.c (dl_main): Relocate objects in dependency order.
12914 2011-08-29  Jiri Olsa <jolsa@redhat.com>
12916         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
12917         directive.
12919 2011-08-24  David S. Miller  <davem@davemloft.net>
12921         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
12923 2011-08-24  Andreas Schwab  <schwab@redhat.com>
12925         * elf/Makefile: Add rules to build and run unload8 test.
12926         * elf/unload8.c: New file.
12927         * elf/unload8mod1.c: New file.
12928         * elf/unload8mod1x.c: New file.
12929         * elf/unload8mod2.c: New file.
12930         * elf/unload8mod3.c: New file.
12932         * elf/dl-close.c (_dl_close_worker): Reset private search list if
12933         it wasn't used.
12935 2011-08-23  David S. Miller  <davem@davemloft.net>
12937         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
12938         subtract stack bias.
12939         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
12940         %sp not %fp in calculations.
12941         (_JMPBUF_UNWINDS_ADJ): Likewise.
12943         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
12944         (aio_suspend): Call it to force an exception region around the
12945         AIO_MISC_WAIT() invocation.
12947 2011-08-23  Andreas Schwab  <schwab@redhat.com>
12949         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
12950         backslash.
12952 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
12954         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
12955         protection macro.
12956         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
12957         and <dl-machine.h>.
12958         (Elf64_FuncDesc): Remove.
12960 2011-08-22  David S. Miller  <davem@davemloft.net>
12962         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
12963         sigaltstack check, add missing cfi directives.
12964         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
12965         missing cfi directives, and sigaltstack handling.
12967 2011-08-16  Andreas Schwab  <schwab@redhat.com>
12969         [BZ #11724]
12970         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
12971         object is seen twice.
12972         * elf/dl-fini.c (_dl_sort_fini): Likewise.
12974         * elf/Makefile (distribute): Add tst-initorder2.c.
12975         (tests): Add tst-initorder2.
12976         (modules-names): Add tst-initorder2a tst-initorder2b
12977         tst-initorder2c tst-initorder2d.  Add rules to build them.
12978         ($(objpfx)tst-initorder2.out): New rule.
12979         * elf/tst-initorder2.c: New file.
12980         * elf/tst-initorder2.exp: New file.
12982 2011-08-22  Andreas Schwab  <schwab@redhat.com>
12984         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
12986         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
12987         dependencies back to end of function.
12989         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
12990         $(elfobjdir)/ld.so.
12992 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
12994         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
12995         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
12996         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
12997         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12998         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
12999         of __vdso_gettimeofday.
13000         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
13001         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
13002         attribute_hidden.
13003         (_libc_vdso_platform_setup): Remove initialization of
13004         __vdso_gettimeofday and __vdso_time.
13006 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
13008         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
13009         and fgetc_unlocked.
13010         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
13011         getc_unlocked.
13013         * elf/dl-open.c (add_to_global): Report additions to the global scope
13014         for LD_DEBUG=scopes.
13015         (dl_open_worker): Also print scope of newly loaded dependencies.
13016         (_dl_show_scope): Indicate if there is no scope.
13018         [BZ #13114]
13019         * stdio-common/Makefile (tests): Add bug24.
13020         * stdio-common/bug24.c: New file.
13022 2011-08-19  Andreas Jaeger  <aj@suse.de>
13024         [BZ #13114]
13025         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
13026         non-existant file when using close-on-exec mode.
13028 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
13030         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
13031         the very first instruction.
13033         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
13034         the CFI state in the end.
13035         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
13036         inclusion of dl-trampoline.h.
13037         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
13039 2011-08-19  Andreas Schwab  <schwab@redhat.com>
13041         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
13042         expectations for long double.
13044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
13045         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
13047 2011-08-14  David S. Miller  <davem@davemloft.net>
13049         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
13050         artificual limit depends upon the system page size.
13052 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
13054         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
13055         * resolv/Makefile: Define CFLAGS-libresolv.
13057 2011-08-17  Andreas Schwab  <schwab@redhat.com>
13059         * nss/makedb.c (compute_tables): Make variables used in nested
13060         function static.
13062 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
13064         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
13065         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
13066         if buffer was too small.
13068         * elf/pldd.c (main): Attach to all threads in the process.
13069         Rewrite /proc handling to use *at functions.
13071 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
13073         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
13074         specifies first scope to show.
13075         (dl_open_worker): Update callers.  Move printing scope of new
13076         object to before the relocation.
13077         * elf/rtld.c (dl_main): Update _dl_show_scope call.
13078         * sysdeps/generic/ldsodefs.h: Update declaration.
13080         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
13081         string for the scope number.
13083 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
13085         * nscd/servicescache.c (cache_addserv): Make sure written is always
13086         initialized.
13088 2011-08-14  Roland McGrath  <roland@hack.frob.com>
13090         * sysdeps/i386/i486/bits/atomic.h
13091         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
13092         statement expression, so as to suppress "set but not used" warning.
13093         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
13095         * string/strncat.c (STRNCAT): Use prototype definition.
13097         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
13098         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
13099         -Iprograms here.
13100         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
13101         (localedef-modules): Add localedef.
13102         (locale-modules): Add locale.
13104         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
13105         * elf/rtld.c (dl_main): Invert order of assignment in last change,
13106         to avoid a warning.
13108 2011-08-14  David S. Miller  <davem@davemloft.net>
13110         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
13111         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
13113 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
13115         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
13116         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
13117         * elf/rtld.c (dl_main): Set l_name of vDSO.
13118         Call _dl_show_scope when DL_DEBUG_SCOPES.
13119         (process_dl_debug): Recognize scopes flag and also set it for all.
13120         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
13121         Declare _dl_show_scope.
13123         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
13124         (do_dlopen): Pass caller_dlopen to dl_open.
13125         (__libc_dlopen_mode): Initialize caller_dlopen.
13127         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
13128         of libc.  Make tolower call locale-independent.  Optimize a bit by
13129         using isdigit instead of isalnum.
13130         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
13132 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
13134         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
13135         was a dependency or dynamically loaded.
13137 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
13139         * intl/l10nflist.c: Allow architecture-specific pop function.
13140         * sysdeps/x86_64/l10nflist.c: New file.
13142         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
13143         classification.
13145 2011-08-10  Andreas Schwab  <schwab@redhat.com>
13147         * include/dirent.h: Add libc_hidden_proto for scandirat and
13148         scandirat64.  Don't declare __scandirat64.
13149         * dirent/scandirat.c: Add libc_hidden_def.
13150         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
13151         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
13153 2011-08-10  David S. Miller  <davem@davemloft.net>
13155         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
13156         enum.
13157         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
13158         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
13159         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
13161 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
13163         * Versions.def [libc]: Add GLIBC_2.15.
13164         * dirent/Makefile (routines): Add scandirat and scandirat64.
13165         * dirent/Versions [libc]: Export scandirat and scandirat64 for
13166         GLIBC_2.15.
13167         * dirent/dirent.h: Declare scandirat and scandirat64.
13168         * dirent/scandirat.c: New file.
13169         * dirent/scandirat64.c: New file.
13170         * sysdeps/wordsize-64/scandirat.c: New file.
13171         * sysdeps/wordsize-64/scandirat64.c: New file.
13172         * dirent/opendir.c: Define opendirat.
13173         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
13174         using scandirat.
13175         * dirent/scandir64.c: Adjust for scandir.c change.
13176         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
13177         __scandirat64, and __scandir_cancel_handler.
13178         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
13179         additional parameter and use openat instead of open (outside of ld.so).
13180         Add new __opendir as wrapper around __opendirat.
13181         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
13182         here without requiring old scandirat implementation.
13184 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
13186         * dirent/scandir.c (cancel_handler): Renamed to
13187         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
13188         defined.  Adjust users.
13189         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
13190         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
13192 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
13194         * string/test-string.h (IMPL): Use __STRING to expand name and then
13195         stringify it.
13197         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
13198         of cleanups.
13200 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13202         * string/Makefile: Update.
13203         (strop-tests): Append strncat.
13204         * string/test-wcscmp.c: New file.
13205         New comprehensive test for wcscmp.
13206         * string/test-strcmp.c: Update.
13207         (WIDE): New define.
13209 2011-07-22  Andreas Schwab  <schwab@redhat.com>
13211         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
13212         line.
13214 2011-07-26  Andreas Schwab  <schwab@redhat.com>
13216         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
13217         encoding to ACE if AI_IDN.
13219 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
13221         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
13222         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
13224 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13226         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
13227         Fix overflow bug in strncat.
13228         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
13230         * string/test-strncat.c: Update.
13231         Add new tests for checking overflow bugs.
13233 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13235         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13236         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
13237         * sysdeps/i386/i686/multiarch/strcat.S: New file.
13238         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
13239         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
13240         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
13241         * sysdeps/i386/i686/multiarch/strncat.S: New file.
13242         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
13243         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
13245         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
13246         (USE_AS_STRCAT): Define.
13247         Add strcat and strncat support.
13248         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
13250 2011-07-25  Andreas Schwab  <schwab@redhat.com>
13252         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
13253         __n bigger than INT_MAX+1.
13254         (__strncmp_g): Likewise.
13256 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
13258         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
13259         * libio/stido.h: Likewise.
13261         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
13262         (AF_NFC): Define.
13263         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
13264         (AF_NFC): Define.
13266         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
13267         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
13268         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
13269         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
13270         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
13272         [BZ #13021]
13273         * scripts/test-installation.pl: Don't expect libnss_test1 to be
13274         installed.
13276         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
13277         typo.
13278         (_dl_x86_64_save_sse): Likewise.
13280 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
13282         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
13283         OSXSAVE.
13284         (_dl_x86_64_save_sse): Likewise.
13286         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
13288         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
13290 2011-07-21  Andreas Schwab  <schwab@redhat.com>
13292         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
13293         change.
13294         (_dl_x86_64_save_sse): Use correct AVX check.
13296 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13298         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
13299         bug in strncpy/strncat.
13300         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
13302 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
13304         * string/tester.c (test_strcat): Add tests for different alignments
13305         of source and destination.
13306         (test_strncat): Likewise.
13308 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
13310         [BZ #12852]
13311         * posix/glob.c (glob): Check passed in values before using them in
13312         expressions to avoid some overflows.
13313         (glob_in_dir): Likewise.
13315         [BZ #13007]
13316         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
13317         check for AVX enablement so that we don't crash with old kernels and
13318         new hardware.
13319         * elf/tst-audit4.c: Add same checks here.
13320         * elf/tst-audit6.c: Likewise.
13322         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
13324 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
13326         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
13328 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
13330         * po/cs.po: Update from translation team.
13331         * po/bg.po: Likewise.
13333 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
13335         * misc/sys/cdefs.h: Add support for const attribute.
13336         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
13337         to gnu_dev_{major,minor,makedev} functions.
13339 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
13341         * intl/dcigettext.c (get_output_charset): Add missing bracket.
13343 2011-07-20  Andreas Schwab  <schwab@redhat.com>
13345         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
13346         strlen results.
13348 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13350         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
13351         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
13352         register in order to avoid conflicts with the soft frame pointer
13353         being held in r11 when necessary.
13354         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
13355         (INTERNAL_VSYSCALL_NCS): Likewise.
13357 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
13359         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
13360         * elf/dl-fini.c (_dl_fini): Adjust caller.
13361         * elf/dl-close.c (_dl_close_worker): Likewise.
13362         * sysdeps/generic/ldsodefs.h: Adjust declaration.
13364 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
13366         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
13367         "aux_cache->nlibs < 0".
13369         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
13370         in the reload-count case.
13372 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13374         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13375         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
13376         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
13377         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
13378         * sysdeps/x86_64/multiarch/strcat.S: New file.
13379         * sysdeps/x86_64/multiarch/strncat.S: New file.
13380         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
13381         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
13382         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
13383         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
13384         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
13385         (USE_AS_STRCAT): Define.
13386         Add strcat and strncat support.
13387         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
13388         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
13389         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
13390         * string/strncat.c: Update.
13391         (USE_AS_STRNCAT): Define.
13392         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13393         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
13394         and i7.
13395         * sysdeps/x86_64/multiarch/init-arch.h
13396         (bit_Prefer_PMINUB_for_stringop): New.
13397         (index_Prefer_PMINUB_for_stringop): Likewise.
13398         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
13399         bit_Prefer_PMINUB_for_stringop.
13401 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
13403         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
13404         buffer64.
13405         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
13406         of casting of buffer.
13407         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
13408         buffer32 and buffer64.
13409         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
13410         writes instead of casting of buffer.
13411         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
13412         buffer32.
13413         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
13414         casting of buffer.
13416 2011-07-19  Andreas Schwab  <schwab@redhat.com>
13418         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
13420 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
13422         * nscd/nscd.c (termination_handler): Don't do anything for a database
13423         if it has not yet been initialized.
13425 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
13427         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
13429 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
13431         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
13433 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
13435         * po/nl.po: Update from translation team.
13436         * po/sv.po: Likewise.
13438 2011-07-16  Roland McGrath  <roland@hack.frob.com>
13440         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
13441         now disallowed by GCC.
13443         * configure.in (use-default-link): Default to yes if a test -shared
13444         link meets our qualifications.
13445         * configure: Regenerated.
13447         * config.make.in (output-format): New variable.
13448         * configure.in: Check for ld --print-output-format support.
13449         * configure: Regenerated.
13450         * Makerules ($(common-objpfx)format.lds)
13451         [$(output-format) != unknown]: Just use $(output-format),
13452         instead of the linker-script munging.
13454 2011-07-14  Roland McGrath  <roland@hack.frob.com>
13456         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
13457         of $(common-objpfx)shlib.lds.
13458         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
13460         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
13461         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
13463         * configure.in (-z relro check): Adjust test code to add a large
13464         writable data section after it.
13465         * configure: Regenerated.
13467 2011-07-11  Roland McGrath  <roland@hack.frob.com>
13469         * configure.in (-z relro check): Fix test code to make the variable
13470         truly const.
13471         * configure: Regenerated.
13473 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
13475         * nscd/nscd.h (struct traced_file): Define.
13476         (struct database_dyn): Remove inotify_descr, reset_res, and filename
13477         elements.  Add traced_files.
13478         (inotify_fd): Declare.
13479         (register_traced_file): Declare.
13480         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
13481         (inotify_fd): Export.
13482         (resolv_conf_descr): Remove.
13483         (nscd_init): Move inotify descriptor creation to main.
13484         Don't register files for notification here.
13485         (register_traced_file): New function.
13486         (invalidate_cache): Don't use reset_res to determine whether to call
13487         res_init, go through the list of registered files.
13488         (main_loop_poll): The inotify descriptors are now stored in the
13489         structures for the traced files.
13490         (main_loop_epoll): Likewise
13491         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
13492         to __nss_disable_nscd.
13493         * nscd/cache.c (prune_cache): There is no single inotify descriptor
13494         for a database anymore.  Check the records for all the registered
13495         files instead.
13496         * nss/Makefile (libnss_files-routines): Add files-init.
13497         (libnss_db-routines): Add db-init.
13498         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
13499         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
13500         * nss/nss_db/db-init.c: New file.
13501         * nss/nss_files/files-init.c: New file.
13502         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
13503         __nss_lookup_function.
13504         (__nss_lookup_function): Call nss_load_library.
13505         (nss_load_all_libraries): New function.
13506         (__nss_disable_nscd): Take parameter with callback function for files
13507         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
13508         used for the cached services.
13509         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
13510         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
13511         options for features to all the files in nscd.
13513         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
13515 2011-07-10  Roland McGrath  <roland@hack.frob.com>
13517         * csu/elf-init.c (__libc_csu_init): Comment typo.
13519 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
13521         * po/pl.po: Update from translation team.
13522         * po/ja.po: Likewise.
13523         * po/ru.po: Likewise.
13524         * po/ko.po: Likewise.
13525         * po/fr.po: Likewise.
13527 2011-07-09  Roland McGrath  <roland@hack.frob.com>
13529         * configure.in (.ctors/.dtors header and trailer check):
13530         Use an empirical test on a built program.
13531         * configure: Regenerated.
13533         * configure.in (-z relro check): Use an empirical test on a built DSO.
13534         Detect, but do not require, on ia64.
13535         * configure: Regenerated.
13537         * configure.in (READELF): Find it with AC_CHECK_TOOL.
13538         Update tests that use readelf to use $READELF instead.
13539         * configure: Regenerated.
13541 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
13543         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
13544         if the result is not used.
13546 2011-07-05  Andreas Jaeger  <aj@suse.de>
13548         [BZ#9696]
13549         * stdlib/tst-strtod.c: Add testcase.
13551 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
13553         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
13554         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
13555         The latter has a higher limit.  Take additional parameter to pass to
13556         the new function.
13557         (__pathconf): Pass file to __statfs_link_max.
13558         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
13559         __statfs_link_max.
13560         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
13561         __statfs_link_max.
13563         [BZ #12868]
13564         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
13565         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
13566         Handle Lustre.
13567         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
13568         (__statfs_filesize_max): Likewise.
13569         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
13571 2011-07-05  Andreas Jaeger  <aj@suse.de>
13573         * resolv/res_comp.c (dn_skipname): Remove unused variable.
13575 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
13577         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
13578         `status' variable.
13579         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
13580         Likewise.
13582 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
13584         * Makefile (strop-tests): Add strncat.
13585         * string/test-strncat.c: New file.
13587 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
13589         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
13591 2011-06-21  Andreas Jaeger  <aj@suse.de>
13593         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
13594         Copy rule from iconvdata/Makefile.
13596 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
13598         [BZ #12922]
13599         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
13600         but no long options are defined, just return 'W'.
13602 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
13604         [BZ #9696]
13605         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
13607 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
13609         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
13610         netgroups to read.
13611         (innetgr): Likewise.
13613 2011-07-05  Roland McGrath  <roland@hack.frob.com>
13615         * config.make.in (install_root): Default to $(DESTDIR).
13617 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
13619         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
13621 2011-07-02  Roland McGrath  <roland@hack.frob.com>
13623         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
13625         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
13626         containing directory rather than embedding absolute directory names.
13628         * scripts/check-local-headers.sh: Rewritten using awk.
13629         Match by word, not by line.  Print error messages for matches.
13630         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
13632         * Makerules [shlib-lds-flags empty]:
13633         ($(common-objpfx)libc_pic.opts): New target.
13634         ($(common-objpfx)libc_pic.os.clean): New target.
13635         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
13637         * config.make.in (OBJCOPY): New variable.
13638         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
13639         * configure: Regenerated.
13641         * config.make.in (use-default-link): New variable.
13642         * configure.in (use_default_link): Grok --with-default-link to set it.
13643         * configure: Regenerated.
13644         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
13645         (shlib-lds, shlib-lds-flags): Define to empty.
13647         * Makerules (shlib-lds): New variable.
13648         (shlib-lds-flags): New variable.
13649         (build-shlib, build-moduile, build-module-asneeded): Use it.
13650         ($(common-objpfx)libc.so): Use $(shlib-lds).
13651         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
13652         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
13654         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
13655         DT_FLAGS/DT_FLAGS_1 with zero flags.
13657         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
13658         linker script munging.
13660 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
13662         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
13663         as 128-bit value.
13664         * crypt/sha512.c (sha512_process_block): Perform total addition using
13665         128-bit if possible.
13666         (__sha512_finish_ctx): Likewise.
13667         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
13668         as 64-bit value.
13669         * crypt/sha256.c (SWAP64): Define.
13670         (sha256_process_block): Perform total addition using 64-bit if
13671         possible.
13672         (__sha256_finish_ctx): Likewise.
13674 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
13676         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
13677         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13678         * nscd/hstcache.c (cache_addhst): Likewise.
13679         * nscd/grpcache.c (cache_addgr): Likewise.
13680         * nscd/aicache.c (addhstaiX): Likewise
13681         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
13683 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
13685         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
13686         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13687         * nscd/hstcache.c (cache_addhst): Likewise.
13688         * nscd/grpcache.c (cache_addgr): Likewise.
13689         * nscd/aicache.c (addhstaiX): Likewise
13691 2011-07-01  Andreas Schwab  <schwab@redhat.com>
13693         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
13694         domain only when needed.
13696 2011-06-30  Andreas Schwab  <schwab@redhat.com>
13698         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
13699         is always restored.
13701 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
13703         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
13704         are re-adding the entry.
13705         * nscd/servicescache.c (cache_addserv): Likewise.
13707 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
13709         * sysdeps/generic/dl-irel.h: fix protection against multiple
13710         inclusions.
13711         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
13713 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
13715         [BZ #12935]
13716         * malloc/memusage.sh: Fix quoting in message.
13717         * debug/xtrace.sh: Likewise.
13719         * configure.in: Remove support for --experimental-malloc option, make
13720         it the default.
13721         * config.make.in: Likewise.
13722         * malloc/Makefile: Likewise.
13724 2011-06-27  Andreas Schwab  <schwab@redhat.com>
13726         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
13727         two-byte characters.
13729 2011-06-27  Roland McGrath  <roland@hack.frob.com>
13731         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
13732         AC_CACHE_CHECK invocation.
13733         * configure: Regenerated.
13735         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
13737 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
13739         [BZ #12350]
13740         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
13741         bit from old_res_options.
13743         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
13745         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
13746         value type for setfct.
13748 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
13750         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
13751         __gettimeofday instead of gettimeofday.
13753 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
13755         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
13757 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
13759         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
13761         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
13762         info.
13764 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13766         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13767         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
13768         strcpy-sse2-unaligned strncpy-sse2-unaligned
13769         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
13770         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
13771         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
13772         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
13773         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
13774         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
13775         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
13776         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
13777         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
13778         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
13779         (STRCPY): Support SSE2 and SSSE3 versions.
13781 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
13783         [BZ #12874]
13784         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
13785         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
13786         kernels which artificially limit size of requests.
13788 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13790         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13791         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
13792         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
13793         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
13794         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
13795         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
13796         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
13797         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
13798         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
13799         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
13800         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
13801         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
13802         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
13803         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
13804         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
13805         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13806         Enable unaligned load optimization for Intel Core i3, i5 and i7
13807         processors.
13808         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
13809         Define.
13810         (index_Fast_Unaligned_Load): Define.
13811         (HAS_FAST_UNALIGNED_LOAD): Define.
13813 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
13815         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
13817 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
13819         [BZ #12907]
13820         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
13821         until it is clear that the information is realy needed.
13822         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
13824 2011-06-22  Andreas Schwab  <schwab@redhat.com>
13826         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
13828 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
13830         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
13831         /sys/devices/system/cpu/online if it is usable.
13833         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
13834         reading the information from the /proc filesystem to once a second.
13836 2011-06-21  Andreas Jaeger  <aj@suse.de>
13838         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
13839         NULL after inclusion of kernel headers.
13841 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
13843         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
13844         calls to internal_setent.
13846         [BZ #12885]
13847         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
13848         addresses using gethostbyname4_r ignore IPv4 addresses.
13850         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
13851         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
13853         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
13855 2011-06-20  David S. Miller  <davem@davemloft.net>
13857         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
13858         inclusions.
13859         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
13861         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
13862         (elf_irel): Use it.
13863         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
13864         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
13865         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
13866         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
13867         * sysdeps/x86_64/dl-irel.h: Likewise.
13869         * elf/dl-runtime.c: Use elf_ifunc_invoke.
13870         * elf/dl-sym.c: Likewise.
13872 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
13874         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
13875         need to dereference resplen2.
13877 2011-06-14  Andreas Schwab  <schwab@redhat.com>
13879         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
13881 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
13883         * Makeconfig: Define vardbdir and inst_vardbdir.
13884         * nss/Makefile: Add rules to install db-Makefile.
13886         * nss/nss_db/db-XXX.c: Cleanup.
13888         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
13889         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
13890         GLIBC_PRIVATE.
13891         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
13892         * nss/makedb.c: Implement -g option to specify that value strings
13893         are generated and should not be added to table iterated over for
13894         get*ent calls.
13895         * nss/nss_db/db-initgroups.c: New file.
13897         * nss/getent.c: Add support for initgroups lookups through getgrouplist
13898         interface.
13900         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
13901         (internal_getgrouplist): Adjust to name change.
13902         Update use_initgroups_entry if this is not the first call.
13903         * nss/databases.def: Add initgroups entry.
13905         * nss/makedb.c (compute_tables): Check result of multiple hash table
13906         sizes to minimize maximum chain length.
13908 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
13910         * Versions.def: Add entry for libnss_db.
13911         * shlib-versions: Likewise.
13912         * nss/Makefile: Add rules to build libnss_db.
13913         * nss/Versions: Add libnss_db information.  Organize libnss_files
13914         entries better.
13915         * nss/db-Makefile: Add gshadow support.  Change rules for the new
13916         makedb progra.  Some minor improvements to generate smaller files.
13917         * nss/nss_db/nss_db.h: Move NSS database header data structures to
13918         here from...
13919         * nss/makedb.c: ...here.
13920         Improve database format to be smaller and require less memory at
13921         runtime.
13922         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
13923         db anymore.
13924         * nss/nss_db/db-netgrp.c: Likewise.
13925         * nss/nss_db/db-open.c: Likewise.
13926         * nss/nss_files/flies-XXX.x: Adjust comments.
13927         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
13928         * nss/nss_files/files-grp.c: Likewise.
13929         * nss/nss_files/files-hosts.c: Likewise.
13930         * nss/nss_files/files-network.c: Likewise.
13931         * nss/nss_files/files-proto.c: Likewise.
13932         * nss/nss_files/files-pwd.c: Likewise.
13933         * nss/nss_files/files-rpc.c: Likewise.
13934         * nss/nss_files/files-service.c: Likewise.
13935         * nss/nss_files/files-sgrp.c: Likewise.
13936         * nss/nss_files/files-spwd.c: Likewise.
13937         * nss/nss_db/db-alias.c: Removed.
13938         * nss/nss_db/dummy-db.h: Removed.
13940 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
13942         * nss/makedb.c: Rewritten to not use database library.
13943         * nss/Makefile: Update to build new makedb program.
13945 2011-06-14  Andreas Jaeger  <aj@suse.de>
13947         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
13948         memset declaration.
13950 2011-06-10  Andreas Schwab  <schwab@redhat.com>
13952         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
13953         tmpbuf.
13955 2011-06-10  Roland McGrath  <roland@hack.frob.com>
13957         * Makerules (shlib.lds): Fail if the linker script comes out empty.
13958         * elf/Makefile ($(objpfx)ld.so): Likewise.
13960         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
13961         Don't list ld.so twice in dependencies.
13963         * posix/bug-regex31.c: Include <stdlib.h>.
13965         * nscd/hstcache.c (cache_addhst): Remove unused variable.
13967         * nis/nss_compat/compat-spwd.c
13968         (getspent_next_nss_netgr): Remove unused variable.
13969         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
13971         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
13972         nonmembers" output to use the right array.
13974         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
13976         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
13978         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
13979         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
13980         * catgets/gencat.c (read_input_file): Likewise.
13981         * locale/programs/locarchive.c (enlarge_archive): Likewise.
13983         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
13984         variable definition inside #if's controlling its use.
13986         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
13988         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
13990         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
13992         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
13993         unreachable code.
13995         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
13997         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
13998         * configure: Regenerated.
14000         * Makerules: Revert last change.
14001         * elf/Makefile: Likewise.
14003 2011-06-09  Roland McGrath  <roland@hack.frob.com>
14005         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
14006         * elf/Makefile ($(objpfx)librtld.os): Likewise.
14007         (reloc-link): Likewise.
14009 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
14011         * elf/Makefile: Add rules to build pldd.
14012         * elf/pldd.c: New file.
14013         * elf/pldd-xx.c: New file.
14015 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
14017         * version.h: Update for 2.15 development version.
14019 2011-06-07  David S. Miller  <davem@davemloft.net>
14021         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
14022         ifuncs.
14023         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
14024         elf_machine_lazy_rel): Likewise.
14025         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
14026         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
14027         elf_machine_lazy_rel): Likewise.
14028         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
14029         dl_hwcap via passed in argument.
14030         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
14031         Likewise.
14033 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14035         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
14037 2011-06-06  Roland McGrath  <roland@hack.frob.com>
14039         [BZ #12849]
14040         * manual/fdl-1.1.texi: New file, verbatim from:
14041         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
14042         * manual/lgpl-2.1.texi: New file, verbatim from:
14043         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
14044         * manual/Makefile (licenses): New variable, list those new file names.
14045         (texis): Use it.
14046         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
14048         * manual/fdl.texi: File removed.
14049         * manual/lesser.texi: File removed.
14050         * manual/libc.texinfo (Copying, Documentation License):
14051         Use new @include file names, put @appendix directive before @include.
14053 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
14055         [BZ #12841]
14056         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
14057         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
14058         (mq_open): Add __NTH.
14060 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
14062         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14063         Assume Intel Core i3/i5/i7 processor if AVX is available.
14065 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
14067         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
14068         typo.
14070 2011-05-31  Andreas Schwab  <schwab@redhat.com>
14072         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
14073         memory.  Use alloca_account.  Fix memory leak when retrying.
14075 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
14077         * version.h (RELEASE): Bump for 2.14 release.
14078         * include/features.h (__GLIBC_MINOR__): Bump to 14.
14080         * config.make.in (RANLIB): Remove entry.
14082 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
14084         * po/Makefile (po-sed-cmd): Add ksh to extensions.
14085         (libc.pot): Work around missing support for .ksh extension in xgettext.
14087         [BZ #12684]
14088         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
14089         if both request failed.
14090         (send_dg): In case of server errors clear resplen or *resplen2.
14092         [BZ #12454]
14093         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
14094         when there are multiple maps.
14095         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
14096         (_dl_fini): Remove test here.
14098         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
14100 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
14102         [BZ #12350]
14103         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
14104         bit from old_res_options.
14105         (gaih_inet): Likewise.
14107         [BZ #11099]
14108         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
14109         as signed.
14111         * resolv/res_init.c (res_setoptions): Make the code more compact.
14113         [BZ #11558]
14114         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
14115         set RES_USEVC.
14117         [BZ #11634]
14118         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
14120         * malloc/malloc.h: Mark malloc hook variables as deprecated.
14122         [BZ #11781]
14123         * malloc/malloc.h: Declare malloc hook variables as volatile.
14125         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
14126         in last patch.
14128         [BZ #11799]
14129         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
14130         raise in the comment.
14131         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
14132         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
14133         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
14135 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
14137         [BZ #12811]
14138         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
14139         grow the buffers more if it already has to be sufficient.
14140         (build_wcs_upper_buffer): Likewise.
14141         * posix/regexec.c (check_matching): Likewise.
14142         (clean_state_log_if_needed): Likewise.
14143         (extend_buffers): Don't enlarge buffers beyond size of the input
14144         buffer.
14145         Patches mostly by Emil Wojak <emil@wojak.eu>.
14146         * posix/bug-regex32.c: New file.
14147         * posix/Makefile (tests): Add bug-regex32.
14149         * locale/findlocale.c (_nl_find_locale): Return right away if
14150         _nl_explode_name failed.
14151         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
14153         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
14155         * debug/xtrace.sh: Unify messages.
14156         * malloc/memusage.sh: Likewise.
14158         [BZ #12813]
14159         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
14160         time symbol from vDSO.  Substitute with vsyscall if not available.
14161         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
14162         __vdso_time.
14164         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
14165         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
14166         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
14167         Add sendmmsg and internal_sendmmsg.
14168         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
14169         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
14170         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
14172         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
14173         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
14174         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
14176 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
14178         [BZ #12813]
14179         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
14180         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
14181         available.
14182         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
14183         __vdso_getcpu.
14185         [BZ #12814]
14186         * iconvdata/Makefile (tests): Add bug-iconv9.
14187         * iconvdata/bug-iconv9.c: New file.
14189 2011-05-27  Andreas Schwab  <schwab@redhat.com>
14191         [BZ #12814]
14192         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
14194 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
14196         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
14197         (struct user_regs_struct): Change intcs field back to cs.
14199 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
14201         * po/ja.po: Update from translation team.
14203 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
14205         [BZ #12795]
14206         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
14207         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
14209 2011-05-20  Andreas Schwab  <schwab@redhat.com>
14211         * stdlib/longlong.h: Update from GCC.
14213 2011-05-23  Andreas Schwab  <schwab@redhat.com>
14215         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
14216         parameter name.
14217         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
14218         Add parameter name.
14219         (__sysconf): Pass it down.
14221 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
14223         [BZ #12671]
14224         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
14225         some situations.
14226         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
14227         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
14228         add in in __libc_use_alloca calls.  Adjust callers.
14229         (glob): Use malloc in some situations.
14231         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
14232         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
14233         pltexit.
14235 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
14237         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
14238         and CLOCK_BOOTTIME_ALARM.
14240         [BZ #12782]
14241         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
14242         is returned.
14244         * string/_strerror.c (__strerror_r): Print negative errors as signed
14245         numbers.
14247         [BZ #12777]
14248         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
14249         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
14250         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
14252         * configure.in: Fix typo in redirection and correct removal of test
14253         files in two cases.
14255         [BZ #12788]
14256         * locale/setlocale.c (new_composite_name): Fix test to check for
14257         identical name of all categories.
14259         [BZ #12792]
14260         * libio/filedoalloc.c (local_isatty): New function.
14261         (_IO_file_doallocate): Use local_isatty.
14262         * stdio-common/perror.c (perror): In case a new stream is used
14263         forward the stream error.
14264         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
14265         error flag.
14267 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
14269         [BZ #11869]
14270         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
14271         alloca.
14272         * include/alloca.h (extend_alloca_account): Define.
14274         [BZ #11857]
14275         * posix/regex.h: Fix comments with documentation of user-accessible
14276         fields after compilation and describe correct free'ing of pattern
14277         after re_compile_pattern.
14278         Patch by Reuben Thomas <rrt@sc3d.org>.
14280 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
14282         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
14283         and -mno-altivec to prevent the compiler from using Altivec and/or
14284         VSX instructions when the corresponding registers are not available.
14286 2011-05-19  Andreas Schwab  <schwab@redhat.com>
14288         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
14290 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
14292         * libio/freopen.c (freopen): Use __dup2, not dup2.
14293         * libio/freopen64.c (freopen64): Likewise.
14295 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14297         [BZ #12775]
14298         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
14299         * math/Makefile (tests): Add test-powl.
14300         (CFLAGS-test-powl.c): Define.
14301         * math/test-powl.c: New file.
14303 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14305         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
14307 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
14309         [BZ #11837]
14310         * iconvdata/gb18030.c: Update to GB18020-2005.
14312 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
14314         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
14315         RE_SYNTAX_POSIX_AWK): Update to match recent development.
14316         Patch by Aharon Robbins <arnold@skeeve.com>.
14318         [BZ #11892]
14319         * stdlib/putenv.c (putenv): Don't always create copy of the variable
14320         on the stack.
14322         [BZ #11895]
14323         * misc/pselect.c (__pselect): Handle timeout value errors hidden
14324         through underflows.
14326         [BZ #12766]
14327         * misc/error.c (error_at_line): Ensure file_name and old_file_name
14328         point to strings before performing equality test for error_one_per_line
14329         mode.
14331         [BZ #11697]
14332         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
14334         [BZ #11820]
14335         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
14336         (struct user_fpregs_struct): Avoid __uint*_t types.
14338         [BZ #6420]
14339         * malloc/mtrace.c (tr_where): Add additional parameter to point to
14340         symbol info.  Use it instead of calling _dl_addr locally.
14341         (lock_and_info): New function.
14342         (tr_freehook): Call lock_and_info and pass symbol info as additional
14343         parameter to tr_where.
14344         (tr_mallochook): Likewise.
14345         (tr_reallochook): Likewise.
14346         (tr_memalignhook): Likewise.
14348         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
14349         used and couldn't be at all thread-safe.
14351 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
14353         * libio/freopen.c (freopen): Don't close old file descriptor
14354         before the new one is opened.  Instead dup the new file descriptor
14355         to the old one after the new stream is created.
14356         * libio/freopen64.c (freopen64): Likewise.
14357         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
14358         * libio/fileops.c (_IO_new_file_close_it): Handle new
14359         _IO_FLAGS2_NOCLOSE flag.
14360         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
14361         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
14362         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
14363         _IO_FLAGS2_NOCLOSE flag.
14364         * include/unistd.h: Add hidden_proto for dup3.
14365         Define __have_dup3.
14366         * io/dup3.c: Define hidden symbol.
14367         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
14369         [BZ #7101]
14370         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
14371         when an incomplete long option is used.
14372         * posix/tst-getopt_long1.c: New file.
14373         * posix/Makefile (tests): Add tst-getopt_long1.
14375         [BZ #10138]
14376         * scripts/config.guess: Update from autoconf-2.68.
14377         * scripts/config.sub: Likewise.
14379         [BZ #10157]
14380         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
14381         tests into ...
14382         (has_cpuclock): ...this.  New function.
14383         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
14384         macro here based on has_cpuclock code.
14386         [BZ #10149]
14387         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
14388         First byte (not low byte) is now always NUL.
14389         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
14391         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
14392         Use non-cancelable interfaces.
14394         [BZ #9809]
14395         * locale/iso-639.def: Add entry for Sorani.
14397         [BZ #11901]
14398         * include/stdlib.h: Move include protection to the right place.
14399         Define abort_msg_s.  Declare __abort_msg with it.
14400         * stdlib/abort.c (__abort_msg): Adjust type.
14401         * assert/assert.c (__assert_fail_base): New function.  Majority
14402         of code from __assert_fail.  Allocate memory for __abort_msg with
14403         mmap.
14404         (__assert_fail): Now call __assert_fail_base.
14405         * assert/assert-perr.c: Remove bulk of implementation.  Use
14406         __assert_fail_base.
14407         * include/assert.hL Declare __assert_fail_base.
14408         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
14409         mmap.
14410         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
14412 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
14414         [BZ #11952]
14415         [BZ #12453]
14416         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
14417         until all modules are registered in the DTV.
14418         * elf/Makefile: Add rules to build and run tst-tls19.
14419         * elf/tst-tls19.c: New file.
14420         * elf/tst-tls19mod1.c: New file.
14421         * elf/tst-tls19mod2.c: New file.
14422         * elf/tst-tls19mod3.c: New file.
14423         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
14425         [BZ #12083]
14426         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
14427         correctly.
14429         [BZ #12601]
14430         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
14431         two-byte sequence errors.
14432         * iconvdata/Makefile (tests): Add bug-iconv8.
14433         * iconvdata/bug-iconv8.c: New file.
14435         [BZ #12626]
14436         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
14437         buf2 definition.
14439         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
14441         [BZ #12432]
14442         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
14443         (dummy_getcfa): New function.
14444         (init): Get _Unwind_GetCFA address, use dummy if not found.
14445         (backtrace_helper): In recursion check, also check whether CFA changes.
14446         (__backtrace): Completely initialize arg.
14448         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
14449         storing incomplete byte sequence in state object.  Avoid testing for
14450         guaranteed too small input if we know there is enough data available.
14452 2011-05-11  Andreas Schwab  <schwab@redhat.com>
14454         * Makeconfig (+link-pie): Indent.
14455         * Rules (binaries-pie): Define if $(have-fpie) and
14456         $(build-shared).
14457         (binaries-shared): Also filter out $(binaries-pie).
14458         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
14459         * nscd/Makefile (others-pie): Add nscd.
14460         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
14461         ($(objpfx)nscd): Remove command override.
14462         * login/Makefile (others-pie): Add pt_chown.
14463         ($(objpfx)pt_chown): Remove command override.
14464         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
14465         remove command overrides.
14467 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
14469         * libio/tst_putwc.c: Fix error messages.
14471         [BZ #12724]
14472         * libio/fileops.c (_IO_new_file_close_it): Always flush when
14473         currently writing and seek to current position when not.
14474         * libio/Makefile (tests): Add bug-fclose1.
14475         * libio/bug-fclose1.c: New file.
14477 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
14479         [BZ #12511]
14480         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
14481         don't set DF_1_NODELETE here.
14482         (do_lookup_x): When entering new entry test for copy relocation
14483         and if necessary set DF_1_NODELETE flag.
14484         * elf/tst-unique4.cc: New file.
14485         * elf/tst-unique4.h: New file.
14486         * elf/tst-unique4lib.cc: New file.
14487         * elf/Makefile: Add rules to build and run tst-unique4.
14488         Patch by Piotr Bury <pbury@goahead.com>.
14490 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
14492         [BZ #12052]
14493         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
14495         [BZ #12625]
14496         * misc/mntent_r.c (addmntent): Flush the stream after the output
14498         [BZ #12393]
14499         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
14500         (is_trusted_path_normalize): Skip initial colon.  Append slash
14501         to empty buffer.  Duplicate is_trusted_path code but allow
14502         constructed patch to be prefix.
14503         (is_dst): Allow $ORIGIN followed by /.
14504         (_dl_dst_substitute): Correct clearing of check_for_trusted.
14505         Correct testing of result of is_trusted_path_normalize
14506         (decompose_rpath): Fix warning.
14508 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
14510         [BZ #11257]
14511         * grp/initgroups.c (internal_getgrouplist): When we found the service
14512         list through the initgroups entry in nsswitch.conf do not always
14513         continue on a successful lookup.  Don't always use the
14514         __nss_group_database value if it is set.
14515         * nss/nsswitch.conf (initgroups): Change action for successful db
14516         lookup to continue for compatibility.
14518 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
14520         [BZ #11532]
14521         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
14522         and CP774 modules.
14523         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
14524         and CP774 modules.
14525         * iconvdata/tst-tables.sh: Likewise.
14526         * iconvdata/cp770.c: New file.
14527         * iconvdata/cp771.c: New file.
14528         * iconvdata/cp772.c: New file.
14529         * iconvdata/cp773.c: New file.
14530         * iconvdata/cp774.c: New file.
14531         * iconvdata/testdata/CP770: New file.
14532         * iconvdata/testdata/CP770..UTF8: New file.
14533         * iconvdata/testdata/CP771: New file.
14534         * iconvdata/testdata/CP771..UTF8: New file.
14535         * iconvdata/testdata/CP772: New file.
14536         * iconvdata/testdata/CP772..UTF8: New file.
14537         * iconvdata/testdata/CP773: New file.
14538         * iconvdata/testdata/CP773..UTF8: New file.
14539         * iconvdata/testdata/CP774: New file.
14540         * iconvdata/testdata/CP774..UTF8: New file.
14542         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
14543         END CHARMAP line.
14544         * iconvdata/gen-8bit-gap.sh: Likewise.
14545         * iconvdata/gen-8bit.sh: Likewise.
14547         * locale/iso-639.def: Add ary entry.
14549         [BZ #11258]
14550         * locale/C-translit.h.in: Add U20A1 transliteration.
14552         [BZ #12178]
14553         * locale/iso-639.def: Add wae entry.
14554         Patch by Kevin Bortis <bortis@translate-wae.ch>.
14556         [BZ #12545]
14557         * locale/programs/localedef.c (construct_output_path): Use ssize_t
14558         for n.
14560         [BZ #12711]
14561         * locale/C-translit.h.in: Add entry for U20B9.
14562         Patch by pravin.d.s@gmail.com.
14564 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
14566         [BZ #12713]
14567         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
14568         ENAMETOOLONG use generic getcwd.
14569         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
14570         in rtld.  Use *stat64.
14571         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
14572         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
14573         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
14574         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
14575         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
14576         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
14577         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
14578         __fstatat64 macros.
14579         * include/dirent.h: Add libc_hidden_proto for rewinddir.
14580         * dirent/rewinddir.c: Add libc_hidden_def.
14581         * sysdeps/mach/hurd/rewinddir.c: Likewise.
14582         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
14584         * include/dirent.h (__alloc_dir): Add flags parameter.
14585         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
14586         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
14587         __alloc_dir.
14588         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
14589         from fdopendir if O_CLOEXEC is already set.
14591 2011-03-15  Alan Modra  <amodra@gmail.com>
14593         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
14594         l_tls_firstbyte_offset non-zero.  Save padding offset in
14595         l_tls_firstbyte_offset for later use.
14596         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
14597         freeing static tls block.
14599 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
14601         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
14602         where #ifdef was intended.  The intent is to prevent ARG_MAX from
14603         being defined by the kernel headers.
14605 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
14607         [BZ #12734]
14608         * resolv/resolv.h: Define RES_NOTLDQUERY.
14609         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
14610         no-tld-query and set RES_NOTLDQUERY.
14611         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
14612         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
14613         modern BIND to search name as TLD unless forbidden.
14615 2011-05-07  Petr Baudis  <pasky@suse.cz>
14616             Ulrich Drepper  <drepper@gmail.com>
14618         [BZ #12393]
14619         * elf/dl-load.c (fillin_rpath): Move trusted path check...
14620         (is_trusted_path): ...to here.
14621         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
14622         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
14623         using is_trusted_path_normalize() in setuid scripts.
14625 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14627         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
14628         __BEGIN/__END_DECLS.
14630 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
14632         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
14633         NSS_STATUS_NOTFOUND if no record was found.
14635 2011-05-05  Andreas Schwab  <schwab@redhat.com>
14637         * sunrpc/Makefile (headers): Add rpc/netdb.h.
14638         (headers-not-in-tirpc): Remove rpc/netdb.h
14639         * resolv/netdb.h: Revert last change.
14641 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14643         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
14644         circular dependency between libgcc.a and libc.a.
14646 2011-05-05  Andreas Schwab  <schwab@redhat.com>
14648         * resolv/netdb.h: Don't include <rpc/netdb.h>.
14649         * nis/Makefile: Don't install rpcsvc/*.
14650         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
14651         instead of <rpc/types.h>.
14652         (MAXHOSTNAMELEN): Define.
14654 2011-05-03  Andreas Schwab  <schwab@redhat.com>
14656         * elf/ldconfig.c (add_dir): Don't crash on empty path.
14658 2011-04-28  Maciej Babinski  <mbabinski@google.com>
14660         [BZ #12714]
14661         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
14662         gethostbyname4_r when IPv6 results are possible.
14664 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
14666         [BZ #12723]
14667         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
14668         _PC_PIPE_BUF handling.
14670 2011-04-30  Bruno Haible  <bruno@clisp.org>
14672         [BZ #12717]
14673         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
14674         * resolv/netdb.h (getnameinfo): Change type of flags parameter
14675         to 'int'.
14676         * inet/getnameinfo.c (getnameinfo): Likewise.
14678 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
14680         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
14681         to groups setting in database lookup.
14682         * nss/nsswitch.conf: Add initgroups entry.
14684 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
14686         [BZ #12685]
14687         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
14688         mode string.
14689         Patch by Eric Blake <eblake@redhat.com>.
14691 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
14693         * sunrpc/Makefile (need-export-routines): Add svc_run.
14694         (routines): Remove svc_run.
14695         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
14696         * sunrpc/clnt_perr.c (clnt_perrno): Export.
14697         * sunrpc/svc_run.c (svc_run): Likewise.
14698         * sunrpc/svc_udp.c (svcudp_create): Likewise.
14700 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
14702         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
14703         problem in reallocation in last patch.
14705 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
14707         * sunrpc/Makefile: Move inclusion of Rules.
14709 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
14711         * nss/nss_files/files-initgroups.c: New file.
14712         * nss/Makefile (libnss_files-routines): Add files-initgroups.
14713         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
14714         _nss_files_initgroups_dyn.
14716 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
14718         * elf/elf.h (R_ARM_IRELATIVE): Define.
14720 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
14722         * po/ru.po: Update from translation team.
14724 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
14726         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
14727         dependencies.
14729 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
14731         [BZ #12653]
14732         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
14733         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
14734         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14735         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
14736         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
14738 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
14740         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
14741         differing bytes.
14742         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
14743         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
14744         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14746 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
14748         [BZ #12420]
14749         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
14750         storing it.
14751         * stdlib/bug-getcontext.c: New file.
14752         * stdlib/Makefile: Add rules to build and run bug-getcontext.
14754 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14756         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
14757         instructions into .machine "z9-109".
14758         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
14759         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
14761 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14763         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
14764         between environment variables and auxiliary vector.
14766 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
14768         * Makefile: Add rules to build linkobj/libc.so.
14769         * include/libc-symbols.h: Define libc_hidden_nolink.
14770         * include/rpc/auth.h: Mark functions which are to be hidden.
14771         * include/rpc/auth_des.h: Likewise.
14772         * include/rpc/auth_unix.h: Likewise.
14773         * include/rpc/clnt.h: Likewise.
14774         * include/rpc/des_crypt.h: Likewise.
14775         * include/rpc/key_prot.h: Likewise.
14776         * include/rpc/pmap_clnt.h: Likewise.
14777         * include/rpc/pmap_prot.h: Likewise.
14778         * include/rpc/pmap_rmt.h: Likewise.
14779         * include/rpc/rpc_msg.h: Likewise.
14780         * include/rpc/svc.h: Likewise.
14781         * include/rpc/svc_auth.h: Likewise.
14782         * include/rpc/xdr.h: Likewise.
14783         * nis/Makefile: Link all DSOs against linkobj/libc.so.
14784         * nss/Makefile: Likewise.
14785         * sunrpc/Makefile: Don't install headers.  Build library with normal
14786         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
14787         * sunrpc/auth_des.c: Hide exported symbols by default, export some
14788         for the compat linking library.  Remove use of INTDEF/INTUSE.
14789         * sunrpc/auth_none.c: Likewise.
14790         * sunrpc/auth_unix.c: Likewise.
14791         * sunrpc/authdes_prot.c: Likewise.
14792         * sunrpc/authuxprot.c: Likewise.
14793         * sunrpc/clnt_gen.c: Likewise.
14794         * sunrpc/clnt_perr.c: Likewise.
14795         * sunrpc/clnt_raw.c: Likewise.
14796         * sunrpc/clnt_simp.c: Likewise.
14797         * sunrpc/clnt_tcp.c: Likewise.
14798         * sunrpc/clnt_udp.c: Likewise.
14799         * sunrpc/clnt_unix.c: Likewise.
14800         * sunrpc/des_crypt.c: Likewise.
14801         * sunrpc/des_soft.c: Likewise.
14802         * sunrpc/get_myaddr.c: Likewise.
14803         * sunrpc/key_call.c: Likewise.
14804         * sunrpc/key_prot.c: Likewise.
14805         * sunrpc/netname.c: Likewise.
14806         * sunrpc/pm_getmaps.c: Likewise.
14807         * sunrpc/pm_getport.c: Likewise.
14808         * sunrpc/pmap_clnt.c: Likewise.
14809         * sunrpc/pmap_prot.c: Likewise.
14810         * sunrpc/pmap_prot2.c: Likewise.
14811         * sunrpc/pmap_rmt.c: Likewise.
14812         * sunrpc/publickey.c: Likewise.
14813         * sunrpc/rpc_cmsg.c: Likewise.
14814         * sunrpc/rpc_common.c: Likewise.
14815         * sunrpc/rpc_dtable.c: Likewise.
14816         * sunrpc/rpc_prot.c: Likewise.
14817         * sunrpc/rpc_thread.c: Likewise.
14818         * sunrpc/rtime.c: Likewise.
14819         * sunrpc/svc.c: Likewise.
14820         * sunrpc/svc_auth.c: Likewise.
14821         * sunrpc/svc_authux.c: Likewise.
14822         * sunrpc/svc_raw.c: Likewise.
14823         * sunrpc/svc_run.c: Likewise.
14824         * sunrpc/svc_simple.c: Likewise.
14825         * sunrpc/svc_tcp.c: Likewise.
14826         * sunrpc/svc_udp.c: Likewise.
14827         * sunrpc/svc_unix.c: Likewise.
14828         * sunrpc/svcauth_des.c: Likewise.
14829         * sunrpc/xcrypt.c: Likewise.
14830         * sunrpc/xdr.c: Likewise.
14831         * sunrpc/xdr_array.c: Likewise.
14832         * sunrpc/xdr_float.c: Likewise.
14833         * sunrpc/xdr_intXX_t.c: Likewise.
14834         * sunrpc/xdr_mem.c: Likewise.
14835         * sunrpc/xdr_rec.c: Likewise.
14836         * sunrpc/xdr_ref.c: Likewise.
14837         * sunrpc/xdr_sizeof.c: Likewise.
14838         * sunrpc/xdr_stdio.c: Likewise.
14840 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
14842         [BZ #12650]
14843         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
14844         * sysdeps/ia64/dl-tls.h: Likewise.
14845         * sysdeps/powerpc/dl-tls.h: Likewise.
14846         * sysdeps/s390/dl-tls.h: Likewise.
14847         * sysdeps/sh/dl-tls.h: Likewise.
14848         * sysdeps/sparc/dl-tls.h: Likewise.
14849         * sysdeps/x86_64/dl-tls.h: Likewise.
14850         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
14852 2011-03-14  Andreas Schwab  <schwab@redhat.com>
14854         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
14855         rpath element also skip the following colon.
14856         (expand_dynamic_string_token): Add is_path parameter and pass
14857         down to DL_DST_REQUIRED and _dl_dst_substitute.
14858         (decompose_rpath): Call expand_dynamic_string_token with
14859         non-zero is_path.  Ignore empty rpaths.
14860         (_dl_map_object_from_fd): Call expand_dynamic_string_token
14861         with zero is_path.
14863 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
14865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
14866         Make cancelable.
14868 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
14870         [BZ #12655]
14871         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
14872         Patch by Filipe David Manana <fdmanana@apache.org>.
14874 2011-04-07  Andreas Schwab  <schwab@redhat.com>
14876         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
14877         Maintain aligned stack.
14878         (CHECK_RSP): Remove unused macro.
14880 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
14882         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
14883         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
14885 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
14887         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
14889         * include/features.h: Mention __USE_XOPEN2K8 in comment.
14891 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
14893         [BZ #12518]
14894         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
14895         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
14896         * sysdeps/x86_64/memmove.c: New file.
14897         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
14898         (memcpy): Renamed to ...
14899         (__new_memcpy): This.
14900         (memcpy): Provide GLIBC_2_14 memcpy.
14901         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
14902         (memcpy): Provide GLIBC_2_2_5 memcpy.
14904 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
14906         [BZ #12631]
14907         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
14909 2011-03-30  Andreas Schwab  <schwab@redhat.com>
14911         * misc/syncfs.c: New file.
14912         * misc/Makefile (routines): Add syncfs.
14913         * posix/unistd.h: Declare syncfs.
14914         * sysdeps/unix/syscalls.list: Add syncfs.
14916 2011-04-01  Andreas Schwab  <schwab@redhat.com>
14918         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
14919         open_by_handle_at.
14920         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14921         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14922         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14923         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14924         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14925         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
14926         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14928 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
14930         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
14931         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14932         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14933         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14934         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14935         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14936         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14938         * io/Makefile: Compile fallocate.c, fallocate64.c, and
14939         sync_file_range.c with -fexceptions.
14940         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
14941         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
14942         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
14943         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
14944         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
14945         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
14946         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
14947         sync_file_range as cancellation point
14948         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
14949         now a wrapper around __call_sync_file_range with cancellation handling.
14950         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
14951         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
14952         function name to __call_sync_file_range.
14953         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
14954         Add call_sync_file_range.
14956 2011-04-01  Andreas Schwab  <schwab@redhat.com>
14958         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14959         bits/timex.h.
14961 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
14963         * iconv/iconv.h: Fix typo in comment.
14964         * io/fcntl.h: Likewise.
14965         * libio/stdio.h: Likewise.
14966         * posix/spawn.h: Likewise.
14967         * posix/unistd.h: Likewise.
14968         * stdlib/stdlib.h: Likewise.
14969         * time/time.h: Likewise.
14970         * wcsmbs/wchar.h: Likewise.
14972         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
14973         open_by_handle): Add.
14974         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
14975         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
14976         Augment a few comments.
14977         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14978         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14979         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14980         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14981         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14982         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
14983         open_by_handle.
14985         * io/fcntl.h (AT_EMPTY_PATH): Define.
14987 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
14989         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
14990         * sysdeps/unix/sysv/linux/bits/time.h: New file.
14991         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
14992         to...
14993         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
14994         * Versions.def: Add GLIBC_2.14.
14995         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
14996         Export.
14998 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
15000         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
15001         round counter.
15002         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
15004 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
15006         [BZ #12597]
15007         * string/test-strncmp.c (do_page_test): New function.
15008         (check2): Likewise.
15009         (test_main): Call check2.
15010         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
15012 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
15014         [BZ #12587]
15015         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
15016         Handle cache information in CPU leaf 4.
15017         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
15019 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
15021         [BZ #12583]
15022         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
15023         character representation.
15024         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
15026 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
15028         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
15029         END(__isnan) to END(__isnanf) to match function entry point/label
15030         EALIGN(__isnanf,...).
15032 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
15034         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
15036 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
15038         [BZ #12510]
15039         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
15040         copy from the symbol referenced in the relocation to initialize the
15041         used variable.
15042         Patch by Piotr Bury <pbury@goahead.com>.
15043         * elf/Makefile: Add rules to build and tst-unique3.
15044         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
15045         * elf/tst-unique3.cc: New file.
15046         * elf/tst-unique3.h: New file.
15047         * elf/tst-unique3lib.cc: New file.
15048         * elf/tst-unique3lib2.cc: New file.
15050         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
15052 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
15054         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
15055         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
15056         to _start.
15058 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
15060         * elf/dl-load.c (_dl_map_object): If we are looking for the first
15061         to-be-loaded object along a path to loader is ld.so.
15063 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
15064             Ulrich Drepper  <drepper@gmail.com>
15066         * sysdeps/x86_64/memset.S: After aligning destination, code
15067         branches to different locations depending on the value of
15068         misalignment, when multiarch is enabled. Fix this.
15070 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
15072         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
15073         Set _x86_64_preferred_memory_instruction for AMD processsors.
15074         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15075         Set bit_Prefer_SSE_for_memop for AMD processors.
15077 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
15079         * libio/fmemopen.c (fmemopen): Optimize a bit.
15081 2011-03-03  Andreas Schwab  <schwab@redhat.com>
15083         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
15085 2011-03-03  Roland McGrath  <roland@redhat.com>
15087         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
15089 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
15091         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
15092         __bzero_ultra1 instead of __memset_ultra1.
15094 2011-02-23  Andreas Schwab  <schwab@redhat.com>
15095             Ulrich Drepper  <drepper@gmail.com>
15097         [BZ #12509]
15098         * include/link.h (struct link_map): Add l_orig_initfini.
15099         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
15100         returning unsuccessfully.
15101         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
15102         close of a file loaded at startup, restore the original l_initfini
15103         list.
15104         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
15105         list, store the pointer.
15106         * elf/Makefile ($(objpfx)noload-mem): New rule.
15107         (noload-ENV): Define.
15108         (tests): Add $(objpfx)noload-mem.
15109         * elf/noload.c: Include <memcheck.h>.
15110         (main): Call mtrace.  Close all opened handles.
15112 2011-02-17  Andreas Schwab  <schwab@redhat.com>
15114         [BZ #12454]
15115         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
15116         dependencies are missing.
15118 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15120         Fix __if_freereq crash: Unlike the generic version which uses free,
15121         Hurd needs munmap.
15122         * sysdeps/mach/hurd/ifreq.h: New file.
15124 2011-01-27  Petr Baudis  <pasky@suse.cz>
15125             Ulrich Drepper  <drepper@gmail.com>
15127         [BZ 12445]#
15128         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
15129         to extend_alloca().
15130         * stdio-common/bug23.c: New file.
15131         * stdio-common/Makefile (tests): Add bug23.
15133 2010-09-28  Andreas Schwab  <schwab@redhat.com>
15134             Ulrich Drepper  <drepper@gmail.com>
15136         [BZ #12489]
15137         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
15138         before performing relro protection.  At old place add assertion
15139         to make sure nothing changed.
15141 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
15142             Glauber de Oliveira Costa  <glommer@gmail.com>
15144         * elf/elf.h: Add new ARM TLS relocs.
15146 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
15148         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
15149         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
15150         cast from r3.
15151         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
15152         'tests' variable.
15153         * sysdeps/wordsize-64/tst-writev.c: New file.
15155 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
15157         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
15158         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
15159         insns in _dl_start to prevent a TOC reference before relocs are
15160         resolved.
15162 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
15164         [BZ #12469]
15165         * Makeconfig: Remove RANLIB definition.
15166         * Makerules: Don't use RANLIB.
15167         * aclocal.m4: Remove ranlib test.
15168         * configure.in: No need to check for ranlib.
15169         * elf/rtld-Rules: Don't use RANLIB.
15171 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15173         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
15174         protection macro.
15175         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
15176         inclusion protection macro.
15178         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
15179         SIGRTMIN and SIGRTMAX and print information in that case only when
15180         SIGRTMIN is defined.
15182 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
15184         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
15185         arginfo fn returning -1.
15187         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
15188         and thousands string is zero terminated.
15190 2011-02-03  Andreas Schwab  <schwab@redhat.com>
15192         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
15193         sysdeps/unix/sysv/linux/bits/socket.h.
15195 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15197         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
15198         (__CPU_COUNT): Remove old macros.
15199         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
15200         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
15201         (__CPU_ALLOC, __CPU_FREE): Add macros.
15202         (__sched_cpualloc, __sched_cpufree): Add declarations.
15204 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
15206         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
15207         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
15208         * nscd/aicache.c (addhstaiX): Return timeout of added value.
15209         (readdhstai): Return value of addhstaiX call.
15210         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
15211         (addgrbyX): Return value returned by cache_addgr.
15212         (readdgrbyname): Return value returned by addgrbyX.
15213         (readdgrbygid): Likewise.
15214         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
15215         (addpwbyX): Return value returned by cache_addpw.
15216         (readdpwbyname): Return value returned by addhstbyX.
15217         (readdpwbyuid): Likewise.
15218         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
15219         (addservbyX): Return value returned by cache_addserv.
15220         (readdservbyname): Return value returned by addservbyX:
15221         (readdservbyport): Likewise.
15222         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
15223         (addhstbyX): Return value returned by cache_addhst.
15224         (readdhstbyname): Return value returned by addhstbyX.
15225         (readdhstbyaddr): Likewise.
15226         (readdhstbynamev6): Likewise.
15227         (readdhstbyaddrv6): Likewise.
15228         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
15229         (readdinitgroups): Return value returned by addinitgroupsX.
15230         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
15231         (prune_cache): Keep track of timeout value of re-added entries.
15232         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
15233         * nscd/nscd.h: Adjust prototypes of readd* functions.
15235 2011-02-04  Roland McGrath  <roland@redhat.com>
15237         * nis/nis_server.c (nis_servstate): Use the right name for 0.
15238         (nis_stats): Likewise.
15239         * nis/nis_modify.c (nis_modify): Likewise.
15240         * nis/nis_remove.c (nis_remove): Likewise.
15241         * nis/nis_add.c (nis_add): Likewise.
15243         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
15245         * posix/fnmatch_loop.c: Add some consts.
15247         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
15249 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
15251         [BZ #12460]
15252         * config.make.in (config-cflags-novzeroupper): Define.
15253         * configure.in: Substitute libc_cv_cc_novzeroupper.
15254         * elf/Makefile (AVX-CFLAGS): Define.
15255         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
15256         (CFLAGS-tst-auditmod4a.c): Likewise.
15257         (CFLAGS-tst-auditmod4b.c): Likewise.
15258         (CFLAGS-tst-auditmod6b.c): Likewise.
15259         (CFLAGS-tst-auditmod6c.c): Likewise.
15260         (CFLAGS-tst-auditmod7b.c): Likewise.
15261         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
15263 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
15265         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
15266         function to the callback.
15267         Patch partly by Jiri Olsa <jolsa@redhat.com>.
15269 2011-02-02  Andreas Schwab  <schwab@redhat.com>
15271         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
15272         of errno.
15274 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
15276         [BZ #11724]
15277         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
15278         of constructors.
15279         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
15280         of destructors.
15281         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
15283         [BZ #11724]
15284         * elf/Makefile: Add rules to build and run new test.
15285         * elf/tst-initorder.c: New file.
15286         * elf/tst-initorder.exp: New file.
15287         * elf/tst-initordera1.c: New file.
15288         * elf/tst-initordera2.c: New file.
15289         * elf/tst-initordera3.c: New file.
15290         * elf/tst-initordera4.c: New file.
15291         * elf/tst-initorderb1.c: New file.
15292         * elf/tst-initorderb2.c: New file.
15293         * elf/tst-order-a1.c: New file.
15294         * elf/tst-order-a2.c: New file.
15295         * elf/tst-order-a3.c: New file.
15296         * elf/tst-order-a4.c: New file.
15297         * elf/tst-order-b1.c: New file.
15298         * elf/tst-order-b2.c: New file.
15299         * elf/tst-order-main.c: New file.
15300         New test case by George Gensure <werkt0@gmail.com>.
15302 2010-10-01  Andreas Schwab  <schwab@redhat.com>
15304         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
15305         decoding ACE if AI_CANONIDN.
15307 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
15309         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
15311 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
15313         * version.h (RELEASE): Bump for 2.13 release.
15314         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
15316         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
15318         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
15319         MADV_NOHUGEPAGE.
15320         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
15321         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
15322         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
15323         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
15324         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
15325         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
15327         * posix/getconf.c: Update copyright year.
15328         * catgets/gencat.c: Likewise.
15329         * csu/version.c: Likewise.
15330         * debug/catchsegv.sh: Likewise.
15331         * debug/xtrace.sh: Likewise.
15332         * elf/ldconfig.c: Likewise.
15333         * elf/ldd.bash.in: Likewise.
15334         * elf/sprof.c (print_version): Likewise.
15335         * iconv/iconv_prog.c: Likewise.
15336         * iconv/iconvconfig.c: Likewise.
15337         * locale/programs/locale.c: Likewise.
15338         * locale/programs/localedef.c: Likewise.
15339         * malloc/memusage.sh: Likewise.
15340         * malloc/mtrace.pl: Likewise.
15341         * nscd/nscd.c (print_version): Likewise.
15342         * nss/getent.c: Likewise.
15344         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
15345         PF_CAIF, and PF_ALG.
15346         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15348 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
15350         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
15351         (modules-names): Use them.
15352         (ifunc-test-modules, ifunc-pie-tests): Define.
15353         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
15354         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
15355         (test-extras): Likewise.
15356         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
15357         $(compile-command.c).
15358         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
15359         (all-built-dso): Define.
15360         (check-textrel.out, check-execstack.out): Depend on it.
15362         * configure.in: Don't override --enable-multi-arch.
15364 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
15366         [BZ #6812]
15367         * nscd/hstcache.c (tryagain): Define.
15368         (cache_addhst): Return tryagain not notfound for temporary errors.
15369         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
15370         failed.
15372 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
15374         [BZ #10563]
15375         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
15376         to make the syscall.
15377         * sysdeps/unix/sysv/linux/setgroups.c: New file.
15379         [BZ #12378]
15380         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
15381         and fall back to matching as normal character if the string ends before
15382         the matching ']' is found.  This is what POSIX requires.
15383         * posix/testfnm.c: Adjust test result.
15384         * posix/globtest.sh: Adjust test result.  Add new test.
15385         * posix/tst-fnmatch.input: Likewise.
15386         * posix/tst-fnmatch2.c: Add new test.
15388 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
15390         * elf/Makefile (check-execstack): Revert last change.  Depend on
15391         check-execstack.h.
15392         (check-execstack.h): New target.
15393         (generated): Add check-execstack.h.
15394         * elf/check-execstack.c: Include "check-execstack.h".
15395         (main): Revert last change.
15396         (handle_file): Return zero if GNU_STACK is absent and
15397         DEFAULT_STACK_PERMS doesn't include PF_X.
15399 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
15401         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
15402         in child fails because the descriptor is already closed.
15403         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
15404         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
15405         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
15407         [BZ #12397]
15408         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
15409         syscall.
15411         [BZ #10484]
15412         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
15413         temporary buffer used to handle multi lookups locally.
15414         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
15416 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
15418         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
15419         loader is ld.so.
15421 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
15423         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
15424         alignment for SSE2.
15426 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
15428         [BZ #12394]
15429         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
15430         characters.  When rounding increased number of integer digits recompute
15431         number of groups.
15432         * stdio-common/tst-grouping.c: New file.
15433         * stdio-common/Makefile: Add rules to build and run tst-grouping.
15435 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
15437         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
15438         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
15440         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
15441         void.
15442         * bits/select.h: Likewise.
15444 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
15446         * po/ja.po: Update from translation team.
15448 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
15450         [BZ #11155]
15451         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
15452         implementation just like for lxstat, fxstatat, et al.
15454 2010-12-27  Jim Meyering  <meyering@redhat.com>
15456         [BZ #12348]
15457         * posix/regexec.c (build_trtable): Return failure indication upon
15458         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
15460 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
15462         [BZ #12201]
15463         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
15464         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
15465         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
15466         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
15468         [BZ #12207]
15469         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
15471         [BZ #12204]
15472         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
15473         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
15475 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
15477         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
15478         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
15479         script has SORT_BY_INIT_PRIORITY.
15480         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
15481         NO_CTORS_DTORS_SECTIONS is defined.
15482         * elf/soinit.c: Likewise.
15483         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
15484         NO_CTORS_DTORS_SECTIONS is defined.
15485         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
15486         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
15487         * sysdeps/sh/init-first.c: Likewise.
15488         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
15490 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
15492         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
15493         always use the slow path.
15495 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
15497         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
15498         similar rule which adds the sysdep directories to the header search in
15499         order to pick up the correct platform stackinfo.h.
15500         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
15501         perform test if it is, otherwise return successfully without testing.
15502         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
15503         DEFAULT_STACK_PERMS define in stackinfo.h.
15504         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
15505         defined in stackinfo.h.
15506         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
15507         DEFAULT_STACK_PERMS defined in stackinfo.h.
15508         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
15509         * sysdeps/ia64/stackinfo.h: Likewise.
15510         * sysdeps/s390/stackinfo.h: Likewise.
15511         * sysdeps/sh/stackinfo.h: Likewise.
15512         * sysdeps/sparc/stackinfo.h: Likewise.
15513         * sysdeps/x86_64/stackinfo.h: Likewise.
15514         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
15515         PF_X for powerpc64.  Retain PF_X for powerpc32.
15517 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
15519         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
15520         accurately.
15521         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
15522         GETDENTS_64BIT_ALIGNED.
15524 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
15526         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
15528 2010-12-10  Andreas Schwab  <schwab@redhat.com>
15530         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
15531         _GNU_SOURCE.
15533         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
15534         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
15535         Remove __restrict.
15536         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
15537         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
15539 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
15541         [BZ #11655]
15542         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
15543         are initialized.
15545 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
15547         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
15549 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
15551         * po/it.po: Update from translation team.
15553 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
15555         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
15556         unused codes.
15558 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
15560         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
15562 2010-11-24  Andreas Schwab  <schwab@redhat.com>
15564         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
15565         specially.
15566         (gaih_getanswer_slice): Likewise.
15568 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
15570         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
15572 2010-05-31  Petr Baudis  <pasky@suse.cz>
15574         [BZ #11149]
15575         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
15576         silently even in the chroot mode.
15578 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
15580         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
15581         last patch a bit.  Pretty printing
15583 2010-05-31  Petr Baudis <pasky@suse.cz>
15585         [BZ #10085]
15586         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
15587         initialization of skip_initgroups_dyn.
15589 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
15591         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
15592         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
15594 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
15596         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
15598 2010-11-11  Andreas Schwab  <schwab@redhat.com>
15600         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
15601         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
15602         (tst-fnmatch-ENV): Set MALLOC_TRACE.
15603         ($(objpfx)tst-fnmatch-mem): New rule.
15604         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
15605         * posix/tst-fnmatch.c (main): Call mtrace.
15607 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
15609         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15610         Support Intel processor model 6 and model 0x2c.
15612 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
15614         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
15615           signed comparison.
15617 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
15619         [BZ #12205]
15620         * string/test-strncasecmp.c (check_result): New function.
15621         (do_one_test): Use it.
15622         (check1): New function.
15623         (test_main): Use it.
15624         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
15625         Support strcasecmp and strncasecmp.
15627 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
15629         [BZ #12194]
15630         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
15631         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15633 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
15635         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
15636         IFUNC support.
15637         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15638         memset-x86-64.
15639         * sysdeps/x86_64/multiarch/bzero.S: New file.
15640         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
15641         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
15642         * sysdeps/x86_64/multiarch/memset.S: New file.
15643         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
15644         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15645         Set bit_Prefer_SSE_for_memop for Intel processors.
15646         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
15647         Define.
15648         (index_Prefer_SSE_for_memop): Define.
15649         (HAS_PREFER_SSE_FOR_MEMOP): Define.
15651 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
15653         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
15654         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
15656 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
15658         [BZ #12191]
15659         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
15660         (__x86_64_raw_data_cache_size_half): Likewise.
15661         (__x86_64_raw_shared_cache_size): Likewise.
15662         (__x86_64_raw_shared_cache_size_half): Likewise.
15664         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
15665         (__x86_64_raw_data_cache_size_half): Likewise.
15666         (__x86_64_raw_shared_cache_size): Likewise.
15667         (__x86_64_raw_shared_cache_size_half): Likewise.
15668         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
15669         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
15670         and __x86_64_raw_shared_cache_size_half.  Round
15671         __x86_64_data_cache_size_half, __x86_64_data_cache_size
15672         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
15673         to multiple of 256 bytes.
15675 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
15677         [BZ #12167]
15678         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
15679         of inacessible symlinks.  Verify result of symlink before returning it.
15680         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
15681         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
15683 2010-10-28  Erich Ritz  <erichritz@gmail.com>
15685         * math/math.h (isinf): Fix typo in comment.
15687 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
15689         * po/da.po: Update from translation team.
15691 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
15693         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
15694         is added to the list.
15696 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15697             Ulrich Drepper  <drepper@gmail.com>
15699         * elf/dl-object.c (_dl_new_object): Don't append the new object to
15700         the global list here.  Move code to...
15701         (_dl_add_to_namespace_list): ...here.  New function.
15702         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
15703         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
15704         * elf/dl-load.c (lose): Don't remove the element from the list.
15705         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
15706         (_dl_map_object): Likewise.
15708 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
15710         [BZ #12159]
15711         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
15712         into all bytes of SSE register.
15713         Patch by Richard Li <richardpku@gmail.com>.
15715 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
15717         [BZ #12140]
15718         * malloc/malloc.c (_int_free): Fill correct number of bytes when
15719         perturbing.
15721 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
15723         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
15724         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
15725         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
15726         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
15727         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
15728         submachine.
15729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
15731 2010-10-22  Andreas Schwab  <schwab@redhat.com>
15733         * include/dlfcn.h (__RTLD_SECURE): Define.
15734         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
15735         mode & __RTLD_SECURE instead.
15736         (open_path): Rename preloaded parameter to secure.
15737         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
15738         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
15739         * elf/dl-deps.c (openaux): Likewise.
15740         * elf/rtld.c (struct map_args): Remove is_preloaded.
15741         (map_doit): Don't use it.
15742         (dl_main): Likewise.
15743         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
15744         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
15746 2010-09-09  Andreas Schwab  <schwab@redhat.com>
15748         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
15749         (sysd-rules-targets): Remove duplicates.
15750         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
15751         rtld-%.$o dependency.
15753 2010-10-18  Andreas Schwab  <schwab@redhat.com>
15755         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
15756         _dl_map_object do it.
15758 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
15760         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
15761         fast fma builtins, define the macros in the C99 standard.
15762         (FP_FAST_FMAF): Likewise.
15763         (FP_FAST_FMAL): Likewise.
15764         * sysdeps/x86_64/bits/mathdef.h: Likewise.
15766         * bits/mathdef.h: Update copyright year.
15767         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15769 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
15771         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
15772         builtins, define the macros in the C99 standard.
15773         (FP_FAST_FMAF): Likewise.
15774         (FP_FAST_FMAL): Likewise.
15775         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
15776         multiply/add.
15777         (FP_FAST_FMAF): Likewise.
15779 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
15781         [BZ #3268]
15782         * math/libm-test.inc (fma_test): Some new testcases.
15783         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
15784         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
15785         y and infinite z.  Do multiplication by C already in long double.
15786         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
15787         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
15788         y and infinite z.  Do bitwise or of inexact bit into u.d.
15789         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
15790         * sysdeps/i386/fpu/s_fmaf.S: Removed.
15791         * sysdeps/i386/fpu/s_fma.S: Removed.
15792         * sysdeps/i386/fpu/s_fmal.S: Removed.
15794 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
15796         [BZ #3268]
15797         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
15798         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
15799         computation is not scheduled after fetestexcept.  Fix value
15800         of minimum denormal long double.
15802 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
15804         [BZ #3268]
15805         * math/libm-test.inc (fma_test): Add some more tests.
15806         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
15807         correctly.
15809 2010-10-15  Andreas Schwab  <schwab@redhat.com>
15811         * scripts/data/localplt-s390-linux-gnu.data: New file.
15812         * scripts/data/localplt-s390x-linux-gnu.data: New file.
15814 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
15816         [BZ #3268]
15817         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
15818         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
15819         instead of dbl-64.
15820         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
15821         inlines.
15822         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
15823         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
15824         if one of x and y is very large and the other is subnormal.
15825         * sysdeps/s390/fpu/s_fmaf.c: New file.
15826         * sysdeps/s390/fpu/s_fma.c: New file.
15827         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
15828         * sysdeps/powerpc/fpu/s_fma.S: New file.
15829         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
15830         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
15831         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
15833 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
15835         [BZ #3268]
15836         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
15837         fma tests.
15838         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
15839         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
15840         * sysdeps/i386/i686/multiarch/s_fma.c: Include
15841         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
15842         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
15843         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
15844         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
15846 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
15848         [BZ #12078]
15849         * posix/regcomp.c (parse_branch): One more memory leak plugged.
15850         * posix/bug-regex31.input: Add test case.
15852 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
15854         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
15855         * posix/bug-regex31.input: New file.
15857         [BZ #12078]
15858         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
15859         (parse_sub_exp): Fix last change, use postorder.
15861         * posix/bug-regex31.c: New file.
15862         * posix/Makefile: Add rules to build and run bug-regex31.
15864         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
15866         [BZ #12078]
15867         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
15869         [BZ #12108]
15870         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
15871         to have entries in sys_siglist.
15873         [BZ #12093]
15874         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
15875         be NULL.
15877 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
15879         [BZ #3268]
15880         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
15881         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
15882         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
15883         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
15884         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15885         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
15886         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
15887         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
15888         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
15889         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
15890         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
15891         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
15892         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
15893         * math/ftestexcept.c (fetestexcept): Likewise.
15894         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
15895         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
15896         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
15897         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
15898         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
15899         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
15900         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
15902 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
15904         [BZ #12107]
15905         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
15906         newline.
15908 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
15910         * string/bug-strstr1.c: New file.
15911         * string/Makefile: Add rules to build and run bug-strstr1.
15913 2010-10-05  Eric Blake  <eblake@redhat.com>
15915         [BZ #12092]
15916         * string/str-two-way.h (two_way_long_needle): Always clear memory
15917         when skipping input due to the shift table.
15919 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
15921         [BZ #12005]
15922         * malloc/mcheck.c: Handle large requests.
15924         [BZ #12077]
15925         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
15926         for strncmp and strncasecmp.
15927         * string/stratcliff.c: Add tests for strcmp and strncmp.
15928         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
15930 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
15932         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
15933         __set_fpscr.
15935 2010-09-30  Andreas Jaeger  <aj@suse.de>
15937         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
15938         (CGROUP_SUPER_MAGIC): Define.
15939         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
15940         Handle btrfs and cgroup file systems.
15941         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
15942         Likewise.
15944 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
15946         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
15947         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
15949 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15951         [BZ #12067]
15952         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
15953         trying to locate the ELF header.
15955 2010-09-27  Andreas Schwab  <schwab@redhat.com>
15957         [BZ #11611]
15958         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
15959         Mask out sign-bit copies when constructing f_fsid.
15961 2010-09-24  Petr Baudis <pasky@suse.cz>
15963         * debug/stack_chk_fail_local.c: Add missing licence exception.
15964         * debug/warning-nop.c: Likewise.
15966 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
15968         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
15969         implementing getdents64 using getdents syscall, set d_type if
15970         __ASSUME_GETDENTS32_D_TYPE.
15972 2010-09-16  Andreas Schwab  <schwab@redhat.com>
15974         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
15975         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
15977 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
15979         [BZ #12037]
15980         * posix/unistd.h: Undo change of feature selection for ftruncate from
15981         2010-01-11.
15983 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
15985         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
15986         detection.
15988 2010-09-20  Andreas Schwab  <schwab@redhat.com>
15990         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
15991         fanotify_mark.
15992         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
15994 2010-09-14  Andreas Schwab  <schwab@redhat.com>
15996         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
15997         variables after CHECK_SP call.
15998         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
16000 2010-09-13  Andreas Schwab  <schwab@redhat.com>
16001             Ulrich Drepper  <drepper@redhat.com>
16003         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
16004         re-relocationg ld.so.
16005         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
16006         _dl_init_paths call.
16007         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
16008         here anymore.
16010 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
16012         * resolv/res_init.c (__res_vinit): Count the default server we added.
16014 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
16015             Ulrich Drepper  <drepper@redhat.com>
16017         [BZ #11968]
16018         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
16019         (____longjmp_chk): Use %ebx for saving value across system call.
16020         Add unwind info.
16022 2010-09-06  Andreas Schwab  <schwab@redhat.com>
16024         * manual/Makefile: Don't mix pattern rules with normal rules.
16026 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
16028         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
16029         operation.
16030         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
16031         * libio/iofopncook.c (_IO_cookie_init): Likewise.
16032         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
16033         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
16034         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16035         Likewise.
16037 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
16039         [BZ #11979]
16040         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
16041         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
16043 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
16045         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
16046         * sysdeps/x86_64/addmul_1.S: Likewise.
16047         * sysdeps/x86_64/lshift.S: Likewise.
16048         * sysdeps/x86_64/mul_1.S: Likewise.
16049         * sysdeps/x86_64/rshift.S: Likewise.
16050         * sysdeps/x86_64/sub_n.S: Likewise.
16051         * sysdeps/x86_64/submul_1.S: Likewise.
16053 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16055         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
16056         Define __sched_param instead of SCHED_* and sched_param when
16057         <bits/sched.h> is included with __need_schedparam defined.
16058         * bits/sched.h [__need_schedparam]
16059         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
16060         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
16061         (__defined_schedparam): Define to 1.
16062         (__sched_param): New structure, identical to sched_param.
16063         (__need_schedparam): Undefine.
16065 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
16067         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
16068         (epoll_create1): Declare.
16070         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
16072 2010-08-31  Andreas Schwab  <schwab@redhat.com>
16074         [BZ #7066]
16075         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
16076         shifting retval into place.
16078 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
16080         * nis/rpcsvc/nis.h: Update copyright notice.
16081         * nis/rpcsvc/nis.x: Likewise.
16082         * nis/rpcsvc/nis_callback.h: Likewise.
16083         * nis/rpcsvc/nis_callback.x: Likewise.
16084         * nis/rpcsvc/nis_object.x: Likewise.
16085         * nis/rpcsvc/nis_tags.h: Likewise.
16086         * nis/rpcsvc/yp.h: Likewise.
16087         * nis/rpcsvc/yp.x: Likewise.
16088         * nis/rpcsvc/ypupd.h: Likewise.
16089         * nis/yp_xdr.c: Likewise.
16090         * nis/ypupdate_xdr.c: Likewise.
16092         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
16093         mainly the body of pmap_getport.  Add parameters to specify timeouts.
16094         (pmap_getport): Use __libc_rpc_getport.
16095         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
16096         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
16097         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
16099 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
16101         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
16102         fanotify_mark.
16104 2010-08-27  Roland McGrath  <roland@redhat.com>
16106         * sysdeps/i386/i686/multiarch/Makefile
16107         (CFLAGS-varshift.c): New variable.
16109 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
16111         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
16112         * sysdeps/i386/i686/multiarch/varshift.c: New file.
16114         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
16116         * sysdeps/x86_64/strlen.S: Minimal code improvement.
16118 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
16120         * sysdeps/x86_64/strlen.S: Unroll the loop.
16121         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16122         strlen-sse2 strlen-sse2-bsf.
16123         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
16124         __strlen_no_bsf if bit_Slow_BSF is set.
16125         (__strlen_sse42): Removed.
16126         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
16127         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
16129 2010-08-25  Roland McGrath  <roland@redhat.com>
16131         * sysdeps/x86_64/multiarch/varshift.S: File removed.
16132         * sysdeps/x86_64/multiarch/varshift.c: New file.
16133         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
16134         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
16135         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
16136         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
16138 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
16140         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16141         strlen-sse2 strlen-sse2-bsf.
16142         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
16143         __strlen_sse2_bsf if bit_Slow_BSF is unset.
16144         (__strlen_sse2): Removed.
16145         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
16146         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
16147         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
16148         bit_Slow_BSF for Atom.
16149         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
16150         (index_Slow_BSF): Define.
16151         (HAS_SLOW_BSF): Define.
16153 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
16155         [BZ #10851]
16156         * resolv/res_init.c (__res_vinit): When no server address at all
16157         is given default to loopback.
16159 2010-08-24  Roland McGrath  <roland@redhat.com>
16161         * configure.in: Remove config-name.h generation.
16162         * configure: Regenerated.
16163         * config-name.in: File removed.
16164         * scripts/config-uname.sh: New file.
16165         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
16166         ($(objdir)config-name.h): New target.
16168         * sunrpc/rpc_parse.h: Avoid nested comment.
16170 2010-08-24  Richard Henderson  <rth@redhat.com>
16171             Ulrich Drepper  <drepper@redhat.com>
16172             H.J. Lu  <hongjiu.lu@intel.com>
16174         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
16175         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
16176         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
16177         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
16178         _mm_alignr_epi8 with _mm_loadu_si128.
16179         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
16180         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
16181         (__m128i_shift_right): Removed.
16182         * sysdeps/i386/i686/multiarch/varshift.h: New file.
16183         * sysdeps/i386/i686/multiarch/varshift.S: New file.
16184         * sysdeps/x86_64/multiarch/varshift.h: New file.
16185         * sysdeps/x86_64/multiarch/varshift.S: New file.
16187 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
16189         * configure.in: Move assembler checks to before sysdep dir checking.
16191 2010-08-20  Petr Baudis  <pasky@suse.cz>
16193         * LICENSES: Sync the sunrpc license.
16195 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
16197         * sunrpc/auth_des.c: Update copyright notice once again.
16198         * sunrpc/auth_none.c: Likewise.
16199         * sunrpc/auth_unix.c: Likewise.
16200         * sunrpc/authdes_prot.c: Likewise.
16201         * sunrpc/authuxprot.c: Likewise.
16202         * sunrpc/bindrsvprt.c: Likewise.
16203         * sunrpc/clnt_gen.c: Likewise.
16204         * sunrpc/clnt_perr.c: Likewise.
16205         * sunrpc/clnt_raw.c: Likewise.
16206         * sunrpc/clnt_simp.c: Likewise.
16207         * sunrpc/clnt_tcp.c: Likewise.
16208         * sunrpc/clnt_udp.c: Likewise.
16209         * sunrpc/clnt_unix.c: Likewise.
16210         * sunrpc/des_crypt.c: Likewise.
16211         * sunrpc/des_soft.c: Likewise.
16212         * sunrpc/get_myaddr.c: Likewise.
16213         * sunrpc/getrpcport.c: Likewise.
16214         * sunrpc/key_call.c: Likewise.
16215         * sunrpc/key_prot.c: Likewise.
16216         * sunrpc/openchild.c: Likewise.
16217         * sunrpc/pm_getmaps.c: Likewise.
16218         * sunrpc/pm_getport.c: Likewise.
16219         * sunrpc/pmap_clnt.c: Likewise.
16220         * sunrpc/pmap_prot.c: Likewise.
16221         * sunrpc/pmap_prot2.c: Likewise.
16222         * sunrpc/pmap_rmt.c: Likewise.
16223         * sunrpc/rpc/auth.h: Likewise.
16224         * sunrpc/rpc/auth_unix.h: Likewise.
16225         * sunrpc/rpc/clnt.h: Likewise.
16226         * sunrpc/rpc/des_crypt.h: Likewise.
16227         * sunrpc/rpc/key_prot.h: Likewise.
16228         * sunrpc/rpc/netdb.h: Likewise.
16229         * sunrpc/rpc/pmap_clnt.h: Likewise.
16230         * sunrpc/rpc/pmap_prot.h: Likewise.
16231         * sunrpc/rpc/pmap_rmt.h: Likewise.
16232         * sunrpc/rpc/rpc.h: Likewise.
16233         * sunrpc/rpc/rpc_des.h: Likewise.
16234         * sunrpc/rpc/rpc_msg.h: Likewise.
16235         * sunrpc/rpc/svc.h: Likewise.
16236         * sunrpc/rpc/svc_auth.h: Likewise.
16237         * sunrpc/rpc/types.h: Likewise.
16238         * sunrpc/rpc/xdr.h: Likewise.
16239         * sunrpc/rpc_clntout.c: Likewise.
16240         * sunrpc/rpc_cmsg.c: Likewise.
16241         * sunrpc/rpc_common.c: Likewise.
16242         * sunrpc/rpc_cout.c: Likewise.
16243         * sunrpc/rpc_dtable.c: Likewise.
16244         * sunrpc/rpc_hout.c: Likewise.
16245         * sunrpc/rpc_main.c: Likewise.
16246         * sunrpc/rpc_parse.c: Likewise.
16247         * sunrpc/rpc_parse.h: Likewise.
16248         * sunrpc/rpc_prot.c: Likewise.
16249         * sunrpc/rpc_sample.c: Likewise.
16250         * sunrpc/rpc_scan.c: Likewise.
16251         * sunrpc/rpc_scan.h: Likewise.
16252         * sunrpc/rpc_svcout.c: Likewise.
16253         * sunrpc/rpc_tblout.c: Likewise.
16254         * sunrpc/rpc_util.c: Likewise.
16255         * sunrpc/rpc_util.h: Likewise.
16256         * sunrpc/rpcinfo.c: Likewise.
16257         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
16258         * sunrpc/rpcsvc/key_prot.x: Likewise.
16259         * sunrpc/rpcsvc/klm_prot.x: Likewise.
16260         * sunrpc/rpcsvc/mount.x: Likewise.
16261         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
16262         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
16263         * sunrpc/rpcsvc/rex.x: Likewise.
16264         * sunrpc/rpcsvc/rstat.x: Likewise.
16265         * sunrpc/rpcsvc/rusers.x: Likewise.
16266         * sunrpc/rpcsvc/sm_inter.x: Likewise.
16267         * sunrpc/rpcsvc/spray.x: Likewise.
16268         * sunrpc/rpcsvc/yppasswd.x: Likewise.
16269         * sunrpc/rtime.c: Likewise.
16270         * sunrpc/svc.c: Likewise.
16271         * sunrpc/svc_auth.c: Likewise.
16272         * sunrpc/svc_authux.c: Likewise.
16273         * sunrpc/svc_raw.c: Likewise.
16274         * sunrpc/svc_run.c: Likewise.
16275         * sunrpc/svc_simple.c: Likewise.
16276         * sunrpc/svc_tcp.c: Likewise.
16277         * sunrpc/svc_udp.c: Likewise.
16278         * sunrpc/svc_unix.c: Likewise.
16279         * sunrpc/svcauth_des.c: Likewise.
16280         * sunrpc/xcrypt.c: Likewise.
16281         * sunrpc/xdr.c: Likewise.
16282         * sunrpc/xdr_array.c: Likewise.
16283         * sunrpc/xdr_float.c: Likewise.
16284         * sunrpc/xdr_mem.c: Likewise.
16285         * sunrpc/xdr_rec.c: Likewise.
16286         * sunrpc/xdr_ref.c: Likewise.
16287         * sunrpc/xdr_sizeof.c: Likewise.
16288         * sunrpc/xdr_stdio.c: Likewise.
16290         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
16291         handling.
16293 2010-08-19  Andreas Schwab  <schwab@redhat.com>
16295         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
16297 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
16299         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
16300         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
16301         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
16302         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
16303         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
16304         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
16305         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
16306         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
16307         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
16308         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
16309         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
16310         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
16311         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
16312         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
16314 2010-07-26  Anton Blanchard  <anton@samba.org>
16316         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
16317         * malloc/arena.c (heap_trim): Likewise.
16319 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
16321         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
16322         here.  Not...
16323         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
16324         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
16326 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
16328         * sysdeps/i386/elf/Makefile: New file.
16330 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
16332         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
16333         from fanotify_init.
16334         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
16335         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
16337 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
16339         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
16340         of strncasecmp_l.
16341         * sysdeps/multiarch/strcmp.S: Likewise.
16343 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
16345         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
16346         strncase_l-nonascii.
16347         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
16348         Add strncase_l-ssse3.
16349         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
16350         * sysdeps/x86_64/strcmp.S: Likewise.
16351         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
16352         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
16353         * sysdeps/x86_64/strncase.S: New file.
16354         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
16355         * sysdeps/x86_64/strncase_l.S: New file.
16356         * string/Makefile (strop-tests): Add strncasecmp.
16357         * string/test-strncasecmp.c: New file.
16359         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
16360         warning.
16362         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
16363         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
16365 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
16367         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
16369 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
16371         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
16372         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
16373         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
16375 2010-05-01  Alan Modra  <amodra@gmail.com>
16377         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
16378         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
16379         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
16380         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
16381         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
16382         tidying.  Don't tail-call __sigjmp_save for static lib.
16383         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
16384         save location.
16385         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
16386         (CALL_MCOUNT): Add eh info, and nop after bl.
16387         (TAIL_CALL_SYSCALL_ERROR): New macro.
16388         (PSEUDO_RET): Use it.
16389         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
16390         Correct save location of integer regs and cr.
16391         (_dl_profile_resolve): Correct cr save location.  Delete nops
16392         after bl when SHARED.  Reduce cfi size a little by better
16393         placement of cfi directives.
16394         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
16395         make a stack frame.  Instead use parm save area as a temp.
16396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
16397         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
16398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
16399         Don't make a stack frame for parent, use parm save area.
16400         Increase child stack frame to 112 bytes.  Don't save unused reg,
16401         and adjust reg usage.  Set up cfi on error recovery and
16402         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
16403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
16404         (__makecontext): Add dummy nop after jump to exit.
16405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
16406         Use correct parm save area and cr save, reduce stack frame.
16407         Correct cfi for possible PSEUDO_RET frame setup.
16408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
16409         Branch to local label emitted by PSEUDO_RET rather than
16410         __syscall_error.
16412 2010-08-12  Andreas Schwab  <schwab@redhat.com>
16414         [BZ #11904]
16415         * locale/programs/locale.c (print_assignment): New function.
16416         (show_locale_vars): Use it.
16418 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
16420         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
16421         field.
16422         (struct statfs64): Likewise.
16423         (_STATFS_F_FLAGS): Define.
16424         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
16425         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16426         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
16427         (ST_VALID): Define locally.
16428         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
16429         __statvfs_getflags, use the provided value.
16430         * sysdeps/unix/sysv/linux/kernel-features.h: Define
16431         __ASSUME_STATFS_F_FLAGS.
16433         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
16435         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
16436         Add sys/fanotify.h.
16437         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
16438         fanotify_mask for GLIBC_2.13.
16439         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
16440         fanotify_init and fanotify_mark.
16441         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
16442         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
16444         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
16445         Add prlimit.
16446         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
16447         prlimit64 for GLIBC_2.13.
16448         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
16449         prlimit64.
16450         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
16451         syscall.
16452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
16453         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
16454         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
16455         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
16456         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
16457         add prlimit alias.
16458         * sysdeps/unix/sysv/linux/prlimit.c: New file.
16460         [BZ #11903]
16461         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
16462         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
16464         * nss/Makefile: Add rules to build and run tst-nss-test1.
16465         * shlib-versions: Add entry for libnss_test1.
16466         * nss/nss_test1.c: New file.
16467         * nss/tst-nss-test1.c: New file.
16469         * nss/nsswitch.c (__nss_database_custom): Define new variable.
16470         (__nss_configure_lookup): Set appropriate entry in
16471         __nss_configure_lookup to true.
16472         * nss/nsswitch.h: Define enum with indeces of databases in
16473         databases and __nss_database_custom arrays.  Declare
16474         __nss_database_custom.
16475         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
16476         to avoid using nscd when custom rules are installed.
16477         * nss/getXXbyYY_r.c: Likewise.
16478         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
16480         * nss/nss_files/files-parse.c: Whitespace fixes.
16482 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
16484         [BZ #11883]
16485         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
16486         * posix/fnmatch_loop.c: Likewise.
16488 2010-07-17  Andi Kleen  <ak@linux.intel.com>
16490         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
16491         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
16492         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
16493         * Versions.def [GLIBC_2.13]: Add.
16495 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
16497         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16498         Also fail if tpwd after pwuid call is NULL.
16500 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16502         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
16503         when converting to ms.
16505 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16507         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
16508         EOPNOTSUPP errors with ENOTTY.
16509         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
16510         EOPNOTSUPP errors with ENOTTY.
16512 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
16514         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
16515         Add strcasecmp_l-ssse3.
16516         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
16517         strcasecmp.
16518         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
16519         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
16520         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
16522 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
16524         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
16526         * string/Makefile (strop-tests): Add strcasecmp.
16527         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
16528         strcasecmp_l-nonascii.
16529         (gen-as-const-headers): Add locale-defines.sym.
16530         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
16531         * sysdeps/x86_64/strcasecmp.S: New file.
16532         * sysdeps/x86_64/strcasecmp_l.S: New file.
16533         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
16534         * sysdeps/x86_64/locale-defines.sym: New file.
16535         * string/test-strcasecmp.c: New file.
16537         * string/test-strcasestr.c: Test both ends of the range of characters.
16538         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
16540 2010-07-29  Roland McGrath  <roland@redhat.com>
16542         [BZ #11856]
16543         * manual/locale.texi (Yes-or-No Questions): Fix example code.
16545 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
16547         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
16548         for ld.so.
16550 2010-07-27  Andreas Schwab  <schwab@redhat.com>
16552         * manual/memory.texi (Malloc Tunable Parameters): Document
16553         M_PERTURB.
16555 2010-07-26  Roland McGrath  <roland@redhat.com>
16557         [BZ #11840]
16558         * configure.in (-fgnu89-inline check): Set and substitute
16559         gnu89_inline, not libc_cv_gnu89_inline.
16560         * configure: Regenerated.
16561         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
16563 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
16565         * string/test-strnlen.c: New file.
16566         * string/Makefile (strop-tests): Add strnlen.
16567         * string/tester.c (test_strnlen): Add a few more test cases.
16568         * string/tst-strlen.c: Better error reporting.
16570         * sysdeps/x86_64/strnlen.S: New file.
16572 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
16574         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
16575         lower-latency instructions.
16577 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
16579         * string/test-strcasestr.c: New file.
16580         * string/test-strstr.c: New file.
16581         * string/Makefile (strop-tests): Add strstr and strcasestr.
16582         * string/str-two-way.h: Don't undefine MAX.
16583         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
16585 2010-07-21  Andreas Schwab  <schwab@redhat.com>
16587         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16588         strcasestr-nonascii.
16589         (CFLAGS-strcasestr-nonascii.c): Define.
16590         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
16591         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
16592         Remove unused attribute.
16594 2010-07-20  Roland McGrath  <roland@redhat.com>
16596         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
16597         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
16598         ld.so.cache was broken.  With it, there is no way to disable dsocaps
16599         like LD_HWCAP_MASK can disable hwcaps.
16601 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
16603         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
16605 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
16607         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
16608         call in strcasestr.
16609         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
16610         __strcasestr_sse42_nonascii.
16611         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
16612         strcasestr-nonascii.c.
16613         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
16615 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
16617         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
16618         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
16619         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
16620         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
16622 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
16624         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
16625         fcntl.
16627 2010-07-06  Andreas Schwab  <schwab@redhat.com>
16629         [BZ #11577]
16630         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
16631         dl_signal_cerror.
16633 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
16635         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
16636         _PC_PIPE_BUF using F_GETPIPE_SZ.
16638 2010-07-05  Roland McGrath  <roland@redhat.com>
16640         * manual/arith.texi (Rounding Functions): Fix rint description
16641         implicit in round description.
16643 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
16645         * elf/Makefile: Fix linking for a few tests to make recent linker
16646         happy.
16648 2010-06-30  Andreas Schwab  <schwab@redhat.com>
16650         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16651         $(common-objpfx)libc_nonshared.a.
16653 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
16655         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
16656         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
16657         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
16658         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
16659         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
16660         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
16661         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
16662         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
16663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
16664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
16665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
16666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
16667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
16668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
16669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
16670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
16671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
16672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
16673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
16674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
16675         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
16676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
16677         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
16678         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
16679         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
16680         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
16681         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
16682         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
16683         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
16684         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
16685         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
16686         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
16687         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
16688         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
16689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
16690         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
16691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
16692         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
16693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
16694         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
16695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
16696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
16697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
16698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
16699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
16700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
16701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
16702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
16704 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
16706         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
16707         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
16708         * string/memmove.c (memmove): Renamed to ...
16709         (MEMMOVE): ...this.  Default to memmove.
16710         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
16711         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
16712         (END_CHK): Define.
16713         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16714         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
16715         mempcpy-ssse3-back memmove-ssse3-back.
16716         * sysdeps/x86_64/multiarch/bcopy.S: New file .
16717         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
16718         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
16719         * sysdeps/x86_64/multiarch/memcpy.S: New file.
16720         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
16721         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
16722         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
16723         * sysdeps/x86_64/multiarch/memmove.c: New file.
16724         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
16725         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
16726         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
16727         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
16728         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
16729         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
16730         Define.
16731         (index_Fast_Copy_Backward): Define.
16732         (HAS_ARCH_FEATURE): Define.
16733         (HAS_FAST_REP_STRING): Define.
16734         (HAS_FAST_COPY_BACKWARD): Define.
16736 2010-06-21  Andreas Schwab  <schwab@redhat.com>
16738         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16739         Restore proper fallback handling.
16741 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
16743         [BZ #11701]
16744         * posix/group_member.c (__group_member): Correct checking loop.
16746         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
16747         OOM in getpwuid_r correctly.  Return error number when the caller
16748         should return, otherwise -1.
16749         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
16750         call returning > 0 value.
16751         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
16753 2010-06-07  Andreas Schwab  <schwab@redhat.com>
16755         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
16756         libc_nonshared.a from targets in modules-names.
16758 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
16760         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
16761         requires it.
16763 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
16765         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
16766         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
16767         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
16768         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
16770 2010-06-02  Andreas Schwab  <schwab@redhat.com>
16772         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
16774 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
16776         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
16777         and F_GETPIPE_SZ.
16778         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
16779         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16780         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16781         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16782         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16783         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
16785 2010-06-14  Roland McGrath  <roland@redhat.com>
16787         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
16789 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
16791         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
16792         __REDIRECT followed by __THROW.
16793         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
16794         * posix/getopt.h (getopt): Likewise.
16796 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
16798         * hurd/lookup-at.c (__file_name_lookup_at): Accept
16799         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
16800         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
16801         in AT_FLAGS.
16802         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
16803         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
16805 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
16807         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
16809 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
16811         [BZ #11640]
16812         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16813         Properly check family and model.
16815 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
16817         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
16819 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
16821         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
16823 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
16825         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
16826         symbol reference.
16828 2010-05-19  Andreas Schwab  <schwab@redhat.com>
16830         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
16831         symbol reference.
16833 2010-05-21  Andreas Schwab  <schwab@redhat.com>
16835         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
16836         and internal_recvmmsg.
16837         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
16838         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
16839         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
16840         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
16842         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
16843         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
16844         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
16846 2010-05-20  Andreas Schwab  <schwab@redhat.com>
16848         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
16850 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
16852         POWER7 optimizations.
16853         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
16854         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
16856 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
16858         * version.h: Update for 2.13 development version.
16860 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
16862         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
16863         exceptions.  Return 0.
16865 2010-05-07  Roland McGrath  <roland@redhat.com>
16867         * elf/ldconfig.c (main): Add a const.
16869 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
16871         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
16872         (args_options): Add no-idn option.
16873         (ahosts_keys_int): Add idn_flags to ai_flags.
16874         (parse_option): Handle 'i' option to clear idn_flags.
16876         * malloc/malloc.c (_int_free): Possible race in the most recently
16877         added check.  Only act on the data if no current modification
16878         happened.
16880 See ChangeLog.17 for earlier changes.