Optimize fdim/fdimf on sparc.
[glibc.git] / ChangeLog
blob9fa68b8977ec8ebb98b4940bca62028d864ad3c9
1 2013-01-14  David S. Miller  <davem@davemloft.net>
3         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4         fdim/fdimf to libm-sysdep_routines.
5         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
6         file.
7         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
8         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
9         file.
10         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
11         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
12         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
13         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
14         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
15         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
16         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
18 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
21         to optimize copies.
23         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
24         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
25         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
27         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
28         local variable MPTWO.
29         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
30         Likewise.
32 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
34         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
35         GLOB_NOESCAPE.
37 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
39         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
41 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
43         * manual/pattern.texi (glob_t): Document gl_flags.
44         (glob64_t): Likewise.
46 2013-01-11  David S. Miller  <davem@davemloft.net>
48         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
49         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
50         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
51         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
52         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
53         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
54         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
55         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
56         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
57         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
58         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
59         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
60         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
62         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
63         sparc V9 rather than using V8 code.
64         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
65         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
67         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
68         Move to...
69         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
70         Here.
72 2013-01-11  Roland McGrath  <roland@hack.frob.com>
74         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
75         not in the main loop.
76         * configure: Regenerated.
78 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
80         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
81         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
82         to just #else.
83         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
84         [!__GLIBC_HAVE_LONG_LONG] case.
85         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
86         condition to just #else.
87         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
88         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
89         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
90         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
91         unconditional.
92         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
93         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
94         #elif condition to just #else.
95         * sysdeps/unix/sysv/linux/sys/sysmacros.h
96         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
97         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
98         #elif condition to just #else.
100 2013-01-11  Steve Ellcey  <sellcey@mips.com>
102         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
103         (EF_MIPS_ARCH_64): Fix value.
104         (EF_MIPS_ARCH_32R2): New.
105         (EF_MIPS_ARCH_64R2): New.
107 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
109         * Makeconfig (+link-pie-before-libc): New.
110         (+link-pie-after-libc): Likewise.
111         (+link-pie-tests): Likewise.
112         (+link-pie): Rewritten.
113         (link-before-libc): Remove $(config-LDFLAGS).
114         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
115         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
116         (config-LDFLAGS): Renamed to ...
117         (rtld-LDFLAGS): This.
118         (rtld-tests-LDFLAGS): New macro.
119         (link-libc-rpath-link): Likewise.
120         (link-libc-tests-rpath-link): Likewise.
121         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
122         (link-libc): Prepand $(link-libc-rpath-link).
123         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
124         (test-program-prefix): New macro.
125         (test-via-rtld-prefix): Likewise.
126         (test-program-cmd): Likewise.
127         (host-test-program-cmd): Likewise.
128         * Makefile ($(common-objpfx)testrun.sh): Replace
129         $(run-program-prefix) with $(test-program-prefix).
130         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
131         $(rtld-LDFLAGS).
132         ($(common-objpfx)shlib.lds): Likewise.
133         (build-module-helper): Likewise.
134         ($(common-objpfx)format.lds): Likewise.
135         * Rules (binaries-pie-tests): New.
136         (binaries-pie-notests): Likewise.
137         (binaries-pie): Rewritten.
138         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
139         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
140         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
141         (make-test-out): Replace $(host-built-program-cmd) with
142         $(host-test-program-cmd).
143         * config.make.in (build-hardcoded-path-in-tests): New variable.
144         * configure.in (--enable-hardcoded-path-in-tests): New configure
145         option.
146         (hardcoded_path_in_tests): New AC_SUBST.
147         * configure: Regenerated.
148         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
149         $(built-program-cmd) with $(test-program-cmd).
150         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
151         (test_program_cmd): This.
152         * elf/Makefile ($(objpfx)order.out): Run test with
153         $(test-program-prefix).
154         ($(objpfx)order2.out): Likewise.
155         ($(objpfx)tst-initorder.out): Likewise.
156         ($(objpfx)tst-initorder2.out): Likewise.
157         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
158         $(test-program-cmd).
159         ($(objpfx)tst-array1-static.out): Likewise.
160         ($(objpfx)tst-array2.out): Likewise.
161         ($(objpfx)tst-array3.out): Likewise.
162         ($(objpfx)tst-array4.out): Likewise.
163         ($(objpfx)tst-array5.out): Likewise.
164         ($(objpfx)tst-array5-static.out): Likewise.
165         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
166         $(test-program-cmd).
167         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
168         $(run-program-prefix) with $(test-program-prefix).
169         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
170         (test_program_prefix): This.
171         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
172         $(run-program-prefix) with $(test-program-prefix).
173         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
174         (test_program_prefix): This.
175         * iconvdata/tst-tables.sh: Likewise.
176         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
177         $(run-program-prefix) with $(test-program-prefix).
178         ($(objpfx)tst-translit.out): Likewise.
179         ($(objpfx)tst-gettext2.out): Likewise.
180         ($(objpfx)tst-gettext4.out): Likewise.
181         ($(objpfx)tst-gettext6.out): Likewise.
182         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
183         (test_program_prefix): This.
184         * intl/tst-gettext2.sh: Likewise.
185         * intl/tst-gettext4.sh  Likewise.
186         * intl/tst-gettext6.sh: Likewise.
187         * intl/tst-translit.sh: Likewise.
188         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
189         with $(test-program-cmd).
190         * libio/Makefile ($(objpfx)test-freopen.out): Replace
191         $(run-program-prefix) with $(test-program-prefix).
192         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
193         (test_program_prefix): This.
194         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
195         $(run-program-prefix) with $(test-program-prefix).
196         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
197         (test_program_prefix): This.
198         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
199         * posix/Makefile ($(objpfx)globtest.out): Replace
200         $(run-via-rtld-prefix) and $(test-wrapper) with
201         $(test-program-prefix) and $(test-via-rtld-prefix).
202         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
203         $(test-program-prefix).
204         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
205         $(host-test-program-cmd).
206         (tst-spawn-ARGS): Likewise.
207         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
208         $(test-program-prefix).
209         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
210         (test_via_rtld_prefix): This.
211         (test_wrapper): Renamed to ...
212         (test_program_prefix): This.
213         (run_program_prefix): Replaced by test_program_prefix.
214         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
215         (test_program_prefix): This.
216         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
217         with $(host-test-program-cmd).
218         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
219         $(run-program-prefix) with $(test-program-prefix).
220         ($(objpfx)tst-printf.out): Likewise.
221         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
222         $(test-program-cmd).
223         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
224         (test_program_prefix): This.
225         * stdio-common/tst-unbputc.sh: Likewise.
226         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
227         $(run-program-prefix) with $(test-program-prefix).
228         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
229         (test_program_prefix): This.
230         * string/Makefile ($(objpfx)tst-svc.out):  Replace
231         $(built-program-cmd) with $(test-program-cmd).
233 2013-01-11  Andreas Jaeger  <aj@suse.de>
235         [BZ #15003]
236         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
237         value. Sync with Linux 3.7.
239 2013-01-10  David S. Miller  <davem@davemloft.net>
241         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
242         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
243         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
245 2013-01-10  Roland McGrath  <roland@hack.frob.com>
247         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
248         never set.
249         * configure: Regenerated.
251 2013-01-10  David S. Miller  <davem@davemloft.net>
253         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
254         sparc V9 rather than using V8 code.
255         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
256         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
258 2013-01-10  Roland McGrath  <roland@hack.frob.com>
260         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
261         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
262         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
263         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
264         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
265         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
266         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
267         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
268         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
269         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
270         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
271         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
272         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
273         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
274         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
275         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
276         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
277         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
278         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
279         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
280         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
281         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
282         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
283         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
284         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
285         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
286         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
288 2013-01-10  David S. Miller  <davem@davemloft.net>
290         * sysdeps/sparc/fpu/libm-test-ulps: Update.
292 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
294         * posix/Makefile (tests-static): New variable.
295         (tests): Add $(tests-static).
296         (tst-exec-static-ARGS): New variable.
297         (tst-spawn-static-ARGS): Likewise.
298         * posix/tst-exec-static.c: New file.
299         * posix/tst-spawn-static.c: Likewise.
300         * posix/tst-exec.c: Support run directly.
301         * posix/tst-spawn.c: Likewise.
303 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
305         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
306         long.
307         * math/bits/mathcalls.h (llrint): Likewise.
308         (llround): Likewise.
309         * stdlib/stdlib.h (struct drand48_data): Likewise.
310         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
311         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
312         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
313         Likewise.
314         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
315         Likewise.
316         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
317         (elf_greg_t): Likewise.
318         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
319         (__jmp_buf): Likewise.
320         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
321         definitions.
322         (llrint): Likewise, for all definitions.
323         (llrintl): Likewise.
325         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
326         Remove [__GNUC__] condition.
327         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
328         condition to just [__USE_ISOC99].
329         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
331 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
333         [BZ #14200]
334         * sysdeps/unix/sysv/linux/x86/bits/environments.h
335         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
336         defined.
337         (_POSIX_V6_ILP32_OFF32): Likewise.
338         (_XBS5_ILP32_OFF32): Likewise.
339         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
340         (__ILP32_OFFBIG_LDFLAGS): Likewise.
342 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
344         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
346         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
347         doubles __mpexp_twomm1.  Adjust usage.
348         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
349         Remove.
351 2013-01-10  Andreas Schwab  <schwab@suse.de>
353         [BZ #14964]
354         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
355         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
357 2013-01-09  David S. Miller  <davem@davemloft.net>
359         [BZ #15003]
360         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
361         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
362         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
363         TCP_FASTOPEN): Define.
364         (tcp_repair_opt): New structure.
365         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
366         enum values.
367         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
368         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
369         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
370         (tcp_cookie_transactions): New structure.
372 2013-01-09  Anton Blanchard  <anton@samba.org>
374         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
375         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
376         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
377         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
379 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
381         * include/features.h (__USE_ANSI): Remove.
383 2013-01-09  Roland McGrath  <roland@hack.frob.com>
385         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
387         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
389 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
391         * sysdeps/s390/fpu/libm-test-ulps: Update.
393         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
395         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
396         (__acr): Likewise.
397         (__cpy): Likewise.
398         (norm): Likewise.
399         (denorm): Likewise.
400         (__mp_dbl): Likewise.
401         (__dbl_mp): Likewise.
402         (add_magnitudes): Likewise.
403         (sub_magnitudes): Likewise.
404         (__add): Likewise.
405         (__sub): Likewise.
406         (__mul): Likewise.
407         (__inv): Likewise.
408         (__dvd): Likewise.
409         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
410         (__acr): Likewise.
411         (__cpy): Likewise.
412         (norm): Likewise.
413         (denorm): Likewise.
414         (__mp_dbl): Likewise.
415         (__dbl_mp): Likewise.
416         (add_magnitudes): Likewise.
417         (sub_magnitudes): Likewise.
418         (__add): Likewise.
419         (__sub): Likewise.
420         (__mul): Likewise.
421         (__inv): Likewise.
422         (__dvd): Likewise.
423         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
424         (__acr): Likewise.
425         (__cpy): Likewise.
426         (norm): Likewise.
427         (denorm): Likewise.
428         (__mp_dbl): Likewise.
429         (__dbl_mp): Likewise.
430         (add_magnitudes): Likewise.
431         (sub_magnitudes): Likewise.
432         (__add): Likewise.
433         (__sub): Likewise.
434         (__mul): Likewise.
435         (__inv): Likewise.
436         (__dvd): Likewise.
438 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
440         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
441         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
442         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
443         2 && __USE_EXTERN_INLINES]: Likewise.
445 2013-01-08  Andreas Jaeger  <aj@suse.de>
447         [BZ# 14985]
448         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
449         Remove.
450         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
451         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
453 2013-01-07  Anton Blanchard  <anton@samba.org>
455         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
456         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
457         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
458         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
459         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
460         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
461         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
462         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
463         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
464         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
465         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
466         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
467         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
468         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
469         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
470         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
471         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
472         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
473         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
474         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
475         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
476         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
477         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
478         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
479         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
480         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
481         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
482         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
483         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
484         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
485         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
486         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
487         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
488         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
489         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
490         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
491         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
492         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
493         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
494         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
495         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
496         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
497         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
499 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
501         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
502         (__MALLOC_PMT): Likewise.
503         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
504         [__GNUC__], only on [_LIBC].
505         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
506         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
507         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
508         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
509         forward declaration.
510         (realloc_hook_ini): Likewise.
511         (memalign_hook_ini): Likewise.
512         (__libc_memalign): Do not use __MALLOC_PMT in variable
513         declaration.
514         (__libc_valloc): Likewise.
515         (__libc_pvalloc): Likewise.
516         (__libc_calloc): Likewise.
517         (__posix_memalign): Likewise.
519         [BZ #14996]
520         * math/s_casinh.c: Include <float.h>.
521         (__casinh): Do not do computation with squaring and square root
522         for large arguments.
523         * math/s_casinhf.c: Include <float.h>.
524         (__casinhf): Do not do computation with squaring and square root
525         for large arguments.
526         * math/s_casinhl.c: Include <float.h>.
527         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
528         (__casinhl): Do not do computation with squaring and square root
529         for large arguments.
530         * math/libm-test.inc (casin_test): Add more tests.
531         (casinh_test): Likewise.
532         * sysdeps/i386/fpu/libm-test-ulps: Update.
533         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
535 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
537         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
538         (__x86_64_raw_data_cache_size): Likewise.
539         (__x86_64_data_cache_size_half): Likewise.
540         (__x86_64_raw_data_cache_size_half): Likewise.
541         (__x86_64_shared_cache_size): Likewise.
542         (__x86_64_raw_shared_cache_size): Likewise.
543         (__x86_64_shared_cache_size_half): Likewise.
544         (__x86_64_raw_shared_cache_size_half): Likewise.
545         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
546         to ...
547         (__x86_data_cache_size): This.
548         (__x86_64_raw_data_cache_size): Renamed to ...
549         (__x86_raw_data_cache_size): This.
550         (__x86_64_data_cache_size_half): Renamed to ...
551         (__x86_data_cache_size_half): This.
552         (__x86_64_raw_data_cache_size_half): Renamed to ...
553         (__x86_raw_data_cache_size_half): This.
554         (__x86_64_shared_cache_size): Renamed to ...
555         (__x86_shared_cache_size): This.
556         (__x86_64_raw_shared_cache_size): Renamed to ...
557         (__x86_raw_shared_cache_size): This.
558         (__x86_64_shared_cache_size_half): Renamed to ...
559         (__x86_shared_cache_size_half): This.
560         (__x86_64_raw_shared_cache_size_half): Renamed to ...
561         (__x86_raw_shared_cache_size_half): This.
562         * sysdeps/x86_64/memcpy.S: Updated.
563         * sysdeps/x86_64/memset.S: Likewise.
564         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
565         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
566         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
568 2013-01-04  David S. Miller  <davem@davemloft.net>
570         * sysdeps/sparc/fpu/libm-test-ulps: Update.
572 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
574         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
575         1 to avoid redefinition warning.
576         (__USE_GNU): Don't define.
577         (init_signaling_nan): Protoize.
579         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
581 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
583         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
584         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
585         (__cpymn): Likewise.
586         (norm): Remove commented code.
587         (denorm): Likewise.
588         (__mp_dbl): Likewise.
589         (__inv): Likewise.
590         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
591         (__cpymn): Likewise.
592         (norm): Remove commented code.
593         (denorm): Likewise.
594         (__mp_dbl): Likewise.
595         (__inv): Likewise.
597         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
598         mp_no value for 1.0 and 2.0.
599         (norm): Use RADIXI instead of radixi.d.
600         (denorm): Likewise.
601         (__mul): Use 0.0 instead of zero.d.
602         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
603         mp_no value for 1.0 and 2.0.
604         (norm): Use RADIXI instead of radixi.d.
605         (denorm): Likewise.
606         (__mul): Use 0.0 instead of zero.d.
608 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
610         [BZ #14994]
611         * math/s_casinh.c (__casinh): Reduce finite argument to first
612         quadrant then set signs of results at the end.
613         * math/s_casinhf.c (__casinhf): Likewise.
614         * math/s_casinhl.c (__casinhl): Likewise.
615         * math/libm-test.inc (casin_test): Add more tests.
616         (casinh_test): Likewise.
617         * sysdeps/i386/fpu/libm-test-ulps: Update.
618         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
620 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
622         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
624         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
626         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
627         declarations.
628         (denorm): Likewise.
629         (__mp_dbl): Likewise.
630         (__inv): Likewise.
632         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
633         and adjust the header comment.
635         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
636         variable name from declaration.
638 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
640         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
641         Initialize COMMON_CPUID_INDEX_7 element.
642         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
643         (CPUID_RTM): Likewise.
644         (HAS_RTM): Likewise.
645         (COMMON_CPUID_INDEX_7): New enum.
647 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
649         [BZ #14981]
650         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
651         size is zero, record memory as freed.
653 2013-01-03  Andreas Jaeger  <aj@suse.de>
655         * po/ia.po: Add new Interlingua translation.
657 2012-01-03  Allan McRae  <allan@archlinux.org>
659         * locale/programs/localedef.c: Fix description of '--posix' flag.
661 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
663         * NEWS: Update dates in second copyright notice.
664         * README: Update copyright dates in example.
665         * manual/libc.texinfo: Update copyright dates.
666         * scripts/test-installation.pl: Update copyright date in --version
667         output.
669         * hurd/ctty-input.c: Fix copyright notice formatting.
670         * hurd/ctty-output.c: Likewise.
671         * hurd/dtable.c: Likewise.
672         * hurd/hurd-raise.c: Likewise.
673         * hurd/hurdprio.c: Likewise.
674         * hurd/msgportdemux.c: Likewise.
675         * misc/sys/file.h: Likewise.
676         * misc/sys/ioctl.h: Likewise.
677         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
678         * sysdeps/mach/hurd/chdir.c: Likewise.
679         * sysdeps/mach/hurd/fchdir.c: Likewise.
680         * sysdeps/mach/hurd/rename.c: Likewise.
681         * sysdeps/mach/hurd/rmdir.c: Likewise.
682         * sysdeps/mach/hurd/seekdir.c: Likewise.
683         * sysdeps/mach/hurd/setsid.c: Likewise.
684         * sysdeps/posix/wait3.c: Likewise.
686         * All files with FSF copyright notices: Update copyright dates
687         using scripts/update-copyrights.
688         * intl/plural.c: Regenerated.
689         * locale/programs/charmap-kw.h: Likewise.
690         * locale/programs/locfile-kw.h: Likewise.
692 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
694         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
695         four values.
697         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
698         calculation loop and add branch prediction.
700         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
701         check access beyond bounds of m1np.
703         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
704         MPTWO.
705         (__inv): Remove local variable MPTWO to use the global
706         constant.
707         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
708         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
709         variable MPTWO.
710         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
711         MP3HALFS static const.
713 2013-01-01  David S. Miller  <davem@davemloft.net>
715         * po/ca.po: Update from translation team.
717 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
719         * scripts/update-copyrights: New file.
720         * Makeconfig: Reformat copyright notice.
721         * ctype/ctype.h: Likewise.
722         * debug/swprintf_chk.c: Likewise.
723         * elf/dl-cache.c: Likewise.
724         * elf/dl-debug.c: Likewise.
725         * elf/dl-object.c: Likewise.
726         * grp/initgroups.c: Likewise.
727         * hurd/Makefile: Likewise.
728         * hurd/hurd/signal.h: Likewise.
729         * hurd/hurdfault.c: Likewise.
730         * hurd/hurdioctl.c: Likewise.
731         * hurd/hurdlookup.c: Likewise.
732         * hurd/intr-msg.c: Likewise.
733         * iconv/gconv_open.c: Likewise.
734         * libio/swprintf.c: Likewise.
735         * locale/lc-ctype.c: Likewise.
736         * locale/nl_langinfo.c: Likewise.
737         * mach/Machrules: Likewise.
738         * mach/Makefile: Likewise.
739         * malloc/obstack.h: Likewise.
740         * manual/Makefile: Likewise.
741         * manual/tsort.awk: Likewise.
742         * misc/bits/stab.def: Likewise.
743         * nis/nis_print_group_entry.c: Likewise.
744         * nis/nis_table.c: Likewise.
745         * nis/nss_compat/compat-pwd.c: Likewise.
746         * nis/nss_compat/compat-spwd.c: Likewise.
747         * po/Makefile: Likewise.
748         * posix/fnmatch.c: Likewise.
749         * posix/regex.h: Likewise.
750         * resolv/Makefile: Likewise.
751         * resolv/nss_dns/dns-network.c: Likewise.
752         * resolv/res_hconf.c: Likewise.
753         * scripts/gen-sorted.awk: Likewise.
754         * soft-fp/soft-fp.h: Likewise.
755         * stdio-common/printf.h: Likewise.
756         * stdlib/monetary.h: Likewise.
757         * stdlib/random.c: Likewise.
758         * stdlib/random_r.c: Likewise.
759         * sysdeps/generic/Makefile: Likewise.
760         * sysdeps/gnu/Makefile: Likewise.
761         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
762         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
763         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
764         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
765         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
766         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
767         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
768         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
769         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
770         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
771         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
772         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
773         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
774         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
775         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
776         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
777         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
778         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
779         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
780         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
781         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
782         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
783         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
784         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
785         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
786         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
787         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
788         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
789         * sysdeps/mach/hurd/errnos.awk: Likewise.
790         * sysdeps/mach/hurd/fork.c: Likewise.
791         * sysdeps/mach/hurd/getcwd.c: Likewise.
792         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
793         * sysdeps/mach/hurd/mmap.c: Likewise.
794         * sysdeps/mach/hurd/utimes.c: Likewise.
795         * sysdeps/mach/hurd/xmknod.c: Likewise.
796         * sysdeps/posix/profil.c: Likewise.
797         * sysdeps/posix/readdir_r.c: Likewise.
798         * sysdeps/powerpc/bits/mathdef.h: Likewise.
799         * sysdeps/powerpc/bits/setjmp.h: Likewise.
800         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
801         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
802         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
803         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
804         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
805         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
806         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
807         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
808         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
809         * sysdeps/pthread/lio_listio.c: Likewise.
810         * sysdeps/sparc/dl-procinfo.h: Likewise.
811         * sysdeps/unix/i386/sysdep.S: Likewise.
812         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
813         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
814         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
815         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
817         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
818         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
819         * sysdeps/unix/sysv/linux/speed.c: Likewise.
820         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
821         * sysdeps/wordsize-32/divdi3.c: Likewise.
822         * time/sys/time.h: Likewise.
823         * wcsmbs/Makefile: Likewise.
825 2013-01-01  David S. Miller  <davem@davemloft.net>
827         * po/fr.po: Update from translation team.
829         * catgets/gencat.c: Update copyright year.
830         * csu/version.c: Likewise.
831         * debug/catchsegv.sh: Likewise.
832         * debug/pcprofiledump.c: Likewise.
833         * debug/xtrace.sh: Likewise.
834         * elf/ldconfig.c: Likewise.
835         * elf/ldd.bash.in: Likewise.
836         * elf/pldd.c: Likewise.
837         * elf/sotruss.ksh: Likewise.
838         * elf/sprof.c: Likewise.
839         * iconv/iconv_prog.c: Likewise.
840         * iconv/iconvconfig.c: Likewise.
841         * locale/programs/locale.c: Likewise.
842         * locale/programs/localedef.c: Likewise.
843         * login/programs/pt_chown.c: Likewise.
844         * malloc/memusage.sh: Likewise.
845         * malloc/memusagestat.c: Likewise.
846         * malloc/mtrace.pl: Likewise.
847         * nscd/nscd.c: Likewise.
848         * nss/getent.c: Likewise.
849         * nss/makedb.c: Likewise.
850         * posix/getconf.c: Likewise.
852 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
854         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
855         numbers.
857 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
859         * math/bits/mathcalls.h (modf): Use __nonnull.
861 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
863         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
864         (split): Use macro CN instead of the bare value.
865         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
866         could be used.
867         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
868         instead of the bare value.
869         (power1): Likewise.
871 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
873         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
874         __ATAN_TWOM.
875         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
877         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
878         their values.
879         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
880         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
881         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
882         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
884 2012-12-28  Andreas Jaeger  <aj@suse.de>
886         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
887         values are from Linux 3.7.
889         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
890         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
892 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
894         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
895         TRUE case.
897         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
898         (norm): Likewise.
899         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
900         variables with preprocessor constants.
901         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
902         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
903         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
905 2012-12-27  Bruno Haible  <bruno@clisp.org>
907         [BZ #14317]
908         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
909         only if needed.
911 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
913         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
914         and use variable directly.
915         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
917         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
918         MPONE.
919         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
920         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
921         variable MPONE.
922         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
923         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
924         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
925         include directive.  Remove local variable MPONE.
926         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
927         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
928         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
930 2012-12-25  David S. Miller  <davem@davemloft.net>
932         * version.h (RELEASE): Set to "development".
933         (VERSION): Set to "2.17.90".
934         * NEWS: Add 2.18 section.
936 2012-12-21  David S. Miller  <davem@davemloft.net>
938         * po/hr.po: Update from translation team.
940 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
942         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
944 2012-12-19  Steve Ellcey  <sellcey@mips.com>
946         * NEWS:  Mention new memcpy for MIPS.
948 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
950         * manual/contrib.texi (Contributors): Spelling correction.
952 2012-12-15  David S. Miller  <davem@davemloft.net>
954         * po/ru.po: Update from translation team.
956 2012-12-13  David S. Miller  <davem@davemloft.net>
958         * NEWS: Mention IFUNC testsuite enhancements.
960         * po/pl.po: Update from translation team.
961         * po/bg.po: Likewise.
963         * manual/contrib.texi (Contributors): Update entries for Hongjiu
964         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
966 2012-12-11  David S. Miller  <davem@davemloft.net>
968         * po/sv.po: Update from translation team.
970         * po/vi.po: Update from translation team.
972         * po/cs.po: Update from translation team.
974         * po/de.po: Update from translation team.
975         * po/eo.po: Likewise.
976         * po/nl.po: Likewise.
978 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
980         [BZ #14246]
981         * manual/argp.texi (Argp Helper Functions): Move node to follow
982         Argp Parsing State.
984         [BZ #14872]
985         * manual/conf.texi (Limits on File System Capacity): Mention if
986         terminating null is included in the max size.
988 2012-12-10  Andreas Jaeger  <aj@suse.de>
990         * po/cs.po: Update from translation team.
992 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
994         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
995         void pointer and cast to uintptr_t.
996         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
997         path.
998         * sysdeps/s390/s390-64/memcpy.S: Likewise.
999         * sysdeps/s390/s390-64/memset.S: Likewise.
1001 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
1003         [BZ #14833]
1004         * menual/message.texi (Message Translation): Fix typos.
1005         (Helper programs for gettext): Likewise.
1007 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
1009         [BZ #14898]
1010         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
1011         Change to -1.
1013 2012-12-07  David S. Miller  <davem@davemloft.net>
1015         * po/libc.pot: Update.
1017 2012-12-07  Richard Henderson  <rth@redhat.com>
1019         [BZ #10114]
1020         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
1021         normal/normal case to before the switch.
1022         (_FP_DIV): Likewise.
1024 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
1025             Mike Frysinger  <vapier@gentoo.org>
1027         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
1028         check for __NR_fadvise64_64.
1030 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
1032         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
1033         0, not just to plain "0" as a statement.
1034         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
1035         with cw.
1037 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
1039         * NEWS: Use sourceware.org in Bugzilla URL.
1041 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
1043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1044         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
1046         * stdio-common/tst-put-error.c (do_test): Add newline to the
1047         padded test to ensure flush.
1049 2012-12-05  Jeff Law  <law@redhat.com>
1051         * sunrpc/etc.rpc (fedfs_admin): Add entry.
1053 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
1055         * README: Don't refer to ports add-on as distributed separately.
1056         Mention AArch64 in list of systems supported in the ports add-on.
1058         * LICENSES: Add more non-FSF copyright and license notices.
1060         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
1061         ((unused)).
1063         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
1065         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
1066         10000 as width of padded output.
1068 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
1070         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
1072         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
1073         variable LX with __attribute__ ((unused)).
1074         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
1075         Likewise.
1076         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
1077         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
1078         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
1079         with __attribute__ ((unused)).
1081 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
1083         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
1085 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
1087         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
1088         (CFLAGS-nldbl-acos.c): New variable.
1089         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
1090         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
1091         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
1092         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
1093         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
1094         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
1095         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
1096         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
1097         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
1098         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
1099         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
1100         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
1101         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
1102         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
1103         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
1104         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
1105         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
1106         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
1107         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
1108         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
1109         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
1110         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
1111         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
1112         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
1113         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
1114         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
1115         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
1116         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
1117         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
1118         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
1119         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
1120         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
1121         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
1122         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
1123         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
1124         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
1125         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
1126         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
1127         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
1128         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
1129         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
1130         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
1131         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
1132         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
1133         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
1134         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
1135         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
1136         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
1137         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
1138         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
1139         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
1140         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
1141         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
1142         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
1143         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
1144         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
1145         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
1146         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
1147         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
1148         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
1149         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
1150         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
1151         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
1152         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
1153         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
1154         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
1155         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
1156         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
1157         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
1158         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
1159         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
1160         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
1161         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
1162         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
1163         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
1164         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
1165         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
1166         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
1167         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
1168         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
1169         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
1170         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
1171         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
1172         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
1173         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
1174         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
1175         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
1176         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
1177         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
1178         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
1179         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
1180         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
1181         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
1182         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
1183         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
1184         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
1185         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
1187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1188         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
1190         [BZ #14914]
1191         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
1192         whole low double instead of just low 47 bits when splitting values
1193         into two parts.
1195 2012-12-03  Allan McRae  <allan@archlinux.org>
1197         * manual/stdio.texi (Predefined Printf Handlers): Remove
1198         @hsep and @vsep usage.
1200 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
1202         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
1203         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
1205 2012-12-03  Jeff Law  <law@redhat.com>
1207         * time/sys/time.h (settimeofday): Do not mark TV argument
1208         as __nonnull.
1210 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
1212         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
1213         when currently writing and seek to current position when not.
1214         * libio/Makefile (tests): Remove bug-fclose1.
1215         * libio/bug-fclose1.c: Delete.
1217 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
1219         * manual/arith.texi (feenableexcept): Fix typo.
1220         (fedisableexcept): Likewise.
1222 2012-11-30  Roland McGrath  <roland@hack.frob.com>
1224         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
1225         second, differently-typed declaration, rather than a cast.
1227 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1229         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
1230         * include/rpc/svc.h: ... here.
1232 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
1234         [BZ #13013]
1235         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
1236         depending n and resplen2 to catch cases where answer
1237         equals answerp2.
1239 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
1241         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
1242         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
1244 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
1246         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
1248 2012-11-29  Roland McGrath  <roland@hack.frob.com>
1250         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
1252 2012-11-28  Jeff Law  <law@redhat.com>
1254         [BZ #13761]
1255         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
1256         dataset_temporary.  Track alloca usage into alloca_used.
1257         If dataset is large allocate and release it via malloc/free.
1259 2012-06-04  Florian Weimer  <fweimer@redhat.com>
1261         [BZ #14197]
1262         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
1264 2012-11-28  David S. Miller  <davem@davemloft.net>
1266         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1268 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
1270         [BZ #14803]
1271         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
1272         of pi/2 rounded to nearest to 64 bits.
1273         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
1274         nearest to 64 bits.
1275         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
1276         bits.
1278 2012-11-28  Jeff Law <law@redhat.com>
1279             Martin Osvald <mosvald@redhat.com>
1281         [BZ #14889]
1282         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
1283         * sunrpc/svc.c: Include time.h.
1284         (__svc_accept_failed): New function.
1285         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
1286         any reason other than EINTR, call __svc_accept_failed.
1287         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
1288         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
1290 2012-11-28  Andreas Schwab  <schwab@suse.de>
1292         * scripts/abilist.awk: Also handle indirect functions in .opd
1293         section.
1295 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
1297         [BZ #13881]
1298         * sysdeps/x86/fpu/powl_helper.c: New file.
1299         * sysdeps/x86/fpu/Makefile: Likewise.
1300         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
1301         (p3): New object.
1302         (__ieee754_powl): Use __powl_helper for finite arguments except
1303         integer exponents below 8.
1304         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
1305         (p3): New object.
1306         (__ieee754_powl): Use __powl_helper for finite arguments except
1307         integer exponents below 8.
1308         * math/libm-test.inc (pow_test): Add more tests and enable some
1309         previously disabled tests.
1310         * sysdeps/i386/fpu/libm-test-ulps: Update.
1311         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1313 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1314             Carlos O'Donell  <carlos_odonell@mentor.com>
1316         * nss/makedb.c (is_prime): Assert that input is odd and greater
1317         than 4.  Note that fact in a comment too.
1318         (next_prime): Add 4 to input.
1320 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1322         [BZ #11741]
1323         * libio/Makefile (tests): Add test case tst-fwrite-error.
1324         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
1325         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
1326         * libio/tst-fwrite-error.c: New test case.
1328 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
1330         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
1331         before casting to void *.
1332         * include/libc-internal.h (__pointer_type): New macro.
1333         (__integer_if_pointer_type_sub): Likewise.
1334         (__integer_if_pointer_type): Likewise.
1335         (cast_to_integer): Likewise.
1336         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
1337         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
1338         before casting to atomic64_t.
1339         (atomic_exchange_acq): Likewise.
1340         (__arch_exchange_and_add_body): Likewise.
1341         (__arch_add_body): Likewise.
1342         (atomic_add_negative): Likewise.
1343         (atomic_add_zero): Likewise.
1345 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
1347         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
1348         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
1349         (add_fdes): Likewise.
1350         (linear_search_fdes): Likewise.
1351         (binary_search_unencoded_fdes): Likewise.
1353 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
1355         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
1357 2012-11-24  Adam Conrad  <adconrad@0c3.net>
1359         * configure.in: Autodetect C++ header directories.
1360         * configure: Regenerated.
1362 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
1364         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
1366 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
1368         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1370 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
1372         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
1373         LDBL_MANT_DIG == 106]: Disable some tests.
1374         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
1375         Likewise.
1376         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
1377         Likewise.
1379         [BZ #14871]
1380         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
1381         input for small inputs.  Return +/- pi/2 for large inputs.
1382         * math/libm-test.inc (atan_test): Add more tests.
1384         * sysdeps/generic/unwind-dw2-fde-glibc.c
1385         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
1386         __attribute__ ((unused)).
1388         [BZ #14645]
1389         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
1390         x * y if x and y are nonzero and z is zero.
1392         [BZ #14811]
1393         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
1394         nonzero exponents with absolute value below 0x1p-117 to +/-
1395         0x1p-117.
1397         [BZ #14869]
1398         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
1399         up arguments below 2**-450, not just those below 2**-500.
1400         * math/libm-test.inc (hypot_test): Add another test.
1402         [BZ #14868]
1403         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
1404         Return a+b for ratio over 2**120, not 2**60.
1405         * math/libm-test.inc (hypot_test): Add another test.
1407         * math/libm-test.inc (clog_test): Use
1408         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
1409         (clog10_test): Likewise.
1411         [BZ #6778]
1412         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
1414 2012-11-22  Andreas Schwab  <schwab@suse.de>
1416         * sysdeps/i386/fpu/libm-test-ulps: Update.
1418 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
1420         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
1421         printf output with newline.
1423 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
1425         [BZ #14865]
1426         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
1427         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
1428         -z nodlopen, -z initfirst and -z execstack support.
1429         * configure: Regenerated.
1431         * elf/elf.h (DF_1_NODIRECT): New macro.
1432         (DF_1_IGNMULDEF): Likewise.
1433         (DF_1_NOKSYMS): Likewise.
1434         (DF_1_NOHDR): Likewise.
1435         (DF_1_EDITED): Likewise.
1436         (DF_1_NORELOC): Likewise.
1437         (DF_1_SYMINTPOSE): Likewise.
1438         (DF_1_GLOBAUDIT): Likewise.
1439         (DF_1_SINGLETON): Likewise.
1440         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
1441         DT_1_SUPPORTED_MASK bits.
1442         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
1444 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
1446         * sysdeps/unix/make-syscalls.sh: Document prefixes.
1448 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
1450         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
1451         macro.
1453         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
1454         (sendmmsg): Move declarations...
1455         * socket/sys/socket.h: ... here.
1456         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
1457         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
1458         include it from...
1459         * socket/recvmmsg.c: ... this new file.
1460         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
1461         (sendmmsg): Rename to __sendmmsg, create weak alias and make
1462         definition of __sendmmsg hidden.
1463         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
1464         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
1465         Move ENOSYS stub into and include it from...
1466         * socket/sendmmsg.c: ... this new file.
1467         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
1468         (sysdep_routines): Move recvmmsg and sendmmsg...
1469         * socket/Makefile (routines): ... here.
1470         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
1471         (GLIBC_PRIVATE): Add __sendmmsg.
1472         * include/sys/socket.h (__sendmmsg): Add declarations.
1473         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
1474         sendmmsg.
1476 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
1478         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
1479         variable I1 with __attribute__ ((unused)).
1480         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
1482 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
1484         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
1485         DUMMY variables with __attribute__ ((unused)).
1487         * bits/byteswap.h: Include <bits/types.h>.
1488         (__bswap_64): Use __uint64_t instead of unsigned long long int.
1490 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
1492         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
1493         string_t.  Do not manually set errno.
1494         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
1495         length with __strnlen.  Make sure to both set errno and return it on
1496         failure.
1498 2012-11-19  David S. Miller  <davem@davemloft.net>
1500         With help from Joseph Myers.
1501         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
1502         very large arguments properly.
1503         * math/libm-test.inc (atan_test): New tests.
1504         (atan2_test): New tests.
1505         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1506         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1508 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
1510         [BZ #14856]
1511         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
1512         Define to 3.
1514         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
1515         [POSIX] (EADDRNOTAVAIL): Likewise.
1516         [POSIX] (EAFNOSUPPORT): Likewise.
1517         [POSIX] (EALREADY): Likewise.
1518         [POSIX] (ECONNABORTED): Likewise.
1519         [POSIX] (ECONNREFUSED): Likewise.
1520         [POSIX] (ECONNRESET): Likewise.
1521         [POSIX] (EDESTADDRREQ): Likewise.
1522         [POSIX] (EDQUOT): Likewise.
1523         [POSIX] (EHOSTUNREACH): Likewise.
1524         [POSIX] (EIDRM): Likewise.
1525         [POSIX] (EISCONN): Likewise.
1526         [POSIX] (ELOOP): Likewise.
1527         [POSIX] (EMULTIHOP): Likewise.
1528         [POSIX] (ENETDOWN): Likewise.
1529         [POSIX] (ENETUNREACH): Likewise.
1530         [POSIX] (ENOBUFS): Likewise.
1531         [POSIX] (ENODATA): Likewise.
1532         [POSIX] (ENOLINK): Likewise.
1533         [POSIX] (ENOMSG): Likewise.
1534         [POSIX] (ENOPROTOOPT): Likewise.
1535         [POSIX] (ENOSR): Likewise.
1536         [POSIX] (ENOSTR): Likewise.
1537         [POSIX] (ENOTCONN): Likewise.
1538         [POSIX] (ENOTSOCK): Likewise.
1539         [POSIX] (EOPNOTSUPP): Likewise.
1540         [POSIX] (EOVERFLOW): Likewise.
1541         [POSIX] (EPROTO): Likewise.
1542         [POSIX] (EPROTONOSUPPORT): Likewise.
1543         [POSIX] (EPROTOTYPE): Likewise.
1544         [POSIX] (ESTALE): Likewise.
1545         [POSIX] (ETIME): Likewise.
1546         [POSIX] (ETXTBSY): Likewise.
1547         [POSIX] (EWOULDBLOCK): Likewise.
1548         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
1549         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
1550         [POSIX] (SEEK_CUR): Likewise.
1551         [POSIX] (SEEK_END): Likewise.
1552         [POSIX || UNIX98] (mode_t): Do not require.
1553         [POSIX] (off_t): Likewise.
1554         [POSIX] (pid_t): Likewise.
1555         [POSIX] (sys/stat.h): Do not allow header.
1556         [POSIX] (unistd.h): Likewise.
1557         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
1558         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
1559         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
1560         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
1561         require.
1562         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
1563         sigevent): Specify elements.
1564         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
1565         entry.
1566         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
1567         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
1569         * conform/data/cpio.h-data [POSIX]: Disable whole file.
1570         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
1571         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
1572         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
1573         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
1574         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
1575         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
1576         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
1577         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
1578         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
1579         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
1580         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
1581         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
1582         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
1583         Likewise.
1584         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
1585         Likewise.
1586         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
1587         Likewise.
1588         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
1589         Likewise.
1590         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
1591         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
1592         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
1593         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
1594         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
1595         Specify lower bound on value.
1596         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
1597         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
1598         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
1599         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
1600         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
1601         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
1602         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
1603         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
1604         value.
1605         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
1606         as optional.
1607         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
1608         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
1609         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
1610         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
1611         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
1612         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
1613         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
1614         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
1615         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
1616         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
1617         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
1618         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
1619         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
1620         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
1621         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
1622         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
1623         entry.
1624         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
1625         optional.
1626         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
1627         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
1628         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
1629         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
1630         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
1631         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
1632         Likewise.
1633         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
1634         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
1635         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
1636         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
1637         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
1638         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
1639         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
1640         as optional.
1641         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
1642         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
1643         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
1644         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
1645         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
1646         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
1647         specify as optional.
1648         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
1649         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
1650         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
1651         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
1652         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
1653         [XPG3] (NL_LANGMAX): Likewise.
1654         [POSIX || XPG3] (NL_MSGMAX): Likewise.
1655         [POSIX || XPG3] (NL_NMAX): Likewise.
1656         [POSIX || XPG3] (NL_SETMAX): Likewise.
1657         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
1658         [XPG3] (NZERO): Likewise.
1659         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
1660         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
1661         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
1662         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
1663         (REG_ERANGE): Expect.
1664         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
1665         optional-constant.
1666         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
1667         Use (void) in prototype.
1668         [POSIX] (*_t): Allow.
1669         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
1670         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
1671         (WRDE_BADVAL): Expect.
1673         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
1674         expect.
1675         [XPG3 || XPG4] (O_RSYNC): Likewise.
1676         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
1677         Likewise.
1678         [XPG3 || XPG4] (pthread_sigmask): Likewise.
1679         [XPG3 || XPG4] (sigqueue): Likewise.
1680         [XPG3 || XPG4] (sigtimedwait): Likewise.
1681         [XPG3 || XPG4] (sigwaitinfo): Likewise.
1682         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
1683         [XPG3 || XPG4] (vsnprintf): Likewise.
1684         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
1685         Likewise.
1686         [XPG3 || XPG4] (blksize_t): Likewise.
1687         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
1688         Likewise.
1689         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
1690         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
1691         [XPG3 || XPG4] (struct itimerspec): Likewise.
1692         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
1693         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
1694         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
1695         [XPG3 || XPG4] (clockid_t): Likewise.
1696         [XPG3 || XPG4] (timer_t): Likewise.
1697         [XPG3 || XPG4] (clock_getres): Likewise.
1698         [XPG3 || XPG4] (clock_gettime): Likewise.
1699         [XPG3 || XPG4] (clock_settime): Likewise.
1700         [XPG3 || XPG4] (nanosleep): Likewise.
1701         [XPG3 || XPG4] (timer_create): Likewise.
1702         [XPG3 || XPG4] (timer_delete): Likewise.
1703         [XPG3 || XPG4] (timer_gettime): Likewise.
1704         [XPG3 || XPG4] (timer_getoverrun): Likewise.
1705         [XPG3 || XPG4] (timer_settime): Likewise.
1706         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
1707         [XPG3 || XPG4] (getlogin_r): Likewise.
1708         [XPG3 || XPG4] (pread): Likewise.
1709         [XPG3 || XPG4] (pthread_atfork): Likewise.
1710         [XPG3 || XPG4] (pwrite): Likewise.
1712         [BZ #14835]
1713         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
1714         <bits/siginfo.h>.
1716 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
1718         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
1719         finalizing MALLSTREAM.
1721         * sysdeps/mach/hurd/syncfs.c: New file.
1723 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1725         [BZ #14719]
1726         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
1727         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
1728         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
1729         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
1730         (_nss_dns_gethostbyname4_r): Likewise.
1731         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
1732         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
1734 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
1736         [BZ #13763]
1737         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
1739 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
1741         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
1742         * elf/cache.c (print_entry): Print ",AArch64" for
1743         FLAG_AARCH64_LIB64
1745         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
1746         * elf/cache.c (print_entry): Print ",hard-float" for
1747         FLAG_ARM_LIBHF.
1749 2012-11-18  David S. Miller  <davem@davemloft.net>
1751         With help from Joseph Myers.
1752         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
1753         cutoff to 2**-13.
1754         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
1755         cutoff to 2**-25.
1756         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
1757         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
1758         small.
1759         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
1760         * math/libm-test.inc (y0_test): New tests.
1761         (y1_test): New tests.
1762         * sysdeps/i386/fpu/libm-test-ulps: Update.
1763         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1764         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1766 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
1768         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
1769         64-bit targets.
1770         * configure: Regenerated.
1772 2012-11-17  David S. Miller  <davem@davemloft.net>
1774         [BZ #14811]
1775         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
1776         nonzero exponents with absolute value below 0x1p-128 to +/-
1777         0x1p-128.
1779 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
1781         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
1783         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
1785         * posix/getconf-speclist.c: New file.
1786         * posix/posix-envs.def: Likewise.
1787         * posix/confstr.c (START_ENV_GROUP): New macro.
1788         (END_ENV_GROUP): Likewise.
1789         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
1790         (KNOWN_PRESENT_ENV_STRING): Likewise.
1791         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
1792         (UNKNOWN_ENVIRONMENT): Likewise.
1793         (confstr): Include posix-envs.def instead of handling
1794         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
1795         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
1796         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
1797         (END_ENV_GROUP): Likewise.
1798         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
1799         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
1800         (UNKNOWN_ENVIRONMENT): Likewise.
1801         (__sysconf): Include posix-envs.def instead of handling associated
1802         cases directly here.
1803         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
1804         preprocessing getconf-speclist.c rather than running getconf or
1805         generating empty file.
1807 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
1809         * scripts/check-local-headers.sh: Ignore 'mach' headers.
1811 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
1813         [BZ #14672]
1814         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
1816 2012-11-16  David S. Miller  <davem@davemloft.net>
1818         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
1819         smaller than LDBL_EPSILON/2.0L, just return xm1.
1821 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
1823         * elf/tst-array1.c (init): Set constructor priority to 1000.
1824         (fini): Set destructor priority to 1000.
1825         * elf/tst-array2dep.c: Likewise.
1827 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
1829         [BZ #11741]
1830         * libio/fileops.c (_IO_new_file_write): Correctly return error.
1831         (_IO_new_file_xsputn): Also return EOF if none of the input
1832         data was written when overflow failed.
1833         * libio/iopadn.c (_IO_padn): Likewise.
1834         * libio/iowpadn.c (_IO_wpadn): Likewise.
1835         * stdio-common/tst-put-error.c: Add copyright notice.
1836         (do_test): Add case for printing padded string.
1837         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
1838         _IO_padn returned error.
1839         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
1840         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
1841         return EOF.
1843 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
1845         * libio/libioP.h: Add comment note that the references to C++
1846         bits are now obsolete.
1848 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1850         * math/libm-test.inc (check_complex): Use asprintf.
1852 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
1854         * debug/pcprofiledump.c (print_version): Update copyright year.
1855         * malloc/memusagestat.c (print_version): Likewise.
1857 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
1859         [BZ #14831]
1860         * elf/Makefile (tests): Add tst-audit8.
1861         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
1862         ($(objpfx)tst-audit8.out): New target.
1863         (tst-audit8-ENV): New variable.
1864         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
1865         audit if l_reloc_result is NULL.
1866         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
1867         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
1868         * elf/tst-audit8.c: New file.
1870 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1872         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
1873         * misc/Makefile (CFLAGS-select.c): Define.
1874         * posix/Makefile (CFLAGS-pause.c): Define.
1876 2012-11-13  David S. Miller  <davem@davemloft.net>
1878         * crypt/Makefile: Move test targets after toplevel Rules
1879         inclusion.  Grab any necessary sysdep routines when linking.
1880         * crypt/md5.c (md5_process_block): Remove define, we will always
1881         name it __md5_process_block.
1882         (md5_finish_ctx): Update md5_process_block call.
1883         (md5_stream): Likewise.
1884         (md5_process_bytes): Likewise.
1885         (md5_process_block): Rename to __md5_process_block and move to ...
1886         * crypt/md5-block.c: ... here.
1887         * crypt/sha256.c (sha256_process_block): Move to ...
1888         * crypt/sha256-block.c: ... here.
1889         * crypt/sha512.c (sha512_process_block): Move to ...
1890         * crypt/sha512-block.c: ... here.
1891         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
1892         path.
1893         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
1894         * sysdeps/sparc/sparc64/multiarch/Makefile
1895         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
1896         crypt subdir.
1897         (localedef-aux): Add md5 crypto assembler when in locale subdir.
1898         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
1899         multiarch changes.
1900         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
1901         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
1902         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
1903         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
1904         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
1905         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
1906         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
1907         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
1908         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
1909         file.
1910         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
1911         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
1912         file.
1913         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
1915 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
1917         * timezone/tzselect.ksh: Update from tzcode git revision
1918         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
1919         * timezone/zdump.c: Likewise.
1920         * timezone/zic.c: Likewise.
1921         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
1922         in TZVERSION setting, not $(PKGVERSION).
1923         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
1924         REPORT_BUGS_TO settings.
1926         [BZ #14838]
1927         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
1928         macro.
1930 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1932         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
1933         detection to immediately after _FP_ROUND().
1934         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
1935         bits are 0.
1937 2012-11-11  David S. Miller  <davem@davemloft.net>
1939         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
1940         inttypes.h
1941         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
1942         __close rather than their public counterparts.
1944 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
1946         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
1947         file.
1948         [UNIX98] (sem_timedwait): Do not expect.
1949         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
1950         [XPG4 || UNIX98] (sockatmark): Do not expect.
1951         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
1952         (clock_getcpuclockid): Do not expect.
1953         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
1954         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
1955         Do not expect.
1956         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
1957         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
1958         [UNIX98] (vwscanf): Likewise.
1959         [UNIX98] (vswscanf): Likewise.
1961 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
1963         * timezone/version.h: Remove file.
1964         * timezone/README: Do not refer to version.h.
1965         * timezone/Makefile ($(objpfx)zic.o): New dependency on
1966         $(objpfx)version.h.
1967         ($(objpfx)zdump.o): Likewise.
1968         ($(objpfx)version.h): New target.
1970         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
1971         2012i.
1972         * timezone/README: Don't mention modification to tzselect.ksh.
1973         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
1974         work on unmodified tzselect.ksh.  Substitute version numbers in
1975         tzselect.ksh.
1977         * Makefile (format-me): Remove.
1978         (INSTALL): Adjust indentation.  Use commands directly instead of
1979         using $(format-me).
1981         * aclocal.m4 (ACX_PKGVERSION): New macro.
1982         (ACX_BUGURL): Likewise.
1983         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
1984         (PKGVERSION): New AC_DEFINE_UNQUOTED.
1985         (REPORT_BUGS_TO): Likewise.
1986         * configure: Regenerated.
1987         * config.h.in (PKGVERSION): New macro.
1988         (REPORT_BUGS_TO): Likewise.
1989         * config.make.in (PKGVERSION): New variable.
1990         (PKGVERSION_TEXI): Likewise.
1991         (REPORT_BUGS_TO): Likewise.
1992         (REPORT_BUGS_TEXI): Likewise.
1993         * Makefile (format-me): Use -I$(common-objpfx)manual.
1994         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
1995         ($(common-objpfx)manual/%): New target.
1996         (manual/%): Remove target.
1997         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
1998         (print_version): Use PKGVERSION.
1999         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
2000         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
2001         and REPORT_BUGS_TO.
2002         ($(objpfx)xtrace): Likewise.
2003         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
2004         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
2005         (print_version): Use PKGVERSION.
2006         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
2007         (do_version): Use PKGVERSION.
2008         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
2009         REPORT_BUGS_TO.
2010         (common-ldd-rewrite): Likewise.
2011         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
2012         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
2013         (print_version): Use PKGVERSION.
2014         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
2015         * elf/pldd.c (argp_program_bug_address): Remove variable.
2016         (more_help): New function.
2017         (argp): Use more_help.
2018         (print_version): Use PKGVERSION.
2019         * elf/sln.c (main): Use PKGVERSION.
2020         (usage): Use REPORT_BUGS_TO.
2021         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
2022         (top level): Use PKGVERSION.
2023         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
2024         (print_version): Use PKGVERSION.
2025         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
2026         (print_version): Use PKGVERSION.
2027         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
2028         (print_version): Use PKGVERSION.
2029         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
2030         (print_version): Use PKGVERSION.
2031         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
2032         (print_version): Use PKGVERSION.
2033         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
2034         (print_version): Use PKGVERSION.
2035         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
2036         and BUGURL.
2037         ($(objpfx)memusage): Likewise.
2038         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
2039         (do_version): Use PKGVERSION.
2040         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
2041         (print_version): Use PKGVERSION.
2042         * malloc/mtrace.pl ($PACKAGE): Remove variable.
2043         ($PKGVERSION): New variable.
2044         ($REPORT_BUGS_TO): Likewise.
2045         (usage): Use $REPORT_BUGS_TO.
2046         (top level): Use $PKGVERSION.
2047         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
2048         ($(objpfx)pkgvers.texi): New rule.
2049         ($(objpfx)stamp-pkgvers): Likewise.
2050         * manual/install.texi: Include pkgvers.texi.
2051         (--with-pkgversion): Document new configure option.
2052         (--with-bugurl): Likewise.
2053         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
2054         than necessarily for this particular distribution.  Use
2055         REPORT_BUGS_TO for where to report bugs.
2056         * INSTALL: Regenerated.
2057         * manual/libc.texinfo: Include pkgvers.texi.
2058         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
2059         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
2060         (print_version): Use PKGVERSION.
2061         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
2062         (print_version): Use PKGVERSION.
2063         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
2064         (print_version): Use PKGVERSION.
2065         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
2066         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
2067         macro.
2068         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
2069         (print_version): Use PKGVERSION.
2070         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
2071         (print_version): Use PKGVERSION.
2072         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
2073         and PKGVERSION.
2075         * timezone/checktab.awk: Update from tzcode 2012i.
2076         * timezone/ialloc.c: Likewise.
2077         * timezone/private.h: Likewise.
2078         * timezone/scheck.c: Likewise.
2079         * timezone/tzfile.h: Likewise.
2080         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
2081         (TZVERSION): Hardcode tzcode version number.
2082         * timezone/zdump.c: Update from tzcode 2012i.
2083         * timezone/zic.c: Likewise.
2084         * timezone/version.h: New file.
2085         * timezone/README: Describe version.h.  Update upstream location.
2087         [BZ #14824]
2088         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
2089         (mktemp): Enable declaration.
2090         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
2091         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
2092         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
2093         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
2094         Likewise.
2095         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
2096         Likewise.
2097         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
2098         Likewise.
2099         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
2100         Likewise.
2101         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
2102         Likewise.
2103         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
2104         Likewise.
2106         [BZ #14821]
2107         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
2108         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
2109         for copies of such integer values.
2110         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
2111         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
2113 2012-11-09  Andreas Jaeger  <aj@suse.de>
2115         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
2116         definitions and declarations that are provided by
2117         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
2119 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2121         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
2122         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
2123         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
2124         definition.
2126 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2128         * elf/elf.h: Update comment before AArch64 relocations.
2130 2012-11-07  David S. Miller  <davem@davemloft.net>
2132         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
2133         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
2134         (__start_context): Declare.
2135         (__makecontext_ret): Delete.
2136         (__makecontext): Hook up __start_context instead of
2137         __makecontext_ret.
2138         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
2139         (sysdep_routines): Add __start_context when in stdlib.
2141 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
2143         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
2144         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
2145         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
2146         hardcoded "nm".
2147         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
2148         (READELF): New variable.  Use it instead of hardcoded "readelf".
2150 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
2152         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
2153         * sysdeps/x86/Makefile: Here.
2154         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
2155         * sysdeps/x86/tst-xmmymm.sh: This.
2157 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
2159         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
2160         expectations.
2161         [UNIX98] (pthread_barrier_t): Do not expect.
2162         [UNIX98] (pthread_barrierattr_t): Likewise.
2163         [UNIX98] (pthread_spinlock_t): Likewise.
2164         [UNIX98] (pthread_barrier_destroy): Likewise.
2165         [UNIX98] (pthread_barrier_init): Likewise.
2166         [UNIX98] (pthread_barrier_wait): Likewise.
2167         [UNIX98] (pthread_barrierattr_destroy): Likewise.
2168         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
2169         [UNIX98] (pthread_barrierattr_init): Likewise.
2170         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
2171         [UNIX98] (pthread_getcpuclockid): Likewise.
2172         [UNIX98] (pthread_mutex_timedlock): Likewise.
2173         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
2174         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
2175         [UNIX98] (pthread_sigmask): Likewise.
2176         [UNIX98] (pthread_spin_destroy): Likewise.
2177         [UNIX98] (pthread_spin_init): Likewise.
2178         [UNIX98] (pthread_spin_lock): Likewise.
2179         [UNIX98] (pthread_spin_trylock): Likewise.
2180         [UNIX98] (pthread_spin_unlock): Likewise.
2181         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
2182         Do not expect.
2183         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
2184         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
2185         [XPG3 || XPG4] (pthread_cond_t): Likewise.
2186         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
2187         [XPG3 || XPG4] (pthread_key_t): Likewise.
2188         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
2189         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
2190         [XPG3 || XPG4] (pthread_once_t): Likewise.
2191         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
2192         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
2193         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
2194         [XPG3 || XPG4] (pthread_t): Likewise.
2196         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
2197         not expect.
2198         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
2200         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
2201         Change function return type to int.
2203         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
2204         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
2205         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
2206         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
2207         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
2208         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
2209         [!POSIX] (posix_madvise): Likewise.
2210         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
2211         && !UNIX98].
2212         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
2213         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
2214         (mode_t): Likewise.
2215         (posix_mem_offset): Likewise.
2216         (posix_typed_mem_get_info): Likewise.
2217         (posix_typed_mem_open): Likewise.
2219         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
2220         Change condition to [XOPEN2K8].
2222         * conform/conformtest.pl: Preprocess allow-header data with -x c
2223         instead of from stdin.
2224         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
2225         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
2226         [C99-based standards] (cerfc): Likewise.
2227         [C99-based standards] (cexp2): Likewise.
2228         [C99-based standards] (cexpm1): Likewise.
2229         [C99-based standards] (clog10): Likewise.
2230         [C99-based standards] (clog1p): Likewise.
2231         [C99-based standards] (clog2): Likewise.
2232         [C99-based standards] (clgamma): Likewise.
2233         [C99-based standards] (ctgamma): Likewise.
2234         [C99-based standards] (cerff): Likewise.
2235         [C99-based standards] (cerfcf): Likewise.
2236         [C99-based standards] (cexp2f): Likewise.
2237         [C99-based standards] (cexpm1f): Likewise.
2238         [C99-based standards] (clog10f): Likewise.
2239         [C99-based standards] (clog1pf): Likewise.
2240         [C99-based standards] (clog2f): Likewise.
2241         [C99-based standards] (clgammaf): Likewise.
2242         [C99-based standards] (ctgammaf): Likewise.
2243         [C99-based standards] (cerfl): Likewise.
2244         [C99-based standards] (cerfcl): Likewise.
2245         [C99-based standards] (cexp2l): Likewise.
2246         [C99-based standards] (cexpm1l): Likewise.
2247         [C99-based standards] (clog10l): Likewise.
2248         [C99-based standards] (clog1pl): Likewise.
2249         [C99-based standards] (clog2l): Likewise.
2250         [C99-based standards] (clgammal): Likewise.
2251         [C99-based standards] (ctgammal): Likewise.
2252         * conform/data/inttypes.h-data [C99-based standards]: Include
2253         stdint.h-data.  Remove all expectations for stdint.h contents.
2254         [C99-based standards] (PRI*): Do not allow.
2255         [C99-based standards] (SCN*): Likewise.
2256         [C99-based standards] (*_t): Likewise.
2257         [C99-based-standards] (PRId8): Expect macro.
2258         [C99-based-standards] (PRIi8): Likewise.
2259         [C99-based-standards] (PRIo8): Likewise.
2260         [C99-based-standards] (PRIu8): Likewise.
2261         [C99-based-standards] (PRIx8): Likewise.
2262         [C99-based-standards] (PRIX8): Likewise.
2263         [C99-based-standards] (SCNd8): Likewise.
2264         [C99-based-standards] (SCNi8): Likewise.
2265         [C99-based-standards] (SCNo8): Likewise.
2266         [C99-based-standards] (SCNu8): Likewise.
2267         [C99-based-standards] (SCNx8): Likewise.
2268         [C99-based-standards] (PRIdLEAST8): Likewise.
2269         [C99-based-standards] (PRIiLEAST8): Likewise.
2270         [C99-based-standards] (PRIoLEAST8): Likewise.
2271         [C99-based-standards] (PRIuLEAST8): Likewise.
2272         [C99-based-standards] (PRIxLEAST8): Likewise.
2273         [C99-based-standards] (PRIXLEAST8): Likewise.
2274         [C99-based-standards] (SCNdLEAST8): Likewise.
2275         [C99-based-standards] (SCNiLEAST8): Likewise.
2276         [C99-based-standards] (SCNoLEAST8): Likewise.
2277         [C99-based-standards] (SCNuLEAST8): Likewise.
2278         [C99-based-standards] (SCNxLEAST8): Likewise.
2279         [C99-based-standards] (PRIdFAST8): Likewise.
2280         [C99-based-standards] (PRIiFAST8): Likewise.
2281         [C99-based-standards] (PRIoFAST8): Likewise.
2282         [C99-based-standards] (PRIuFAST8): Likewise.
2283         [C99-based-standards] (PRIxFAST8): Likewise.
2284         [C99-based-standards] (PRIXFAST8): Likewise.
2285         [C99-based-standards] (SCNdFAST8): Likewise.
2286         [C99-based-standards] (SCNiFAST8): Likewise.
2287         [C99-based-standards] (SCNoFAST8): Likewise.
2288         [C99-based-standards] (SCNuFAST8): Likewise.
2289         [C99-based-standards] (SCNxFAST8): Likewise.
2290         [C99-based-standards] (PRId16): Likewise.
2291         [C99-based-standards] (PRIi16): Likewise.
2292         [C99-based-standards] (PRIo16): Likewise.
2293         [C99-based-standards] (PRIu16): Likewise.
2294         [C99-based-standards] (PRIx16): Likewise.
2295         [C99-based-standards] (PRIX16): Likewise.
2296         [C99-based-standards] (SCNd16): Likewise.
2297         [C99-based-standards] (SCNi16): Likewise.
2298         [C99-based-standards] (SCNo16): Likewise.
2299         [C99-based-standards] (SCNu16): Likewise.
2300         [C99-based-standards] (SCNx16): Likewise.
2301         [C99-based-standards] (PRIdLEAST16): Likewise.
2302         [C99-based-standards] (PRIiLEAST16): Likewise.
2303         [C99-based-standards] (PRIoLEAST16): Likewise.
2304         [C99-based-standards] (PRIuLEAST16): Likewise.
2305         [C99-based-standards] (PRIxLEAST16): Likewise.
2306         [C99-based-standards] (PRIXLEAST16): Likewise.
2307         [C99-based-standards] (SCNdLEAST16): Likewise.
2308         [C99-based-standards] (SCNiLEAST16): Likewise.
2309         [C99-based-standards] (SCNoLEAST16): Likewise.
2310         [C99-based-standards] (SCNuLEAST16): Likewise.
2311         [C99-based-standards] (SCNxLEAST16): Likewise.
2312         [C99-based-standards] (PRIdFAST16): Likewise.
2313         [C99-based-standards] (PRIiFAST16): Likewise.
2314         [C99-based-standards] (PRIoFAST16): Likewise.
2315         [C99-based-standards] (PRIuFAST16): Likewise.
2316         [C99-based-standards] (PRIxFAST16): Likewise.
2317         [C99-based-standards] (PRIXFAST16): Likewise.
2318         [C99-based-standards] (SCNdFAST16): Likewise.
2319         [C99-based-standards] (SCNiFAST16): Likewise.
2320         [C99-based-standards] (SCNoFAST16): Likewise.
2321         [C99-based-standards] (SCNuFAST16): Likewise.
2322         [C99-based-standards] (SCNxFAST16): Likewise.
2323         [C99-based-standards] (PRId32): Likewise.
2324         [C99-based-standards] (PRIi32): Likewise.
2325         [C99-based-standards] (PRIo32): Likewise.
2326         [C99-based-standards] (PRIu32): Likewise.
2327         [C99-based-standards] (PRIx32): Likewise.
2328         [C99-based-standards] (PRIX32): Likewise.
2329         [C99-based-standards] (SCNd32): Likewise.
2330         [C99-based-standards] (SCNi32): Likewise.
2331         [C99-based-standards] (SCNo32): Likewise.
2332         [C99-based-standards] (SCNu32): Likewise.
2333         [C99-based-standards] (SCNx32): Likewise.
2334         [C99-based-standards] (PRIdLEAST32): Likewise.
2335         [C99-based-standards] (PRIiLEAST32): Likewise.
2336         [C99-based-standards] (PRIoLEAST32): Likewise.
2337         [C99-based-standards] (PRIuLEAST32): Likewise.
2338         [C99-based-standards] (PRIxLEAST32): Likewise.
2339         [C99-based-standards] (PRIXLEAST32): Likewise.
2340         [C99-based-standards] (SCNdLEAST32): Likewise.
2341         [C99-based-standards] (SCNiLEAST32): Likewise.
2342         [C99-based-standards] (SCNoLEAST32): Likewise.
2343         [C99-based-standards] (SCNuLEAST32): Likewise.
2344         [C99-based-standards] (SCNxLEAST32): Likewise.
2345         [C99-based-standards] (PRIdFAST32): Likewise.
2346         [C99-based-standards] (PRIiFAST32): Likewise.
2347         [C99-based-standards] (PRIoFAST32): Likewise.
2348         [C99-based-standards] (PRIuFAST32): Likewise.
2349         [C99-based-standards] (PRIxFAST32): Likewise.
2350         [C99-based-standards] (PRIXFAST32): Likewise.
2351         [C99-based-standards] (SCNdFAST32): Likewise.
2352         [C99-based-standards] (SCNiFAST32): Likewise.
2353         [C99-based-standards] (SCNoFAST32): Likewise.
2354         [C99-based-standards] (SCNuFAST32): Likewise.
2355         [C99-based-standards] (SCNxFAST32): Likewise.
2356         [C99-based-standards] (PRId64): Likewise.
2357         [C99-based-standards] (PRIi64): Likewise.
2358         [C99-based-standards] (PRIo64): Likewise.
2359         [C99-based-standards] (PRIu64): Likewise.
2360         [C99-based-standards] (PRIx64): Likewise.
2361         [C99-based-standards] (PRIX64): Likewise.
2362         [C99-based-standards] (SCNd64): Likewise.
2363         [C99-based-standards] (SCNi64): Likewise.
2364         [C99-based-standards] (SCNo64): Likewise.
2365         [C99-based-standards] (SCNu64): Likewise.
2366         [C99-based-standards] (SCNx64): Likewise.
2367         [C99-based-standards] (PRIdLEAST64): Likewise.
2368         [C99-based-standards] (PRIiLEAST64): Likewise.
2369         [C99-based-standards] (PRIoLEAST64): Likewise.
2370         [C99-based-standards] (PRIuLEAST64): Likewise.
2371         [C99-based-standards] (PRIxLEAST64): Likewise.
2372         [C99-based-standards] (PRIXLEAST64): Likewise.
2373         [C99-based-standards] (SCNdLEAST64): Likewise.
2374         [C99-based-standards] (SCNiLEAST64): Likewise.
2375         [C99-based-standards] (SCNoLEAST64): Likewise.
2376         [C99-based-standards] (SCNuLEAST64): Likewise.
2377         [C99-based-standards] (SCNxLEAST64): Likewise.
2378         [C99-based-standards] (PRIdFAST64): Likewise.
2379         [C99-based-standards] (PRIiFAST64): Likewise.
2380         [C99-based-standards] (PRIoFAST64): Likewise.
2381         [C99-based-standards] (PRIuFAST64): Likewise.
2382         [C99-based-standards] (PRIxFAST64): Likewise.
2383         [C99-based-standards] (PRIXFAST64): Likewise.
2384         [C99-based-standards] (SCNdFAST64): Likewise.
2385         [C99-based-standards] (SCNiFAST64): Likewise.
2386         [C99-based-standards] (SCNoFAST64): Likewise.
2387         [C99-based-standards] (SCNuFAST64): Likewise.
2388         [C99-based-standards] (SCNxFAST64): Likewise.
2389         [C99-based-standards] (PRIdMAX): Likewise.
2390         [C99-based-standards] (PRIiMAX): Likewise.
2391         [C99-based-standards] (PRIoMAX): Likewise.
2392         [C99-based-standards] (PRIuMAX): Likewise.
2393         [C99-based-standards] (PRIxMAX): Likewise.
2394         [C99-based-standards] (PRIXMAX): Likewise.
2395         [C99-based-standards] (SCNdMAX): Likewise.
2396         [C99-based-standards] (SCNiMAX): Likewise.
2397         [C99-based-standards] (SCNoMAX): Likewise.
2398         [C99-based-standards] (SCNuMAX): Likewise.
2399         [C99-based-standards] (SCNxMAX): Likewise.
2400         [C99-based-standards] (PRIdPTR): Likewise.
2401         [C99-based-standards] (PRIiPTR): Likewise.
2402         [C99-based-standards] (PRIoPTR): Likewise.
2403         [C99-based-standards] (PRIuPTR): Likewise.
2404         [C99-based-standards] (PRIxPTR): Likewise.
2405         [C99-based-standards] (PRIXPTR): Likewise.
2406         [C99-based-standards] (SCNdPTR): Likewise.
2407         [C99-based-standards] (SCNiPTR): Likewise.
2408         [C99-based-standards] (SCNoPTR): Likewise.
2409         [C99-based-standards] (SCNuPTR): Likewise.
2410         [C99-based-standards] (SCNxPTR): Likewise.
2411         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
2412         allow.
2413         * conform/data/stdint.h-data: Update comments to clarify
2414         requirements.
2415         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
2416         type.
2417         [C99-based standards] (INT8_MAX): Likewise.
2418         [C99-based standards] (INT16_MIN): Likewise.
2419         [C99-based standards] (INT16_MAX): Likewise.
2420         [C99-based standards] (INT32_MIN): Likewise.
2421         [C99-based standards] (INT32_MAX): Likewise.
2422         [C99-based standards] (INT64_MIN): Likewise.
2423         [C99-based standards] (INT64_MAX): Likewise.
2424         [C99-based standards] (UINT8_MAX): Likewise.
2425         [C99-based standards] (UINT16_MAX): Likewise.
2426         [C99-based standards] (UINT32_MAX): Likewise.
2427         [C99-based standards] (UINT64_MAX): Likewise.
2428         [C99-based standards] (INT_LEAST8_MIN): Likewise.
2429         [C99-based standards] (INT_LEAST8_MAX): Likewise.
2430         [C99-based standards] (INT_LEAST16_MIN): Likewise.
2431         [C99-based standards] (INT_LEAST16_MAX): Likewise.
2432         [C99-based standards] (INT_LEAST32_MIN): Likewise.
2433         [C99-based standards] (INT_LEAST32_MAX): Likewise.
2434         [C99-based standards] (INT_LEAST64_MIN): Likewise.
2435         [C99-based standards] (INT_LEAST64_MAX): Likewise.
2436         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
2437         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
2438         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
2439         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
2440         [C99-based standards] (INT_FAST8_MIN): Likewise.
2441         [C99-based standards] (INT_FAST8_MAX): Likewise.
2442         [C99-based standards] (INT_FAST16_MIN): Likewise.
2443         [C99-based standards] (INT_FAST16_MAX): Likewise.
2444         [C99-based standards] (INT_FAST32_MIN): Likewise.
2445         [C99-based standards] (INT_FAST32_MAX): Likewise.
2446         [C99-based standards] (INT_FAST64_MIN): Likewise.
2447         [C99-based standards] (INT_FAST64_MAX): Likewise.
2448         [C99-based standards] (UINT_FAST8_MAX): Likewise.
2449         [C99-based standards] (UINT_FAST16_MAX): Likewise.
2450         [C99-based standards] (UINT_FAST32_MAX): Likewise.
2451         [C99-based standards] (UINT_FAST64_MAX): Likewise.
2452         [C99-based standards] (INTPTR_MIN): Likewise.
2453         [C99-based standards] (INTPTR_MAX): Likewise.
2454         [C99-based standards] (UINTPTR_MAX): Likewise.
2455         [C99-based standards] (INTMAX_MIN): Likewise.
2456         [C99-based standards] (INTMAX_MAX): Likewise.
2457         [C99-based standards] (UINTMAX_MAX): Likewise.
2458         [C99-based standards] (PTRDIFF_MIN): Likewise.
2459         [C99-based standards] (PTRDIFF_MAX): Likewise.
2460         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
2461         [C99-based standards] (SIZE_MAX): Likewise.
2462         [C99-based standards] (WCHAR_MAX): Likewise.
2463         [C99-based standards] (WINT_MAX): Likewise.
2464         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
2465         constraint on value.
2466         [C99-based standards] (WCHAR_MIN): Likewise.
2467         [C99-based standards] (WINT_MIN): Likewise.
2468         [C99-based standards] (*_t): Allow.
2469         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
2470         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
2471         Include math.h-data and complex.h-data.  Remove all expectations
2472         of math.h and complex.h contents.
2473         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
2474         at end of line.
2475         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
2476         (struct tm): Expect tag.
2477         [C99-based-standards] (wcstof): Expect function.
2478         [C99-based-standards] (wcstold): Likewise.
2479         [C99-based-standards] (wcstoll): Likewise.
2480         [C99-based-standards] (wcstoull): Likewise.
2481         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
2482         macro-int-constant.  Specify type.
2483         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
2484         constraint on value.
2485         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
2486         Specify type.
2487         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
2488         Specify value.
2489         [ISO C standards]: Do not allow headers.
2490         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
2491         wcs[abcdefghijklmnopqrstuvwxyz]*.
2492         [ISO C standards] (*_t): Do not allow.
2493         * conform/data/wctype.h-data [C99-based standards] (iswblank):
2494         Expect function.
2495         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
2496         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
2497         Specify type.
2498         [ISO C standards]: Do not allow headers.
2499         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
2500         is[abcdefghijklmnopqrstuvwxyz]*.
2501         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
2502         to[abcdefghijklmnopqrstuvwxyz]*.
2503         [ISO C standards] (*_t): Do not allow.
2504         * conform/data/stdalign.h-data: New file.
2505         * conform/data/stdbool.h-data: Likewise.
2506         * conform/data/stdnoreturn.h-data: Likewise.
2508 2012-11-07  Roland McGrath  <roland@hack.frob.com>
2510         [BZ #14815]
2511         * manual/filesys.texi (Directory Entries): Typo fix.
2512         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
2514 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2516         * elf/elf.h (EM_AARCH64): New macro.
2517         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
2518         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
2519         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
2520         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
2521         (R_AARCH64_TLSDESC): Likewise.
2522         (NT_ARM_TLS): Likewise.
2523         (NT_ARM_HW_BREAK): Likewise.
2524         (NT_ARM_HW_WATCH): Likewise.
2526 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
2528         [BZ #14811]
2529         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
2530         (__ieee754_powl): Saturate nonzero exponents with absolute value
2531         below 0x1p-79 to +/- 0x1p-79.
2532         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
2533         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
2534         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
2535         nonzero exponents with absolute value below 0x1p-32 to +/-
2536         0x1p-32.
2537         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
2538         (__ieee754_powl): Saturate nonzero exponents with absolute value
2539         below 0x1p-79 to +/- 0x1p-79.
2540         * math/libm-test.inc (pow_test): Add more tests.
2542 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2544         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
2545         _dl_s390_cap_flags with kernel. Increase string length.
2546         (_dl_s390_platforms): Add z196 and zEC12.
2548 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
2550         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
2551         Change XOPEN21K to XOPEN2K.
2553 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
2555         * string/memmove.c: Use memcpy when possible.
2557 2012-11-06  Andreas Jaeger  <aj@suse.de>
2559         * po/eo.po: Update from translation team.
2561 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
2563         [BZ #14793]
2564         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
2565         exponent and small x and y exponents, scale x or y up.  Increase
2566         by 2 the exponent used in scaling up.
2567         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2568         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2569         * math/libm-test.inc (fma_test): Add more tests.
2570         (fma_test_towardzero): Likewise.
2571         (fma_test_downward): Likewise.
2572         (fma_test_upward): Likewise.
2574 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
2576         [BZ #14805]
2577         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
2578         fenv_t *.
2580         [BZ #14801]
2581         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
2582         namespace for names of struct fields.
2583         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
2584         fenv_t fields.
2585         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
2586         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
2588 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2590         [BZ #3665]
2591         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2593 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
2595         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
2596         PTR_DEMANGLE.
2598         [BZ #5246]
2599         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
2600         PTR_DEMANGLE.
2602 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
2604         [BZ #14797]
2605         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
2606         definitely overflow as x * y not x * y + z.
2607         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2608         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2609         * math/libm-test.inc (fma_test): Add more tests.
2610         (fma_test_towardzero): Likewise.
2611         (fma_test_downward): Likewise.
2612         (fma_test_upward): Likewise.
2614 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
2616         [BZ #157]
2618         * include/stub-tag.h: Remove file.
2619         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
2620         '#include' of it.
2621         * manual/maint.texi (Porting): Don't reference it.
2622         * Makerules ($(objpfx)stubs): Likewise.
2623         * dirent/closedir.c: Don't include <stub-tag.h>.
2624         * dirent/dirfd.c: Likewise.
2625         * dirent/fdopendir.c: Likewise.
2626         * dirent/getdents.c: Likewise.
2627         * dirent/getdents64.c: Likewise.
2628         * dirent/opendir.c: Likewise.
2629         * dirent/readdir.c: Likewise.
2630         * dirent/readdir64.c: Likewise.
2631         * dirent/readdir64_r.c: Likewise.
2632         * dirent/readdir_r.c: Likewise.
2633         * dirent/rewinddir.c: Likewise.
2634         * dirent/seekdir.c: Likewise.
2635         * dirent/telldir.c: Likewise.
2636         * gmon/profil.c: Likewise.
2637         * grp/setgroups.c: Likewise.
2638         * inet/if_index.c: Likewise.
2639         * io/access.c: Likewise.
2640         * io/chdir.c: Likewise.
2641         * io/chmod.c: Likewise.
2642         * io/chown.c: Likewise.
2643         * io/close.c: Likewise.
2644         * io/dup.c: Likewise.
2645         * io/dup2.c: Likewise.
2646         * io/dup3.c: Likewise.
2647         * io/euidaccess.c: Likewise.
2648         * io/faccessat.c: Likewise.
2649         * io/fchdir.c: Likewise.
2650         * io/fchmod.c: Likewise.
2651         * io/fchmodat.c: Likewise.
2652         * io/fchown.c: Likewise.
2653         * io/fchownat.c: Likewise.
2654         * io/fcntl.c: Likewise.
2655         * io/flock.c: Likewise.
2656         * io/fstatfs.c: Likewise.
2657         * io/fstatfs64.c: Likewise.
2658         * io/fstatvfs.c: Likewise.
2659         * io/fstatvfs64.c: Likewise.
2660         * io/futimens.c: Likewise.
2661         * io/fxstat.c: Likewise.
2662         * io/fxstat64.c: Likewise.
2663         * io/fxstatat.c: Likewise.
2664         * io/fxstatat64.c: Likewise.
2665         * io/getcwd.c: Likewise.
2666         * io/isatty.c: Likewise.
2667         * io/lchmod.c: Likewise.
2668         * io/lchown.c: Likewise.
2669         * io/link.c: Likewise.
2670         * io/linkat.c: Likewise.
2671         * io/lseek.c: Likewise.
2672         * io/lseek64.c: Likewise.
2673         * io/lxstat64.c: Likewise.
2674         * io/mkdir.c: Likewise.
2675         * io/mkdirat.c: Likewise.
2676         * io/mkfifo.c: Likewise.
2677         * io/mkfifoat.c: Likewise.
2678         * io/open.c: Likewise.
2679         * io/open64.c: Likewise.
2680         * io/openat.c: Likewise.
2681         * io/openat64.c: Likewise.
2682         * io/pipe.c: Likewise.
2683         * io/pipe2.c: Likewise.
2684         * io/poll.c: Likewise.
2685         * io/posix_fadvise.c: Likewise.
2686         * io/posix_fadvise64.c: Likewise.
2687         * io/posix_fallocate.c: Likewise.
2688         * io/posix_fallocate64.c: Likewise.
2689         * io/read.c: Likewise.
2690         * io/readlink.c: Likewise.
2691         * io/readlinkat.c: Likewise.
2692         * io/rmdir.c: Likewise.
2693         * io/sendfile.c: Likewise.
2694         * io/sendfile64.c: Likewise.
2695         * io/statfs.c: Likewise.
2696         * io/statfs64.c: Likewise.
2697         * io/statvfs.c: Likewise.
2698         * io/statvfs64.c: Likewise.
2699         * io/symlink.c: Likewise.
2700         * io/symlinkat.c: Likewise.
2701         * io/ttyname.c: Likewise.
2702         * io/ttyname_r.c: Likewise.
2703         * io/umask.c: Likewise.
2704         * io/unlink.c: Likewise.
2705         * io/unlinkat.c: Likewise.
2706         * io/utime.c: Likewise.
2707         * io/utimensat.c: Likewise.
2708         * io/write.c: Likewise.
2709         * io/xmknod.c: Likewise.
2710         * io/xmknodat.c: Likewise.
2711         * io/xstat.c: Likewise.
2712         * io/xstat64.c: Likewise.
2713         * login/getpt.c: Likewise.
2714         * login/grantpt.c: Likewise.
2715         * login/unlockpt.c: Likewise.
2716         * math/e_acoshl.c: Likewise.
2717         * math/e_acosl.c: Likewise.
2718         * math/e_asinl.c: Likewise.
2719         * math/e_atan2l.c: Likewise.
2720         * math/e_atanhl.c: Likewise.
2721         * math/e_coshl.c: Likewise.
2722         * math/e_expl.c: Likewise.
2723         * math/e_fmodl.c: Likewise.
2724         * math/e_gammal_r.c: Likewise.
2725         * math/e_hypotl.c: Likewise.
2726         * math/e_j0l.c: Likewise.
2727         * math/e_j1l.c: Likewise.
2728         * math/e_jnl.c: Likewise.
2729         * math/e_lgammal_r.c: Likewise.
2730         * math/e_log10l.c: Likewise.
2731         * math/e_log2l.c: Likewise.
2732         * math/e_logl.c: Likewise.
2733         * math/e_powl.c: Likewise.
2734         * math/e_rem_pio2l.c: Likewise.
2735         * math/e_sinhl.c: Likewise.
2736         * math/e_sqrtl.c: Likewise.
2737         * math/fclrexcpt.c: Likewise.
2738         * math/fedisblxcpt.c: Likewise.
2739         * math/feenablxcpt.c: Likewise.
2740         * math/fegetenv.c: Likewise.
2741         * math/fegetexcept.c: Likewise.
2742         * math/fegetround.c: Likewise.
2743         * math/feholdexcpt.c: Likewise.
2744         * math/fesetenv.c: Likewise.
2745         * math/fesetround.c: Likewise.
2746         * math/feupdateenv.c: Likewise.
2747         * math/fgetexcptflg.c: Likewise.
2748         * math/fraiseexcpt.c: Likewise.
2749         * math/fsetexcptflg.c: Likewise.
2750         * math/ftestexcept.c: Likewise.
2751         * math/k_cosl.c: Likewise.
2752         * math/k_rem_pio2l.c: Likewise.
2753         * math/k_sinl.c: Likewise.
2754         * math/k_tanl.c: Likewise.
2755         * math/s_asinhl.c: Likewise.
2756         * math/s_atanl.c: Likewise.
2757         * math/s_cbrtl.c: Likewise.
2758         * math/s_erfl.c: Likewise.
2759         * math/s_expm1l.c: Likewise.
2760         * math/s_log1pl.c: Likewise.
2761         * math/s_tanhl.c: Likewise.
2762         * misc/acct.c: Likewise.
2763         * misc/brk.c: Likewise.
2764         * misc/chflags.c: Likewise.
2765         * misc/chroot.c: Likewise.
2766         * misc/fchflags.c: Likewise.
2767         * misc/fgetxattr.c: Likewise.
2768         * misc/flistxattr.c: Likewise.
2769         * misc/fremovexattr.c: Likewise.
2770         * misc/fsetxattr.c: Likewise.
2771         * misc/fsync.c: Likewise.
2772         * misc/ftruncate.c: Likewise.
2773         * misc/futimes.c: Likewise.
2774         * misc/futimesat.c: Likewise.
2775         * misc/getdomain.c: Likewise.
2776         * misc/getdtsz.c: Likewise.
2777         * misc/gethostid.c: Likewise.
2778         * misc/gethostname.c: Likewise.
2779         * misc/getloadavg.c: Likewise.
2780         * misc/getpagesize.c: Likewise.
2781         * misc/getsysstats.c: Likewise.
2782         * misc/getxattr.c: Likewise.
2783         * misc/gtty.c: Likewise.
2784         * misc/ioctl.c: Likewise.
2785         * misc/lgetxattr.c: Likewise.
2786         * misc/listxattr.c: Likewise.
2787         * misc/llistxattr.c: Likewise.
2788         * misc/lremovexattr.c: Likewise.
2789         * misc/lsetxattr.c: Likewise.
2790         * misc/lutimes.c: Likewise.
2791         * misc/madvise.c: Likewise.
2792         * misc/mincore.c: Likewise.
2793         * misc/mlock.c: Likewise.
2794         * misc/mlockall.c: Likewise.
2795         * misc/mmap.c: Likewise.
2796         * misc/mprotect.c: Likewise.
2797         * misc/msync.c: Likewise.
2798         * misc/munlock.c: Likewise.
2799         * misc/munlockall.c: Likewise.
2800         * misc/munmap.c: Likewise.
2801         * misc/preadv.c: Likewise.
2802         * misc/preadv64.c: Likewise.
2803         * misc/ptrace.c: Likewise.
2804         * misc/pwritev.c: Likewise.
2805         * misc/pwritev64.c: Likewise.
2806         * misc/readv.c: Likewise.
2807         * misc/reboot.c: Likewise.
2808         * misc/remap_file_pages.c: Likewise.
2809         * misc/removexattr.c: Likewise.
2810         * misc/revoke.c: Likewise.
2811         * misc/select.c: Likewise.
2812         * misc/setdomain.c: Likewise.
2813         * misc/setegid.c: Likewise.
2814         * misc/seteuid.c: Likewise.
2815         * misc/sethostid.c: Likewise.
2816         * misc/sethostname.c: Likewise.
2817         * misc/setregid.c: Likewise.
2818         * misc/setreuid.c: Likewise.
2819         * misc/setxattr.c: Likewise.
2820         * misc/sstk.c: Likewise.
2821         * misc/stty.c: Likewise.
2822         * misc/swapoff.c: Likewise.
2823         * misc/swapon.c: Likewise.
2824         * misc/sync.c: Likewise.
2825         * misc/syncfs.c: Likewise.
2826         * misc/syscall.c: Likewise.
2827         * misc/truncate.c: Likewise.
2828         * misc/ualarm.c: Likewise.
2829         * misc/usleep.c: Likewise.
2830         * misc/ustat.c: Likewise.
2831         * misc/utimes.c: Likewise.
2832         * misc/vhangup.c: Likewise.
2833         * misc/writev.c: Likewise.
2834         * posix/_exit.c: Likewise.
2835         * posix/alarm.c: Likewise.
2836         * posix/execve.c: Likewise.
2837         * posix/fexecve.c: Likewise.
2838         * posix/fork.c: Likewise.
2839         * posix/fpathconf.c: Likewise.
2840         * posix/getaddrinfo.c: Likewise.
2841         * posix/getegid.c: Likewise.
2842         * posix/geteuid.c: Likewise.
2843         * posix/getgid.c: Likewise.
2844         * posix/getgroups.c: Likewise.
2845         * posix/getlogin.c: Likewise.
2846         * posix/getlogin_r.c: Likewise.
2847         * posix/getpgid.c: Likewise.
2848         * posix/getpid.c: Likewise.
2849         * posix/getppid.c: Likewise.
2850         * posix/getresgid.c: Likewise.
2851         * posix/getresuid.c: Likewise.
2852         * posix/getsid.c: Likewise.
2853         * posix/getuid.c: Likewise.
2854         * posix/glob64.c: Likewise.
2855         * posix/nanosleep.c: Likewise.
2856         * posix/pathconf.c: Likewise.
2857         * posix/pause.c: Likewise.
2858         * posix/posix_madvise.c: Likewise.
2859         * posix/pread.c: Likewise.
2860         * posix/pread64.c: Likewise.
2861         * posix/pwrite.c: Likewise.
2862         * posix/pwrite64.c: Likewise.
2863         * posix/sched_getaffinity.c: Likewise.
2864         * posix/sched_getp.c: Likewise.
2865         * posix/sched_gets.c: Likewise.
2866         * posix/sched_primax.c: Likewise.
2867         * posix/sched_primin.c: Likewise.
2868         * posix/sched_rr_gi.c: Likewise.
2869         * posix/sched_setaffinity.c: Likewise.
2870         * posix/sched_setp.c: Likewise.
2871         * posix/sched_sets.c: Likewise.
2872         * posix/sched_yield.c: Likewise.
2873         * posix/setgid.c: Likewise.
2874         * posix/setlogin.c: Likewise.
2875         * posix/setpgid.c: Likewise.
2876         * posix/setresgid.c: Likewise.
2877         * posix/setresuid.c: Likewise.
2878         * posix/setsid.c: Likewise.
2879         * posix/setuid.c: Likewise.
2880         * posix/sleep.c: Likewise.
2881         * posix/spawni.c: Likewise.
2882         * posix/sysconf.c: Likewise.
2883         * posix/times.c: Likewise.
2884         * posix/wait.c: Likewise.
2885         * posix/wait3.c: Likewise.
2886         * posix/wait4.c: Likewise.
2887         * posix/waitpid.c: Likewise.
2888         * resolv/gai_sigqueue.c: Likewise.
2889         * resource/getpriority.c: Likewise.
2890         * resource/getrlimit.c: Likewise.
2891         * resource/getrusage.c: Likewise.
2892         * resource/nice.c: Likewise.
2893         * resource/setpriority.c: Likewise.
2894         * resource/setrlimit.c: Likewise.
2895         * resource/ulimit.c: Likewise.
2896         * rt/aio_cancel.c: Likewise.
2897         * rt/aio_fsync.c: Likewise.
2898         * rt/aio_read.c: Likewise.
2899         * rt/aio_sigqueue.c: Likewise.
2900         * rt/aio_suspend.c: Likewise.
2901         * rt/aio_write.c: Likewise.
2902         * rt/clock_getres.c: Likewise.
2903         * rt/clock_gettime.c: Likewise.
2904         * rt/clock_nanosleep.c: Likewise.
2905         * rt/clock_settime.c: Likewise.
2906         * rt/lio_listio.c: Likewise.
2907         * rt/mq_close.c: Likewise.
2908         * rt/mq_getattr.c: Likewise.
2909         * rt/mq_notify.c: Likewise.
2910         * rt/mq_open.c: Likewise.
2911         * rt/mq_receive.c: Likewise.
2912         * rt/mq_send.c: Likewise.
2913         * rt/mq_setattr.c: Likewise.
2914         * rt/mq_timedreceive.c: Likewise.
2915         * rt/mq_timedsend.c: Likewise.
2916         * rt/mq_unlink.c: Likewise.
2917         * rt/shm_open.c: Likewise.
2918         * rt/shm_unlink.c: Likewise.
2919         * rt/timer_create.c: Likewise.
2920         * rt/timer_delete.c: Likewise.
2921         * rt/timer_getoverr.c: Likewise.
2922         * rt/timer_gettime.c: Likewise.
2923         * rt/timer_settime.c: Likewise.
2924         * setjmp/__longjmp.c: Likewise.
2925         * setjmp/setjmp.c: Likewise.
2926         * signal/kill.c: Likewise.
2927         * signal/killpg.c: Likewise.
2928         * signal/raise.c: Likewise.
2929         * signal/sigaction.c: Likewise.
2930         * signal/sigaltstack.c: Likewise.
2931         * signal/sigblock.c: Likewise.
2932         * signal/sigignore.c: Likewise.
2933         * signal/sigintr.c: Likewise.
2934         * signal/signal.c: Likewise.
2935         * signal/sigpause.c: Likewise.
2936         * signal/sigpending.c: Likewise.
2937         * signal/sigqueue.c: Likewise.
2938         * signal/sigreturn.c: Likewise.
2939         * signal/sigset.c: Likewise.
2940         * signal/sigsetmask.c: Likewise.
2941         * signal/sigstack.c: Likewise.
2942         * signal/sigsuspend.c: Likewise.
2943         * signal/sigtimedwait.c: Likewise.
2944         * signal/sigvec.c: Likewise.
2945         * signal/sigwait.c: Likewise.
2946         * signal/sigwaitinfo.c: Likewise.
2947         * signal/sysv_signal.c: Likewise.
2948         * socket/accept.c: Likewise.
2949         * socket/accept4.c: Likewise.
2950         * socket/bind.c: Likewise.
2951         * socket/connect.c: Likewise.
2952         * socket/getpeername.c: Likewise.
2953         * socket/getsockname.c: Likewise.
2954         * socket/getsockopt.c: Likewise.
2955         * socket/isfdtype.c: Likewise.
2956         * socket/listen.c: Likewise.
2957         * socket/recv.c: Likewise.
2958         * socket/recvfrom.c: Likewise.
2959         * socket/recvmsg.c: Likewise.
2960         * socket/send.c: Likewise.
2961         * socket/sendmsg.c: Likewise.
2962         * socket/sendto.c: Likewise.
2963         * socket/setsockopt.c: Likewise.
2964         * socket/shutdown.c: Likewise.
2965         * socket/sockatmark.c: Likewise.
2966         * socket/socket.c: Likewise.
2967         * socket/socketpair.c: Likewise.
2968         * stdio-common/ctermid.c: Likewise.
2969         * stdio-common/cuserid.c: Likewise.
2970         * stdio-common/remove.c: Likewise.
2971         * stdio-common/rename.c: Likewise.
2972         * stdio-common/renameat.c: Likewise.
2973         * stdio-common/tempname.c: Likewise.
2974         * stdlib/getcontext.c: Likewise.
2975         * stdlib/makecontext.c: Likewise.
2976         * stdlib/setcontext.c: Likewise.
2977         * stdlib/swapcontext.c: Likewise.
2978         * stdlib/system.c: Likewise.
2979         * streams/fattach.c: Likewise.
2980         * streams/fdetach.c: Likewise.
2981         * streams/getmsg.c: Likewise.
2982         * streams/getpmsg.c: Likewise.
2983         * streams/putmsg.c: Likewise.
2984         * streams/putpmsg.c: Likewise.
2985         * sysdeps/unix/bsd/getpt.c: Likewise.
2986         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
2987         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
2988         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
2989         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
2990         Likewise.
2991         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
2992         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
2993         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
2994         * sysvipc/msgctl.c: Likewise.
2995         * sysvipc/msgget.c: Likewise.
2996         * sysvipc/msgrcv.c: Likewise.
2997         * sysvipc/msgsnd.c: Likewise.
2998         * sysvipc/semctl.c: Likewise.
2999         * sysvipc/semget.c: Likewise.
3000         * sysvipc/semop.c: Likewise.
3001         * sysvipc/semtimedop.c: Likewise.
3002         * sysvipc/shmat.c: Likewise.
3003         * sysvipc/shmctl.c: Likewise.
3004         * sysvipc/shmdt.c: Likewise.
3005         * sysvipc/shmget.c: Likewise.
3006         * termios/tcdrain.c: Likewise.
3007         * termios/tcflow.c: Likewise.
3008         * termios/tcflush.c: Likewise.
3009         * termios/tcgetattr.c: Likewise.
3010         * termios/tcgetpgrp.c: Likewise.
3011         * termios/tcsendbrk.c: Likewise.
3012         * termios/tcsetattr.c: Likewise.
3013         * termios/tcsetpgrp.c: Likewise.
3014         * time/adjtime.c: Likewise.
3015         * time/clock.c: Likewise.
3016         * time/getitimer.c: Likewise.
3017         * time/gettimeofday.c: Likewise.
3018         * time/setitimer.c: Likewise.
3019         * time/settimeofday.c: Likewise.
3020         * time/stime.c: Likewise.
3021         * time/time.c: Likewise.
3023 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
3025         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
3026         /usr/old/bin.
3028         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
3029         instead of spaces.
3030         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
3032 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
3034         [BZ #14796]
3035         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
3036         FE_TONEAREST before applying Dekker multiplication and Knuth
3037         addition.  Clear inexact exceptions and check for exact zero
3038         results afterwards.
3039         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
3040         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
3041         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
3042         * math/libm-test.inc (fma_test): Add more tests.
3043         (fma_test_towardzero): Likewise.
3044         (fma_test_downward): Likewise.
3045         (fma_test_upward): Likewise.
3046         * sysdeps/generic/math_private.h (default_libc_fesetround): New
3047         function.
3048         (libc_fesetround): New macro.
3049         (libc_fesetroundf): Likewise.
3050         (libc_fesetroundl): Likewise.
3051         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
3052         function.
3053         (libc_fesetround_387): Likewise.
3054         (libc_fesetroundf): New macro.
3055         (libc_fesetround): Likewise.
3056         (libc_fesetroundl): Likewise.
3057         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
3058         function.
3059         (libc_fesetroundf): New macro.
3060         (libc_fesetround): Likewise.
3061         (libc_fesetroundl): Likewise.
3062         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
3063         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
3064         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
3065         libm_hidden_ver.
3066         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
3067         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
3068         libm_hidden_def.
3069         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
3070         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
3071         libm_hidden_ver.
3072         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
3073         libm_hidden_def.
3075         [BZ #3439]
3076         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
3077         integer constant usable in #if and use that to give value to enum
3078         constant.
3079         (FE_DIVBYZERO): Likewise.
3080         (FE_UNDERFLOW): Likewise.
3081         (FE_OVERFLOW): Likewise.
3082         (FE_INVALID): Likewise.
3083         (FE_INVALID_SNAN): Likewise.
3084         (FE_INVALID_ISI): Likewise.
3085         (FE_INVALID_IDI): Likewise.
3086         (FE_INVALID_ZDZ): Likewise.
3087         (FE_INVALID_IMZ): Likewise.
3088         (FE_INVALID_COMPARE): Likewise.
3089         (FE_INVALID_SOFTWARE): Likewise.
3090         (FE_INVALID_SQRT): Likewise.
3091         (FE_INVALID_INTEGER_CONVERSION): Likewise.
3092         (FE_TONEAREST): Likewise.
3093         (FE_TOWARDZERO): Likewise.
3094         (FE_UPWARD): Likewise.
3095         (FE_DOWNWARD): Likewise.
3096         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
3097         (FE_DIVBYZERO): Likewise.
3098         (FE_OVERFLOW): Likewise.
3099         (FE_UNDERFLOW): Likewise.
3100         (FE_INEXACT): Likewise.
3101         (FE_TONEAREST): Likewise.
3102         (FE_DOWNWARD): Likewise.
3103         (FE_UPWARD): Likewise.
3104         (FE_TOWARDZERO): Likewise.
3105         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
3106         (FE_UNDERFLOW): Likewise.
3107         (FE_OVERFLOW): Likewise.
3108         (FE_DIVBYZERO): Likewise.
3109         (FE_INVALID): Likewise.
3110         (FE_TONEAREST): Likewise.
3111         (FE_TOWARDZERO): Likewise.
3112         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
3113         (FE_OVERFLOW): Likewise.
3114         (FE_UNDERFLOW): Likewise.
3115         (FE_DIVBYZERO): Likewise.
3116         (FE_INEXACT): Likewise.
3117         (FE_TONEAREST): Likewise.
3118         (FE_TOWARDZERO): Likewise.
3119         (FE_UPWARD): Likewise.
3120         (FE_DOWNWARD): Likewise.
3121         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
3122         (FE_DIVBYZERO): Likewise.
3123         (FE_OVERFLOW): Likewise.
3124         (FE_UNDERFLOW): Likewise.
3125         (FE_INEXACT): Likewise.
3126         (FE_TONEAREST): Likewise.
3127         (FE_DOWNWARD): Likewise.
3128         (FE_UPWARD): Likewise.
3129         (FE_TOWARDZERO): Likewise.
3131 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
3133         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
3135 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
3137         * scripts/cross-test-ssh.sh (command): Use newlines to separate
3138         commands.  Quote $PWD.
3139         (blacklist_exports): Don't use remove_newlines.  Replace "declare
3140         -x" by "export".
3141         (remove_newlines): Remove.
3143 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
3145         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
3146         * stdlib/stdlib.h (atof): Moved to ...
3147         * include/bits/stdlib-float.h: Here.  New file.
3148         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
3149         * stdlib/bits/stdlib-float.h: New file.
3150         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
3151         -mno-sse -mno-mmx.
3152         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
3153         <xmmintrin.h>.
3155 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
3157         * conform/conformtest.pl (@headers): Add fenv.h.
3158         * conform/data/fenv.h-data: New file.
3159         * include/fenv.h [_ISOMAC]: Disable all contents of file except
3160         include of <math/fenv.h>.
3162         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
3163         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
3164         && !UNIX98].  Enables tests for XOPEN2K8.
3165         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
3166         POSIX2008]: Likewise.
3168         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
3169         (struct rusage): Do not expect type or its members.
3171         [BZ #3439]
3172         * math/math.h (FP_NAN): Define macro to integer constant usable in
3173         #if and use that to give value to enum constant.
3174         (FP_INFINITE): Likewise.
3175         (FP_ZERO): Likewise.
3176         (FP_SUBNORMAL): Likewise.
3177         (FP_NORMAL): Likewise.
3179 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
3181         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
3182         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
3183         arguments.
3185 2012-11-02  Roland McGrath  <roland@hack.frob.com>
3187         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
3188         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
3189         autoconf-time if not.
3190         * configure.in: Remove AC_PREREQ.
3192 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3194         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
3195         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
3196         of the internal implementation.
3198 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
3200         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
3201         except include of <misc/sys/syslog.h>.
3203 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
3205         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
3206         function returns with a NULL context exit with zero.
3208 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3210         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
3212 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
3214         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
3215         (run_program_cmd): This.
3216         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
3217         (tst_langinfo): New variable.  Use it.
3219 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
3221         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
3222         floating point opcodes.
3224 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
3226         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
3227         variable.
3229         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
3231         * sysdeps/mach/hurd/powerpc: Remove directory.
3232         * sysdeps/mach/powerpc: Likewise.
3234 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
3236         * scripts/check-local-headers.sh: Ignore c++ headers.
3238 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
3240         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
3241         __libc_cleanup_region_start argument.
3243 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
3245         [BZ #14784]
3246         [BZ #14785]
3247         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
3248         x * y using scaling, not as x * y + z.
3249         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
3250         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
3251         * math/libm-test.inc (fma_test): Add more tests.
3252         (fma_test_towardzero): Likewise.
3253         (fma_test_downward): Likewise.
3254         (fma_test_upward): Likewise.
3256 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
3258         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
3260 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
3262         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
3263         New variable.
3265 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
3267         * rt/tst-shm.c (worker): Correct checking for mmap failure.
3269 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
3271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3272         Fix sort order.
3273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3274         Likewise.
3276 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3278         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3279         Fix the order of the list for glibc 2.17.
3280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3281         Likewise.
3283 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
3285         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3287 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
3289         [BZ #14610]
3290         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
3291         for low part of x being zero before using __atanl (y).
3292         * math/libm-test.inc (atan2_test): Add another test.
3294         * manual/install.texi (Configuring and compiling): Document
3295         general use of test-wrapper and test-wrapper-env.
3296         * INSTALL: Regenerated.
3298         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
3299         (__fma): Do not extract and scale down low bits on after-rounding
3300         systems when result rounded to normal precision would have normal
3301         exponent.
3302         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
3303         (__fmal): Do not extract and scale down low bits on after-rounding
3304         systems when result rounded to normal precision would have normal
3305         exponent.
3306         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
3307         (__fmal): Do not extract and scale down low bits on after-rounding
3308         systems when result rounded to normal precision would have normal
3309         exponent.
3310         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
3311         macro.
3312         (fma_test): Add more tests.
3313         (fma_test_towardzero): Likewise.
3314         (fma_test_downward): Likewise.
3315         (fma_test_upward): Likewise.
3317 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
3319         * sysdeps/i386/tininess.h: Renamed to ...
3320         * sysdeps/x86/tininess.h: This.
3321         * sysdeps/x86_64/tininess.h: Removed.
3323 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
3325         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
3326         input.  Use $(build-program-cmd).
3327         ($(objpfx)tst-array1-static.out): Likewise.
3328         ($(objpfx)tst-array2.out): Likewise.
3329         ($(objpfx)tst-array3.out): Likewise.
3330         ($(objpfx)tst-array4.out): Likewise.
3331         ($(objpfx)tst-array5.out): Likewise.
3332         ($(objpfx)tst-array5-static.out): Likewise.
3334 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
3336         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
3337         if defined.
3339         * nss/nsswitch.h (nss_interface_function): Provide new
3340         macro for use with NSS functions.
3341         * grp/initgroups.c: Use new macro.
3342         * nss/getXXbyYY.c: Likewise.
3343         * nss/getXXbyYY_r.c: Likewise.
3344         * nss/getXXent.c: Likewise.
3345         * nss/getXXent_r.c: Likewise.
3346         * sysdeps/posix/getaddrinfo.c: Likewise.
3348 2012-10-30  Andreas Jaeger  <aj@suse.de>
3350         * po/ru.po: Update Russion translation from translation project.
3352 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
3354         [BZ #14152]
3355         [BZ #14783]
3356         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
3357         result and shift together with sticky bit instead of replicating
3358         round-to-nearest rounding.
3359         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
3360         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
3361         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
3362         missing underflow exceptions.
3363         (fma_test_towardzero): Add more tests.
3364         (fma_test_downward): Likewise.
3365         (fma_test_upward): Likewise.
3367         [BZ #14047]
3368         * sysdeps/generic/tininess.h: New file.
3369         * sysdeps/i386/tininess.h: Likewise.
3370         * sysdeps/sh/tininess.h: Likewise.
3371         * sysdeps/x86_64/tininess.h: Likewise.
3372         * stdlib/tst-strtod-underflow.c: Likewise.
3373         * stdlib/tst-tininess.c: Likewise.
3374         * stdlib/strtod_l.c: Include <tininess.h>.
3375         (round_and_return): Do not set errno for exact underflow cases.
3376         Force an underflow exception when setting errno for underflow.
3377         Determine underflow based on rounding to normal precision if
3378         TININESS_AFTER_ROUNDING.
3379         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
3380         ERANGE for exact underflow cases.
3381         * stdlib/Makefile (tests): Add tst-tininess and
3382         tst-strtod-underflow.
3383         ($(objpfx)tst-tininess): Use $(link-libm).
3384         ($(objpfx)tst-strtod-underflow): Likewise.
3386 2012-10-30  Andreas Jaeger  <aj@suse.de>
3388         [BZ#14767]
3389         * elf/Makefile (tests): Remove conditional for have-initfini-array
3390         since this is now always required and the variable does not exist
3391         anymore.
3392         (tests-static): Likewise.
3393         (modules-names): Likewise.
3395         * po/eo.po: Add Esperanto translation from translation project.
3397         * elf/tst-array1.c (fini_array): Make writeable so that it can be
3398         merged with constructor/destructor.
3399         (init_array): Likewise.
3400         * elf/tst-array2dep.c (fini_array): Likewise.
3401         (init_array): Likewise.
3403 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
3405         * manual/message.texi: Delete @cartouche tags.
3407 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
3409         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
3410         EOPNOTSUPP.
3411         * sysdeps/mach/hurd/fsync.c: Likewise.
3413         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
3414         [_POSIX_REALTIME_SIGNALS]: Change condition to
3415         [_POSIX_REALTIME_SIGNALS > 0].
3417 2012-10-27  Andreas Jaeger  <aj@suse.de>
3419         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
3420         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
3421         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
3422         [__WORDSIZE != 64]: Likewise.
3424 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
3426         *  iconvdata/tst-table.sh: Remove ${SHELL}.
3427         *  iconvdata/tst-tables.sh: Likewise.
3429 2012-10-25  David S. Miller  <davem@davemloft.net>
3431         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3432         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
3433         of strtoull.
3435         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
3436         ifunc-impl-list.c
3437         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
3438         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
3439         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
3440         file.
3442 2012-10-25  Roland McGrath  <roland@hack.frob.com>
3444         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3445         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
3446         __getdirentries.
3448 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
3449             Jim Blandy  <jimb@codesourcery.com>
3451         * scripts/cross-test-ssh.sh: New file.
3452         * manual/install.texi (Configuring and compiling): Document use of
3453         cross-test-ssh.sh.
3454         * INSTALL: Regenerated.
3456 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
3458         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
3459         EOPNOTSUPP.
3461 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
3463         * Makeconfig (run-program-prefix): Fix comment.
3465 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
3466             Jim Blandy  <jimb@codesourcery.com>
3468         * Makeconfig (test-wrapper): New variable,
3469         (test-wrapper-env): Likewise.
3470         [$(cross-compiling) = yes && $(test-wrapper) != ""]
3471         (run-built-tests): Define to yes.
3472         (run-program-prefix): Use $(test-wrapper).
3473         (built-program-cmd): Likewise.
3474         * Rules (make-test-out): Use $(test-wrapper-env) and
3475         $(host-built-program-cmd).
3476         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
3477         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
3478         tst-pathopt.sh.
3479         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
3480         $(test-wrapper-env) to tst-rtld-load-self.sh.
3481         ($(objpfx)order2.out): Use $(test-wrapper).
3482         ($(objpfx)tst-initorder.out): Likewise.
3483         ($(objpfx)tst-initorder2.out): Likewise.
3484         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
3485         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
3486         (test_wrapper_env): New variable.  Use it to run ld.so.
3487         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
3488         Use it to run ld.so.
3489         (test_wrapper_env): Likewise.
3490         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
3491         $(test-wrapper) to run-iconv-test.sh.
3492         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
3493         (ICONV): Use $test_wrapper.
3494         * posix/Makefile ($(objpfx)globtest.out): Pass
3495         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
3496         globtest.sh, not $(run-program-prefix).
3497         * posix/globtest.sh (run_via_rtld_prefix): New variable.
3498         (test_wrapper): Likewise.
3499         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
3500         set together with run_via_rtld_prefix.
3501         (run_program_prefix): Define in terms of test_wrapper and
3502         run_via_rtld_prefix.
3504 2012-10-24  Roland McGrath  <roland@hack.frob.com>
3506         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
3507         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
3508         Targets removed.
3510         [BZ #14743]
3511         * include/time.h: Remove librt_hidden_proto (clock_gettime).
3512         Declare __clock_getres, __clock_gettime, __clock_settime,
3513         __clock_nanosleep, and __clock_getcpuclockid.
3514         * rt/clock_gettime.c: Define __clock_gettime as an alias.
3515         Remove librt_hidden_def (clock_gettime).
3516         * sysdeps/unix/clock_gettime.c: Likewise.
3517         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
3518         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
3519         * rt/clock_getres.c: Define __clock_getres as an alias.
3520         * sysdeps/posix/clock_getres.c: Likewise.
3521         * rt/clock_settime.c: Define __clock_settime as an alias.
3522         * sysdeps/unix/clock_settime.c: Likewise.
3523         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
3524         * sysdeps/unix/clock_nanosleep.c: Likewise.
3525         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
3526         * rt/clock-compat.c: New file.
3527         * rt/Makefile (librt-routines): Add clock-compat and move
3528         $(clock-routines) to ...
3529         (routines): ... here, new variable.
3530         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
3531         Don't add get_clockfreq here.
3532         * rt/Versions (libc: GLIBC_2.17): New version set.
3533         Add clock_* symbols here.
3534         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
3535         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
3536         (GLIBC_2.17): Add clock_* symbols.
3537         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3538         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3539         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3541         Likewise.
3542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3543         Likewise.
3544         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3545         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3546         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3547         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3548         * NEWS: Mention the move.
3550         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
3551         Use __open, __read, __close rather than their public counterparts.
3552         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3553         (__get_clockfreq_via_cpuinfo): Likewise.
3554         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
3555         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
3557         * config.h.in (HAVE_IFUNC): New #undef.
3558         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
3559         was successful.
3560         * configure: Regenerated.
3562 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
3564         * configure.in: Move READELF check to start of file.
3565         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
3566         libc_cv_asm_gnu_indirect_function in the process.
3567         * configure: Regenerated.
3569 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
3571         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
3572         send the output to /dev/null.
3573         (libc_cv_cc_with_libunwind): Likewise.
3574         (libc_cv_as_noexecstack): Likewise.
3575         * configure: Regenerate.
3577 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
3579         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
3581         * posix/globtest.sh (TMPDIR): Do not set.
3582         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
3583         (testout): Likewise.
3585 2012-10-24  Andreas Jaeger  <aj@suse.de>
3587         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
3588         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
3589         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
3590         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
3591         posix_fadvise64, posix_fallocate64.
3593         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
3594         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
3595         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
3596         Likewise.
3597         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
3598         Likewise.
3599         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
3601         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
3602         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
3603         <bits/fcntl-linux.h>.
3604         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
3606         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
3607         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
3608         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
3609         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
3610         [__WORDSIZE != 64]: Likewise.
3612 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
3614         * Makeconfig (run-built-tests): New variable.
3615         * Rules [$(cross-compiling) = yes]: Change condition to
3616         [$(run-built-tests) = no].
3617         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
3618         to [$(run-built-tests) = yes].
3619         * elf/Makefile [$(cross-compiling) = no]: Likewise
3620         * grp/Makefile [$(cross-compiling) = no]: Likewise.
3621         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
3622         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
3623         * intl/Makefile [$(cross-compiling) = no]: Likewise.
3624         * io/Makefile [$(cross-compiling) = no]: Likewise.
3625         * libio/Makefile [$(cross-compiling) = no]: Likewise.
3626         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
3627         * misc/Makefile [$(cross-compiling) = no]: Likewise.
3628         * posix/Makefile [$(cross-compiling) = no]: Likewise.
3629         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
3630         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
3631         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
3632         * string/Makefile [$(cross-compiling) = no]: Likewise.
3634         * posix/Makefile ($(objpfx)globtest.out): Pass
3635         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
3636         $(rtld-installed-name).
3637         * posix/globtest.sh (elf_objpfx): Remove variable.
3638         (rtld_installed_name): Likewise.
3639         (library_path): Likewise.
3640         (run_program_prefix): New variable.  Use for running globtest
3641         binary.
3643 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
3644             Joseph Myers  <joseph@codesourcery.com>
3646         * Makeconfig (host-built-program-cmd): New variable.
3647         * elf/Makefile (tst-stackguard1-ARGS): Use
3648         $(host-built-program-cmd).
3649         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
3650         (tst-spawn-ARGS): Likewise.
3651         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
3653 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
3654             Jim Blandy  <jimb@codesourcery.com>
3656         * Makeconfig (run-via-rtld-prefix): New variable.
3657         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
3658         (built-program-cmd): Likewise.
3660 2012-10-22  Andreas Jaeger  <aj@suse.de>
3662         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
3663         __O_RSYNC if it exists, otherwise to O_SYNC.
3665 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
3666             Joseph Myers  <joseph@codesourcery.com>
3668         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
3669         /dev/null.
3670         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
3671         from /dev/null
3672         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
3673         /dev/null.
3675 2012-10-22  Andreas Jaeger  <aj@suse.de>
3677         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
3678         Define always.
3679         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
3681         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3682         bits/fcntl-linux.h.
3684         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
3685         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
3687         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
3688         to __O_LARGEFILE.
3689         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
3690         to __O_LARGEFILE.
3692 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
3693             Joseph Myers  <joseph@codesourcery.com>
3695         * config.make.in (NM): New variable.
3697 2012-10-21  Andreas Jaeger  <aj@suse.de>
3699         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
3700         definitions and declarations that are provided by
3701         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
3703 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
3705         [BZ #14683]
3706         * elf/Makefile (tests-static): Add tst-leaks1-static.
3707         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
3708         ($(objpfx)tst-leaks1-static): New rule.
3709         ($(objpfx)tst-leaks1-static-mem): Likewise.
3710         (tst-leaks1-static-ENV): New macro.
3711         * elf/dl-open.c (dl_open_worker): Check the main application
3712         only if SHARED is defined.
3713         * elf/tst-leaks1-static.c: New file.
3715 2012-10-20  Andreas Jaeger  <aj@suse.de>
3717         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
3718         generic values for Linux.
3719         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
3720         and declarations that are provided by <bits/fcntl-linux.h> and
3721         include <bits/fcntl-linux.h>.
3722         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3723         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3725 2012-10-20  Roland McGrath  <roland@hack.frob.com>
3727         * io/fcntl.h: Move include of <bits/types.h> to the top and
3728         include it unconditionally.
3730 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
3732         * wcsmbs/Makefile (tests-ifunc): New variable.
3733         (tests): Add $(tests-ifunc).
3734         * wcsmbs/test-wcschr-ifunc.c: New file.
3735         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
3736         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
3737         * wcsmbs/test-wcslen-ifunc.c: Likewise.
3738         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
3739         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
3741         * string/Makefile (tests-ifunc): New variable.
3742         (tests): Add $(tests-ifunc).
3743         * string/test-memccpy.c (TEST_NAME): New macro.
3744         * string/test-memchr.c (TEST_NAME): Likewise.
3745         * string/test-memcmp.c (TEST_NAME): Likewise.
3746         * string/test-memcpy.c (TEST_NAME): Likewise.
3747         * string/test-memmem.c (TEST_NAME): Likewise.
3748         * string/test-memmove.c (TEST_NAME): Likewise.
3749         * string/test-memset.c (TEST_NAME): Likewise.
3750         * string/test-rawmemchr.c (TEST_NAME): Likewise.
3751         * string/test-stpcpy.c (TEST_NAME): Likewise.
3752         * string/test-stpncpy.c (TEST_NAME): Likewise.
3753         * string/test-strcasecmp.c (TEST_NAME): Likewise.
3754         * string/test-strcasestr.c (TEST_NAME): Likewise.
3755         * string/test-strcat.c (TEST_NAME): Likewise.
3756         * string/test-strchr.c (TEST_NAME): Likewise.
3757         * string/test-strcmp.c(TEST_NAME): Likewise.
3758         * string/test-strcpy.c (TEST_NAME): Likewise.
3759         * string/test-strcspn.c (TEST_NAME): Likewise.
3760         * string/test-strlen.c (TEST_NAME): Likewise.
3761         * string/test-strncasecmp.c (TEST_NAME): Likewise.
3762         * string/test-strncmp.c (TEST_NAME): Likewise.
3763         * string/test-strncpy.c (TEST_NAME): Likewise.
3764         * string/test-strnlen.c (TEST_NAME): Likewise.
3765         * string/test-strpbrk.c (TEST_NAME): Likewise.
3766         * string/test-strrchr.c (TEST_NAME): Likewise.
3767         * string/test-strspn.c (TEST_NAME): Likewise.
3768         * string/test-strstr.c (TEST_NAME): Likewise.
3769         * string/test-bcopy-ifunc.c: New file.
3770         * string/test-bzero-ifunc.c: Likewise.
3771         * string/test-memccpy-ifunc.c: Likewise.
3772         * string/test-memchr-ifunc.c: Likewise.
3773         * string/test-memcmp-ifunc.c: Likewise.
3774         * string/test-memcpy-ifunc.c: Likewise.
3775         * string/test-memmem-ifunc.c: Likewise.
3776         * string/test-memmove-ifunc.c: Likewise.
3777         * string/test-mempcpy-ifunc.c: Likewise.
3778         * string/test-memset-ifunc.c: Likewise.
3779         * string/test-rawmemchr-ifunc.c: Likewise.
3780         * string/test-stpcpy-ifunc.c: Likewise.
3781         * string/test-stpncpy-ifunc.c: Likewise.
3782         * string/test-strcasecmp-ifunc.c: Likewise.
3783         * string/test-strcasestr-ifunc.c: Likewise.
3784         * string/test-strcat-ifunc.c: Likewise.
3785         * string/test-strchr-ifunc.c: Likewise.
3786         * string/test-strchrnul-ifunc.c: Likewise.
3787         * string/test-strcmp-ifunc.c: Likewise.
3788         * string/test-strcpy-ifunc.c: Likewise.
3789         * string/test-strcspn-ifunc.c: Likewise.
3790         * string/test-strlen-ifunc.c: Likewise.
3791         * string/test-strncasecmp-ifunc.c: Likewise.
3792         * string/test-strncat-ifunc.c: Likewise.
3793         * string/test-strncmp-ifunc.c: Likewise.
3794         * string/test-strncpy-ifunc.c: Likewise.
3795         * string/test-strnlen-ifunc.c: Likewise.
3796         * string/test-strpbrk-ifunc.c: Likewise.
3797         * string/test-strrchr-ifunc.c: Likewise.
3798         * string/test-strspn-ifunc.c: Likewise.
3799         * string/test-strstr-ifunc.c: Likewise.
3801         * debug/Makefile (tests-ifunc): New variable.
3802         (tests): Add $(tests-ifunc).
3803         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
3804         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
3805         * debug/test-stpcpy_chk-ifunc.c: New file.
3806         * debug/test-strcpy_chk-ifunc.c: Likewise.
3808 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
3810         [BZ #13601]
3811         * elf/dl-load.c (open_verify): Retry read if the entire ELF
3812         header is not read in.
3814 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
3816         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
3817         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
3818         directly.  Pass built executable to script as
3819         $(built-program-cmd).
3820         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
3821         $testprogram without using LD_LIBRARY_PATH and $ldso.
3823         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
3824         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
3825         $(rtld-installed-name).
3826         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
3827         (rtld_installed_name): Likewise.
3828         (library_path): Likewise.
3829         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
3830         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
3831         $(run-program-prefix) to tst-tables.sh.
3832         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
3833         it to run tst-table-from and tst-table-to.
3834         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
3835         Pass it to tst-table.sh.
3836         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
3837         $(run-program-prefix) to tst-gettext.sh.
3838         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
3839         tst-translit.sh.
3840         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
3841         tst-gettext2.sh.
3842         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
3843         to run tst-gettext.
3844         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
3845         to run tst-gettext2.
3846         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
3847         to run tst-translit.
3848         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
3849         $(run-program-prefix) to tst-mtrace.sh.
3850         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
3851         to run tst-mtrace.
3852         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
3853         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
3854         $(rtld-installed-name).
3855         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
3856         (rtld_installed_name): Likewise.
3857         (run_program_prefix): New variable.  Use it to run wordexp-test.
3859         * Makeconfig (ARCH): Remove all definitions.
3860         (machine): Likewise.
3861         [ARCH]: Remove conditional code.
3862         [!objdir]: Give error.
3863         [!objdir] (objpfx): Remove.
3864         [!objdir] (common-objpfx): Likewise.
3865         [!objdir] (common-objdir): Likewise.
3866         * configure.in (config_makefile): Remove.  Hardcode Makefile in
3867         AC_CONFIG_FILES call.
3868         * configure: Regenerated.
3870         [BZ #13888]
3871         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
3872         or TMPDIR.
3873         (testout): Likewise.
3875         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
3876         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
3877         $(rtld-installed-name).
3878         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
3879         (rtld_installed_name): Likwise.
3880         (runit): Remove function.
3881         (run_getconf): New variable,  Use it for running getconf binary.
3883 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
3885         [BZ #14716]
3886         * string/test-memmem.c (check_result): New function.
3887         (do_one_test): Use it.
3888         (check1): New function.
3889         (test_main): Use it.
3891 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
3893         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
3895 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
3897         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
3898         (_G_LSEEK64): Likewise.
3899         (_G_MMAP64): Likewise.
3900         (_G_FSTAT64): Likewise.
3901         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
3902         (_G_LSEEK64): Likewise.
3903         (_G_MMAP64): Likewise.
3904         (_G_FSTAT64): Likewise.
3905         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
3906         unconditional.  Call __mmap64 directly.
3907         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
3908         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
3909         __lseek64 directly.
3910         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
3911         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
3912         __mmap64 directly.
3913         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
3914         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
3915         __lseek64 directly.
3916         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
3917         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
3918         __lseek64 directly.
3919         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
3920         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
3921         __lseek64 directly.
3922         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
3923         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
3924         __fxstat64 directly.
3925         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
3926         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
3927         unconditional.
3928         (freopen64) [!_G_OPEN64]: Remove conditional code.
3929         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
3930         unconditional.
3931         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
3932         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
3933         unconditional.
3934         (ftello64) [!_G_LSEEK64]: Remove conditional code.
3935         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
3936         unconditional.
3937         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
3938         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
3939         unconditional.
3940         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
3941         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
3942         unconditional.
3943         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
3944         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
3945         unconditional.
3946         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
3947         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
3948         unconditional.
3949         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
3951 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
3953         [BZ #12140]
3954         * manual/memory.texi (Malloc Tunable Parameters): Add note
3955         about free list pointers overwriting some perturb bytes.
3956         Wording suggested by Roland McGrath.
3958 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
3960         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
3961         (lgamma_test): Likewise.
3962         (tgamma_test): Likewise.
3964 2012-10-16  Florian Weimer  <fweimer@redhat.com>
3966         [BZ #14700]
3967         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
3968         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
3970 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
3972         * NEWS: Mention BZ #14716.
3973         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
3974         when removing AVAILABLE1_USES_J macro.
3976 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
3978         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
3979         (__bswap_64): __uint64_t for unsigned 64-bit int.
3981 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
3983         * include/string.h (memmem): Declare libc hidden alias.
3984         * string/memmem.c (memmem): Define libc hidden alias.
3985         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
3986         __read, __close instead of open, read, close.
3988 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
3990         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
3991         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
3992         global and hidden.
3993         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
3994         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
3995         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
3996         Likewise.
3997         (__rawmemchr_sse2): Likewise.
3998         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
3999         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
4000         (__strchr_sse2): Likewise.
4001         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
4002         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
4003         (__strcasecmp_sse2): Likewise.
4004         (__strncasecmp_sse2): Likewise.
4005         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
4006         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
4007         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
4008         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
4009         (__strrchr_sse2): Likewise.
4010         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
4011         ifunc-impl-list.c.
4012         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
4013         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
4014         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
4015         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
4016         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
4017         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
4018         * sysdeps/x86_64/multiarch/memset.S: Likewise.
4019         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
4020         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
4021         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
4022         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
4023         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
4024         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
4025         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
4026         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
4027         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
4028         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
4029         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
4030         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
4031         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
4032         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
4033         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
4034         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
4035         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
4036         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
4037         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
4038         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
4039         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
4040         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
4041         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
4043         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
4044         global and hidden.
4045         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
4046         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
4047         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
4048         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
4049         Likewise.
4050         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
4051         Likewise.
4052         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
4053         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
4054         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
4055         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
4056         ifunc-impl-list.c.
4057         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
4058         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
4059         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
4060         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
4061         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
4062         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
4063         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
4064         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
4065         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
4066         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
4067         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
4068         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
4069         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
4070         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
4071         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
4072         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
4073         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
4074         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
4075         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
4076         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
4077         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
4078         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
4079         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
4080         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
4081         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
4082         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
4083         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
4084         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
4085         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
4086         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
4087         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
4088         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
4089         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
4090         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
4091         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
4092         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
4093         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
4094         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
4095         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
4096         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
4097         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
4099         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
4100         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
4101         * include/ifunc-impl-list.h: New file.
4102         * misc/ifunc-impl-list.c: Likewise.
4103         * misc/Makefile (routines): Add ifunc-impl-list.
4104         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
4105         * string/test-string.h: Include <ifunc-impl-list.h>.
4106         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
4107         impl_array): New variables.
4108         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
4109         are defined.
4110         (test_init): Call __libc_ifunc_impl_list to initialize
4111         func_list if TEST_IFUNC and TEST_NAME are defined.
4113         * string/Makefile (strop-tests): Add bcopy and bzero.
4114         * string/test-bcopy.c: New file.
4115         * string/test-bzero.c: Likewise.
4116         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
4117         defined.
4118         * string/test-memset.c: Support bzero test if TEST_BZERO is
4119         defined.
4120         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
4121         __libc_memmove.
4122         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
4123         __libc_memset.
4124         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
4125         of memset.
4127 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
4129         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
4130         * configure: Regenerated.
4132         * Makeconfig (+link-static-before-libc): Don't include
4133         $(link-static-libc).
4135         * libio/libio.h (_IO_pos_t): Remove.
4137 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
4139         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
4140         McGrath.
4142 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
4144         * crypt/crypt-entry.c: Include fips-private.h.
4145         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
4146         * crypt/md5c-test.c (main): Tolerate disabled MD5.
4147         * sysdeps/unix/sysv/linux/fips-private.h: New file.
4148         * sysdeps/generic/fips-private.h: New file, dummy fallback.
4150 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
4152         * crypt/crypt-private.h: Include stdbool.h.
4153         (_ufc_setup_salt_r): Return bool.
4154         * crypt/crypt-entry.c: Include errno.h.
4155         (__crypt_r): Return NULL with EINVAL for bad salt.
4156         * crypt/crypt_util.c (bad_for_salt): New.
4157         (_ufc_setup_salt_r): Check that salt is long enough and within
4158         the specified alphabet.
4159         * crypt/badsalttest.c: New file.
4160         * crypt/Makefile (tests): Add it.
4161         ($(objpfx)badsalttest): New.
4163 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
4165         * NEWS: Add entry for BZ #14602.
4167 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
4169         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
4170         type-generic.
4171         * math/libm-test.inc: Update comment listing what functions and
4172         macros are tested.
4173         (isgreater_test): New function.
4174         (isgreaterequal_test): Likewise.
4175         (isless_test): Likewise.
4176         (islessequal_test): Likewise.
4177         (islessgreater_test): Likewise.
4178         (isunordered_test): Likewise.
4179         (main): Call the new functions.
4181 2012-10-09  Roland McGrath  <roland@hack.frob.com>
4183         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
4184         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
4185         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
4186         * sysdeps/i386/configure: Regenerated.
4187         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
4188         * sysdeps/mach/configure: Regenerated.
4189         * sysdeps/mach/hurd/configure: Regenerated.
4190         * sysdeps/powerpc/configure: Regenerated.
4191         * sysdeps/powerpc/powerpc32/configure: Regenerated.
4192         * sysdeps/powerpc/powerpc64/configure: Regenerated.
4193         * sysdeps/s390/s390-32/configure: Regenerated.
4194         * sysdeps/s390/s390-64/configure: Regenerated.
4195         * sysdeps/sh/configure: Regenerated.
4196         * sysdeps/sparc/configure: Regenerated.
4197         * sysdeps/unix/sysv/linux/configure: Regenerated.
4198         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
4199         * sysdeps/x86_64/configure: Regenerated.
4201         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
4202         defined.  Don't check if MAP is NULL.
4204 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
4206         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
4207         (_G_stat64): Likewise.
4208         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
4209         (_G_stat64): Likewise.
4210         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
4211         instead of struct _G_stat64.
4212         * libio/fileops.c (mmap_remap_check): Likewise.
4213         (decide_maybe_mmap): Likewise.
4214         (_IO_new_file_seekoff): Likewise.
4215         (_IO_file_stat): Likewise.
4216         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
4217         _G_off64_t.
4218         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
4219         instead of struct _G_stat64.
4220         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
4222 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
4224         [BZ #14602]
4225         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
4226         Replace with ...
4227         (CHECK_EOL): New macro.
4228         (two_way_short_needle): Check beginning of haystack for EOL.  Use
4229         CHECK_EOL.
4230         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
4231         Replace with CHECK_EOL.
4232         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
4233         Replace with CHECK_EOL.
4235 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
4237         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
4238         type-generic.
4239         * math/libm-test.inc: Update comment listing what functions and
4240         macros are tested.
4241         (finite_test): New function.
4242         (isinf_test): Likewise.
4243         (isnan_test): Likewise.
4244         (fpclassify_test): Test subnormal input.
4245         (isfinite_test): Likewise.
4246         (isnormal_test): Likewise.
4247         (main): Call the new functions.
4249 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
4251         [BZ #14660]
4252         * Makerules (%.dynsym): Force C locale when running
4253         $(OBJDUMP) --dynamic-syms.
4255 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
4257         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
4258         <stdint.h>.
4260 2012-10-06  David S. Miller  <davem@davemloft.net>
4262         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
4263         upper 32-bits of the length value in %o2 since we use branch-on-register
4264         tests which consider the entire 64-bit register.
4266 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
4268         * string/test-strstr.c (check2): Add a test for page boundary.
4270 2012-10-05  David S. Miller  <davem@davemloft.net>
4272         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
4273         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
4274         file.
4275         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
4276         sysdep_routines.
4277         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
4278         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
4279         and bzero when HWCAP_SPARC_CRYPTO is present.
4281 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
4283         [BZ #14602]
4284         * string/test-strstr.c (check2): New function.
4285         (test_main): Call check2.
4287         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
4288         and bug-strchr1.
4289         * string/bug-strcasestr1.c (do_test): Moved to ...
4290         * string/test-strcasestr.c (check1): Here.  New function.
4291         (do_one_test): Break out result checking code into ...
4292         (check_result): This.  New function.
4293         (do_one_test): Call check_result.
4294         (test_main): Call check1.
4295         * string/bug-strchr1.c (do_test): Moved to ...
4296         * string/test-strchr.c (check1): Here.  New function.
4297         (do_one_test): Break out result checking code into ...
4298         (check_result): This.  New function.
4299         (do_one_test): Call check_result.
4300         (test_main): Call check1.
4301         * string/bug-strstr1.c (main): Moved to ...
4302         * string/test-strchr.c (check1): Here.  New function.
4303         (do_one_test): Break out result checking code into ...
4304         (check_result): This.  New function.
4305         (do_one_test): Call check_result.
4306         (test_main): Call check1.
4307         * string/bug-strcasestr1.c: Removed.
4308         * string/bug-strchr1.c: Likewise.
4309         * string/bug-strstr1.c: Likewise.
4311         * elf/Makefile (dl-routines): Add hwcaps.
4312         * elf/dl-support.c (_dl_important_hwcaps): Removed.
4313         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
4314         (_dl_important_hwcaps): Moved to ...
4315         * elf/dl-hwcaps.c: Here.  New file.
4316         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
4318         [BZ #14557]
4319         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
4320         if IS_IN_rtld isn't defined.
4322         * elf/dl-support.c (_dl_sysinfo_map): New.
4323         Include "get-dynamic-info.h" and "setup-vdso.h".
4324         (_dl_non_dynamic_init): Call setup_vdso.
4325         * elf/dynamic-link.h: Don't include <assert.h>.
4326         (elf_get_dynamic_info): Moved to ...
4327         * elf/get-dynamic-info.h: Here.  New file.
4328         * elf/dynamic-link.h: Include "get-dynamic-info.h".
4329         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
4330         * elf/setup-vdso.h: Here.  New file.
4331         * elf/rtld.c: Include "setup-vdso.h".
4332         (dl_main): Call setup_vdso.
4334 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
4336         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
4337         creal in comment listing functions tested.  List finite, isinf,
4338         isnan, isless, islessequal, isgreater, isgreaterequal,
4339         islessgreater, isunordered, lgamma_r and pow10 as functions and
4340         macros not tested.  Mention which functions not tested are aliases
4341         for other functions.  Fix typo.  Note that signs of NaNs are not
4342         tested.
4344         * scripts/config.guess: Update from config.git.
4345         * scripts/config.sub: Likewise.
4347 2012-10-04  Roland McGrath  <roland@hack.frob.com>
4349         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
4350         * misc/madvise.c (madvise): Renamed to __madvise.
4351         Make madvise a weak alias.
4352         * include/sys/mman.h: Declare __madvise.
4353         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
4354         * sysdeps/unix/syscalls.list
4355         (madvise): Make __madvise the strong name, and madvise a weak alias.
4356         * sysdeps/unix/sysv/linux/syscalls.list
4357         (madvise, mmap): Remove redundant entries.
4358         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
4359         * malloc/malloc.c (mtrim): Likewise.
4360         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
4362 2012-10-03  Roland McGrath  <roland@hack.frob.com>
4364         * sysdeps/mach/hurd/dl-cache.c: File removed.
4365         * config.h.in (USE_LDCONFIG): New #undef.
4366         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
4367         * configure: Regenerated.
4368         * elf/Makefile (dl-routines): Add dl-cache only under
4369         [$(use-ldconfig) = yes].
4370         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
4371         cache on [USE_LDCONFIG].
4372         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
4373         [USE_LDCONFIG].
4374         * elf/rtld.c (dl_main): Likewise.
4376 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
4378         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
4379         _SC_LEVEL4_CACHE_LINESIZE.
4381 2012-10-03  Roland McGrath  <roland@hack.frob.com>
4383         * sysdeps/unix/bsd/confstr.h: File removed.
4385 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
4387         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
4388         sys/sdt-config.h.
4390 2012-10-02  Roland McGrath  <roland@hack.frob.com>
4392         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
4393         Make 'mapoff' field ElfW(Off) rather than off_t.
4395 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
4397         * nscd/Makefile: Remove nscd-cflags and all its users.
4398         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
4399         (CFLAGS-nonlib): Add compiler flags for nscd modules.
4401         [BZ #10631]
4402         * malloc.c (malloc_printerr): Clarify error message.
4404 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
4406         [BZ #14648]
4407         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4408         Set bit_FMA_Usable if FMA is supported.
4409         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
4410         macro.
4411         (bit_FMA4_Usable): Updated.
4412         (index_FMA_Usable): New macro.
4413         (CPUID_FMA): Likewise
4414         (HAS_FMA): Defined with bit_FMA_Usable.
4416 2012-10-01  Roland McGrath  <roland@hack.frob.com>
4418         * bits/types.h (__swblk_t): Type removed.
4419         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
4420         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
4421         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4422         (__SWBLK_T_TYPE): Likewise.
4423         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4424         (__SWBLK_T_TYPE): Likewise.
4425         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4426         (__SWBLK_T_TYPE): Likewise.
4427         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4428         (__SWBLK_T_TYPE): Likewise.
4430 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
4431             Honza Horak <hhorak@redhat.com>
4433         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
4434         (xdr_mapname): Use YPMAXMAP as maxsize.
4435         (xdr_peername): Use YPMAXPEER as maxsize.
4436         (xdr_keydat): Use YPAXRECORD as maxsize.
4437         (xdr_valdat): Use YPMAXRECORD as maxsize.
4439 2012-10-01  Roland McGrath  <roland@hack.frob.com>
4441         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
4443         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
4444         * csu/init-first.c: ... here.
4445         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
4446         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
4447         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
4448         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
4449         * sysdeps/i386/init-first.c: File removed.
4450         * sysdeps/sh/init-first.c: File removed.
4452 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
4454         [BZ #14645]
4455         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
4456         if x * y might underflow to zero and z is zero.
4457         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
4458         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
4459         * math/libm-test.inc (min_subnorm_value): New variable.
4460         (fma_test): Add more tests.
4461         (fma_test_towardzero): Likewise.
4462         (fma_test_downward): Likewise
4463         (fma_test_upward): Likewise.
4464         (initialize): Set min_subnorm_value.
4466 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
4468         [BZ #14638]
4469         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
4470         0 + 0.
4471         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
4472         mode for addition resulting in exact zero.
4473         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
4474         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
4475         exact 0 + 0.
4476         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
4477         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
4478         * math/libm-test.inc (fma_test): Add more tests.
4479         (fma_test_towardzero): New function.
4480         (fma_test_downward): Likewise.
4481         (fma_test_upward): Likewise.
4482         (main): Call the new functions.
4484 2012-09-28  David S. Miller  <davem@davemloft.net>
4486         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
4488 2012-09-28  Roland McGrath  <roland@hack.frob.com>
4490         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
4491         instead of SIGALRM.
4493         * sysdeps/gnu/_G_config.h: Moved to ...
4494         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
4495         * sysdeps/mach/hurd/_G_config.h: Moved to ...
4496         * sysdeps/generic/_G_config.h: ... here.
4498         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
4500         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
4502         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
4503         Conditionalize target on [libnss_test1.so-version].
4505         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
4507         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
4508         (elfobjdir): Move out of conditionals.
4510         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
4511         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
4512         (__nss_lookup_function): Conditionalize label remove_from_tree on
4513         [!DO_STATIC_NSS || SHARED], matching its only use.
4515 2012-09-28  David S. Miller  <davem@davemloft.net>
4517         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
4518         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
4519         file.
4520         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
4521         sysdep_routines.
4522         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
4523         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
4524         when HWCAP_SPARC_CRYPTO is present.
4526 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
4528         * io/tst-mknodat.c: Create a FIFO instead of a socket.
4530 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
4532         [BZ #6530]
4533         * stdio-common/vfprintf.c (process_string_arg): Revert
4534         2000-07-22 change.
4536 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
4538         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
4539         for testcase.
4540         * stdio-common/tst-sprintf.c: Include <locale.h>
4541         (main): Test sprintf's handling of incomplete multibyte
4542         characters.
4544 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
4546         * elf/dl-runtime.c (VERSYMIDX): Removed.
4547         * elf/dl-version.c (VERSYMIDX): Likewise.
4548         * elf/do-rel.h (VERSYMIDX): Likewise.
4549         (VALIDX): Likewise.
4550         * elf/dynamic-link.h (VERSYMIDX): Likewise.
4551         * elf/rtld.c (VALIDX): Likewise.
4552         (ADDRIDX): Likewise.
4553         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
4554         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
4555         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
4556         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
4557         (VALIDX): Likewise.
4558         (ADDRIDX): Likewise.
4560 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
4562         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
4564 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
4566         [BZ #11438]
4567         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
4568         to global scope.
4569         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
4570         addresses are in the same scope as 192.0.2/24.
4571         * posix/gai.conf: Document new scope table defaults.
4573 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4575         [BZ #5298]
4576         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
4577         for ftell.  Compute offsets from write pointers instead.
4578         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
4580 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4582         [BZ #14543]
4583         * libio/Makefile (tests): New test case tst-fseek.
4584         * libio/tst-fseek.c: New test case to verify that fseek/ftell
4585         combination works in wide mode.
4586         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
4587         state when the external buffer state changes.
4589 2012-09-27  David S. Miller  <davem@davemloft.net>
4591         [BZ #14376]
4592         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
4593         pass reloc->r_addend in as the 'high' argument to
4594         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
4596         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4598 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
4600         * rt/tst-aio2.c: Include <pthread.h>.
4601         * rt/tst-aio3.c: Likewise.
4603 2012-09-27  Steve Ellcey  <sellcey@mips.com>
4605         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
4607 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
4609         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
4610         contents on [SHARED].
4612 2012-09-26  Marek Polacek  <polacek@redhat.com>
4614         [BZ #14530]
4615         [BZ #13741]
4616         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
4617         for C++ and GCC <4.3 as well as for non GCC compilers.
4619 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
4621         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4623 2012-09-25  Roland McGrath  <roland@hack.frob.com>
4625         * Makefile.in (all, install): Declare with .PHONY.
4626         Reported by Michael Hope <michael.hope@linaro.org>.
4628 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4630         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
4631         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
4632         system header.
4633         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
4634         Likewise.
4635         (sydep_routines): Add the new and the internal functions.
4636         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
4637         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
4638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
4639         (GLIBC_2.17): Add the new function.
4640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4641         (GLIBC_2.17): Likewise.
4642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
4643         (GLIBC_2.17): Likewise.
4644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
4645         (GLIBC_2.17): Likewise.
4646         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
4648 2012-09-25  Alan Modra  <amodra@gmail.com>
4650         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
4651         Add release barrier before setting once_control to say
4652         initialisation is done.  Add hints on lwarx.  Use macro in
4653         place of isync.
4654         (clear_once_control): Add release barrier.
4656 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
4658         [BZ #13629]
4659         * math/s_clog.c (__clog): Handle more values close to |z| = 1
4660         specially.
4661         * math/s_clog10.c (__clog10): Likewise.
4662         * math/s_clog10f.c (__clog10f): Likewise.
4663         * math/s_clog10l.c (__clog10l): Likewise.
4664         * math/s_clogf.c (__clogf): Likewise.
4665         * math/s_clogl.c (__clogl): Likewise.
4666         * math/Makefile (libm-calls): Add x2y2m1.
4667         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
4668         (__x2y2m1): Likewise.
4669         (__x2y2m1l): Likewise.
4670         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
4671         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
4672         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
4673         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
4674         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
4675         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
4676         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
4677         * sysdeps/i386/fpu/libm-test-ulps: Update.
4678         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4680         [BZ #14621]
4681         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
4682         int as type of variable DEPTH.
4683         (glob): Use size_t instead of int as type of variables NEWCOUNT
4684         and OLD_PATHC.
4686 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4688         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
4689         Add s_sincosf-sse2.
4690         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
4691         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
4692         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
4693         macros for using routine as __sincosf_ia32.
4694         Use macro for function declaration and weak_alias.
4695         * sysdeps/i386/fpu/libm-test-ulps: Update.
4697         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
4698         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4700         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
4701         subnormal argument.
4702         * math/s_cexpf.c (__cexpf): Likewise.
4703         * math/s_csinf.c (__csinf): Likewise.
4704         * math/s_csinhf.c (__csinhf): Likewise.
4705         * math/s_ctanf.c (__ctanf): Likewise.
4706         * math/s_ctanhf.c (__ctanhf): Likewise.
4707         * math/s_ccosh.c (__ccoshf): Likewise.
4708         * math/s_cexp.c (__cexpl): Likewise.
4709         * math/s_csin.c (__csin): Likewise.
4710         * math/s_csinh.c (__csinh): Likewise.
4711         * math/s_ctan.c (__ctan): Likewise.
4712         * math/s_ctanh.c (ctanh): Likewise.
4713         * math/s_ccoshl.c (__ccoshl): Likewise.
4714         * math/s_cexpl.c (__cexpl): Likewise.
4715         * math/s_csinl.c (__csinl): Likewise.
4716         * math/s_csinhl.c (__csinhl): Likewise.
4717         * math/s_ctanl.c (__ctanl): Likewise.
4718         * math/s_ctanhl.c (__ctanhl): Likewise.
4720 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
4722         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
4723         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
4724         (_IO_off_t): Define to __off_t, not _G_off_t.
4725         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
4726         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
4727         (_IO_wint_t): Define to wint_t, not _G_wint_t.
4728         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
4729         type of __dummy and __dummy2 fields.
4730         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
4731         (_G_ssize_t): Likewise.
4732         (_G_off_t): Likewise.
4733         (_G_pid_t): Likewise.
4734         (_G_uid_t): Likewise.
4735         (_G_wchar_t): Likewise.
4736         (_G_wint_t): Likewise.
4737         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
4738         (_G_ssize_t): Likewise.
4739         (_G_off_t): Likewise.
4740         (_G_pid_t): Likewise.
4741         (_G_uid_t): Likewise.
4742         (_G_wchar_t): Likewise.
4743         (_G_wint_t): Likewise.
4744         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
4745         (_G_ssize_t): Likewise.
4746         (_G_off_t): Likewise.
4747         (_G_pid_t): Likewise.
4748         (_G_uid_t): Likewise.
4749         (_G_wchar_t): Likewise.
4750         (_G_wint_t): Likewise.
4752 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
4754         * malloc/arena.c: Include malloc-sysdep.h.
4755         (shrink_heap): Use check_may_shrink_heap to decide if madvise
4756         is sufficient to shrink the heap or an unmap is needed.
4757         * sysdeps/generic/malloc-sysdep.h: New file.  Define
4758         new function check_may_shrink_heap.
4759         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
4760         new function check_may_shrink_heap.
4762 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
4764         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
4765         comments.
4767 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
4769         * catgets/test-gencat.sh: Add "set -e".
4770         * elf/tst-pathopt.sh: Likewise.
4771         * grp/tst_fgetgrent.sh: Likewise.
4772         * iconvdata/run-iconv-test.sh: Likewise.
4773         * intl/tst-gettext.sh: Likewise.
4774         * intl/tst-gettext2.sh: Likewise.
4775         * intl/tst-gettext4.sh: Likewise.
4776         * intl/tst-gettext6.sh: Likewise.
4777         * intl/tst-translit.sh: Likewise.
4778         * io/ftwtest-sh: Likewise.
4779         * libio/test-freopen.sh: Likewise.
4780         * malloc/tst-mtrace.sh: Likewise.
4781         * posix/globtest.sh: Likewise.
4782         * posix/tst-getconf.sh: Likewise.
4783         * posix/wordexp-tst.sh: Likewise.
4784         * stdio-common/tst-printf.sh: Likewise.
4785         * stdio-common/tst-unbputc.sh: Likewise.
4786         * stdlib/tst-fmtmsg.sh: Likewise.
4787         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
4788         * catgets/Makefile: Do not specify -e option when running
4789         testsuite shell scripts.
4790         * elf/Makefile: Likewise.
4791         * grp/Makefile: Likewise.
4792         * iconvdata/Makefile: Likewise.
4793         * intl/Makefile: Likewise.
4794         * io/Makefile: Likewise.
4795         * libio/Makefile: Likewise.
4796         * malloc/Makefile: Likewise.
4797         * posix/Makefile: Likewise.
4798         * stdio-common/Makefile: Likewise.
4799         * stdlib/Makefile: Likewise.
4800         * sysdeps/x86_64/Makefile: Likewise.
4802         * io/ftwtest-sh: Add copyright header.
4803         * posix/globtest.sh: Likewise.
4804         * posix/tst-getconf.sh: Likewise.
4805         * posix/wordexp-tst.sh: Likewise.
4806         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
4808 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
4810         [BZ #13679]
4811         * Makeconfig (+link): Defined as $(+link-static) if
4812         $(build-shared) isn't yes.
4813         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
4814         isn't yes.
4815         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
4817         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
4819         [BZ #14562]
4820         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
4821         new chunk size with MALLOC_ALIGN_MASK.
4823 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
4825         [BZ #5044]
4826         * stdio-common/printf_fphex.c: Include <stdbool.h> and
4827         <rounding-mode.h>.
4828         (__printf_fphex): Determine rounding using get_rounding_mode and
4829         round_away.
4830         * stdio-common/tst-printf-round.c (struct hex_test): New
4831         structure.
4832         (hex_tests): New variable.
4833         (test_hex_in_one_mode): New function.
4834         (do_test): Also run tests for hex float output.
4836 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
4838         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
4839         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
4840         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
4841         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
4842         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
4843         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
4844         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
4845         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
4847 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
4849         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
4850         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
4851         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
4852         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
4854 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
4856         [BZ #14579]
4857         * elf/rtld.c (dl_main): Limit the check for self loading to normal
4858         mode only.
4859         * elf/tst-rtld-load-self.sh: New test.
4860         * elf/Makefile: Run it.
4862 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
4864         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
4865         (tst-writev-ENV): Remove.
4866         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
4868 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
4870         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
4872 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
4874         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
4875         unconditional.
4876         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
4877         Likewise.
4878         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
4879         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
4880         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
4881         Likewise.
4883 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4885         [BZ #14587]
4886         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
4887         * config.make.in (have-cpp-asm-debuginfo): Removed.
4888         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
4889         * configure: Regenerated.
4891 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
4893         [BZ #5044]
4894         * stdio-common/printf_fp.c: Include <stdbool.h> and
4895         <rounding-mode.h>.
4896         (___printf_fp): Determine rounding using get_rounding_mode and
4897         round_away.
4898         * stdio-common/tst-printf-round.c: New file.
4899         * stdio-common/Makefile (tests): Add tst-printf-round.
4900         (link-libm): New variable.
4901         ($(objpfx)tst-printf-round): Depend in $(link-libm).
4903 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
4905         [BZ #14576]
4906         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
4907         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
4908         Likewise.
4909         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
4910         Likewise.
4912 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
4914         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
4915         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
4916         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
4917         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
4919 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
4921         [BZ #14518]
4922         * include/rounding-mode.h: New file.
4923         * sysdeps/generic/get-rounding-mode.h: Likewise.
4924         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
4925         * stdlib/strtod_l.c: Include <rounding-mode.h>.
4926         (MAX_VALUE): New macro.
4927         (MIN_VALUE): Likewise.
4928         (overflow_value): New function.
4929         (underflow_value): Likewise.
4930         (round_and_return): Use overflow_value and underflow_value to
4931         determine return values in overflow and underflow cases.  Use
4932         round_away to determine rounding depending on rounding mode.
4933         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
4934         determine return values in overflow and underflow cases.
4935         * stdlib/tst-strtod-round.c: Include <fenv.h>.
4936         (struct test_results): New structure.
4937         (struct test): Use struct test_results to store expected results
4938         for all rounding modes.
4939         (TEST): Include expected results for all rounding modes.
4940         (test_in_one_mode): New function.
4941         (do_test): Use test_in_one_mode to compute and check results.
4942         Check results for all rounding modes.
4943         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
4944         $(link-libm).
4946 2012-12-09  Allan McRae  <allan@archlinux.org>
4948         * sysdeps/i386/fpu/libm-test-ulps: Update
4950 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
4952         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
4953         (_G_int32_t): Likewise.
4954         (_G_uint16_t): Likewise.
4955         (_G_uint32_t): Likewise.
4956         (_G_HAVE_BOOL): Likewise.
4957         (_G_HAVE_ATEXIT): Likewise.
4958         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
4959         (_G_HAVE_IO_FILE_OPEN): Likewise.
4960         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
4961         (_G_int32_t): Likewise.
4962         (_G_uint16_t): Likewise.
4963         (_G_uint32_t): Likewise.
4964         (_G_HAVE_BOOL): Likewise.
4965         (_G_HAVE_ATEXIT): Likewise.
4966         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
4967         (_G_HAVE_IO_FILE_OPEN): Likewise.
4968         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
4969         (_G_int32_t): Likewise.
4970         (_G_uint16_t): Likewise.
4971         (_G_uint32_t): Likewise.
4972         (_G_HAVE_BOOL): Likewise.
4973         (_G_HAVE_ATEXIT): Likewise.
4974         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
4975         (_G_HAVE_IO_FILE_OPEN): Likewise.
4977 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
4979         * csu/libc-tls.c: Update copyright years.
4981 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
4983         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
4984         [!_G_USING_THUNKS]: Remove conditional code.
4985         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
4986         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
4988         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
4989         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
4990         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
4991         (_G_VTABLE_LABEL_PREFIX): Likewise.
4992         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
4993         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
4994         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
4995         (_G_VTABLE_LABEL_PREFIX): Likewise.
4996         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
4997         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
4998         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
4999         (_G_VTABLE_LABEL_PREFIX): Likewise.
5000         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
5002 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
5004         * libio/Makefile: Include ../Makeconfig before tests.
5005         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
5006         only if $(build-shared) is yes.
5008         * iconv/gconv_db.c: Update copyright years.
5010 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5012         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
5013         unwind info if defined PIC. Fix special cases description.
5014         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
5016         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
5017         DP_HI_MASK entry.
5018         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
5020 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
5022         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
5024         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
5025         is NULL.
5027         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
5028         (LDLIBS-tst-chk4): This.
5029         (LDFLAGS-tst-chk5): Renamed to ...
5030         (LDLIBS-tst-chk5): This.
5031         (LDFLAGS-tst-chk6): Renamed to ...
5032         (LDLIBS-tst-chk6): This.
5033         (LDFLAGS-tst-lfschk4): Renamed to ...
5034         (LDLIBS-tst-lfschk4): This.
5035         (LDFLAGS-tst-lfschk5): Renamed to ...
5036         (LDLIBS-tst-lfschk5): This.
5037         (LDFLAGS-tst-lfschk6): Renamed to ...
5038         (LDLIBS-tst-lfschk6): This.
5040         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
5041         on $(common-objpfx)soversions.mk.
5043 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
5045         [BZ #10014]
5046         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
5047         example host name.
5049 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
5051         * malloc/arena.c (arena_get_retry): New function that gets
5052         another arena for the caller to try its request on.
5053         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
5054         current arena cannot fulfill the request.
5055         (__libc_memalign): Likewise.
5056         (__libc_memalign): Likewise.
5057         (__libc_pvalloc): Likewise.
5058         (__libc_calloc): Likewise.
5060 2012-09-05  John Tobey  <john.tobey@gmail.com>
5062         [BZ #13542]
5063         * manual/arith.texi (Operations on Complex): Fix description
5064         of carg branch cut.
5066 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
5068         [BZ #10014]
5069         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
5070         host name.
5072         [BZ #10038]
5073         * manual/memory.texi (Memory): Make order of menu items match
5074         order of sections.
5076 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
5078         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
5079         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
5080         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
5082 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
5084         * csu/libc-tls.c (static_dtv): Renamed to ...
5085         (_dl_static_dtv): This.  Make it global.
5086         (_dl_initial_dtv): Removed.
5087         (__libc_setup_tls): Updated.
5088         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
5089         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
5090         DL_INITIAL_DTV.
5092 2012-09-06  Petr Machata  <pmachata@redhat.com>
5094         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
5095         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
5096         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
5097         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
5099 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
5101         [BZ #14545]
5102         * csu/libc-tls.c (_dl_initial_dtv): New variable.
5103         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
5104         freeing dtv[-1].
5106 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
5108         [BZ #14544]
5109         * Makeconfig (link-static-before-libc): Replace $(+prector)
5110         with $(+prectorT).
5111         (link-static-after-libc): Replace $(+postctor) with
5112         $(+postctorT).
5113         (link-bounded): Replace $(+prector)/$(+postctor) with
5114         $(+prectorT)/$(+postctorT).
5115         (+prectorT): New macro.
5116         (+postctorT): Likewise.
5118 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
5120         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
5121         (round_str): Handle values above the maximum for IBM long double
5122         as inexact.
5123         * stdlib/tst-strtod-round.c (tests): Regenerated.
5125 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5127         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
5128         assembler flag.
5129         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
5130         zarch_nohighgprs around the zarch optimized routines.
5131         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
5132         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
5133         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
5134         for zarch.
5136 2012-09-05  David S. Miller  <davem@davemloft.net>
5138         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5140         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
5141         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
5142         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
5143         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
5144         entries.
5146 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
5148         * malloc/arena.c: Fold copyright years.
5149         * malloc/mcheck.c, malloc/memusage.c: Likewise.
5151 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
5153         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
5155 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
5157         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
5159 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
5161         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
5162         change internal state upon failure.
5164 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
5166         * malloc/mcheck.c (mcheck_check_all): Fix typo.
5167         * malloc/memusage.c (mmap): Likewise.
5168         (mmap64, mremap): Likewise.  Adjust name in comment.
5170 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
5172         * libio/fileops.c: Fix typos in comments.
5173         * libio/oldfileops.c: Likewise.
5174         * libio/wfileops.c: Likewise.
5176 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
5178         [BZ #1349]
5179         * malloc/Makefile (tests): Add tst-malloc-usable test case.
5180         (tst-malloc-usable-ENV): Set environment for test case.
5181         * malloc/hooks.c (malloc_check_get_size): New function to get
5182         requested size.
5183         * malloc/malloc.c (musable): Use malloc_check_get_size.
5184         * malloc/tst-malloc-usable.c: New test case.
5186 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
5188         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
5190 2012-09-05  Allan McRae  <allan@archlinux.org>
5192         [BZ #13966]
5193         * configure.in (CXX_SYSINCLUDES): Use compiler output to
5194         determine header location.
5195         * configure: Regenerated.
5197 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
5199         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
5200         float format.
5201         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
5202         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
5203         format.
5204         (test): Regenerate.
5206 2012-09-04  David S. Miller  <davem@davemloft.net>
5208         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
5209         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
5210         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
5212 2012-09-04  Florian Weimer  <fweimer@redhat.com>
5214         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
5215         failures.
5217         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
5219 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
5221         [BZ #9914]
5222         * libio/iogetdelim.c: Include <limits.h>.
5223         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
5224         + len + 1 would overflow.
5226 2012-09-03  Andreas Jaeger  <aj@suse.de>
5228         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5229         * sysdeps/i386/fpu/libm-test-ulps: Update.
5231 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5233         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
5234         Add s_sinf-sse2, s_conf-sse2.
5236         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
5237         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
5238         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
5239         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
5241         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
5242         for using routine as __sinf_ia32.
5243         Use macro for function declaration and weak_alias.
5244         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
5245         for using routine as __cosf_ia32.
5246         Use macro for function declaration and weak_alias.
5248         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
5249         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
5251         * sysdeps/x86_64/fpu/s_sinf.S: New file.
5252         * sysdeps/x86_64/fpu/s_cosf.S: New file.
5253         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5255         * math/libm-test.inc (cos_test): Add more test cases.
5256         (sin_test): Likewise.
5257         (sincos_test): Likewise.
5259 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5261         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
5262         (IFUNC_RESOLVE): Make pointers to the specialized implementations
5263         hidden.
5264         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
5266 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
5268         [BZ #14538]
5269         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
5270         first element of the GOT.
5271         (elf_machine_load_address): Return the difference between
5272         the runtime address of _DYNAMIC and elf_machine_dynamic ().
5274 2012-09-01  Allan McRae  <allan@archlinux.org>
5276         [BZ #13412]
5277         * configure.in (AWK): Require gawk version 3.0 or later.
5278         * configure: Regenerated.
5280 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
5282         * sysdeps/unix/sysv/linux/kernel-features.h
5283         (__ASSUME_POSIX_CPU_TIMERS): Remove.
5284         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
5285         [__NR_clock_getres]: Make code unconditional.
5286         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
5287         (clock_getcpuclockid): Remove code left unreachable by removal of
5288         conditionals.
5289         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
5290         code unconditional.
5291         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
5292         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
5293         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
5294         Make code unconditional.
5295         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
5296         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
5297         * sysdeps/unix/sysv/linux/clock_settime.c
5298         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
5299         conditional code.
5300         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
5301         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
5303 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
5305         [BZ #14476]
5306         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
5307         scripts/test-installation.pl.
5309         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
5310         and $ld_so_version if it is set.
5312 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
5314         [BZ #14516]
5315         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
5316         failure if reading from procfs failed.
5317         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
5319 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
5321         * sysdeps/unix/sysv/linux/kernel-features.h
5322         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
5323         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
5324         Remove conditional code.
5325         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
5326         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
5327         Remove conditional code.
5328         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
5329         * sysdeps/unix/sysv/linux/i386/fxstat.c
5330         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
5331         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
5332         * sysdeps/unix/sysv/linux/i386/fxstatat.c
5333         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
5334         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
5335         * sysdeps/unix/sysv/linux/i386/lxstat.c
5336         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
5337         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
5338         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
5339         Remove conditional code.
5340         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
5341         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
5342         Remove conditional code.
5343         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
5344         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
5345         <kernel-features.h>.
5346         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
5347         Remove.
5348         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
5349         Remove conditional code.
5350         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
5351         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
5352         Remove conditional.
5354 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
5356         [BZ #5400]
5357         * NEWS: Add fixed bug number.
5359 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
5361         [BZ #14519]
5362         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
5363         underflowing exponent in case of negative sign.
5364         * stdlib/tst-strtod-round-data: Add more tests.
5365         * stdlib/tst-strtod-round.c (tests): Regenerated.
5367         [BZ #3479]
5368         * stdlib/strtod_l.c (NDIG): Remove.
5369         (HEXNDIG): Likewise.
5370         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
5371         smallest representable value.
5372         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
5373         lie within an exact representation of 1/2 ulp of the result.
5374         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
5375         unconditionally.
5376         (TENS_P9_IDX): Define unconditionally.
5377         (TENS_P9_SIZE): Likewise.
5378         (TENS_P10_IDX): Likewise.
5379         (TENS_P10_SIZE): Likewise.
5380         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
5381         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
5382         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
5383         entries for 10^2^13 and 10^2^14.
5384         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
5385         (TENS_P13_IDX): Define.
5386         (TENS_P13_SIZE): Likewise.
5387         (TENS_P14_IDX): Likewise.
5388         (TENS_P14_SIZE): Likewise.
5389         (_fpioconst_pow10): Change array size to
5390         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
5391         unconditional.
5392         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
5393         1024]: Add entries for 10^2^13 and 10^2^14.
5394         [LAST_POW10 > _LAST_POW10]: Remove #error.
5395         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
5396         (_fpioconst_pow10): Change array size to
5397         FPIOCONST_POW10_ARRAY_SIZE.
5398         * stdlib/gen-fpioconst.c: New file.
5399         * stdlib/gen-tst-strtod-round.c: Likewise.
5400         * stdlib/tst-strtod-round-data: Likewise.
5401         * stdlib/tst-strtod-round.c: Likewise.
5402         * stdlib/Makefile (tests): Add tst-strtod-round.
5404         [BZ #14459]
5405         * stdlib/strtod_l.c: Include <stdint.h>.
5406         (NDEBUG): Do not define.
5407         (round_and_return): Change EXPONENT parameter to type intmax_t.
5408         Rearrange calculations to avoid internal overflow possibilities.
5409         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
5410         Rearrange calculations to avoid internal overflow possibilities.
5411         Assert that number fits inside MPNSIZE limbs.
5412         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
5413         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
5414         calculations and add assertions to avoid internal overflow
5415         possibilities.  Add casts to avoid signed/unsigned operations.
5416         * stdlib/tst-strtod-overflow.c: New file.
5417         * stdlib/Makefile (tests): Add tst-strtod-overflow.
5419 2012-08-25  Marek Polacek  <polacek@redhat.com>
5421         * time/time.h: Fix some typos in comments.
5423 2012-08-23  Roland McGrath  <roland@hack.frob.com>
5425         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
5426         * posix/tst-rfc3484-2.c: Likewise.
5427         * posix/tst-rfc3484-3.c: Likewise.
5429 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
5431         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
5432         (EF_ARM_ABI_FLOAT_HARD): Likewise.
5434 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
5436         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
5437         #include of fxstatat64.c.
5439 2012-08-22  Roland McGrath  <roland@hack.frob.com>
5441         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
5442         * shadow/getspent_r.c: Likewise.
5443         * shadow/getspnam.c: Likewise.
5444         * shadow/getspnam_r.c: Likewise.
5445         * gshadow/getsgent.c: Likewise.
5446         * gshadow/getsgent_r.c: Likewise.
5447         * gshadow/getsgnam.c: Likewise.
5448         * gshadow/getsgnam_r.c: Likewise.
5449         * inet/getnetbyad.c: Likewise.
5450         * inet/getnetbyad_r.c: Likewise.
5451         * inet/getnetbynm.c: Likewise.
5452         * inet/getnetbynm_r.c: Likewise.
5453         * inet/getnetent.c: Likewise.
5454         * inet/getnetent_r.c: Likewise.
5455         * inet/getproto.c: Likewise.
5456         * inet/getproto_r.c: Likewise.
5457         * inet/getprtent.c: Likewise.
5458         * inet/getprtent_r.c: Likewise.
5459         * inet/getprtname.c: Likewise.
5460         * inet/getprtname_r.c: Likewise.
5461         * inet/getrpcbyname.c: Likewise.
5462         * inet/getrpcbyname_r.c: Likewise.
5463         * inet/getrpcbynumber.c: Likewise.
5464         * inet/getrpcbynumber_r.c: Likewise.
5465         * inet/getrpcent.c: Likewise.
5466         * inet/getrpcent_r.c: Likewise.
5467         * inet/getaliasent.c: Likewise.
5468         * inet/getaliasent_r.c: Likewise.
5469         * inet/getaliasname.c: Likewise.
5470         * inet/getaliasname_r.c: Likewise.
5471         * nscd/getgrgid_r.c: Likewise.
5472         * nscd/getgrnam_r.c: Likewise.
5473         * nscd/gethstbyad_r.c: Likewise.
5474         * nscd/gethstbynm3_r.c: Likewise.
5475         * nscd/getpwnam_r.c: Likewise.
5476         * nscd/getpwuid_r.c: Likewise.
5477         * nscd/getsrvbynm_r.c: Likewise.
5478         * nscd/getsrvbypt_r.c: Likewise.
5479         * nscd/gai.c: Likewise.
5481         * configure.in (build_nscd): New substituted variable, set
5482         by --disable-build-nscd and defaults to $use_nscd.
5483         * configure: Regenerated.
5484         * config.make.in (build-nscd): New substituted variable.
5485         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
5486         Change conditional to require [$(build-nscd) = yes] as well.
5487         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
5489         [BZ# 13696]
5490         * configure.in (use_nscd): New substituted variable, set by
5491         --disable-nscd.  If enabled, define USE_NSCD.
5492         * configure: Regenerated.
5493         * config.h.in: Add USE_NSCD.
5494         * config.make.in (use-nscd): New substituted variable.
5495         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
5496         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
5497         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
5498         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
5499         (CFLAGS-getgrnam_r.c): Likewise.
5500         (CFLAGS-initgroups.c): Likewise.
5501         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
5502         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
5503         Variables removed.
5504         * inet/getnetgrent_r.c
5505         (nscd_setnetgrent): New function, broken out of ...
5506         (setnetgrent): ... here.  Call it.
5507         (innetgr): Conditionalize nscd bits on [USE_NSCD].
5508         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
5509         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
5510         * nscd/Makefile (routines, aux): Move definitions after include of
5511         Makeconfig.  Conditionalize on [$(use-nscd) != no].
5512         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
5513         Conditionalize on [USE_NSCD].
5514         (is_nscd, nscd_init_cb): Likewise.
5515         (nss_load_library): Conditionalize init callback on [USE_NSCD].
5516         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
5517         * nss/nss_db/db-init.c: Likewise.
5518         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
5519         [USE_NSCD].
5520         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
5521         (make_request): Use it.
5522         (cache_valid_p): New function.
5523         (__check_pf): Use it.
5524         * NEWS: Add item for --disable-nscd.
5526 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
5528         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
5529         to support sed >= 4.2.1-20-ga9bf076.
5530         * configure: Regenerated.
5532 2012-08-22  Roland McGrath  <roland@hack.frob.com>
5534         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
5535         Conditionalize whole body on [IREL].
5537 2012-08-22  Jeff Law <law@redhat.com>
5539         [BZ #14505]
5540         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
5541         if the family is PF_UNSPEC.
5543 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
5545         * Makerules (lib-version): Rename from V.
5546         (install-lib-nosubdir): Change V to lib-version.
5548 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
5550         [BZ #14252]
5551         * powerpc32/power6/wcschr.c: New file.
5552         * powerpc32/power6/wcscpy.c: New file.
5553         * powerpc32/power6/wcsrchr.c: New file.
5554         * powerpc64/power6/wcschr.c: New file.
5555         * powerpc64/power6/wcscpy.c: New file.
5556         * powerpc64/power6/wcsrchr.c: New file.
5558 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
5560         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
5561         (two_way_short_needle): Use it.
5562         * string/strstr.c (AVAILABLE1_USES_J): Define.
5563         * string/strcasestr.c: Likewise.
5565         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
5566         array references.
5567         * string/strcasestr.c (TOLOWER): Make side-effect safe.
5569         [BZ #11607]
5570         * NEWS: Add an entry.
5571         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
5572         define their defaults.
5573         (two_way_short_needle): Detect end-of-string on-the-fly.
5574         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
5575         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
5576         * string/bug-strcasestr1.c: New test.
5577         * string/Makefile: Run it.
5579 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
5581         [BZ #11607]
5582         * string/str-two-way.h (two_way_short_needle): Optimize matching of
5583         the first character.
5585 2012-08-21  Roland McGrath  <roland@hack.frob.com>
5587         * csu/elf-init.c (__libc_csu_irel): Function removed.
5588         * csu/libc-start.c (apply_irel): New function.
5589         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
5591 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
5593         * sysdeps/unix/sysv/linux/kernel-features.h
5594         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
5595         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
5596         <kernel-features.h>.
5597         [__NR_fadvise64_64]: Make code unconditional.
5598         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
5599         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
5600         !__NR_fadvise64_64)]: Likewise.
5601         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
5602         !__NR_fadvise64_64))]: Likewise.
5603         [__NR_fadvise64]: Make code unconditional.
5604         [!__NR_fadvise64]: Remove conditional code.
5605         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
5606         <kernel-features.h>.
5607         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
5608         unconditional.
5609         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
5610         conditional code.
5611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
5612         not include <kernel-features.h>.
5613         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
5614         unconditional.
5615         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
5616         conditional code.
5617         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
5618         include <kernel-features.h>.
5619         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
5620         unconditional.
5621         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
5622         conditional code.
5624 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
5626         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
5627         slight instruction rearrangements per scrollpipe analysis.
5628         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
5630 2012-08-20  Roland McGrath  <roland@hack.frob.com>
5632         * manual/syslog.texi (syslog; vsyslog, closelog):
5633         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
5634         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
5636         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
5637         DSOCAPS to match condition on defining it.
5639 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
5641         * sysdeps/unix/sysv/linux/kernel-features.h
5642         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
5643         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
5644         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
5645         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
5646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
5647         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
5648         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
5649         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
5650         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
5651         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
5653         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
5654         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
5656         * sysdeps/unix/sysv/linux/kernel-features.h
5657         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
5658         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
5659         unconditional.
5660         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
5661         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
5662         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
5663         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
5664         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
5665         Make code unconditional.
5666         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
5667         (__mmap64) [!__NR_mmap2]: Likewise.
5668         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
5669         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
5670         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
5671         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
5672         [__NR_mmap2]: Make code unconditional.
5673         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
5674         (__mmap64) [!__NR_mmap2]: Likewise.
5676 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5678         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
5680 2012-08-18  Andreas Jaeger  <aj@suse.de>
5682         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
5684 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
5686         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
5687         * include/unistd.h (__have_sock_cloexec): Likewise.
5688         (__have_pipe2): Likewise.
5689         (__have_dup3): Likewise.
5691 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
5693         [BZ #9685]
5694         * include/unistd.h (__have_pipe2): Change define into an extern int.
5695         (__have_dup3): Likewise.
5696         * socket/have_sock_cloexec.c: Include fcntl.h.
5697         (__have_pipe2): New variable.
5698         (__have_dup3): Likewise.
5700 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
5702         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
5704 2012-08-17  Marek Polacek  <polacek@redhat.com>
5706         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
5707         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
5709 2012-08-17  Roland McGrath  <roland@hack.frob.com>
5711         * configure.in: Add AC_SUBST for sysheaders.
5712         * configure: Regenerated.
5713         * config.make.in (sysheaders): New substituted variable.
5715         * sysdeps/unix/mkfifo.c: Moved ...
5716         * sysdeps/posix/mkfifo.c: ... here.
5717         * sysdeps/unix/mkfifoat.c: Moved ...
5718         * sysdeps/posix/mkfifoat.c: ... here.
5720         * sysdeps/unix/utime.c: Moved ...
5721         * sysdeps/posix/utime.c: ... here.
5723         * sysdeps/unix/time.c: Moved ...
5724         * sysdeps/posix/time.c: ... here.
5725         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
5726         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
5728         * sysdeps/unix/nice.c: Moved ...
5729         * sysdeps/posix/nice.c: ... here.
5731         * sysdeps/unix/alarm.c: Moved ...
5732         * sysdeps/posix/alarm.c: ... here.
5734         * intl/Makefile ($(codeset_mo)): Depend on the input file.
5736 2012-08-17  Jeff Law <law@redhat.com>
5738         * intl/Makefile (codeset_mo): New variable.
5739         ($(codeset_mo)): New target.
5740         (tst-codeset.out): Depend on that.  Remove explicit rule.
5741         (tst-gettext3.out, tst-gettext5.out): Likewise.
5742         (LOCPATH-ENV, tst-codeset-ENV): New variables.
5743         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
5744         * intl/tst-codeset.sh: Remove.
5745         * intl/tst-gettext3.sh: Likewise.
5746         * intl/tst-gettext5.sh: Likewise.
5748 2012-08-17  Roland McGrath  <roland@hack.frob.com>
5750         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
5751         * sysdeps/unix/syscalls.list: ... here.
5753         * sysdeps/posix/getaddrinfo.c
5754         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
5755         (gaiconf_init, gaiconf_reload): Use them.
5756         [!_STATBUF_ST_NSEC]
5757         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
5758         Define using time_t rather than struct timespec.
5760         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
5761         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
5762         Macros removed.
5763         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
5764         [!NO_THREADS].
5765         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
5766         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
5767         Likewise.
5769         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
5770         __libc_cleanup_push argument.
5772         * bits/param.h: New file.
5773         * misc/sys/param.h: New file.
5774         * include/sys/param.h: New file.
5775         * misc/Makefile (headers): Add bits/param.h.
5776         * sysdeps/generic/sys/param.h: File removed.
5777         * sysdeps/unix/sysv/linux/bits/param.h: New file.
5778         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
5779         * sysdeps/mach/hurd/bits/param.h: New file.
5780         * sysdeps/mach/hurd/sys/param.h: File removed.
5782         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
5783         last change.
5785         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
5786         [_IO_MTSAFE_IO].
5787         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
5788         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
5789         New macros.
5791         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
5792         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
5793         rather than -D_IO_MTSAFE_IO conditionally.
5794         * stdio-common/Makefile (CPPFLAGS): Likewise.
5795         * wcsmbs/Makefile (CPPFLAGS): Likewise.
5796         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
5797         Use $(libio-mtsafe).
5798         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
5799         of -D_IO_MTSAFE_IO.
5800         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
5801         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
5802         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
5803         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
5804         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
5805         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
5806         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
5807         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
5808         (CFLAGS-fread_u_chk.c): Likewise.
5809         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
5810         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
5811         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
5812         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
5813         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
5814         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
5815         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
5816         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
5817         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
5819         * libio/Makefile: Test [$(libc-reentrant) = yes]
5820         instead of [$(filter %REENTRANT, $(defines)) nonempty].
5822         * Makeconfig
5823         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
5824         * sysdeps/pthread/configure: File removed.
5825         * sysdeps/pthread/Makeconfig: New file.
5826         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
5827         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
5829 2012-08-16  Gary Benson  <gbenson@redhat.com>
5831         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
5832         unmapping the first object in a namespace.
5834 2012-08-16  Roland McGrath  <roland@hack.frob.com>
5836         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
5837         (__internal_setnetgrent): ... this.  Add internal_function to
5838         definition.  Add libc_hidden_def.
5839         (setnetgrent): Update caller.
5840         (internal_endnetgrent): Renamed to ...
5841         (__internal_endnetgrent): ... this.  Add internal_function to
5842         definition.  Add libc_hidden_def.
5843         (endnetgrent): Update caller.
5844         (internal_getnetgrent_r): Renamed to ...
5845         (__internal_getnetgrent_r): ... this.  Add internal_function to
5846         definition.  Add libc_hidden_def.
5847         (__getnetgrent_r): Update caller.
5848         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
5850 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
5852         * stdlib/longlong.h: Update from GCC.
5854 2012-08-16  Roland McGrath  <roland@hack.frob.com>
5856         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
5857         on _QL, which is set by umul_ppmm but never used.
5858         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
5859         variables, which are set by GMP macros but never used.
5860         * stdio-common/_itowa.c (_itowa): Likewise.
5861         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
5862         * stdlib/mod_1.c (mpn_mod_1): Likewise.
5864 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
5866         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
5867         struct La_sh_regs is not constant.
5868         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
5869         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
5870         and struct La_sparc64_regs are not constant.
5872 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
5874         * sysdeps/unix/sysv/linux/kernel-features.h
5875         (__ASSUME_POSIX_TIMERS): Remove.
5876         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
5877         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
5878         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
5879         Make code unconditional.
5880         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
5881         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
5882         Make code unconditional.
5883         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
5884         * sysdeps/unix/sysv/linux/clock_nanosleep.c
5885         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
5886         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
5887         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
5888         Make code unconditional.
5889         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
5890         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
5891         (__libc_missing_posix_timers): Remove.
5893 2012-08-15  Roland McGrath  <roland@hack.frob.com>
5895         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
5896         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
5898         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
5900         * elf/dl-sym.c: Include <stdlib.h>.
5902         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
5903         constants, which avoids warnings in 32-bit builds.
5905         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
5906         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
5908         * misc/lseek.c: File moved to ...
5909         * io/lseek.c: ... here.
5911         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
5913         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
5914         shifting LEN more than 31 bits at once.
5916 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5918         [BZ #14195]
5919         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
5920         segmentation fault for a case of two empty input strings.
5921         * string/test-strncasecmp.c (check1): Renamed to...
5922         (bz12205): ...this.
5923         (bz14195): Add new testcase for two empty input strings and N > 0.
5924         (test_main): Call new testcase, adapt for renamed function.
5926 2012-08-15  Andreas Jaeger  <aj@suse.de>
5928         [BZ #14090]
5929         * crypt/md5test2.c: New test, based on test supplied by Serge
5930         Belyshev <belyshev@depni.sinp.msu.ru>.
5931         * crypt/Makefile (xtests): Add md5test-giant..
5932         * crypt/Makefile ($(objpfx)md5test-giant): Add.
5934 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5936         [BZ #14090]
5937         * crypt/md5.c (md5_process_block): Don't assume the buffer
5938         length is less than 2**32.
5939         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
5940         length is less than 2**64.
5942 2012-08-15  Roland McGrath  <roland@hack.frob.com>
5944         * string/str-two-way.h: Include <sys/param.h>.
5945         (MAX): Macro removed.
5947         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
5948         Move #define and #undef of memmove to just before and after
5949         including <string.h>.
5951         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
5952         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
5953         and after including <string.h>.  Move declarations of
5954         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
5955         to before #include "string/memmove.c".
5957         * include/dirent.h: Declare __getdirentries.
5959         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
5960         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
5962 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
5964         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
5965         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
5966         * sysdeps/i386/configure: Regenerated.
5967         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
5968         STABS_CURRENT_FILE, and STABS_FUN.
5969         (END): Remove call to STABS_FUN_END.
5970         (STABS_CURRENT_FILE1): Delete.
5971         (STABS_CURRENT_FILE): Likewise.
5972         (STABS_FUN): Likewise.
5973         (STABS_FUN_END): Likewise.
5974         (STABS_FUN2): Likewise.
5975         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
5976         * sysdeps/x86_64/configure: Regenerated.
5978 2012-08-14  Roland McGrath  <roland@hack.frob.com>
5980         * elf/dl-open.c: Include <atomic.h>.
5981         * elf/dl-lookup.c: Likewise.
5983 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
5985         * sysdeps/unix/sysv/linux/kernel-features.h
5986         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
5987         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
5988         unconditionally.
5989         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
5990         unconditionally.
5991         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
5992         condition on __ASSUME_CLONE_THREAD_FLAGS.
5994 2012-08-14  Andreas Jaeger  <aj@suse.de>
5996         * sysdeps/i386/fpu/libm-test-ulps: Update.
5998 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
6000         * include/atomic.h (atomic_exchange_and_add): Split into ...
6001         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
6002         New atomic macros.
6004 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
6006         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6008 2012-08-13  Jeff Law <law@redhat.com>
6010         * manual/stdio.texi (snprintf): Clarify handling of the trailing
6011         null byte in the output string.
6013 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
6015         * sysdeps/unix/sysv/linux/kernel-features.h
6016         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
6017         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
6018         (__ASSUME_ARG_MAX_STACK_BASED): Define.
6019         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
6020         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
6021         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
6022         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
6024 2012-08-09  Jeff Law <law@redhat.com>
6026         [BZ #13939]
6027         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
6028         When avoid_arena is set, don't retry in the that arena.  Pick the
6029         next one, whatever it might be.
6030         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
6031         (arena_lock): Pass in new parameter to arena_get2.
6032         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
6033         arena_get2.
6034         (__libc_malloc): Unify retrying after main arena failure with
6035         __libc_memalign version.
6036         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
6038 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
6040         [BZ #14166]
6041         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
6042         to __redirect_strstr.
6043         (__strstr_sse42): Use typeof __redirect_strstr.
6044         (__strstr_ia32): Likewise.
6045         (__libc_strstr): New prototype.
6046         (strstr): Renamed to ...
6047         (__libc_strstr): This.
6048         (strstr): New strong alias of __libc_strstr.
6049         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
6050         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
6051         __redirect_time.
6052         Include <time.h>.
6053         (__libc_time): New prototype.
6054         (time_ifunc): Replace time with __libc_time.
6055         (time): New strong alias and hidden definition of __libc_time.
6056         (__GI_time): Remove strong alias.
6057         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
6058         Include <stddef.h>.
6059         (memmove): Redefined to __redirect_memmove.
6060         (__memmove_sse2): Use typeof __redirect_memmove.
6061         (__memmove_ssse3): Likewise.
6062         (__memmove_ssse3_back): Likewise.
6063         (__libc_memmove): New prototype.
6064         (memmove): Renamed to ...
6065         (__libc_memmove): This.
6066         (memmove): New strong alias of __libc_memmove.
6068 2012-08-08  Mark Salter  <msalter@redhat.com>
6070         * elf/elf.h
6071         (R_MN10300_TLS_GD): Define.
6072         (R_MN10300_TLS_LD): Likewise.
6073         (R_MN10300_TLS_LDO): Likewise.
6074         (R_MN10300_TLS_GOTIE): Likewise.
6075         (R_MN10300_TLS_IE): Likewise.
6076         (R_MN10300_TLS_LE): Likewise.
6077         (R_MN10300_TLS_DTPMOD): Likewise.
6078         (R_MN10300_TLS_DTPOFF): Likewise.
6079         (R_MN10300_TLS_TPOFF): Likewise.
6080         (R_MN10300_SYM_DIFF): Likewise.
6081         (R_MN10300_ALIGN): Likewise.
6082         (R_MN10300_NUM): Update.
6084 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
6086         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
6087         Remove.
6089 2012-08-08  Roland McGrath  <roland@hack.frob.com>
6091         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
6093         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
6094         sysdeps/unix -> sysdeps/posix move.
6095         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
6097 2012-08-07      Allan McRae     <allan@archlinux.org>
6099         [BZ #14303]
6100         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
6101         (SUNOS_CPP): Likewise.
6102         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
6103         not found.
6104         (open_input): Call CPP using execvp.
6106 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
6108         * sysdeps/unix/sysv/linux/kernel-features.h
6109         (__ASSUME_PROT_GROWSUPDOWN): Remove.
6110         (__ASSUME_NO_CLONE_DETACHED): Likewise.
6111         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
6112         (__ASSUME_WAITID_SYSCALL): Likewise.
6113         * sysdeps/unix/sysv/linux/dl-execstack.c
6114         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
6115         code unconditional.
6116         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
6117         conditional code.
6118         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
6119         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
6120         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
6121         code.
6122         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
6123         unconditional.
6124         [__ASSUME_WAITID_SYSCALL]: Likewise.
6125         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
6127 2012-08-07  Roland McGrath  <roland@hack.frob.com>
6129         * sysdeps/unix/closedir.c: Renamed to ...
6130         * sysdeps/posix/closedir.c: ... here.
6131         * sysdeps/unix/dirfd.c: Renamed to ...
6132         * sysdeps/posix/dirfd.c: ... here.
6133         * sysdeps/unix/dirstream.h: Renamed to ...
6134         * sysdeps/posix/dirstream.h: ... here.
6135         * sysdeps/unix/fdopendir.c: Renamed to ...
6136         * sysdeps/posix/fdopendir.c: ... here.
6137         * sysdeps/unix/opendir.c: Renamed to ...
6138         * sysdeps/posix/opendir.c: ... here.
6139         * sysdeps/unix/readdir.c: Renamed to ...
6140         * sysdeps/posix/readdir.c: ... here.
6141         * sysdeps/unix/readdir_r.c: Renamed to ...
6142         * sysdeps/posix/readdir_r.c: ... here.
6143         * sysdeps/unix/rewinddir.c: Renamed to ...
6144         * sysdeps/posix/rewinddir.c: ... here.
6145         * sysdeps/unix/seekdir.c: Renamed to ...
6146         * sysdeps/posix/seekdir.c: ... here.
6147         * sysdeps/unix/telldir.c: Renamed to ...
6148         * sysdeps/posix/telldir.c: ... here.
6149         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
6150         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
6151         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
6152         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
6154         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
6155         * bits/fcntl.h: ... here.
6157         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
6158         not 0.
6159         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
6160         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
6161         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
6162         (struct flock): Move l_start, l_len to the beginning.
6163         Use __pid_t for l_pid.
6164         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
6165         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
6166         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
6167         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
6168         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
6169         [__USE_LARGEFILE64] (struct flock64): New type.
6170         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
6172         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
6173         * bits/dirent.h: ... here.
6175         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
6176         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
6178 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
6180         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
6181         Change from 2.6.0 to 2.6.16.
6182         * sysdeps/unix/sysv/linux/configure: Regenerated.
6183         * sysdeps/unix/sysv/linux/kernel-features.h
6184         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
6185         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
6186         version.
6187         (__ASSUME_UTIMES): Likewise.
6188         (__ASSUME_CLONE_STOPPED): Remove.
6189         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
6190         architectures, not kernel version.
6191         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
6192         (__ASSUME_NO_CLONE_DETACHED): Likewise.
6193         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
6194         (__ASSUME_WAITID_SYSCALL): Likewise.
6195         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
6196         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
6197         * README: State 2.6.16 as minimum Linux kernel version.  Do not
6198         refer to older versions.
6200 2012-08-06  Roland McGrath  <roland@hack.frob.com>
6202         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
6203         Define alphasort64 as an alias.
6204         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
6205         Define versionsort64 as an alias.
6206         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
6207         Define scandir64 as an alias.
6208         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
6209         Define scandirat64 as an alias.
6210         * dirent/alphasort64.c (alphasort64):
6211         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
6212         * dirent/versionsort64.c: Likewise.
6213         * dirent/scandir64.c: Likewise.
6214         * dirent/scandirat64.c: Likewise.
6215         * sysdeps/wordsize-64/alphasort.c: File removed.
6216         * sysdeps/wordsize-64/alphasort64.c: File removed.
6217         * sysdeps/wordsize-64/scandir.c: File removed.
6218         * sysdeps/wordsize-64/scandir64.c: File removed.
6219         * sysdeps/wordsize-64/scandirat.c: File removed.
6220         * sysdeps/wordsize-64/scandirat64.c: File removed.
6221         * sysdeps/wordsize-64/versionsort.c: File removed.
6222         * sysdeps/wordsize-64/versionsort64.c: File removed.
6223         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
6224         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
6225         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
6226         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
6227         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
6228         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
6229         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
6230         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
6232         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
6233         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
6234         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
6235         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6236         [defined __arch64__ || defined __sparcv9]
6237         (__INO_T_MATCHES_INO64_T): New macro.
6238         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
6239         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
6240         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
6241         * sysdeps/unix/sysv/linux/bits/dirent.h
6242         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
6243         (_DIRENT_MATCHES_DIRENT64): New macro.
6245         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
6246         Define lockf64 as an alias.
6247         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
6248         Define fseeko64 as an alias.
6249         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
6250         Define ftello64 as an alias.
6251         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
6252         Define _IO_fgetpos64 and fgetpos64 as aliases.
6253         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
6254         Define _IO_fsetpos64 and fsetpos64 as aliases.
6255         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
6256         Conditionalize body on this.
6257         * libio/fseeko64.c: Likewise.
6258         * libio/ftello64.c: Likewise.
6259         * libio/iofgetpos64.c: Likewise.
6260         * libio/iofsetpos64.c: Likewise.
6261         * sysdeps/wordsize-64/lockf.c: File removed.
6262         * sysdeps/wordsize-64/lockf64.c: File removed.
6263         * sysdeps/wordsize-64/fseeko.c: File removed.
6264         * sysdeps/wordsize-64/fseeko64.c: File removed.
6265         * sysdeps/wordsize-64/ftello.c: File removed.
6266         * sysdeps/wordsize-64/ftello64.c: File removed.
6267         * sysdeps/wordsize-64/iofgetpos.c: File removed.
6268         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
6269         * sysdeps/wordsize-64/iofsetpos.c: File removed.
6270         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
6271         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
6272         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
6273         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
6274         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
6275         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
6276         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
6277         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
6278         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
6279         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
6280         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
6282         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
6283         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
6284         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
6285         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6286         [defined __arch64__ || defined __sparcv9]
6287         (__OFF_T_MATCHES_OFF64_T): New macro.
6288         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
6289         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
6290         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6291         (__OFF_T_MATCHES_OFF64_T): New macro.
6293 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
6295         * stdlib/secure-getenv.c (__secure_getenv): Replace
6296         GLIBC_2_16 with GLIBC_2_17.
6298 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
6300         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
6301         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6303 2012-08-03  David S. Miller  <davem@davemloft.net>
6305         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6307 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
6309         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
6310         Remove.
6311         (__ASSUME_CORRECT_SI_PID): Likewise.
6312         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
6313         (__ASSUME_TMPFS_NAME): Likewise.
6314         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
6315         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
6316         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
6317         (HAVE_AUX_SECURE): Make definition unconditional.
6318         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
6319         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
6321 2012-08-03  Roland McGrath  <roland@hack.frob.com>
6323         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
6324         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
6325         * sysdeps/mach/hurd/eloop-threshold.h: New file.
6326         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
6327         __eloop_threshold instead of SYMLOOP_MAX.
6329         * sysdeps/generic/eloop-threshold.h: New file.
6330         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
6331         of MAXSYMLINKS.
6332         * elf/chroot_canon.c (chroot_canon): Likewise.
6334 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
6336         [BZ #13717]
6337         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
6338         Change to 2.6.0 everywhere.
6339         * sysdeps/unix/sysv/linux/configure: Regenerated.
6340         * sysdeps/unix/sysv/linux/kernel-features.h
6341         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
6342         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
6343         kernel versions.
6344         (__ASSUME_POSIX_TIMERS): Define unconditionally.
6345         (__ASSUME_FUTEX_REQUEUE): Remove.
6346         (__ASSUME_STATFS64): Define unconditionally.
6347         (__ASSUME_AT_SECURE): Likewise.
6348         (__ASSUME_CORRECT_SI_PID): Likewise.
6349         (__ASSUME_TGKILL): Define without depending on kernel version for
6350         i386.
6351         (__ASSUME_UTIMES): Likewise.
6352         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
6353         kernel version.
6354         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
6355         (__ASSUME_TMPFS_NAME): Likewise.
6356         * README: Update reference to Linux kernel versions.
6358 2012-08-02  Marek Polacek  <polacek@redhat.com>
6360         [BZ# 14150]
6361         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
6362         libc_cv_asm_type_prefix with %.
6363         * configure: Regenerated.
6364         * include/libc-symbols.h: Remove comment about
6365         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
6366         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
6367         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
6368         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
6369         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
6370         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
6371         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
6372         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
6373         * elf/tst-unique2mod1.c: Likewise.
6374         * elf/tst-unique1mod2.c: Likewise.
6375         * elf/tst-unique1mod1.c: Likewise.
6376         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
6377         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
6378         Replace ASM_TYPE_DIRECTIVE with .type.
6379         * sysdeps/s390/s390-64/sysdep.h: Likewise.
6380         * sysdeps/i386/sysdep.h: Likewise.
6381         * sysdeps/x86_64/sysdep.h: Likewise.
6382         * sysdeps/sh/sysdep.h: Likewise.
6383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
6384         Do not define ASM_TYPE_DIRECTIVE.
6385         * sysdeps/powerpc/sysdep.h: Likewise.
6386         * sysdeps/powerpc/powerpc32/sysdep.h:
6387         Replace ASM_TYPE_DIRECTIVE with .type.
6388         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
6389         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
6390         * sysdeps/i386/fpu/e_powf.S: Likewise.
6391         * sysdeps/i386/fpu/e_expl.S: Likewise.
6392         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
6393         * sysdeps/i386/fpu/e_acosh.S: Likewise.
6394         * sysdeps/i386/fpu/e_pow.S: Likewise.
6395         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
6396         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
6397         * sysdeps/i386/fpu/s_expm1.S: Likewise.
6398         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
6399         * sysdeps/i386/fpu/e_log2.S: Likewise.
6400         * sysdeps/i386/fpu/e_log2l.S: Likewise.
6401         * sysdeps/i386/fpu/e_scalb.S: Likewise.
6402         * sysdeps/i386/fpu/e_powl.S: Likewise.
6403         * sysdeps/i386/fpu/e_log10f.S: Likewise.
6404         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
6405         * sysdeps/i386/fpu/e_logl.S: Likewise.
6406         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
6407         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
6408         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
6409         * sysdeps/i386/fpu/e_log2f.S: Likewise.
6410         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
6411         * sysdeps/i386/fpu/e_log.S: Likewise.
6412         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
6413         * sysdeps/i386/fpu/e_logf.S: Likewise.
6414         * sysdeps/i386/fpu/e_log10l.S: Likewise.
6415         * sysdeps/i386/fpu/e_atanh.S: Likewise.
6416         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
6417         * sysdeps/i386/fpu/e_log10.S: Likewise.
6418         * sysdeps/i386/fpu/s_frexp.S: Likewise.
6419         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
6420         * sysdeps/i386/fpu/s_asinh.S: Likewise.
6421         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
6422         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
6423         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
6424         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
6425         * sysdeps/i386/i686/strtok.S: Likewise.
6426         * sysdeps/i386/i386-mcount.S: Likewise.
6427         * sysdeps/i386/strtok.S: Likewise.
6428         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
6429         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
6430         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
6431         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
6432         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
6433         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
6434         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
6435         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
6436         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
6437         * sysdeps/x86_64/_mcount.S: Likewise.
6438         * sysdeps/x86_64/strtok.S: Likewise.
6439         * sysdeps/sh/_mcount.S: Likewise.
6441 2012-08-01  Roland McGrath  <roland@hack.frob.com>
6443         * libio/iofopen.c: Include <fcntl.h>.
6444         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
6445         (_IO_fopen64, fopen64): Define as aliases.
6446         * libio/iofopen64.c: Include <fcntl.h>.
6447         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
6448         Conditionalize body on this.
6449         * sysdeps/wordsize-64/iofopen.c: File removed.
6450         * sysdeps/wordsize-64/iofopen64.c: File removed.
6452 2012-08-01  Marek Polacek  <polacek@redhat.com>
6454         * libc/Makeconfig: Use elf in place of binfmt-subdir.
6455         Use dlfcn directly instead of a variable.
6456         (binfmt-subdir): Do not define.
6457         (dlfcn): Likewise.
6459 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
6461         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
6462         Remove all definitions.
6463         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
6464         <kernel-features.h>.
6465         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
6466         (miss_F_GETOWN_EX): Remove all definitions.
6467         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
6468         macro definition.
6469         [!__ASSUME_FCNTL64]: Remove conditional code.
6470         [__ASSUME_FCNTL64]: Make code unconditional.
6471         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
6472         <kernel-features.h>.
6473         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
6474         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
6475         (lockf64) [__NR_fcntl64]: Make code unconditional.
6476         (lockf64) [__ASSUME_FCNTL64]: Likewise.
6478         * sysdeps/unix/sysv/linux/kernel-features.h
6479         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
6480         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
6481         Make code unconditional.
6482         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
6483         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
6484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
6485         [__NR_vfork]: Make code unconditional.
6486         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
6487         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
6488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
6489         [__NR_vfork]: Make code unconditional.
6490         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
6491         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
6493 2012-08-01  Roland McGrath  <roland@hack.frob.com>
6495         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
6496         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
6498         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
6499         Define mkstemp64 as an alias.
6500         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
6501         Define mkstemps64 as an alias.
6502         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
6503         Define mkostemp64 as an alias.
6504         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
6505         Define mkostemps64 as an alias.
6506         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
6507         Conditionalize body on this.
6508         * misc/mkostemp64.c: Likewise.
6509         * misc/mkostemps64.c: Likewise.
6510         * misc/mkstemps64.c: Likewise.
6511         * sysdeps/wordsize-64/mkstemp64.c: File removed.
6512         * sysdeps/wordsize-64/mkostemp64.c: File removed.
6513         * sysdeps/wordsize-64/mkostemp.c: File removed.
6514         * sysdeps/wordsize-64/mkstemp.c: File removed.
6515         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
6516         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
6517         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
6518         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
6520         [BZ #14138]
6521         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
6522         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
6523         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
6524         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
6526         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
6527         compat_symbol macros from <shlib-compat.h> rather than the underlying
6528         default_symbol_version and symbol_version macros, so that DEFAULT
6529         lines in shlib-versions are respected.
6530         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
6532 2012-08-01  Florian Weimer  <fweimer@redhat.com>
6534         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
6535         Declare with warn_unused_result.
6536         (setgid, setregid, setegid, setresgid): Likewise.
6537         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
6538         Likewise.
6539         * WUR-REPORT: Remove set*id functions.
6541 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
6543         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
6545 2012-07-31  Roland McGrath  <roland@hack.frob.com>
6547         * include/sys/socket.h (__libc_accept, __libc_accept4):
6548         Add attribute_hidden.
6549         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
6551         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
6552         use of PTR_MANGLE.
6553         * inet/getnetgrent_r.c (setup): Likewise.
6555         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
6557 2012-07-31  David S. Miller  <davem@davemloft.net>
6559         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6561 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
6563         [BZ #13629]
6564         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
6565         value between 1.0 and 2.0 and smaller part has absolute value less
6566         than 1.0.
6567         * math/s_clog10.c (__clog10): Likewise.
6568         * math/s_clog10f.c (__clog10f): Likewise.
6569         * math/s_clog10l.c (__clog10l): Likewise.
6570         * math/s_clogf.c (__clogf): Likewise.
6571         * math/s_clogl.c (__clogl): Likewise.
6572         * math/libm-test.inc (clog_test): Add more tests.
6573         (clog10_test): Likewise.
6574         * sysdeps/i386/fpu/libm-test-ulps: Update.
6575         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6577 2012-07-31  Florian Weimer  <fweimer@redhat.com>
6579         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
6580         Exit with zero in case no suitable GID is found, and write a
6581         message to standard error.
6583 2012-07-30  Roland McGrath  <roland@hack.frob.com>
6585         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
6586         rather than to 1.
6587         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
6588         (MAXPATHLEN): Removed.
6589         (NOGROUP, NODEV): New macros.
6590         (setbit, clrbit, isset, isclr): New macros.
6591         (howmany, roundup, powerof2): New macros.
6592         (DEV_BSIZE): New macro.
6594         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
6595         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
6597         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
6598         definition on [!__NO_LONG_DOUBLE_MATH].
6600         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
6601         PTR_MANGLE and PTR_DEMANGLE.
6603         * socket/accept4.c (accept4): Rename to __libc_accept4.
6604         Define accept4 as a weak alias.
6606         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
6607         on [_DIRENT_HAVE_D_TYPE].
6608         * io/ftw.c (ftw_dir): Likewise.
6610         * io/xmknod.c (__xmknod): Don't check PATH for being null.
6612         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
6614         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
6615         Use the BSD numbers rather than the arbitrary ones we had.
6616         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
6617         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
6618         (SIGXCPU, SIGXFSZ): New macros.
6619         (_NSIG): Now 32.
6621         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
6622         initializer on [_LIBC_REENTRANT].
6624         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
6625         definitions inside [_POSIX_MAPPED_FILES].
6627         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
6629         * dirent/opendir.c: Include <fcntl.h>.
6631         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
6632         (__libc_getspecific): Likewise.
6633         (__libc_key_create): Likewise.
6635         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
6636         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
6637         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
6638         (tmpfile64): Define as alias.
6639         * sysdeps/wordsize-64/tmpfile.c: File removed.
6640         * sysdeps/wordsize-64/tmpfile64.c: File removed.
6641         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
6642         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
6644         * stdio-common/vfscanf.c: Include <stdbool.h>.
6645         * nss/makedb.c: Likewise.
6646         * stdio-common/_i18n_number.h: Likewise.
6647         * argp/argp-help.c: Likewise.
6648         * posix/wordexp.c: Likewise.
6649         * sysdeps/posix/spawni.c: Likewise.
6650         * nss/nss_files/files-initgroups.c: Likewise.
6651         * stdio-common/reg-modifier.c: Include <stdlib.h>.
6652         * nss/nss_files/files-initgroups.c: Likewise.
6653         * nss/nss_db/db-netgrp.c: Likewise.
6654         * nss/nss_db/db-initgroups.c: Likewise.
6655         * io/fchmodat.c: Include <sys/stat.h>.
6657         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
6658         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
6660         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
6661         [HAVE_MMAP].
6663         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
6664         Add multiple inclusion protection.
6666 2012-07-27  David S. Miller  <davem@davemloft.net>
6668         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6670 2012-07-27  Gary Benson  <gbenson@redhat.com>
6672         [BZ #14298]
6673         * elf/rtld.c: Include <stap-probe.h>.
6674         (dl_main): Added static probes "init_start" and "init_complete".
6675         * elf/dl-load.c: Include <stap-probe.h>.
6676         (lose): Take new parameter "nsid".
6677         Added static probe "map_failed".
6678         (_dl_map_object_from_fd): Pass namespace id to lose.
6679         Added static probe "map_start".
6680         (open_verify): Pass namespace id to lose.
6681         * elf/dl-open.c: Include <stap-probe.h>.
6682         (dl_open_worker) Added static probes "map_complete", "reloc_start"
6683         and "reloc_complete".
6684         * elf/dl-close.c: Include <stap-probe.h>.
6685         (_dl_close_worker): Added static probes "unmap_start" and
6686         "unmap_complete".
6687         * elf/rtld-debugger-interface.txt: New file documenting the above.
6689 2012-07-26  Roland McGrath  <roland@hack.frob.com>
6691         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
6692         rather than a string variable.
6693         * sunrpc/rpc_main.c (h_output): Likewise.
6694         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
6696 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
6698         * inet/check_native.c: New file.
6700 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
6702         [BZ #13629]
6703         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
6704         if larger part has absolute value 1.0.
6705         * math/s_clog10.c (__clog10): Likewise.
6706         * math/s_clog10f.c (__clog10f): Likewise.
6707         * math/s_clog10l.c (__clog10l): Likewise.
6708         * math/s_clogf.c (__clogf): Likewise.
6709         * math/s_clogl.c (__clogl): Likewise.
6710         * math/libm-test.inc (clog_test): Add more tests.
6711         (clog10_test): Likewise.
6712         * sysdeps/i386/fpu/libm-test-ulps: Update.
6713         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6715         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
6716         (pltexit): Likewise.
6717         (La_regs): Likewise.
6718         (La_retval): Likewise.
6719         (int_retval): Likewise.
6720         Update #error for removed macros to refer only to definitions in
6721         tst-audit.h.
6722         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
6723         macro.
6724         (pltexit): Likewise.
6725         (La_regs): Likewise.
6726         (La_retval): Likewise.
6727         (int_retval): Likewise.
6728         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
6729         macro.
6730         (pltexit): Likewise.
6731         (La_regs): Likewise.
6732         (La_retval): Likewise.
6733         (int_retval): Likewise.
6734         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
6735         macro.
6736         (pltexit): Likewise.
6737         (La_regs): Likewise.
6738         (La_retval): Likewise.
6739         (int_retval): Likewise.
6740         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
6741         macro.
6742         (pltexit): Likewise.
6743         (La_regs): Likewise.
6744         (La_retval): Likewise.
6745         (int_retval): Likewise.
6746         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
6747         macro.
6748         (pltexit): Likewise.
6749         (La_regs): Likewise.
6750         (La_retval): Likewise.
6751         (int_retval): Likewise.
6752         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
6753         macro.
6754         (pltexit): Likewise.
6755         (La_regs): Likewise.
6756         (La_retval): Likewise.
6757         (int_retval): Likewise.
6758         * sysdeps/generic/tst-audit.h: Update comment to refer only to
6759         macro definitions in tst-audit.h.
6760         * sysdeps/i386/tst-audit.h: New file.
6761         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
6762         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
6763         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
6764         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
6765         * sysdeps/sh/tst-audit.h: Likewise.
6766         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
6767         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
6768         * sysdeps/x86_64/tst-audit.h: Likewise.
6770 2012-07-26  Andreas Jaeger  <aj@suse.de>
6772         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
6773         ptrace.
6775         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
6776         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
6777         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
6778         PTRACE_O_MASK.
6779         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
6780         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
6781         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
6783         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
6784         value.
6786         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
6787         _sigsys.
6788         (si_call_addr, si_syscall, si_arch): Define new macro.
6789         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
6790         _sigsys.
6791         (si_call_addr, si_syscall, si_arch): Define new marcro.
6792         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
6793         _sigsys.
6794         (si_call_addr, si_syscall, si_arch): Define new macro.
6795         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
6796         _sigsys.
6797         (si_call_addr, si_syscall, si_arch): Define new macro.
6799 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
6801         [BZ #13717]
6802         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
6803         Change to 2.4.21 where previously 2.4.1.
6804         * sysdeps/unix/sysv/linux/configure: Regenerated.
6805         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
6806         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
6807         Linux kernel version.
6808         (__ASSUME_STD_AUXV): Remove.
6809         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
6810         kernel version.
6811         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
6812         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
6813         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
6814         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
6815         (__ASSUME_NETLINK_SUPPORT): Likewise.
6816         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
6817         (__no_netlink_support): Remove conditional definition.
6818         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
6819         Remove.
6820         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
6821         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
6822         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
6823         (if_nameindex_ioctl): Remove.
6824         (if_nameindex_netlink): Do not handle __no_netlink_support.
6825         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
6826         code.
6827         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
6828         Remove conditional code.
6829         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
6830         code.
6831         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
6832         unconditional.
6833         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
6834         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
6835         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
6836         Remove.
6837         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
6838         [!__ASSUME_STD_AUXV]: Remove conditional code.
6839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
6840         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
6841         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
6842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
6843         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
6844         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
6845         code.
6846         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
6847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
6848         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
6849         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
6850         conditional code.
6851         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
6852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
6853         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
6854         code.
6855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
6856         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
6857         conditional code.
6858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
6859         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
6860         code unconditional.
6861         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
6862         conditional code.
6863         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
6864         unconditional.
6865         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
6866         conditional code.
6867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
6868         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
6869         unconditional.
6870         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
6871         conditional code.
6872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
6873         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
6874         code unconditional.
6875         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
6876         conditional code.
6877         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
6878         unconditional.
6879         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
6880         conditional code.
6881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
6882         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
6883         code unconditional.
6884         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
6885         conditional code.
6886         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
6887         unconditional.
6888         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
6889         conditional code.
6891 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
6893         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
6894         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
6895         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
6896         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
6897         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
6898         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
6899         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
6900         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
6901         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
6902         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
6903         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
6904         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
6905         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
6906         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
6907         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
6908         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
6909         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
6910         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
6911         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
6912         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
6913         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
6914         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
6915         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6917 2012-07-25  Florian Weimer  <fweimer@redhat.com>
6919         * Versions.def: Add GLIBC_2.17.
6920         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
6921         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
6922         Introduce __libc_secure_getenv.
6923         * stdlib/Versions (2.17): Add secure_getenv
6924         (GLIBC_PRIVATE): Add __libc_secure_getenv.
6925         * stdlib/secure-getenv.c: Rename __secure_getenv to
6926         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
6927         symbol __secure_getenv for GLIBC_2.0.
6928         * stdlib/tst-secure-getenv.c: New.
6929         * stdlib/Makefile (tests): Add testcase.
6930         * manual/startup.texi (Environment Access): Document
6931         secure_getenv.
6932         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
6933         __libc_secure_getenv.
6934         * inet/ruserpass.c (ruserpass): Likewise.
6935         * malloc/mtrace.c (mtrace): Likewise.
6936         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
6937         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
6938         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
6939         * sysdeps/posix/tempname.c: Likewise.  Evaluate
6940         HAVE_SECURE_GETENV.
6941         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
6942         __secure_getenv to __libc_secure_getenv.
6943         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
6944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6945         Likewise.
6946         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
6947         Likewise.
6948         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
6949         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
6950         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
6951         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
6952         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
6953         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
6954         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
6956 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
6958         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
6959         (struct La_i86_retval): Likewise.
6960         (struct La_x86_64_regs): Likewise.
6961         (struct La_x86_64_retval): Likewise.
6962         (struct La_x32_regs): Likewise.
6963         (struct La_x32_retval): Likewise.
6964         (struct La_ppc32_regs): Likewise.
6965         (struct La_ppc32_retval): Likewise.
6966         (struct La_ppc64_regs): Likewise.
6967         (struct La_ppc64_retval): Likewise.
6968         (struct La_sh_regs): Likewise.
6969         (struct La_sh_retval): Likewise.
6970         (struct La_s390_32_regs): Likewise.
6971         (struct La_s390_32_retval): Likewise.
6972         (struct La_s390_64_regs): Likewise.
6973         (struct La_s390_64_retval): Likewise.
6974         (struct La_sparc32_regs): Likewise.
6975         (struct La_sparc32_retval): Likewise.
6976         (struct La_sparc64_regs): Likewise.
6977         (struct La_sparc64_retval): Likewise.
6978         (struct audit_ifaces): Remove architecture-specific pltenter and
6979         pltexit members.
6980         * sysdeps/i386/ldsodefs.h: New file.
6981         * sysdeps/powerpc/ldsodefs.h: Likewise.
6982         * sysdeps/s390/ldsodefs.h: Likewise.
6983         * sysdeps/sh/ldsodefs.h: Likewise.
6984         * sysdeps/sparc/ldsodefs.h: Likewise.
6985         * sysdeps/x86_64/ldsodefs.h: Likewise.
6987 2012-07-25  Marek Polacek  <polacek@redhat.com>
6989         [BZ #6808]
6990         * math/libm-test.inc (yn_test): Add another test.
6991         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
6992         to ERANGE when the result is +-Inf.
6993         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
6994         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
6995         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
6996         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
6998 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
7000         * conform/data/time.h-data (NULL): Use macro-constant.  Require
7001         equal to 0.
7002         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
7003         clock_t.
7004         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
7006 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
7008         * configure.in <sysdeps resolving>: Correct printing
7009         Implies_before.
7010         * configure: Regenerate.
7012 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
7014         * math/w_ilogb.c: Include <limits.h>.
7015         * math/w_ilogbl.c: Likewise.
7017 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
7019         * manual/lang.texi (__va_copy): Document primarily as ISO C99
7020         va_copy.  Document allowing for unavailable va_copy only as
7021         pre-C99 compatibility.
7022         * manual/string.texi (Copying and Concatenation): Use va_copy
7023         instead of __va_copy in concat example.
7025 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
7027         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
7028         (__sendto): Use create_address_port.  Initialize APORT and deallocate
7029         it if not null.
7031         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
7032         with O_NOLINK passed to __file_name_lookup.
7034         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
7035         with O_NOLINK passed to __file_name_lookup.
7037         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
7038         negative N or less than NGIDS.
7040         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
7041         type to string_t.  Set ERANGE as errno and return it if NAME is not big
7042         enough.  Use memcpy instead of strncpy.
7044 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
7046         * elf/Makefile (check-data): Remove.
7047         (localplt.data): New vpath directive.
7048         ($(objpfx)check-localplt.out): Use localplt.data from vpath
7049         instead of $(check-data).
7050         * scripts/data/localplt-generic.data: Move to ...
7051         * sysdeps/generic/localplt.data: ... here.
7052         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
7053         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
7054         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
7055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
7056         ... here.
7057         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
7058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
7059         ... here.
7060         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
7061         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
7062         ... here.
7063         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
7064         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
7065         ... here.
7066         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
7067         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
7068         ... here.
7069         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
7070         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
7071         ... here.
7073 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7075         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
7076         PPC32 and PPC64 files.
7077         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
7078         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
7080 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7082         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
7083         __makecontext_ret to ...
7084         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
7085         ... here and call exit if uc_link is NULL.  New file.
7086         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
7087         __makecontext_ret.S.
7088         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
7089         __makecontext_ret to ...
7090         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
7091         ... here and call exit if uc_link is NULL.  New file.
7092         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
7093         __makecontext_ret.S.
7095 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7097         * elf/elf.h (R_390_IRELATIVE): New definition.
7098         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
7099         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
7100         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
7101         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
7102         (elf_machine_lazy_rel): Likewise.
7103         * sysdeps/s390/dl-irel.h: New file.
7104         * sysdeps/s390/s390-64/memcpy.S: New asm code.
7105         * sysdeps/s390/s390-64/memset.S: New asm code.
7106         * sysdeps/s390/s390-64/memcmp.S: New asm code.
7107         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
7108         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
7109         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
7110         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
7111         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
7112         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
7113         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
7114         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
7115         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
7116         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
7117         * sysdeps/s390/s390-32/memcpy.S: New asm code.
7118         * sysdeps/s390/s390-32/memset.S: New asm code.
7119         * sysdeps/s390/s390-32/memcmp.S: New asm code.
7121 2012-07-17  Marek Polacek  <polacek@redhat.com>
7123         [BZ #14349]
7124         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
7125         * sysdeps/s390/s390-64/configure.in: Likewise.
7126         * sysdeps/sparc/configure.in: Likewise.
7127         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
7128         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
7129         * sysdeps/i386/configure.in: Likewise.
7130         * sysdeps/x86_64/configure.in: Likewise.
7131         * sysdeps/sh/configure.in: Likewise.
7132         * sysdeps/s390/s390-32/configure: Regenerated.
7133         * sysdeps/s390/s390-64/configure: Likewise.
7134         * sysdeps/x86_64/configure: Likewise.
7135         * sysdeps/sh/configure: Likewise.
7136         * sysdeps/powerpc/powerpc64/configure: Likewise.
7137         * sysdeps/powerpc/powerpc32/configure: Likewise.
7138         * sysdeps/sparc/configure: Likwise.
7139         * sysdeps/i386/configure: Likewise.
7141         * elf/dl-open.c: Comment fixes.
7143 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
7145         * Makefile [CXX] (check-data): Remove.
7146         [CXX] (c++-types.data): New vpath directive.
7147         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
7148         vpath.  Do not allow for C++ type data being missing.
7149         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
7150         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
7151         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
7152         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
7153         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
7154         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
7155         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
7156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
7157         ... here.
7158         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
7159         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
7160         ... here.
7161         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
7162         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
7163         ... here.
7164         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
7165         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
7166         ... here.
7167         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
7168         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
7169         ... here.
7170         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
7171         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
7172         ... here.
7173         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
7174         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
7175         ... here.
7176         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
7177         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
7179         * elf/tls-macros.h (TLS_LE): Move architecture-specific
7180         definitions to architecture-specific files.
7181         (TLS_IE): Likewise.
7182         (TLS_LD): Likewise.
7183         (TLS_GD): Likewise.
7184         * sysdeps/i386/tls-macros.h: New file.
7185         * sysdeps/powerpc/tls-macros.h: Likewise.
7186         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
7187         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
7188         * sysdeps/sh/tls-macros.h: Likewise.
7189         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
7190         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
7191         * sysdeps/x86_64/tls-macros.h: Likewise.
7193 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
7195         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
7196         zero value for regular exit case.
7198         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
7199         (__start_context): Preserve zero value for regular exit case.
7201 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
7202             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7204         * manual/setjmp.texi (setcontext): Clarify normal process
7205         termination when uc_link is the null pointer.
7206         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
7207         exit call.
7209 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
7211         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
7212         preprocessor.  Test for each exception mask separately.
7214 2012-07-16  Andreas Jaeger  <aj@suse.de>
7216         * po/ru.po: Update from translation team.
7218 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
7220         * conform/data/string.h-data (NULL): Use macro-constant.  Require
7221         equal to 0.
7222         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
7223         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
7224         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
7225         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
7226         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7228 2012-07-13  Andreas Jaeger  <aj@suse.de>
7230         * po/fr.po: Update from translation team.
7232 2012-07-12  Marek Polacek  <polacek@redhat.com>
7234         [BZ #14173]
7235         * math/libm-test.inc (yn_test): Add test for BZ #14173.
7236         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
7237         loop condition.
7239 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
7241         [BZ #13717]
7242         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
7243         Change to 2.4.1 where previously 2.4.0.
7244         * sysdeps/unix/sysv/linux/configure: Regenerated.
7245         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
7246         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
7247         version.
7248         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
7249         (__ASSUME_AT_CLKTCK): Remove.
7250         (__ASSUME_AT_PAGESIZE): Likewise.
7251         (__ASSUME_AT_XID): Likewise.
7252         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
7253         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
7254         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
7255         unconditionally.
7256         (HAVE_AUX_PAGESIZE): Likewise.
7257         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
7258         [__ASSUME_AT_CLKTCK]: Make code unconditional.
7259         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
7261 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
7263         [BZ #14307]
7264         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
7265         the temporary buffer used to invoke __gethostbyname2_r,
7266         __gethostbyaddr_r and gethostbyname4_r to make room for struct
7267         host_data / struct gaih_addrtuple.
7268         * resolv/nss_dns/dns-host.c (global scope): Move definition of
7269         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
7270         header file nss/nsswitch.h.
7271         * nss/nsswitch.h (global scope): Add definition of implementation
7272         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
7273         resolv/nss_dns/dns-host.c).
7275 2012-07-11  Andreas Jaeger  <aj@suse.de>
7277         * po/fr.po: Update from translation team.
7279         * po/sv.po: Update from translation team
7280         * po/fr.po: Another update from translation team.
7282 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7284         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
7285         for subnormals or multiply small sinh result by itself.
7286         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
7287         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7289 2012-07-11  David S. Miller  <davem@davemloft.net>
7291         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7293 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
7295         [BZ #14347]
7296         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
7297         (INTERNAL_MARK): Shift it here.
7299 2012-07-10  Marek Polacek  <polacek@redhat.com>
7301         [BZ #14151]
7302         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
7303         libc_cv_asm_global_directive with .globl.
7304         * configure: Regenerated.
7305         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
7306         with .globl.
7307         * sysdeps/i386/configure: Regenerated.
7308         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
7309         with .globl.
7310         * sysdeps/x86_64/configure: Regenerated.
7311         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
7312         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
7313         * elf/tst-unique2mod2.c: Likewise.
7314         * elf/tst-unique2mod1.c: Likewise.
7315         * elf/tst-unique1mod2.c: Likewise.
7316         * elf/tst-unique1mod1.c: Likewise.
7317         * sysdeps/s390/s390-32/sysdep.h: Likewise.
7318         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
7319         * sysdeps/s390/s390-64/sysdep.h: Likewise.
7320         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
7321         * sysdeps/mach/sysdep.h: Likewise.
7322         * sysdeps/i386/sysdep.h: Likewise.
7323         * sysdeps/i386/i386-mcount.S: Likewise.
7324         * sysdeps/x86_64/_mcount.S: Likewise.
7325         * sysdeps/x86_64/sysdep.h: Likewise.
7326         * sysdeps/sh/_mcount.S: Likewise.
7327         * sysdeps/sh/sysdep.h: Likewise.
7328         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
7329         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
7330         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
7331         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
7332         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
7333         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
7334         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
7335         * locale/localeinfo.h: Likewise.
7336         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
7337         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
7339 2012-07-09  Roland McGrath  <roland@hack.frob.com>
7341         [BZ #14336]
7342         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
7343         system".
7344         * manual/message.texi (The Uniforum approach): Likewise.
7345         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
7346         (glibc iconv Implementation): Likewise.
7348 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
7350         [BZ #14337]
7351         * math/s_clog.c (__clog): Avoid scaling a value down where that
7352         could result in underflow.
7353         * math/s_clog10.c (__clog10): Likewise.
7354         * math/s_clog10f.c (__clog10f): Likewise.
7355         * math/s_clog10l.c (__clog10l): Likewise.
7356         * math/s_clogf.c (__clogf): Likewise.
7357         * math/s_clogl.c (__clogl): Likewise.
7358         * math/libm-test.inc (clog_test): Add more tests.
7359         (clog10_test): Likewise.
7360         * sysdeps/i386/fpu/libm-test-ulps: Update.
7361         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7363 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
7365         [BZ #14283]
7366         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
7367         by 7 not 8 to examine high bit of fractional part.
7369         [BZ #14042]
7370         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
7371         for call to __mcount_internal.
7372         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
7373         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
7374         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
7376 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
7378         [BZ #14154]
7379         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
7380         approximation for values within 0x1p-13f of an odd multiple of
7381         pi/4.
7382         * math/libm-test.inc (tan_test): Do not allow spurious underflow
7383         exception.  Add more tests.
7384         * sysdeps/i386/fpu/libm-test-ulps: Update.
7386         [BZ #6778]
7387         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
7388         inputs and return -1 for them.  Do not check for +Inf in case not
7389         reachable for +Inf.
7390         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
7391         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
7392         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
7393         and return -1 for them.  Do not check for +Inf in case not
7394         reachable for +Inf.
7395         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
7396         define.
7397         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
7398         and return -1 for them.  Do not check for +Inf in case not
7399         reachable for +Inf.
7400         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
7401         spurious underflow.
7402         * sysdeps/i386/fpu/libm-test-ulps: Update.
7403         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7405 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
7407         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
7409 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
7411         [BZ #14157]
7412         [BZ #14331]
7413         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
7414         could result in spurious underflow.  Scale down values above
7415         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
7416         * math/s_csqrtf.c (__csqrtf): Likewise.
7417         * math/s_csqrtl.c (__csqrtl): Likewise.
7418         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
7419         spurious underflow.
7420         * sysdeps/i386/fpu/libm-test-ulps: Update.
7421         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7423 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
7425         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
7426         xopen-msg.sed.
7427         * catgets/xopen-msg.awk: New file.
7428         * catgets/xopen-msg.sed: Removed.
7430         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
7431         po2text.sed.
7432         * intl/po2test.awk: New file.
7433         * intl/po2test.sed: Removed.
7435 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
7437         [BZ #14328]
7438         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
7439         or multiply small sinh result by itself.
7440         * math/s_ctanf.c (__ctanf): Likewise.
7441         * math/s_ctanh.c (__ctanh): Likewise.
7442         * math/s_ctanhf.c (__ctanhf): Likewise.
7443         * math/s_ctanhl.c (__ctanhl): Likewise.
7444         * math/s_ctanl.c (__ctanl): Likewise.
7445         * math/libm-test.inc (ctan_test_tonearest): New function.
7446         (ctan_test_towardzero): Likewise.
7447         (ctan_test_downward): Likewise.
7448         (ctan_test_upward): Likewise.
7449         (ctanh_test_tonearest): Likewise.
7450         (ctanh_test_towardzero): Likewise.
7451         (ctanh_test_downward): Likewise.
7452         (ctanh_test_upward): Likewise.
7453         (main): Call these new functions.
7454         * sysdeps/i386/fpu/libm-test-ulps: Update.
7455         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7457 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
7459         * .gitignore: Delete /ports entry.
7461 2012-07-03  Andreas Jaeger  <aj@suse.de>
7463         * po/bg.po: Update from translation team.
7464         * po/cs.po: Likewise.
7465         * po/de.po: Likewise.
7466         * po/hr.po: Likewise.
7467         * po/nl.pl: Likewise.
7468         * po/pl.po: Likewise.
7469         * po/vi.po: Likewise.
7471 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
7473         * Makeconfig [!+link] (+link-before-libc): New variable.
7474         [!+link] (+link-after-libc): Likewise.
7475         [!+link] (+link-tests): Likewise.
7476         [!+link] (+link): Define in terms of $(+link-before-libc) and
7477         $(+link-after-libc).
7478         [!+link-static] (+link-static-before-libc): New variable.
7479         [!+link-static] (+link-static-after-libc): Likewise.
7480         [!+link-static] (+link-static-tests): Likewise.
7481         [!+link-static] (+link-static): Define in terms of
7482         $(+link-static-before-libc) and $(+link-static-after-libc).
7483         [build-shared] (link-libc-before-gnulib): New variable.
7484         [build-shared] (link-libc-tests): Likewise.
7485         [build-shared] (link-libc): Define in terms of
7486         $(link-libc-before-gnulib).
7487         [!build-shared] (link-libc-tests): New variable.
7488         (link-libc-static-tests): New variable.
7489         [!gnulib] (gnulib-arch): New variable.
7490         [!gnulib] (gnulib-tests): Likewise.
7491         [!gnulib] (static-gnulib-arch): Likewise.
7492         [!gnulib] (static-gnulib-tests): Likewise.
7493         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
7494         Define with "=" instead of ":=".
7495         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
7496         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
7497         * Rules (binaries-all-notests): New variable.
7498         (binaries-all-tests): Likewise.
7499         (binaries-static-notests): Likewise.
7500         (binaries-static-tests): Likewise.
7501         (binaries-all): Define using $(binaries-all-notests) and
7502         $(binaries-all-tests).
7503         (binaries-static): Define using $(binaries-static-notests) and
7504         $(binaries-static-tests).
7505         (binaries-shared-tests): New variable.
7506         (binaries-shared-notests): Likewise.
7507         (binaries-shared): Remove variable.
7508         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
7509         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
7510         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
7511         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
7512         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
7513         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
7514         * elf/Makefile (sln-modules): New variable.
7515         (extra-objs): Add $(sln-modules:=.o).
7516         (ldconfig-modules): Add static-stubs.
7517         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
7518         * elf/static-stubs.c: New file.
7520         [BZ #14283]
7521         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
7522         by 7 not 8 to examine high bit of fractional part.  Use volatile
7523         variables when splitting into final array of floats if
7524         __FLT_EVAL_METHOD__ != 0.
7525         * math/libm-test.inc (cos_test): Add another test.
7526         (sin_test): Likewise.
7527         * sysdeps/i386/fpu/libm-test-ulps: Update.
7529         [BZ #14273]
7530         * math/libm-test.inc (cosh_test): Add more tests.
7532         * version.h (RELEASE): Set to "development".
7533         (VERSION): Set to "2.16.90".
7535 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
7537         * NEWS: Update copyright. Remove last-updated date.
7538         Mention math library bug fixes and timezone data changes.
7539         * README: Mention GNU/Hurd, x32, and HPPA support status.
7541 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
7543         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
7545 2012-06-27  Andreas Jaeger  <aj@suse.de>
7547         * manual/contrib.texi (Contributors): Add Samuel Thibault.
7549 2012-06-25  Andreas Jaeger  <aj@suse.de>
7551         * sysdeps/s390/fpu/libm-test-ulps: Update.
7553 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
7554             Thomas Schwinge  <thomas@codesourcery.com>
7556         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
7557         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
7558         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
7559         fanotify_mark.
7561 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
7563         * sysdeps/mach/start.c: Remove file.
7564         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
7565         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
7566         * sysdeps/sh/init-first.c: Likewise.
7568         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
7569         registers for frame unwinding purposes, add CFI directives.
7570         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
7571         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
7572         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
7573         Likewise.
7575         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
7576         __fortify_fail returning.
7577         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
7579         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
7580         sysdeps/sh/____longjmp_chk.S.
7581         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
7582         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
7583         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
7584         (gen-as-const-headers): Append sigaltstack-offsets.sym.
7586         * sysdeps/sh/abort-instr.h: New file.
7587         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
7588         process in case exit returns.
7590         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
7591         initialize the GOT register before use.
7593         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
7594         calculation of ARGC > 4.
7596         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
7597         meaningful names to some local labels.
7599 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7600             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7602         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
7603         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
7604         (__arch_compare_and_exchange_val_16_acq): Likewise.
7605         (__arch_compare_and_exchange_val_32_acq): Likewise.
7606         (atomic_exchange_and_add): Fix gUSA sequence.
7607         (atomic_add): Likewise.
7608         (atomic_add_negative): Likewise.
7609         (atomic_add_zero): Likewise.
7610         (atomic_bit_test_set): Likewise.
7612 2012-06-22  Andreas Schwab  <schwab@redhat.com>
7614         [BZ #13579]
7615         * include/link.h (struct link_map): Add l_free_initfini.
7616         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
7617         l_initfini.
7618         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
7619         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
7620         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
7621         set.
7623 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
7625         * configure.in: Use AC_LANG_SOURCE.
7626         * configure: Regenerate.
7628 2012-06-22  Roland McGrath  <roland@hack.frob.com>
7630         * configure.in (libc_cv_localstatedir): New substituted variable.
7631         * configure: Regenerated.
7632         * config.make.in (localstatedir): New variable, substituted from
7633         libc_cv_localstatedir.
7634         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
7635         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
7636         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
7637         * sysdeps/gnu/configure: Regenerated.
7639 2012-06-21  Jeff Law  <law@redhat.com>
7641         [BZ #14277]
7642         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
7643         free.  Simplify list management for _LIBC case.
7645 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
7647         [BZ #14273]
7648         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
7649         Clear sign bit of 64-bit integer value before comparing against
7650         overflow value.
7652         * sysdeps/mach/configure: Regenerated.
7654 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
7656         [BZ #14278]
7657         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
7659 2012-06-21  Jeff Law  <law@redhat.com>
7661         [BZ #13882]
7662         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
7663         uint16_t for elements in the "seen" array to avoid char overflows.
7664         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7665         * elf/dl-open.c (dl_open_worker): Likewise.
7667 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
7669         * scripts/list-sources.sh: Scan PORTS for translations.
7670         * po/libc.pot: Regenerated.
7672 2012-06-21  Andreas Jaeger  <aj@suse.de>
7674         [BZ #12194]
7675         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
7676         warning.
7677         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
7678         * bits/byteswap-16.h (__bswap_16): Likewise.
7679         * bits/byteswap.h (__bswap_constant_16): Likewise.
7681 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
7683         [BZ #14117]
7684         * sysdeps/i386/fpu_control.h: Removed.
7685         * sysdeps/x86_64/fpu_control.h: Moved to ...
7686         * sysdeps/x86/fpu_control.h: Here.
7688         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
7689         (_FPU_SETCW): Likewise.
7691 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
7693         [BZ #14117]
7694         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
7695         * sysdeps/x86/fpu/bits/mathinline.h: This.
7696         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
7698         [BZ #14050]
7699         [BZ #14117]
7700         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
7701         functions if __x86_64__ is defined.
7703 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
7705         * string/endian.h: Add !__ASSEMBLER__ condition for including
7706         conversion interfaces.
7708 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
7710         [BZ #14241]
7711         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
7712         of ABS(x) in calculating zero to negative powers other than odd
7713         integers.
7714         * math/libm-test.inc (pow_test): Add more tests.
7716 2012-06-15  Andreas Jaeger  <aj@suse.de>
7718         * manual/contrib.texi (Contributors): Update entry of Liubov
7719         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
7720         Machado Filho.
7722 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
7724         * string/string.h: Add __wur to GNU version of strerror_r.
7726 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
7728         [BZ #14229]
7729         * string/Makefile (tests): Add tst-strtok_r.
7730         * string/tst-strtok_r.c: New file.
7731         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
7732         RAX_LP/RDX_LP on SAVE_PTR.
7734 2012-06-14  Roland McGrath  <roland@hack.frob.com>
7736         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
7738 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
7740         * libm_test.inc (csqrt_test): Allow more spurious underflow
7741         exceptions.
7742         (j0_test): Likewise.
7743         (j1_test): Likewise.
7744         (y0_test): Likewise.
7745         (y1_test): Likewise.
7747 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
7749         * po/Makefile (libc.pot): Use UTF-8 charset.
7751 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
7753         [BZ #14210]
7754         Suppress sign-conversion warning from FD_SET.
7755         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
7756         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
7757         not unsigned long int.
7758         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
7760 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
7762         [BZ #14050]
7763         [BZ #14117]
7764         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
7765         __extern_always_inline instead of __extern_inline.
7766         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
7767         (__signbit): Likewise.
7768         (__signbitl): Support C++ namespace.
7769         (lrintf): New inline function.
7770         (lrint): Likewise.
7771         (llrintf): Likewise.
7772         (llrint): Likewise.
7773         (fmaxf): Likewise.
7774         (fmax): Likewise.
7775         (fminf): Likewise.
7776         (fmin): Likewise.
7777         (rint): Likewise.
7778         (rintf): Likewise.
7779         (ceil): Likewise.
7780         (ceilf): Likewise.
7781         (floor): Likewise.
7782         (floorf): Likewise.
7783         (nearbyint): Likewise.
7784         (nearbyintf): Likewise.
7786 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
7788         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
7789         non-default versions.
7791 2012-06-11  Roland McGrath  <roland@hack.frob.com>
7793         [BZ #14218]
7794         * manual/argp.texi (Argp): Reword argp_parse description slightly.
7796 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
7798         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
7799         (FE_UPWARD, FE_DOWNWARD): Don't define.
7800         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
7801         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
7803         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
7804         reading it.
7805         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
7806         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
7808 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7810         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7811         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
7812         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
7813         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
7815 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
7817         [BZ #14117]
7818         * sysdeps/i386/fpu/bits/fenv.h: Removed.
7819         * sysdeps/i386/fpu/Implies: New file.
7820         * sysdeps/x86_64/fpu/Implies: Likewise.
7821         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
7822         * sysdeps/x86/fpu/bits/fenv.h: This.
7824         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
7825         __SSE_MATH__.
7827 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
7829         [BZ #14134]
7830         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
7831         character 0xffff that matches the last element of the
7832         conversion table.
7834 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7836         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
7837         fmodl commit.
7839 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7841         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
7842         values higher than 25.6283.
7844 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7846         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
7847         subnormal exponent extraction and add some __builtin_expect.
7848         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
7849         Fix for subnormal mantissa calculation.
7851 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
7853         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
7854         cpu2 is -1 and errno is not ENOSYS.
7856 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
7858         [BZ #14117]
7859         * sysdeps/i386/i486/bits/string.h: Renamed to ...
7860         * sysdeps/x86/bits/string.h: This.
7861         * sysdeps/x86_64/bits/string.h: Removed.
7863         * sysdeps/i386/i486/bits/string.h: Define inline functions only
7864         if not compiling for x86-64, but compiling for >= i486.
7866         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
7867         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
7869         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
7870         New macro from Linux kernel 3.4.0.
7871         (FP_XSTATE_MAGIC2): Likewise.
7872         (FP_XSTATE_MAGIC2_SIZE): Likewise.
7873         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
7874         (struct _fpx_sw_bytes): New struct.
7875         (struct _xsave_hdr): Likewise.
7876         (struct _ymmh_state): Likewise.
7877         (struct _xstate): Likewise.
7879         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
7880         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
7881         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
7882         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
7883         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
7884         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
7886         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
7887         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
7888         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
7889         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
7890         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
7891         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
7893 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7895         [BZ #13743]
7896         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
7897         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
7898         (sysdep_headers): Include sys/platform/ppc.h.
7899         * sysdeps/powerpc/test-gettimebase.c: Test for
7900         __ppc_get_timebase() to catch future ISA opcode/insn changes.
7901         * manual/Makefile (appendices): Include platform.texi.
7902         * manual/contrib.texi (Contributors): Update @node pointers.
7903         * manual/maint.texi (Maintenance): Likewise.
7904         (Platform): New node.
7905         * manual/platform.texi: New file.  Document the new features.
7907 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
7908             Jakub Jelinek  <jakub@redhat.com>
7910         [BZ #14188]
7911         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
7912         where __builtin_expect is unavailable.
7914 2012-06-03  David S. Miller  <davem@davemloft.net>
7916         * stdlib/longlong.h: Updated from GCC.
7918 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
7920         [BZ #14042]
7921         * sysdeps/powerpc/powerpc32/mcount.c: New file.
7922         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
7923         __mcount_internal.
7924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
7925         (GLIBC_2.16): Likewise.
7927 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
7929         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
7931 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
7933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
7934         (default-abi): New variable.
7935         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
7936         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
7937         variable.
7938         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
7939         Likewise.
7940         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
7941         Likewise.
7942         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
7943         Likewise.
7945         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
7946         definition.  Document in comment.
7948 2012-06-01  David S. Miller  <davem@davemloft.net>
7950         * stdlib/longlong.h: Updated from GCC.
7952 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
7954         [BZ #14117]
7955         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
7956         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
7957         sys/debugreg.h sys/io.h here.
7958         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
7959         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
7960         sys/io.h.
7961         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
7962         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
7963         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
7964         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
7965         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
7966         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
7968         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
7969         Define only if __x86_64__ is defined.
7971 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
7973         [BZ #14048]
7974         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
7975         Use int64_t for variable i.
7976         * math/libm-test.inc (fmod_test): Add more tests.
7978         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
7979         z computation is not scheduled after fetestexcept.
7980         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
7981         Use math_force_eval instead of asm to ensure calculation scheduled
7982         before exception test.
7983         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
7984         Ensure a1 + u.d computation is not scheduled after fetestexcept.
7986 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
7988         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
7989         computation is not scheduled after fetestexcept.
7991 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
7993         [BZ #14117]
7994         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
7995         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
7997 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7999         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
8000         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8002 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
8004         [BZ #14117]
8005         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
8006         <bits/wordsize.h>.
8007         (__WCHAR_MIN): Support __WORDSIZE == 64.
8008         (__WCHAR_MAX): Likewise.
8010         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
8011         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
8013         [BZ #14183]
8014         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
8015         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
8017         [BZ #14117]
8018         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
8019         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
8021         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
8022         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
8024         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
8025         Defined to 1 if __x86_64__ isn't defined.
8026         (_STAT_VER_LINUX_OLD): New.
8027         (st_atime): Remove duplicate.
8028         (st_mtime): Likewise.
8029         (st_ctime): Likewise.
8031 2012-05-31  David S. Miller  <davem@davemloft.net>
8033         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
8034         entries.
8036 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
8038         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
8039         gen-libm-test.pl.
8041         [BZ #14132]
8042         * elf/dl-reloc.c: Include <_itoa.h>.
8043         (_dl_reloc_bad_type): Remove use of INTUSE.
8044         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
8045         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
8046         * stdio-common/psiginfo.c (psiginfo): Likewise.
8047         * stdio-common/psignal.c (psignal): Likewise.
8048         * string/strsignal.c (strsignal): Likewise.
8049         * include/signal.h (_sys_siglist): Declare hidden proto.
8050         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
8051         INTVARDEF with libc_hidden_data_def.
8052         * stdio-common/itoa-udigits.c: Likewise.
8053         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
8054         (_itoa_lower_digits_internal): Remove declaration.
8055         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
8056         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
8057         (_sys_sigabbrev_internal): Remove aliases.
8058         (_sys_siglist): Define hidden alias.
8060 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
8062         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8063         bits/sysctl.h.
8065 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
8067         [BZ #14117]
8068         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
8069         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
8071         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
8072         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
8073         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
8074         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
8075         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
8076         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
8078         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
8079         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
8080         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
8082         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
8083         with __addr.
8084         (insw): Likewise.
8085         (insl): Likewise.
8086         (outsb): Likewise.
8087         (outsw): Likewise.
8088         (outsl): Likewise.
8090         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
8091         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
8092         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
8094         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
8095         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
8096         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
8097         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
8098         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
8099         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
8101         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
8102         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
8104         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
8105         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
8107         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
8108         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
8109         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
8111         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
8112         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
8113         to ...
8114         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
8116         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
8117         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
8118         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
8120         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
8121         for x86-64.
8122         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
8124 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
8126         * math/math.h (M_El): Use two more decimal places.
8127         (M_LOG2El): Likewise.
8128         (M_LOG10El): Likewise.
8129         (M_LN2l): Likewise.
8130         (M_LN10l): Likewise.
8131         (M_PIl): Likewise.
8132         (M_PI_2l): Likewise.
8133         (M_PI_4l): Likewise.
8134         (M_1_PIl): Likewise.
8135         (M_2_PIl): Likewise.
8136         (M_2_SQRTPIl): Likewise.
8137         (M_SQRT2l): Likewise.
8138         (M_SQRT1_2l): Likewise.
8140 2012-05-31  David S. Miller  <davem@davemloft.net>
8142         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
8143         values between float registers.
8144         * sysdeps/sparc/sparc64/memset.S: Likewise.
8145         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8147 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
8149         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
8150         -D_FORTIFY_SOURCE=1.
8151         (CPPFLAGS-tst-longjmp_chk.c): Define.
8152         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
8153         (CPPFLAGS-tst-longjmp_chk2.c): Define.
8154         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
8155         CFLAGS-tst-wchar-h.c.
8157 2012-05-31  Marek Polacek  <polacek@redhat.com>
8159         [BZ #14132]
8160         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
8161         __endmntent_internal): Remove declaration.
8162         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
8163         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
8164         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
8166 2012-05-30  David S. Miller  <davem@davemloft.net>
8168         * sysdeps/sparc/sparc32/soft-fp/q_util.c
8169         (___Q_simulate_exceptions): Use real FP ops rather than writing
8170         into the %fsr.
8171         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
8172         Likewise.
8174 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
8176         [BZ #14117]
8177         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
8178         * sysdeps/x86/bits/xtitypes.h: This.
8180         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
8181         * sysdeps/x86/bits/wordsize.h: This.
8183         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
8184         * sysdeps/x86/bits/huge_vall.h: This.
8186         * sysdeps/i386/bits/select.h: Removed.
8187         * sysdeps/x86_64/bits/select.h: Renamed to ...
8188         * sysdeps/x86/bits/select.h: This.
8190         * sysdeps/i386/bits/setjmp.h: Removed.
8191         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
8192         * sysdeps/x86/bits/setjmp.h: This.
8194         * sysdeps/i386/bits/mathdef.h: Removed.
8195         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
8196         * sysdeps/x86/bits/mathdef.h: This.
8198 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
8200         [BZ #14132]
8201         * include/sys/socket.h (__connect_internal)
8202         (__libc_sa_len_internal): Remove declaration.
8203         (__connect, __libc_sa_len): Declare hidden_proto.
8204         (SA_LEN): Remove use of INTUSE.
8205         * socket/connect.c: Add libc_hidden_def.
8206         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
8207         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
8208         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
8209         alias.
8210         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
8211         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8212         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
8213         of adding _internal alias.
8215 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
8217         [BZ #14117]
8218         * sysdeps/i386/bits/link.h: Removed.
8219         * sysdeps/i386/bits/linkmap.h: Likewise.
8220         * sysdeps/x86_64/bits/link.h: Renamed to ...
8221         * sysdeps/x86/bits/link.h: This.
8222         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
8223         * sysdeps/x86/bits/linkmap.h: This.
8225         * sysdeps/i386/bits/endian.h: Removed.
8226         * sysdeps/x86_64/bits/endian.h: Renamed to ...
8227         * sysdeps/x86/bits/endian.h: This.
8229         * sysdeps/i386/bits/byteswap.h: Removed.
8230         * sysdeps/i386/bits/byteswap-16.h: Likewise.
8231         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
8232         * sysdeps/x86/bits/byteswap.h: This.
8233         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
8234         * sysdeps/x86/bits/byteswap-16.h: This.
8235         * sysdeps/i386/Implies: Add x86.
8236         * sysdeps/x86_64/Implies: Likewise.
8238 2012-05-30  David S. Miller  <davem@davemloft.net>
8240         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
8241         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
8242         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
8243         (FP_TRAPPING_EXCEPTIONS): Define.
8244         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
8245         (FP_TRAPPING_EXCEPTIONS): Define.
8246         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
8247         subnormals only when inexact has been signalled or underflow
8248         exceptions are enabled.
8249         (_FP_PACK_CANONICAL): Likewise.
8251 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
8253         [BZ #14183]
8254         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
8255         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
8257 2012-05-30  Richard Henderson  <rth@twiddle.net>
8259         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
8260         with #ifndef NOT_IN_libc.
8262         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
8263         marked to avoid plt entry.
8265 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
8267         [BZ #14112]
8268         * Makeconfig (default-abi): New macro.
8269         (abi-includes): Likewise.
8270         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
8271         $(abi-$(default-abi)-lib-soname) for soname if defined.
8272         ($(common-objpfx)gnu/lib-names.stmp): Generate from
8273         abi-variants.
8274         * Makefile (installed-stubs): Likewise.
8275         * include/stubs-biarch.h: Removed.
8276         * scripts/lib-names.awk: Only handle one library at a time.
8277         * scripts/soversions.awk: Remove WORDSIZE support.
8278         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
8279         entries.
8280         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
8281         Removed.
8282         (syscall-list-default-condition): Likewise.
8283         (syscall-list-default-condition): Likewise.
8284         (syscall-list-includes): Likewise.
8285         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
8286         syscall-list-* with abi-*.  Handle undefined abi-variants.
8287         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
8288         * sysdeps/unix/sysv/linux/i386/Implies: New file.
8289         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
8290         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
8291         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
8292         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
8293         Removed.
8294         (syscall-list-32-options): Likewise.
8295         (syscall-list-32-condition): Likewise.
8296         (syscall-list-64-options): Likewise.
8297         (syscall-list-64-condition): Likewise.
8298         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
8299         macro.
8300         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
8301         Renamed to ...
8302         (abi-*): This.
8303         (abi-64-ld-soname): New macro.
8304         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
8305         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
8306         Renamed to ...
8307         (abi-*): This.
8308         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
8309         * sysdeps/x86_64/x32/shlib-versions: Likewise.
8311 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
8313         * sysdeps/unix/sysv/linux/kernel-features.h
8314         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
8315         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
8316         include <kernel-features.h>.
8317         [!__NR_ftruncate64]: Remove conditional code.
8318         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
8319         [__NR_ftruncate64]: Make code unconditional.
8320         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
8321         * sysdeps/unix/sysv/linux/truncate64.c: Do not
8322         include <kernel-features.h>.
8323         [!__NR_ftruncate64]: Remove conditional code.
8324         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
8325         [__NR_ftruncate64]: Make code unconditional.
8326         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
8327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
8328         include <kernel-features.h>.
8329         [!__NR_ftruncate64]: Remove conditional code.
8330         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
8331         [__NR_ftruncate64]: Make code unconditional.
8332         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
8333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
8334         include <kernel-features.h>.
8335         [!__NR_ftruncate64]: Remove conditional code.
8336         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
8337         [__NR_ftruncate64]: Make code unconditional.
8338         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
8340         * configure.in (libc_cv_fpie): Weaken to a compile test using
8341         LIBC_TRY_CC_OPTION.
8342         * configure: Regenerated.
8344 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8346         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
8347         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
8348         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
8349         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8350         Refreshed.
8351         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
8352         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
8353         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
8354         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
8355         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
8356         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8357         Refreshed.
8359 2012-05-27  David S. Miller  <davem@davemloft.net>
8361         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
8362         (___Q_zero): New.
8363         (__Q_simulate_exceptions): Return void.  Change to simulate
8364         exceptions by writing into the %fsr.
8365         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
8366         (__Qp_handle_exceptions): Likewise.
8367         (numbers): Delete.
8368         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
8369         __Qp_handle_exceptions.
8370         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
8371         __Qp_handle_exceptions.
8372         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
8373         as unused and give dummy FP_RND_NEAREST initializer.
8374         (FP_INHIBIT_RESULTS): Define.
8375         (___Q_simulate_exceptions): Update declaration.
8376         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
8377         formatting.
8378         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
8379         as unused and give dummy FP_RND_NEAREST initializer.
8380         (__Qp_handle_exceptions): Update declaration.
8381         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
8382         formatting.
8384 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
8386         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
8387         the temporary FPU control word.
8388         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8389         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
8390         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
8391         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
8392         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
8393         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
8394         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
8395         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
8396         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
8397         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
8398         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
8400 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8402         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
8403         fields.
8405 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
8407         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
8408         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
8409         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
8410         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
8411         Likewise.
8412         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
8413         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
8414         Likewise.
8416 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
8418         * po/h.po: Update from translation team.
8420 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
8422         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
8424         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
8425         handling of denormals.
8426         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8427         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
8428         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8429         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8430         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8431         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
8432         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
8433         Likewise.
8435 2012-05-26  Marek Polacek  <polacek@redhat.com>
8437         [BZ #14152]
8438         * math/libm-test.inc (fma_test): Don't always expect underflow
8439         exception.
8441 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8443         [BZ #12416]
8444         * elf/tst-execstack.c: Include stackinfo.h.
8445         (do_test): Adjust test case to ensure that pthread_getattr_np
8446         behaviour remains the same after marking stack executable.
8448 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
8450         * sysdeps/unix/sysv/linux/kernel-features.h
8451         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
8452         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
8453         kernel-features.h.
8454         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
8455         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
8456         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
8457         kernel-features.h.
8458         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
8459         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
8461 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
8463         * configure.in: Define the default includes to being none.
8464         * configure: Regenerated.
8466 2012-05-25  Roland McGrath  <roland@hack.frob.com>
8468         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
8469         * sysdeps/x86_64/setjmp.S: Likewise.
8470         * sysdeps/i386/bsd-setjmp.S: Likewise.
8471         * sysdeps/i386/bsd-_setjmp.S: Likewise.
8472         * sysdeps/i386/setjmp.S: Likewise.
8473         * sysdeps/i386/__longjmp.S: Likewise.
8474         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
8475         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
8477         * include/stap-probe.h: New file.
8478         * configure.in: Handle --enable-systemtap.
8479         * configure: Regenerated.
8480         * config.h.in (USE_STAP_PROBE): New #undef.
8481         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
8482         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
8483         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
8485 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
8487         [BZ #13717]
8488         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
8489         to 2.4.0 where earlier.
8490         * sysdeps/unix/sysv/linux/configure: Regenerated.
8491         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
8492         <kernel-features.h>.
8493         [__ASSUME_32BITUIDS]: Make code unconditional.
8494         [!__ASSUME_32BITUIDS]: Remove conditional code.
8495         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
8496         <kernel-features.h>.
8497         [__ASSUME_32BITUIDS]: Make code unconditional.
8498         [!__ASSUME_32BITUIDS]: Remove conditional code.
8499         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
8500         [__ASSUME_32BITUIDS]: Make code unconditional.
8501         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
8502         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
8503         <kernel-features.h>.
8504         [__ASSUME_32BITUIDS]: Make code unconditional.
8505         [!__ASSUME_32BITUIDS]: Remove conditional code.
8506         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
8507         <kernel-features.h>.
8508         [__ASSUME_32BITUIDS]: Make code unconditional.
8509         [!__ASSUME_32BITUIDS]: Remove conditional code.
8510         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
8511         <kernel-features.h>.
8512         [__ASSUME_32BITUIDS]: Make code unconditional.
8513         [!__ASSUME_32BITUIDS]: Remove conditional code.
8514         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
8515         <kernel-features.h>.
8516         [__ASSUME_32BITUIDS]: Make code unconditional.
8517         [!__ASSUME_32BITUIDS]: Remove conditional code.
8518         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
8519         <kernel-features.h>.
8520         [__ASSUME_32BITUIDS]: Make code unconditional.
8521         [!__ASSUME_32BITUIDS]: Remove conditional code.
8522         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
8523         <kernel-features.h>.
8524         [__ASSUME_32BITUIDS]: Make code unconditional.
8525         [!__ASSUME_32BITUIDS]: Remove conditional code.
8526         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
8527         <kernel-features.h>.
8528         [__ASSUME_32BITUIDS]: Make code unconditional.
8529         [!__ASSUME_32BITUIDS]: Remove conditional code.
8530         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
8531         <kernel-features.h>.
8532         [__ASSUME_32BITUIDS]: Make code unconditional.
8533         [!__ASSUME_32BITUIDS]: Remove conditional code.
8534         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
8535         <kernel-features.h>.
8536         [__ASSUME_32BITUIDS]: Make code unconditional.
8537         [!__ASSUME_32BITUIDS]: Remove conditional code.
8538         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
8539         <kernel-features.h>.
8540         [__ASSUME_32BITUIDS]: Make code unconditional.
8541         [!__ASSUME_32BITUIDS]: Remove conditional code.
8542         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
8543         <kernel-features.h>.
8544         [__NR_setresgid] (__setresgid): Do not declare.
8545         [__ASSUME_32BITUIDS]: Make code unconditional.
8546         [!__ASSUME_32BITUIDS]: Remove conditional code.
8547         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
8548         <kernel-features.h>.
8549         [__NR_setresuid] (__setresuid): Do not declare.
8550         [__ASSUME_32BITUIDS]: Make code unconditional.
8551         [!__ASSUME_32BITUIDS]: Remove conditional code.
8552         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
8553         <kernel-features.h>.
8554         [__ASSUME_32BITUIDS]: Make code unconditional.
8555         [!__ASSUME_32BITUIDS]: Remove conditional code.
8556         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
8557         <kernel-features.h>.
8558         [__ASSUME_32BITUIDS]: Make code unconditional.
8559         [!__ASSUME_32BITUIDS]: Remove conditional code.
8560         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
8561         <kernel-features.h>.
8562         [__ASSUME_32BITUIDS]: Make code unconditional.
8563         [!__ASSUME_32BITUIDS]: Remove conditional code.
8564         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
8565         <kernel-features.h>.
8566         [__ASSUME_32BITUIDS]: Make code unconditional.
8567         [!__ASSUME_32BITUIDS]: Remove conditional code.
8568         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
8569         <kernel-features.h>.
8570         [__ASSUME_32BITUIDS]: Make code unconditional.
8571         [!__ASSUME_32BITUIDS]: Remove conditional code.
8572         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
8573         <kernel-features.h>.
8574         [__ASSUME_32BITUIDS]: Make code unconditional.
8575         [!__ASSUME_32BITUIDS]: Remove conditional code.
8576         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
8577         <kernel-features.h>.
8578         [__ASSUME_32BITUIDS]: Make code unconditional.
8579         [!__ASSUME_32BITUIDS]: Remove conditional code.
8580         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
8581         <kernel-features.h>.
8582         [__ASSUME_32BITUIDS]: Make code unconditional.
8583         [!__ASSUME_32BITUIDS]: Remove conditional code.
8584         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
8585         <kernel-features.h>.
8586         [__ASSUME_32BITUIDS]: Make code unconditional.
8587         [!__ASSUME_32BITUIDS]: Remove conditional code.
8588         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
8589         <kernel-features.h>.
8590         [__ASSUME_32BITUIDS]: Make code unconditional.
8591         [!__ASSUME_32BITUIDS]: Remove conditional code.
8592         * sysdeps/unix/sysv/linux/kernel-features.h
8593         (__ASSUME_SETRESUID_SYSCALL): Remove.
8594         (__ASSUME_SETRESGID_SYSCALL): Likewise.
8595         (__ASSUME_32BITUIDS): Likewise.
8596         (__ASSUME_LDT_WORKS): Likewise.
8597         (__ASSUME_O_DIRECTORY): Likewise.
8598         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
8599         architecture but not kernel version.
8600         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
8601         (__ASSUME_MMAP2_SYSCALL): Likewise.
8602         (__ASSUME_STAT64_SYSCALL): Likewise.
8603         (__ASSUME_IPC64): Likewise.
8604         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
8605         <kernel-features.h>.
8606         [__ASSUME_32BITUIDS]: Make code unconditional.
8607         [!__ASSUME_32BITUIDS]: Remove conditional code.
8608         * sysdeps/unix/sysv/linux/opendir.c: Do not include
8609         <kernel-features.h>.
8610         [__ASSUME_O_DIRECTORY]: Make code unconditional.
8611         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
8612         132096]: Remove conditional code.
8613         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
8614         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
8615         <kernel-features.h>.
8616         [__ASSUME_32BITUIDS]: Make code unconditional.
8617         [!__ASSUME_32BITUIDS]: Remove conditional code.
8618         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
8619         <kernel-features.h>.
8620         [__ASSUME_32BITUIDS]: Make code unconditional.
8621         [!__ASSUME_32BITUIDS]: Remove conditional code.
8622         * sysdeps/unix/sysv/linux/setegid.c: Do not include
8623         <kernel-features.h>.
8624         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
8625         unconditional.
8626         (__setresgid): Do not declare.
8627         [__ASSUME_32BITUIDS]: Make code unconditional.
8628         [!__ASSUME_32BITUIDS]: Remove conditional code.
8629         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
8630         <kernel-features.h>.
8631         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
8632         unconditional.
8633         (__setresuid): Do not declare.
8634         [__ASSUME_32BITUIDS]: Make code unconditional.
8635         [!__ASSUME_32BITUIDS]: Remove conditional code.
8636         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
8637         <kernel-features.h>.
8638         [__ASSUME_32BITUIDS]: Make code unconditional.
8639         [!__ASSUME_32BITUIDS]: Remove conditional code.
8640         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
8641         <kernel-features.h>.
8642         [__ASSUME_32BITUIDS]: Make code unconditional.
8643         [!__ASSUME_32BITUIDS]: Remove conditional code.
8645 2012-05-25  Richard Henderson  <rth@twiddle.net>
8647         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
8648         dl_hwcap to ifunc resolver.
8649         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
8650         elf_ifunc_invoke.
8651         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
8652         dl_hwcap to ifunc resolver.
8653         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
8655 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
8657         [BZ #14153]
8658         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
8659         for |x| <= 2**-26, not 2**-57.
8660         * math/libm-test.inc (acos_test): Do not allow spurious underflow
8661         exception.
8663 2012-05-24  Jeff Law  <law@redhat.com>
8665         * stdio-common/Makefile (tests): Add bug25.
8666         * stdio-common/bug25.c: New test.
8668 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
8670         [BZ #13576]
8671         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
8672         multiple of MALLOC_ALIGNMENT in size.
8673         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
8675 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
8677         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
8678         Require >= 256.
8679         (FILENAME_MAX): Use macro-int-constant.
8680         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
8681         (_IOFBF): Use macro-int-constant.
8682         (_IOLBF): Likewise.
8683         (_IONBF): Likewise.
8684         (SEEK_CUR): Likewise.
8685         (SEEK_END): Likewise.
8686         (SEEK_SET): Likewise.
8687         (TMP_MAX): Likewise.
8688         (EOF): Use macro-int-constant.  Require < 0.
8689         (NULL): Use macro-constant.  Require == 0.
8690         (stdin): Require type to be FILE *.
8691         (stdout): Likewise.
8692         (stderr): Likewise.
8693         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
8694         macro-int-constant.
8695         (EXIT_SUCCESS): Likewise.
8696         (NULL): Use macro-constant.  Require == 0.
8697         (RAND_MAX): Use macro-int-constant.
8698         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
8699         [C99-based standards] (strtof): Require function.
8700         [C99-based standards] (strtold): Likewise.
8701         [C99-based standards] (strtoll): Likewise.
8702         [C99-based standards] (strtoull): Likewise.
8703         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
8704         [ISO || ISO99 || ISO11] (limits.h): Likewise.
8705         [ISO || ISO99 || ISO11] (math.h): Likewise.
8706         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
8707         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
8708         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8710 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
8712         [BZ #14132]
8713         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
8714         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
8715         * intl/dgettext.c (DCGETTEXT): Likewise.
8716         * intl/gettext.c (DCGETTEXT): Likewise.
8717         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
8718         * posix/regex_internal.h (gettext): Likewise.
8719         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
8720         Remove declaration.
8721         * include/argz.h (__argz_count_internal)
8722         (__argz_stringify_internal): Remove declaration.
8723         (__argz_count, __argz_stringify): Declare hidden proto.
8724         * intl/dcgettext.c: Remove use of INTDEF.
8725         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
8726         * string/argz-stringify.c: Likewise.
8727         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
8728         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
8729         Declare hidden proto.
8730         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
8731         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
8732         Declare hidden proto.
8733         * include/stdio.h (__asprintf_internal): Don't declare.
8734         (__asprintf): Don't define as macro.  Declare hidden proto.
8735         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
8736         (__fsetlocking): Declare hidden proto.
8737         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
8738         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
8739         hidden proto.
8740         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
8741         (_IO_setlinebuf): Remove use of INTUSE.
8742         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
8743         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
8744         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
8745         Remove declaration.
8746         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
8747         (_IO_do_flush): Remove use of INTUSE.
8748         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
8749         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
8750         (_IO_adjust_column, _IO_least_wmarker)
8751         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
8752         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
8753         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
8754         (_IO_default_doallocate, _IO_wdefault_doallocate)
8755         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
8756         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
8757         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
8758         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
8759         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
8760         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
8761         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
8762         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
8763         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
8764         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
8765         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
8766         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
8767         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
8768         proto.
8769         (_IO_flush_all_internal, _IO_adjust_column_internal)
8770         (_IO_default_uflow_internal, _IO_default_finish_internal)
8771         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
8772         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
8773         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
8774         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
8775         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
8776         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
8777         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
8778         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
8779         (_IO_file_close_internal, _IO_file_close_it_internal)
8780         (_IO_file_underflow_internal, _IO_file_overflow_internal)
8781         (_IO_file_init_internal, _IO_file_attach_internal)
8782         (_IO_file_fopen_internal, _IO_file_read_internal)
8783         (_IO_file_sync_internal, _IO_file_seek_internal)
8784         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
8785         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
8786         (_IO_str_underflow_internal, _IO_str_overflow_internal)
8787         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
8788         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
8789         (_IO_list_all_internal, _IO_link_in_internal)
8790         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
8791         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
8792         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
8793         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
8794         (_IO_do_write_internal, _IO_padn_internal)
8795         (_IO_getline_info_internal, _IO_getline_internal)
8796         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
8797         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
8798         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
8799         (_IO_vfscanf_internal, _IO_vfprintf_internal)
8800         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
8801         (_IO_init_internal, _IO_un_link_internal): Don't declare.
8802         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
8803         with libc_hidden_ver, remove use of INTUSE.
8804         * libio/genops.c: Likewise.
8805         * libio/freopen.c: Likewise.
8806         * libio/freopen64.c: Likewise.
8807         * libio/iofclose.c: Likewise.
8808         * libio/iofdopen.c: Likewise.
8809         * libio/iofflush.c: Likewise.
8810         * libio/iofflush_u.c: Likewise.
8811         * libio/iofgets.c: Likewise.
8812         * libio/iofgets_u.c: Likewise.
8813         * libio/iofopen.c: Likewise.
8814         * libio/iofopncook.c: Likewise.
8815         * libio/iofread.c: Likewise.
8816         * libio/iofread_u.c: Likewise.
8817         * libio/ioftell.c: Likewise.
8818         * libio/iofwrite.c: Likewise.
8819         * libio/iogetline.c: Likewise.
8820         * libio/iogets.c: Likewise.
8821         * libio/iogetwline.c: Likewise.
8822         * libio/iopadn.c: Likewise.
8823         * libio/iopopen.c: Likewise.
8824         * libio/ioseekoff.c: Likewise.
8825         * libio/ioseekpos.c: Likewise.
8826         * libio/iosetbuffer.c: Likewise.
8827         * libio/iosetvbuf.c: Likewise.
8828         * libio/ioungetc.c: Likewise.
8829         * libio/ioungetwc.c: Likewise.
8830         * libio/iovdprintf.c: Likewise.
8831         * libio/iovsprintf.c: Likewise.
8832         * libio/iovsscanf.c: Likewise.
8833         * libio/memstream.c: Likewise.
8834         * libio/obprintf.c: Likewise.
8835         * libio/oldfileops.c: Likewise.
8836         * libio/oldiofclose.c: Likewise.
8837         * libio/oldiofdopen.c: Likewise.
8838         * libio/oldiofopen.c: Likewise.
8839         * libio/oldiopopen.c: Likewise.
8840         * libio/oldstdfiles.c: Likewise.
8841         * libio/putc.c: Likewise.
8842         * libio/setbuf.c: Likewise.
8843         * libio/setlinebuf.c: Likewise.
8844         * libio/stdfiles.c: Likewise.
8845         * libio/strops.c: Likewise.
8846         * libio/vasprintf.c: Likewise.
8847         * libio/vscanf.c: Likewise.
8848         * libio/vsnprintf.c: Likewise.
8849         * libio/vswprintf.c: Likewise.
8850         * libio/wfiledoalloc.c: Likewise.
8851         * libio/wfileops.c: Likewise.
8852         * libio/wgenops.c: Likewise.
8853         * libio/wmemstream.c: Likewise.
8854         * libio/wstrops.c: Likewise.
8855         * libio/__fpurge.c: Likewise.
8856         * libio/__fsetlocking.c: Likewise.
8857         * assert/assert.c: Likewise.
8858         * debug/fgets_chk.c: Likewise.
8859         * debug/fgets_u_chk.c: Likewise.
8860         * debug/fread_chk.c: Likewise.
8861         * debug/fread_u_chk.c: Likewise.
8862         * debug/gets_chk.c: Likewise.
8863         * debug/obprintf_chk.c: Likewise.
8864         * debug/vasprintf_chk.c: Likewise.
8865         * debug/vdprintf_chk.c: Likewise.
8866         * debug/vsnprintf_chk.c: Likewise.
8867         * debug/vsprintf_chk.c: Likewise.
8868         * malloc/mtrace.c: Likewise.
8869         * misc/error.c: Likewise.
8870         * misc/syslog.c: Likewise.
8871         * stdio-common/asprintf.c: Likewise.
8872         * stdio-common/fxprintf.c: Likewise.
8873         * stdio-common/getw.c: Likewise.
8874         * stdio-common/isoc99_fscanf.c: Likewise.
8875         * stdio-common/isoc99_scanf.c: Likewise.
8876         * stdio-common/isoc99_vfscanf.c: Likewise.
8877         * stdio-common/isoc99_vscanf.c: Likewise.
8878         * stdio-common/isoc99_vsscanf.c: Likewise.
8879         * stdio-common/printf-prs.c: Likewise.
8880         * stdio-common/printf_fp.c: Likewise.
8881         * stdio-common/printf_fphex.c: Likewise.
8882         * stdio-common/printf_size.c: Likewise.
8883         * stdio-common/putw.c: Likewise.
8884         * stdio-common/scanf.c: Likewise.
8885         * stdio-common/sprintf.c: Likewise.
8886         * stdio-common/tmpfile.c: Likewise.
8887         * stdio-common/vfprintf.c: Likewise.
8888         * stdio-common/vfscanf.c: Likewise.
8889         * stdlib/strfmon_l.c: Likewise.
8890         * sunrpc/openchild.c: Likewise.
8891         * sunrpc/xdr_stdio.c: Likewise.
8892         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
8893         * sysdeps/mach/hurd/tmpfile.c: Likewise.
8895 2012-05-24  Roland McGrath  <roland@hack.frob.com>
8897         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
8899         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
8900         in the third column, to generate for the shared library an IFUNC
8901         that uses _dl_vdso_vsym.
8902         * Makerules (COMPILE.c, compile-stdin.c): New variables.
8903         * Makeconfig (object-suffixes-noshared): New variable.
8905         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
8906         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
8907         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
8908         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
8910         [BZ #14132]
8911         * include/sys/time.h (__gettimeofday): Remove macro.
8912         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
8913         * time/gettimeofday.c (__gettimeofday): Remove #undef.
8914         Remove INTDEF.
8915         (__gettimeofday): Add libc_hidden_def.
8916         (gettimeofday): Add libc_hidden_weak.
8917         * sysdeps/mach/gettimeofday.c: Likewise.
8918         * sysdeps/posix/gettimeofday.c: Likewise.
8919         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
8920         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
8921         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
8922         (__gettimeofday_internal): Remove strong_alias.
8923         (__gettimeofday): Add libc_hidden_def.
8924         (gettimeofday): Add libc_hidden_weak.
8925         * sysdeps/unix/syscalls.list (gettimeofday):
8926         Remove __gettimeofday_internal alias.
8928 2012-05-24  Daniel Jacobowitz  <drow@false.org>
8929             H.J. Lu  <hongjiu.lu@intel.com>
8931         [BZ #12495]
8932         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
8933         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
8934         (largebin_index_32_big): New.
8935         (largebin_index): Use it for 16-byte alignment.
8936         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
8937         correction with front_misalign.
8939 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
8941         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
8942         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
8943         Likewise.
8944         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
8945         Likewise.
8946         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
8947         Likewise.
8948         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
8949         Likewise.
8950         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
8951         Likewise.
8952         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
8953         Likewise.
8954         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
8955         Likewise.
8956         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
8957         Likewise.
8958         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
8959         Likewise.
8960         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
8961         Likewise.
8962         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
8963         Likewise.
8964         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
8965         Likewise.
8967         * scripts/data/c++-types-x32-linux-gnu.data: New file.
8968         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
8970 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
8972         [BZ #10846]
8973         [BZ #14036]
8974         * math/libm-test.inc (exp_test): Add test from bug 14036.
8975         (pow_test): Add test from bug 10846.
8977         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
8978         and other flags.
8979         (special_function): Do not include flags in test name.
8980         (parse_args): Likewise.
8981         * sysdeps/i386/fpu/libm-test-ulps: Update.
8982         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8983         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
8984         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
8985         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8987         * math/gen-libm-test.pl (%beautify): Add entries for underflow
8988         exceptions.
8989         * math/libm-test.inc ("Philosophy"): Update comment about
8990         exception testing.
8991         (UNDERFLOW_EXCEPTION): New macro.
8992         (UNDERFLOW_EXCEPTION_OK): Likewise.
8993         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
8994         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
8995         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
8996         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
8997         (INVALID_EXCEPTION_OK): Update value.
8998         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
8999         (OVERFLOW_EXCEPTION_OK): Likewise.
9000         (IGNORE_ZERO_INF_SIGN): Likewise.
9001         (test_exceptions): Handle underflow exceptions.
9002         (acos_test): Update for underflow exception expectations.
9003         (cexp_test): Likewise.
9004         (clog_test): Likewise.
9005         (clog10_test): Likewise.
9006         (csqrt_test): Likewise.
9007         (ctan_test): Likewise.
9008         (ctanh_test): Likewise.
9009         (exp_test): Likewise.
9010         (exp10_test): Likewise.
9011         (exp2_test): Likewise.
9012         (expm1_test): Likewise.
9013         (fma_test): Likewise.
9014         (j0_test): Likewise.
9015         (jn_test): Likewise.
9016         (nexttoward_test): Likewise.
9017         (pow_test): Likewise.
9018         (scalbn_test): Likewise.
9019         (scalbln_test): Likewise.
9020         (tan_test): Likewise.
9021         (y1_test): Likewise.
9022         * sysdeps/i386/fpu/libm-test-ulps: Update.
9023         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9025 2012-05-23  David S. Miller  <davem@davemloft.net>
9027         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
9028         (__libc_sigaction): Remove unused local variables.
9030 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
9032         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
9034 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
9036         mktime: avoid signed integer overflow
9037         * time/mktime.c (__mktime_internal): Do not mishandle the case
9038         where diff == INT_MIN.
9040         mktime: simplify computation of average
9041         * time/mktime.c (ranged_convert): Use new time_t_avg function
9042         instead of rolling our own (probably-slower) code.
9044         mktime: do not assume signed right shift propagates sign bit
9045         * time/mktime.c (isdst_differ): New static function.
9046         (__mktime_internal): No need to normalize tm_isdst now.
9047         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
9048         tm_isdst values.
9050         mktime: merge another wrapv change from gnulib
9051         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
9052         from some compilers.
9054         mktime: remove incorrect attempt at unusual arithmetics
9055         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
9056         The code didn't really work on such machines anyway.
9057         (TYPE_MINIMUM): Assume two's complement.
9058         (twos_complement_arithmetic): Verify that long_int and time_t
9059         are two's complement (or unsigned, in the latter case).
9061         mktime: check signed shifts on long_int and time_t, too
9062         * time/mktime.c (SHR): Check that shifts work as desired
9063         on the types long_int and time_t too, as SHR is used on
9064         such types.
9066         mktime: do not assume 'long' is wide enough
9067         * time/mktime.c (verify): Move decl up.
9068         (long_int): New type.
9069         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
9070         to remove assumption in the code that 'long' is wide enough to
9071         store year values.  This assumption is not true on x32 and on
9072         some non-glibc platforms.
9074         mktime: merge wrapv change from gnulib
9075         * time/mktime.c (WRAPV): New macro.
9076         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
9077         (guess_time_tm, __mktime_internal): Do not assume that signed
9078         integer overflow wraps around; modern compilers generate code
9079         where this assumption is no longer valid.
9081 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
9083         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
9084         Replace "jmp L(pseudo_end)" with "ret".
9085         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
9086         Likewise.
9088 2012-05-23  Andreas Jaeger  <aj@suse.de>
9090         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
9091         * sysdeps/unix/sysv/linux/poll.c: Remove file.
9093 2012-05-23  Andreas Jaeger  <aj@suse.de>
9094             Maximilian Attems  <max@stro.at>
9096         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
9097         New macros.
9099 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
9101         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
9102         code so that pseudo_end is just ret and the stack pointer is
9103         correct also for static library in error case.
9105 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
9107         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
9108         move to syscalls.list.
9109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
9110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
9111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
9112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
9114         * manual/install.texi (Running make install): Do not mention Linux
9115         kernel version for which pt_chown is not needed.
9116         (Linux): Do not mention problems with nscd with 2.0 kernels.
9117         * INSTALL: Regenerated.
9119 2012-05-23  Andreas Jaeger  <aj@suse.de>
9121         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
9122         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
9123         macro.
9124         * sysdeps/unix/sysv/linux/s390/bits/mman.h
9125         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
9126         * sysdeps/unix/sysv/linux/sh/bits/mman.h
9127         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
9128         * sysdeps/unix/sysv/linux/i386/bits/mman.h
9129         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
9130         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
9131         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
9132         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
9133         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
9134         * sysdeps/unix/sysv/linux/bits/in.h
9135         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
9137 2012-05-22  Roland McGrath  <roland@hack.frob.com>
9139         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
9140         (PREPARE_VERSION): Just use assert instead, it will be elided
9141         under [NDEBUG] anyway.
9143 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
9145         * sysdeps/unix/sysv/linux/Makefile: Include
9146         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
9147         (sysdep_routines): Remove sysctl.
9148         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
9149         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
9150         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
9151         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
9152         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
9154 2012-05-22  Andreas Jaeger  <aj@suse.de>
9156         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
9157         that pseudo_end is just ret and the stack pointer is correct also
9158         for static library in error case.
9160 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
9162         [BZ #14122]
9163         * nss/nsswitch.c (defconfig_entries): New variable.
9164         (__nss_database_lookup): Don't leak defconfig entries.
9165         (nss_parse_service_list): Don't leak on error paths.
9166         (free_database_entries): New function.
9167         (free_defconfig): New function.
9168         (free_mem): Move common code to free_database_entries.
9170 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
9172         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
9173         Add arch_prctl.
9174         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
9176         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
9177         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
9178         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
9179         New macro.
9180         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
9181         (INTERNAL_SYSCALL_TYPES): Likewise.
9182         (LOAD_ARGS_TYPES_[1-6]): Likewise.
9183         (LOAD_REGS_TYPES_[1-6]): Likewise.
9184         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
9185         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
9187 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9189         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
9190         copysignl for GLIBC_2_0.
9191         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
9192         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
9193         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
9194         logbl for GLIBC_2_0.
9195         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
9196         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
9198 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
9200         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
9201         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
9203         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
9204         Use "neg %eax".
9206         * time/mktime.c: Update copyright years.
9208 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
9210         mktime: merge comment-quoting-style change from gnulib
9211         * time/mktime.c: Quote 'like this' in comments.
9212         The GNU coding standards suggest that we no longer quote `like this',
9213         as "`" and "'" are typically rendered asymmetrically nowadays.
9214         The typical gnulib style is to quote 'like this' when quoting
9215         code, and "like this" when quoting English.
9217         * time/mktime.c (compile-command): Add "-I.".
9219         mktime: merge mktime-internal.h change from gnulib
9220         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
9222         mktime: merge time_r change from gnulib
9223         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
9225         mktime: merge DEBUG change from gnulib
9226         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
9227         case system <time.h> has a #define.
9229         mktime: merge <sys/types.h> change from gnulib
9230         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
9231         since <time.t> is now guaranteed to define time_t.
9233         mktime: merge HAVE_CONFIG_H change from gnulib
9234         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
9236 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
9238         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
9239         Use "neg %eax".
9241         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
9242         __rlim_t cast.
9243         (struct rusage): Use anonymous union to pad each field to
9244         __syscall_slong_t.
9246 2012-05-21  David S. Miller  <davem@davemloft.net>
9248         * Makefules (o-iterator): Remove .s cases.
9249         (compile-command.s): Delete.
9250         (COMPILE.s): Delete.
9251         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
9253 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
9255         * configure.in (libc_cv_predef_stack_protector): Only consider
9256         "foobar" and "__stack_chk_fail" lines in libc_undefs.
9257         * configure: Regenerated.
9259 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
9261         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
9262         New macro.  Use R*LP on int and pointer.
9263         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
9264         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
9265         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
9266         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
9268         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
9269         [__WORDSIZE_TIME64_COMPAT32] instead of
9270         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
9271         (struct utmp): Likewise.
9272         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
9273         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
9274         Renamed to ...
9275         (__WORDSIZE_TIME64_COMPAT32): This.
9276         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
9277         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
9278         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
9279         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
9280         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
9281         (__WORDSIZE_TIME64_COMPAT32): New macro.
9283 2012-05-21  Andreas Jaeger  <aj@suse.de>
9285         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
9286         only if [SHARED]. Add prototype for __wcschr_ia32.
9288 2012-05-21  Roland McGrath  <roland@hack.frob.com>
9290         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
9291         of %rbp unmolested in the jmp_buf while mangling the low bits.
9292         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
9293         unmolested high bits of %rbp while demangling the low bits.
9294         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
9296 2012-05-21  Andreas Jaeger  <aj@suse.de>
9298         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
9299         * sunrpc/svc_simple.c: Use it for registerrpc.
9300         * sunrpc/xcrypt.c: Use it for passwd2des.
9302         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
9304 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
9306         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
9307         Don't define if [__SYSCALL_WORDSIZE != 32].
9308         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
9309         New macro.
9311 2012-05-21  Bruno Haible  <bruno@clisp.org>
9312             Andreas Jaeger  <aj@suse.de>
9314         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
9315         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
9316         inptr and inend for must_buffer_ch.
9317         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
9318         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
9319         * stdio-common/Makefile (tests): Remove bug15.
9320         (bug15-ENV): Remove macro.
9321         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
9322         anymore.
9324 2012-05-19  Andreas Jaeger  <aj@suse.de>
9325             Roland McGrath  <roland@hack.frob.com>
9327         * manual/contrib.texi: Completely rewritten. It contains now an
9328         alphabetical list of contributors and their contributions.
9330 2012-05-21  Richard Henderson  <rth@twiddle.net>
9332         * misc/getauxval.c (__getauxval): Use unsigned long int.
9333         * misc/sys/auxv.h: Include <sys/cdefs.h>.
9334         (getauxval): Use unsigned long int.
9336 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
9338         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
9340 2012-05-21  Roland McGrath  <roland@hack.frob.com>
9342         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
9343         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
9344         __alignof__ (long double).
9346 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9348         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9350 2012-05-20  Richard Henderson  <rth@twiddle.net>
9352         * misc/getauxval.c: New file.
9353         * misc/sys/auxv.h: New file.
9354         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
9355         (routines): Add getauxval.
9356         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
9357         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
9358         * elf/dl-sysdep.c (_dl_auxv): Remove.
9359         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
9360         * elf/dl-support.c (_dl_auxv): New variable.
9361         (_dl_aux_init): Initialize it.
9362         * manual/startup.texi (Auxiliary Vector): New node.
9363         * sysdeps/generic/bits/hwcap.h: New file.
9364         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
9365         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
9366         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
9367         * sysdeps/sparc/sysdep.h: ... here.  Include it.
9368         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
9369         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
9370         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9371         Update.
9372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
9373         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
9374         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
9375         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
9376         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
9377         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
9378         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
9379         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
9381 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9383         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9385 2012-05-19  David S. Miller  <davem@davemloft.net>
9387         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9389 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
9391         [BZ #14123]
9392         * math/s_ccosh.c: Include <float.h>
9393         (__ccosh): Avoid internal overflow calculating sinh and cosh
9394         values before multiplying by sin and cos values.
9395         * math/s_ccoshf.c: Likewise.
9396         * math/s_ccoshl.c: Likewise.
9397         * math/s_csin.c: Likewise.
9398         * math/s_csinf.c: Likewise.
9399         * math/s_csinl.c: Likewise.
9400         * math/s_csinh.c: Likewise.
9401         * math/s_csinhf.c: Likewise.
9402         * math/s_csinhl.c: Likewise.
9403         * math/libm-test.inc (ccos_test): Add more tests.
9404         (ccosh_test): Likewise.
9405         (csin_test): Likewise.
9406         (csinh_test): Likewise.
9407         * sysdeps/i386/fpu/libm-test-ulps: Update.
9408         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9410 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
9412         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
9413         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
9415         * sysdeps/x86_64/x32/_itoa.h: Add comment.
9417 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
9419         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
9420         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
9421         * sysdeps/powerpc/soft-fp/Versions: Likewise.
9422         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
9423         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
9424         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
9425         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
9426         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
9427         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
9428         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
9429         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
9430         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
9431         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
9432         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
9433         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
9434         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
9435         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
9436         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
9437         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
9438         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
9439         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
9440         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
9441         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
9442         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
9443         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
9444         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
9445         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
9446         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
9447         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
9448         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
9449         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
9451 2012-05-18  Andreas Jaeger  <aj@suse.de>
9453         * csu/.gitignore: Delete.
9455 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
9457         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
9458         (timex): Use __syscall_slong_t.
9460 2012-05-18  Andreas Jaeger  <aj@suse.de>
9461             Carlos O'Donell  <carlos_odonell@mentor.com>
9463         * manual/install.texi (Configuring and compiling): Update
9464         description about files modified in the source directory.
9465         * INSTALL: Regenerated.
9467 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
9469         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
9470         value.  Use "or" to set return value to -1.
9471         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
9472         negate return value.
9474 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9476         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
9477         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
9478         failure if the compiler has Graphite support disabled.
9479         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
9480         Likewise.
9481         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
9482         CFLAGS-memmove.c): Likewise.
9483         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
9484         Likewise.
9486 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
9488         * sysdeps/x86_64/x32/_itoa.h: New file.
9490         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
9491         getdents system call only if kernel and user dirents have the
9492         same d_ino and d_off.
9494         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9495         LLONG_MAX != LONG_MAX.
9496         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9497         (_fitoa_word): Likewise.
9499         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
9500         years.
9501         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
9502         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
9503         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
9505         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
9506         include <bits/wordsize.h>.  Check __x86_64__ instead of
9507         __WORDSIZE.
9508         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
9509         if __x86_64__ is defined.  Use anonymous union on fpstate.
9511         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
9512         anonymous union.
9514 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
9516         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
9517         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
9518         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
9519         Refer to _rtld_local_ro instead of _rtld_global_ro.
9520         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
9521         Likewise.
9522         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
9523         Likewise.
9524         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
9525         Likewise.
9526         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
9527         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
9528         of _rtld_global, and rtld_progname instead of _dl_argv[0].
9530         * sysdeps/powerpc/powerpc32/dl-machine.c
9531         (__elf_machine_runtime_setup) [PROF]: Don't reference
9532         _dl_prof_resolve.
9534 2012-05-18  Andreas Jaeger  <aj@suse.de>
9536         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
9537         function only available for GCCs before 3.4 since GCC 3.4
9538         introduced a builtin.
9539         (lrint): Likewise.
9540         (llrintf): Likewise.
9541         (llrint): Likewise.
9542         (fmaxf): Likewise.
9543         (fmax): Likewise.
9544         (fminf): Likewise.
9545         (fmin): Likewise.
9546         (rint): Likewise.
9547         (rintf): Likewise.
9548         (nearbyint): Likewise.
9549         (nearbyintf): Likewise.
9550         (ceil): Likewise.
9551         (ceilf): Likewise.
9552         (floor): Likewise.
9553         (floorf): Likewise.
9555 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
9557         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
9558         on both fields and cast pointer to __syscall_ulong_t.
9560         * bits/types.h (__fsword_t): New type.
9561         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
9562         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
9563         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9564         (__FSWORD_T_TYPE): Likewise.
9565         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9566         (__FSWORD_T_TYPE): Likewise.
9567         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9568         (__FSWORD_T_TYPE): Likewise.
9569         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
9570         (__FSWORD_T_TYPE): Likewise.
9571         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
9572         __SWORD_TYPE with __fsword_t.
9573         (statfs64): Likewise.
9575 2012-05-17  David S. Miller  <davem@davemloft.net>
9577         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
9579 2012-05-17  Andreas Jaeger  <aj@suse.de>
9581         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
9582         warning.
9584 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
9586         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
9588 2012-05-17  Andreas Jaeger  <aj@suse.de>
9590         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
9591         when it is used.
9593 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
9595         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
9597 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
9599         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
9600         * sysdeps/x86_64/tst-mallocalign1.c: New file.
9602 2012-05-17  Andreas Jaeger  <aj@suse.de>
9603             Carlos O'Donell  <carlos_odonell@mentor.com>
9605         [BZ #14059]
9606         * sysdeps/x86_64/multiarch/init-arch.h
9607         (bit_YMM_Usable): Rename to...
9608         (bit_AVX_Usable): ... this.
9609         (bit_FMA4_Usable): New macro.
9610         (bit_XMM_state): New macro.
9611         (bit_YMM_state): New macro.
9612         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
9613         [__ASSEMBLER__] (index_AVX_Usable): ... this.
9614         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
9615         (CPUID_OSXSAVE): New macro.
9616         (CPUID_AVX): New macro.
9617         (CPUID_FMA4): New macro.
9618         (index_YMM_Usable): Rename to...
9619         (index_AVX_Usable): ... this.
9620         (HAS_AVX): Use HAS_ARCH_FEATURE.
9621         (HAS_FMA4): Likewise.
9622         (HAS_YMM_USABLE): Remove.
9623         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9624         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
9625         are present.
9626         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
9627         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
9628         * sysdeps/x86_64/multiarch/Makefile: Likewise.
9629         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
9630         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
9632 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
9634         * math/libm-test.c: Support platforms without multiple rounding modes.
9635         * math/bug-nextafter.c: Support platforms without FP exceptions.
9636         * math/bug-nexttoward.c: Likewise.
9637         * math/test-fenv.c: Likewise.
9638         * math/test-misc.c: Likewise.
9639         * stdlib/bug-getcontext.c: Likewise.
9641 2012-05-17  Andreas Jaeger  <aj@suse.de>
9643         * manual/examples/search.c (critter_cmp): Change signature to
9644         avoid warnings.
9645         * manual/string.texi (Collation Functions): Likewise.
9647 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
9649         * bits/types.h: Fold copyright years.
9650         * bits/typesizes.h: Likewise.
9651         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
9652         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
9653         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
9654         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
9655         * time/time.h: Likewise.
9657 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
9659         [BZ #208]
9660         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
9661         in instead of returning them.  Return void.
9662         (__libc_mallinfo): Accumulate over all arenas.
9663         (__malloc_stats): Adjust for change in int_mallinfo interface.
9665 2012-05-16  Roland McGrath  <roland@hack.frob.com>
9667         [BZ #10375]
9668         * configure.in (NM): Add AC_CHECK_TOOL for it.
9669         (libc_extra_cflags): New substituted variable.
9670         Check for -fstack-protector being used implicitly.
9671         * configure: Regenerated.
9672         * config.make.in (config-extra-cflags): New variable,
9673         gets @libc_extra_cflags@.
9674         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
9676         [BZ #10375]
9677         * configure.in: Check for _FORTIFY_SOURCE being predefined.
9678         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
9679         * configure: Regenerated.
9680         * config.make.in (CPPUNDEFS): New substituted variable.
9681         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
9682         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
9683         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
9685 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
9687         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
9688         (mq_attr): Use __syscall_slong_t.
9690 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
9692         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
9693         Check __x86_64__ instead of __WORDSIZE.
9694         (_STAT_VER_LINUX): Likewise.
9695         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
9696         __syscall_ulong_t and __syscall_slong_t.
9697         (stat64): Likewise.
9699 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
9701         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
9703 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
9705         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
9707 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
9709         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
9710         __syscall_ulong_t.
9712         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
9713         include <bits/wordsize.h>.  Check __x86_64__ instead of
9714         __WORDSIZE.
9715         (greg_t): Use "__extension__ long long int" if __x86_64__ is
9716         defined.
9717         (mcontext_t): Replace "unsigned long" with "unsigned long long".
9719         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
9720         include <bits/wordsize.h>.  Check __x86_64__ instead of
9721         __WORDSIZE.
9722         (user_regs_struct): Use "__extension__ unsigned long long"
9723         instead of "unsigned long" if __x86_64__ is defined.
9724         (user): Likewise.  Pad after pointer field if __ILP32__ is
9725         defined.
9727 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
9729         * configure.in (makeinfo): Require version 4.5 or later.  Allow
9730         versions 5 to 9.
9731         * configure: Regenerated.
9732         * manual/install.texi (texinfo): Increase version requirement to
9733         4.5 or later.
9734         * INSTALL: Regenerated.
9736         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
9738 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
9740         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
9742         * sysdeps/x86_64/x32/ffs.c: New file.
9744         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
9745         __syscall_ulong_t.
9746         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
9747         defined.  Use __syscall_ulong_t.
9748         (shminfo): Use __syscall_ulong_t.
9749         (shm_info): Likewise.
9751         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
9752         __syscall_ulong_t.
9754         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
9755         <bits/wordsize.h>.
9756         (msgqnum_t): Use __syscall_ulong_t.
9757         (msglen_t): Likewise.
9758         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
9759         __syscall_ulong_t.
9761         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
9762         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
9764         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
9766         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
9767         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
9769         * sysvipc/sys/msg.h (msgbuf): Replace long int with
9770         __syscall_slong_t.
9772         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
9773         include <bits/wordsize.h>.  Check __x86_64__ instead of
9774         __WORDSIZE.
9776         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
9777         "unsigned long long int" if __x86_64__ is defined.
9778         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
9780         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
9781         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
9782         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
9784         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
9785         <stdint.h>.
9786         (GET_PC): Cast to uintptr_t first.
9787         (GET_FRAME): Likewise.
9788         (GET_STACK): Likewise.
9790         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
9791         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
9792         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
9793         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
9794         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
9795         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
9796         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
9797         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
9798         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
9799         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
9800         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
9801         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
9802         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
9803         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
9804         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
9805         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
9806         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
9807         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
9808         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
9809         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
9810         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
9811         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
9812         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
9813         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
9814         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
9815         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
9816         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
9817         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
9818         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
9820 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
9822         * Makerules (+depfiles): Also collect depfiles from .oS in
9823         $(extra-objs).
9824         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
9825         .oS, $(libnldbl-routines)).
9827         * Makerules (native-compile-mkdep-flags): Define.
9828         * sunrpc/Makefile (extra-objs): Add $(addprefix
9829         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
9830         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
9831         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
9832         calling $(make-target-directory).
9834 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9836         * bits/types.h (__snseconds_t): Removed.
9837         * time/time.h (struct timespec): Replace __snseconds_t with
9838         __syscall_slong_t.
9839         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
9840         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
9841         Likewise.
9842         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9843         (__SNSECONDS_T_TYPE): Likewise.
9844         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9845         (__SNSECONDS_T_TYPE): Likewise.
9846         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9847         (__SNSECONDS_T_TYPE): Likewise.
9849 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9851         * sysdeps/mach/hurd/bits/typesizes.h
9852         (__SYSCALL_SLONG_TYPE): New macro.
9853         (__SYSCALL_ULONG_TYPE): Likewise.
9855 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9857         * bits/types.h (__syscall_slong_t): New type.
9858         (__syscall_ulong_t): Likewise.
9860         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
9861         (__SYSCALL_ULONG_TYPE): Likewise.
9862         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9863         (__SYSCALL_SLONG_TYPE): Likewise.
9864         (__SYSCALL_ULONG_TYPE): Likewise.
9865         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9866         (__SYSCALL_SLONG_TYPE): Likewise.
9867         (__SYSCALL_ULONG_TYPE): Likewise.
9868         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9869         (__SYSCALL_SLONG_TYPE): Likewise.
9870         (__SYSCALL_ULONG_TYPE): Likewise.
9872 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9874         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
9875         Add sigaltstack-offsets.sym.
9876         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
9877         <sigaltstack-offsets.h>.
9878         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
9879         longjmp_msg pointer.
9880         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
9881         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
9882         signal stack.
9883         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
9885 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
9887         * elf/stackguard-macros.h: Remove file.
9888         * sysdeps/generic/stackguard-macros.h: New file.
9889         * sysdeps/i386/stackguard-macros.h: Likewise.
9890         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
9891         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
9892         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
9893         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
9894         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
9895         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
9896         * sysdeps/x86_64/stackguard-macros.h: Likewise.
9897         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
9898         <elf/stackguard-macros.h>.
9900         [BZ #14109]
9901         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
9902         __aligned__ in attribute.
9903         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
9904         (gregset_t): Likewise.
9906 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9908         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
9909         * sysdeps/x86_64/64/Implies-after: Here.  New file.
9910         * sysdeps/x86_64/x32/Implies-after: New file.
9912 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9914         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
9915         and access return value for _dl_profile_fixup.  Use R10_LP to
9916         load frame size.
9918 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9920         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
9922 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9924         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
9925         * sysdeps/x86_64/x32/sysdep.h: New file.
9927 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9929         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
9930         * sysdeps/x86_64/setjmp.S: Likewise.
9932 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9934         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
9935         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
9936         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
9937         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
9938         remove unused global constant.
9940 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
9942         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
9943         include of <not-cancel.h>.
9945 2012-05-15  Roland McGrath  <roland@hack.frob.com>
9947         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
9949 2012-05-15  Jeff Law  <law@redhat.com>
9950             Andreas Jaeger  <aj@suse.de>
9952         [BZ #13594]
9953         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
9954         out from...
9955         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
9956         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
9957         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
9958         code changing __hst_map_handle.map.
9960 2012-05-15  Roland McGrath  <roland@hack.frob.com>
9962         * configure.in (sysnames): Look for Implies-before and Implies-after
9963         files.
9964         * configure: Regenerated.
9966 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9968         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
9969         8-byte data alignment with LP_SIZE alignment.
9971 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9973         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
9974         into R10_LP.
9976 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9978         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
9980 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9982         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
9983         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
9984         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
9985         Likewise.
9986         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
9988 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9990         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
9991         (stackinfo_sub_sp): Likewise.
9993 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9995         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
9996         RAX_LP.
9998 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10000         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
10001         into R*_LP.
10003 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10005         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
10006         sizes into R*_LP.
10008 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10010         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
10012 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10014         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
10015         into R11_LP and load __x86_64_shared_cache_size_half into
10016         R8_LP.
10018 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
10020         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
10021         R8_LP.
10023 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10025         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
10026         logb for POWER7.
10027         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
10028         logbf for POWER7.
10029         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
10030         logbl for POWER7.
10031         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
10032         powerpc32/power7/fpu/s_logb.c via #include.
10033         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
10034         powerpc32/power7/fpu/s_logbf.c via #include.
10035         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
10036         powerpc32/power7/fpu/s_logbl.c via #include.
10038 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
10040         * README.libm: Remove file.
10042 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
10044         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
10045         count for x32.  Use R*_LP and omit operand-size suffix.
10047 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
10049         * shlib-versions: Move x86_64-.*-linux.* entries to ...
10050         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
10051         * sysdeps/x86_64/x32/shlib-versions: New file.
10053 2012-05-14  Roland McGrath  <roland@hack.frob.com>
10055         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
10056         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
10057         Use _dl_fatal_printf instead.
10059 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
10061         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
10062         set if not set by the user.  Do not allow for being unset.
10063         * sysdeps/unix/sysv/linux/configure: Regenerated.
10065 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
10067         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
10068         the `q' suffix from lea and replace .quad with ASM_ADDR.
10070 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
10072         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
10073         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
10074         instead of $17.
10075         (PTR_DEMANGLE): Likewise.
10077 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
10079         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
10080         (LP_OP): Likewise.
10081         (ASM_ADDR): Likewise.
10082         (RAX_LP): Likewise.
10083         (RBP_LP): Likewise.
10084         (RBX_LP): Likewise.
10085         (RCX_LP): Likewise.
10086         (RDI_LP): Likewise.
10087         (RSI_LP): Likewise.
10088         (RSP_LP): Likewise.
10089         (R8_LP): Likewise.
10090         (R9_LP): Likewise.
10091         (R10_LP): Likewise.
10092         (R10_LP): Likewise.
10093         (R11_LP): Likewise.
10094         (R12_LP): Likewise.
10095         (R13_LP): Likewise.
10096         (R14_LP): Likewise.
10097         (R15_LP): Likewise.
10099 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
10101         * sysdeps/x86_64/x32/dl-machine.h: New file.
10103 2012-05-14  Andreas Jaeger  <aj@suse.de>
10105         * manual/Makefile (subdir): Remove export of subdir.
10106         (all): Remove target.
10107         (.PHONY): Remove all from list.
10108         (mkinstalldirs): Remove.
10109         (.PHONY): Remove installdirs from list.
10110         ($(inst_infodir)/libc.info): Use make-target-directory.
10111         (installdirs): Remove.
10112         (subdir_%): Remove.
10113         (glibc-targets): Remove.
10114         (lib): Remove.
10115         (stubs): Remove.
10116         ($(objpfx)stubs ../po/manual.pot): Remove.
10117         ($(objpfx)stamp%): Remove.
10118         (make-target-directory): Remove.
10119         (subdir_install): Remove.
10120         (routines): Remove.
10121         (aux): Remove.
10122         (sources): Remove.
10123         (objects): Remove.
10124         (headers): Remove.
10126         [BZ #13750]
10127         * manual/.gitignore: Remove, it's not needed anymore.
10128         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
10129         all files in it.
10130         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
10131         directory.
10132         (texis): Renamed to $(objpfx)texis.
10133         (texis-path): New, contains path to generated files.
10134         (chapters.%): Use texis-path for complete path, add extra argument
10135         libc-texinfo.sh.
10136         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
10137         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
10138         (summary,texi, stamp-summary): Use complete path of
10139         files. Generate files in build dir.
10140         (dir-add.texi): Build in build dir.
10141         (libm-err.texi,stamp-libm-err): Likewise.
10142         (version.texi, stamp-version): Likewise.
10143         (.%c.texi): Likewise.
10144         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
10145         (mostlyclean): Remove target.
10146         (realclean): Remove target.
10147         (generated): Add new variable with contents from mostlyclean and
10148         realclean, remove entries duplicated in common-mostlyclean, add
10149         stamp-libm-err and stamp-version.
10150         (generated-dirs): Add libc directory.
10151         ($(inst_infodir)/libc.info): Install files from build dir.
10153         * manual/install.texi (Configuring and compiling): Adjust since
10154         the info files are not part of the tar ball anymore.
10156 2012-05-14  Andreas Jaeger  <aj@suse.de>
10158         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
10159         variable.
10161 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
10163         [BZ #13717]
10164         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
10165         to 2.2.0 where earlier.
10166         * sysdeps/unix/sysv/linux/configure: Regenerated.
10167         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
10168         Remove conditional code.
10169         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
10170         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
10171         Remove conditional code.
10172         [!__NR_lchown]: Likewise.
10173         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
10174         [__NR_lchown]: Likewise.
10175         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
10176         comment referencing __ASSUME_LCHOWN_SYSCALL.
10177         * sysdeps/unix/sysv/linux/i386/sigaction.c
10178         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
10179         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
10180         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
10181         Remove conditional code.
10182         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
10183         (__protocol_available): Remove #if 0 code.
10184         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
10185         conditional code.
10186         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
10187         * sysdeps/unix/sysv/linux/kernel-features.h
10188         (__ASSUME_GETCWD_SYSCALL): Don't define.
10189         (__ASSUME_REALTIME_SIGNALS): Likewise.
10190         (__ASSUME_PREAD_SYSCALL): Likewise.
10191         (__ASSUME_PWRITE_SYSCALL): Likewise.
10192         (__ASSUME_POLL_SYSCALL): Likewise.
10193         (__ASSUME_LCHOWN_SYSCALL): Likewise.
10194         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
10195         non-SPARC.
10196         (__ASSUME_SIOCGIFNAME): Don't define.
10197         (__ASSUME_MSG_NOSIGNAL): Likewise.
10198         (__ASSUME_SENDFILE): Define unconditionally.
10199         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
10200         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
10201         conditional code.
10202         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
10203         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
10204         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
10205         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
10206         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
10207         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
10208         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
10209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
10210         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
10211         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
10212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
10213         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
10214         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
10215         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
10216         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
10217         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
10218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
10219         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
10220         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
10221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
10222         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
10223         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
10224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
10225         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
10226         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
10227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
10228         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
10229         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
10230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
10231         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
10232         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
10233         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
10234         Remove conditional code.
10235         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
10236         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
10237         Remove conditional code.
10238         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
10239         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
10240         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
10241         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
10242         Remove conditional code.
10243         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
10244         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
10245         Remove conditional code.
10246         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
10247         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
10248         Remove conditional code.
10249         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
10250         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
10251         Remove conditional code.
10252         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
10253         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
10254         Remove conditional code.
10255         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
10256         * sysdeps/unix/sysv/linux/sh/pwrite64.c
10257         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
10258         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
10259         * sysdeps/unix/sysv/linux/sigaction.c
10260         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
10261         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
10262         * sysdeps/unix/sysv/linux/sigpending.c
10263         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
10264         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
10265         * sysdeps/unix/sysv/linux/sigprocmask.c
10266         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
10267         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
10268         * sysdeps/unix/sysv/linux/sigsuspend.c
10269         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
10270         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
10271         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
10272         (__libc_missing_rt_sigs): Remove.
10273         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
10274         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
10275         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
10276         Remove conditional code.
10277         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
10278         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
10279         return 1.
10280         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
10281         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
10282         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
10283         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
10285 2012-05-14  Andreas Jaeger  <aj@suse.de>
10287         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
10288         it's not used in glibc.
10289         (__coshm1): Likewise.
10290         (__acosh1p): Likewise.
10291         (__sgn): Likewise.
10293         * manual/string.texi (Copying and Concatenation): Add missing
10294         variable in concat example.
10295         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
10297 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
10299         [BZ #14103]
10300         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
10301         __builtin_clzl with __builtin_clzll.
10303 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
10305         [BZ #14104]
10306         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
10307         libc_freeres_ptr.
10309 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10311         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
10312         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
10313         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
10314         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
10316 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
10318         * NEWS: Update ia64 info.
10320 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
10322         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
10323         used as bcopy.
10325 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
10327         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
10328         * sysdeps/unix/syscalls.list (dup3): Likewise.
10329         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
10330         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
10332 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
10334         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
10335         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
10337 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
10339         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
10340         thread pointer.
10341         (TLS_IE): Use mov/add instead of movq/addq to load thread
10342         pointer.
10343         (TLS_GD_PREFIX): New.
10344         (TLS_GD): Use it.
10346 2012-05-11  David S. Miller  <davem@davemloft.net>
10348         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
10349         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
10350         (_FPU_SETCW): Likewise.
10352 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
10354         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
10355         is 32-byte aligned.
10357 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
10359         [BZ #11837]
10360         * iconvdata/gb18030.c: Update tables.
10361         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
10362         characters specially.
10363         (BODY for TO_LOOP): Add encoding of missing ranges.
10365 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
10367         [BZ #13673]
10368         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
10369         * sysdeps/mach/hurd/dup3.c: Likewise.
10370         * sysdeps/mach/hurd/readlinkat.c: Likewise.
10371         * sysdeps/powerpc/memmove.c:: Likewise.
10373 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
10375         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
10376         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
10378 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
10380         * elf/elf.h (R_X86_64_RELATIVE64): New.
10381         (R_X86_64_NUM): Updated.
10382         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
10383         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
10384         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
10385         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
10386         tst-quad1pie tst-quad2pie
10387         (modules-names): Add tst-quadmod1 tst-quadmod2.
10388         ($(objpfx)tst-quad1): New dependency.
10389         ($(objpfx)tst-quad2): Likewise.
10390         ($(objpfx)tst-quad1pie): Likewise.
10391         ($(objpfx)tst-quad2pie): Likewise.
10392         * sysdeps/x86_64/tst-quad1.c: New file.
10393         * sysdeps/x86_64/tst-quad1pie.c: New file.
10394         * sysdeps/x86_64/tst-quad2.c: Likewise.
10395         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
10396         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
10397         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
10398         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
10399         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
10401 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10403         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
10404         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
10405         * streams/stropts.h (t_scalar_t): Define type.
10407         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
10408         (_PATH_PRESERVE): Set to "/var/lib".
10409         (_PATH_RWHODIR): Set to "/var/spool/rwho".
10411         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
10412         instead of int.
10414         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
10415         if __dir_mkfile succeeded.
10417         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
10418         checking for _hurd_dtablesize.  Unlock it right after having
10419         finished _hurd_dtable allocation.
10421 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
10423         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
10424         * sysdeps/mach/hurd/configure: Regenerated.
10425         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
10426         special-casing to...
10427         * sysdeps/gnu/configure.in: ... this new file.
10428         * sysdeps/unix/sysv/linux/configure: Regenerated.
10429         * sysdeps/gnu/configure: New generated file.
10431         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
10432         for Linux: use nsec instead of usec, as well as:
10433         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
10434         members of type struct timespec.
10435         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
10436         New macros.
10437         (struct stat64): Likewise.
10438         (_STATBUF_ST_NSEC): New macro.
10439         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
10441         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
10442         __strtoul_internal rather than strtoul.
10444 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
10446         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
10447         and reject them.
10449 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10451         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
10452         which preserves existing values.
10453         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
10455 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
10457         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
10458         TIMEOUT values.  Return EINVAL for NFDS values either negative or
10459         greater than FD_SETSIZE.
10461 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10463         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
10464         allocated, call __vm_protect to finish enabling the existing space, and
10465         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
10466         allocate the remainder.
10468 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
10470         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
10471         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
10473 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10475         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
10476         sysdeps/mach/hurd/readlink.c.
10478         * posix/tst-sysconf.c (posix_options): Only use
10479         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
10480         _POSIX_SYNCHRONIZED_IO when they are defined
10481         * sysdeps/mach/hurd/bits/posix_opt.h:
10482         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
10483         (_XOPEN_REALTIME): Undefine macro.
10484         (_XOPEN_REALTIME_THREADS): Undefine macro.
10485         (_XOPEN_SHM): Undefine macro.
10486         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
10487         macro to -1.
10488         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
10489         macro to -1.
10490         (_POSIX_ASYNC_IO): Undefine macro.
10491         (_POSIX_PRIORITIZED_IO): Undefine macro.
10492         (_POSIX_SPIN_LOCKS): Define macro to -1.
10494         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
10495         SA_NODEFER, SA_RESETHAND.
10496         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
10497         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
10498         F_DUPFD_CLOEXEC.
10500 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
10502         * elf/Makefile (pldd-modules): Define unconditionally.
10504 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
10506         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
10508 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10510         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
10511         Return ENOENT when name is empty.
10512         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
10514 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
10516         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
10518         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
10520 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10522         Fix mlock in all cases except non-readable pages.
10523         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
10524         instead of VM_PROT_ALL as parameter to __vm_wire function.
10526         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
10527         (__mkdir): When path is `/', just fail with EEXIST.
10528         * sysdeps/mach/hurd/mkdirat.c: Likewise.
10530 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
10532         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
10533         <sys/uio.h> (for writev).
10534         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
10535         and <sys/param.h> (for MIN).
10537 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
10539         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
10540         REQUESTED_TIME.  Properly set the remaining time and return EINTR
10541         if interrupted.
10543 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
10545         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
10546         Depend on against $(link-rpcuserlibs).
10548 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10550         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
10551         (__libc_stack_end): Do not use attribute_relro.
10552         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
10553         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
10554         to libthread-provided value.
10555         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
10556         attribute_relro.
10558 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
10560         [BZ #3748]
10561         * bits/libc-lock.h (__libc_once_get): New macro.
10562         * sysdeps/mach/bits/libc-lock.h: Likewise.
10563         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
10564         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
10565         instead of using implementation details.
10567         * libio/fileops.c: Unconditionally include <kernel-features.h>.
10568         * libio/freopen.c: Likewise.
10569         * libio/freopen64.c: Likewise.
10570         * misc/syslog.c: Likewise.
10571         * nscd/connections.c: Likewise.
10572         * nscd/netgroupcache.c: Likewise.
10573         * sysdeps/posix/getcwd.c: Likewise.
10575 2012-05-10  Roland McGrath  <roland@hack.frob.com>
10577         * math/w_ilogbf.c: Add #include <limits.h>.
10579 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10581         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
10582         path instead of returning without unlocking.
10584         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
10585         immediate-write ioctls.
10586         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
10588 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
10590         * sysdeps/mach/hurd/i386/init-first.c (init): Use
10591         __builtin_frame_address instead of making assumptions about the
10592         location of the return address relative to DATA.  Force early load of
10593         the return address.
10594         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
10595         __builtin_frame_address.
10597         dup3 for GNU Hurd.
10598         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
10599         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
10600         implement dup3 and do some further code clean-ups.
10601         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
10602         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
10604 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10606         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
10608         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
10609         HURD_CRITICAL_END around holding _hurd_dtable_lock.
10610         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
10611         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
10612         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
10613         d->port.lock.
10615         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
10616         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
10617         when handler == SIG_ERR, not when handler != SIG_ERR.
10619 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
10621         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
10622         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
10623         definitions.
10625         accept4 for GNU Hurd.
10626         * include/sys/socket.h (__libc_accept4): New prototype.
10627         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
10628         to implement __libc_accept4.
10629         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
10630         __libc_accept4.
10631         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
10633         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
10634         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
10635         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
10636         signal-defines.sym.
10638 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10640         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
10642 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
10644         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
10645         assertion on O_CLOEXEC flag.
10646         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
10647         * hurd/intern-fd.c: Likewise.
10648         * hurd/port2fd.c: Likewise.
10650 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10652         [BZ #3906]
10653         * bits/in.h (IPV6_PKTINFO): Define new macro.
10654         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
10656 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10658         [BZ #13954]
10659         [BZ #13955]
10660         [BZ #13956]
10661         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
10662         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
10663         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
10664         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
10665         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
10666         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
10667         * math/libm-test.inc (logb_test) : Additional logb tests.
10669 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
10670             Andreas Jaeger  <aj@suse.de>
10672         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
10673         * configure: Regenerated.
10674         * config.h.in (LINK_OBSOLETE_RPC): New macro.
10675         * config.make.in (link-obsolete-rpc): New substituted variable.
10676         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
10677         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
10678         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
10679         (shared-only-routines): Don't set it under [link-obsolete-rpc],
10680         so that libc.a contains the symbols.
10681         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
10682         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
10683         * sunrpc/auth_none.c: Likewise.
10684         * sunrpc/auth_unix.c: Likewise.
10685         * sunrpc/authdes_prot.c: Likewise.
10686         * sunrpc/authuxprot.c: Likewise.
10687         * sunrpc/clnt_gen.c: Likewise.
10688         * sunrpc/clnt_perr.c: Likewise.
10689         * sunrpc/clnt_raw.c: Likewise.
10690         * sunrpc/clnt_simp.c: Likewise.
10691         * sunrpc/clnt_tcp.c: Likewise.
10692         * sunrpc/clnt_udp.c: Likewise.
10693         * sunrpc/clnt_unix.c: Likewise.
10694         * sunrpc/des_crypt.c: Likewise.
10695         * sunrpc/des_soft.c: Likewise.
10696         * sunrpc/get_myaddr.c: Likewise.
10697         * sunrpc/key_call.c: Likewise.
10698         * sunrpc/key_prot.c: Likewise.
10699         * sunrpc/netname.c: Likewise.
10700         * sunrpc/pm_getmaps.c: Likewise.
10701         * sunrpc/pm_getport.c: Likewise.
10702         * sunrpc/pmap_clnt.c: Likewise.
10703         * sunrpc/pmap_prot.c: Likewise.
10704         * sunrpc/pmap_prot2.c: Likewise.
10705         * sunrpc/pmap_rmt.c: Likewise.
10706         * sunrpc/publickey.c: Likewise.
10707         * sunrpc/rpc_cmsg.c: Likewise.
10708         * sunrpc/rpc_common.c: Likewise.
10709         * sunrpc/rpc_dtable.c: Likewise.
10710         * sunrpc/rpc_prot.c: Likewise.
10711         * sunrpc/rpc_thread.c: Likewise.
10712         * sunrpc/rtime.c: Likewise.
10713         * sunrpc/svc.c: Likewise.
10714         * sunrpc/svc_auth.c: Likewise.
10715         * sunrpc/svc_raw.c: Likewise.
10716         * sunrpc/svc_run.c: Likewise.
10717         * sunrpc/svc_tcp.c: Likewise.
10718         * sunrpc/svc_udp.c: Likewise.
10719         * sunrpc/svc_unix.c: Likewise.
10720         * sunrpc/svcauth_des.c: Likewise.
10721         * sunrpc/xcrypt.c: Likewise.
10722         * sunrpc/xdr.c: Likewise.
10723         * sunrpc/xdr_array.c: Likewise.
10724         * sunrpc/xdr_float.c: Likewise.
10725         * sunrpc/xdr_intXX_t.c: Likewise.
10726         * sunrpc/xdr_mem.c: Likewise.
10727         * sunrpc/xdr_rec.c: Likewise.
10728         * sunrpc/xdr_ref.c: Likewise.
10729         * sunrpc/xdr_sizeof.c: Likewise.
10730         * sunrpc/xdr_stdio.c: Likewise.
10732 2012-05-10  Roland McGrath  <roland@hack.frob.com>
10734         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
10735         change.  Update copyright years.
10737 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
10739         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
10741 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
10742             Joseph Myers  <joseph@codesourcery.com>
10743             Paul Pluzhnikov  <ppluzhnikov@google.com>
10745         [BZ #14012]
10746         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
10747         requiring rpcgen.
10748         [cross-compiling] (extra-libs): Likewise.
10749         [cross-compiling] (extra-libs-others): Likewise.
10750         [cross-compiling] (librpcsvc-routines): Likewise.
10751         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
10752         [cross-compiling] (omit-deps): Likewise.
10753         (sunrpc-CPPFLAGS): New variable.
10754         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
10755         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
10756         (cross-rpcgen-objs): New variable.
10757         (extra-objs): Append $(cross-rpcgen-objs).
10758         ($(cross-rpcgen-objs)): New rule.
10759         ($(objpfx)cross-rpcgen): Likewise.
10760         (rpcgen-cmd): Define to use $(built-program-file).  Expand
10761         comment.
10762         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
10763         ($(objpfx)x%.stmp): Likewise.
10764         * sunrpc/proto.h [IS_IN_build] (_): Define.
10765         [IS_IN_build] (_libc_intl_domainname): Likewise.
10767 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
10769         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
10770         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
10771         and R_X86_64_TPOFF64.
10773 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
10775         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
10776         sysdeps/unix/sysv/syscalls.list.
10777         (stime): Likewise.
10778         (utime): Likewise.
10779         * sysdeps/unix/sysv/syscalls.list: Remove file.
10781 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
10783         [BZ #3440]
10784         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
10785         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
10786         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
10787         (__LC_IDENTIFICATION): Make these macros useful in #if
10788         expressions, as required by C99.
10790 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
10792         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
10793         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
10794         after this.
10796 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
10798         * stdlib/longlong.h: Updated from GCC.
10800 2012-05-09  Andreas Jaeger  <aj@suse.de>
10802         * nscd/nscd.c (run_modes): Make named enum, reorder so that
10803         default is first entry.
10804         (run_mode): Set type.
10805         (main): Remove informal message about syslog.
10806         (options): Fix typo.
10808         [BZ #14053]
10809         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
10810         to asm.
10811         (lrint): Likewise.
10812         (llrintf): Likewise.
10813         (llrint): Likewise.
10814         (rint): Likewise.
10815         (rintf): Likewise.
10816         (nearbyint): Likewise.
10817         (nearbyintf): Likewise.
10819 2012-05-09  Andreas Jaeger  <aj@suse.de>
10820             Pedro Alves  <palves@redhat.com>
10822         * nscd/nscd.c (run_mode): Use enum.
10823         (main): Cleanup coding style issue.
10825 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
10826             Andreas Jaeger  <aj@suse.de>
10828         * nscd/nscd.c (go_background): Replaced with...
10829         (run_mode): ... this.
10830         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
10831         (options): Add -F --foreground.
10832         (main): Implement it.
10833         (parse_opt): Parse it.
10835 2012-05-09  Andreas Jaeger  <aj@suse.de>
10837         [BZ #14083]
10838         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
10839         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
10840         -Wconversion warning.
10841         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
10842         Likewise.
10844 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
10846         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
10847         == 0.
10848         (LC_ALL): Use macro-int-constant.
10849         (LC_COLLATE): Likewise.
10850         (LC_CTYPE): Likewise.
10851         (LC_MESSAGES): Likewise.
10852         (LC_MONETARY): Likewise.
10853         (LC_NUMERIC): Likewise.
10854         (LC_TIME): Likewise.
10855         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
10856         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
10857         [ISO || ISO99 || ISO11] (*_t): Do not allow.
10858         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
10859         Specify type.
10860         [C99-based standards] (float_t): Expect type.
10861         [C99-based standards] (double_t): Expect type.
10862         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
10863         type.
10864         [C99-based standards] (HUGE_VALL): Likewise.
10865         [C99-based standards] (INFINITY): Likewise.
10866         [C99-based standards] (NAN): Likewise.
10867         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
10868         [C99-based standards] (FP_NAN): Likewise.
10869         [C99-based standards] (FP_NORMAL): Likewise.
10870         [C99-based standards] (FP_SUBNORMAL): Likewise.
10871         [C99-based standards] (FP_ZERO): Likewise.
10872         [C99-based standards] (FP_FAST_FMA): Use
10873         optional-macro-int-constant.  Specify type.  Require == 1.
10874         [C99-based standards] (FP_FAST_FMAF): Likewise.
10875         [C99-based standards] (FP_FAST_FMAL): Likewise.
10876         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
10877         [C99-based standards] (FP_ILOGBNAN): Likewise.
10878         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
10879         Specify type.
10880         [C99-based standards] (MATH_ERREXCEPT): Likewise.
10881         [C99-based standards] (math_errhandling): Specify type.
10882         [ISO99 || ISO11] (signgam): Do not allow.
10883         [non-C99-based standards] (copysignf): Do not allow.
10884         [non-C99-based standards] (exp2f): Likewise.
10885         [non-C99-based standards] (log2f): Likewise.
10886         [non-C99-based standards] (modff): Allow.
10887         [non-C99-based standards] (erff): Do not allow.
10888         [non-C99-based standards] (erfcf): Likewise.
10889         [non-C99-based standards] (gammaf): Likewise.
10890         [non-C99-based standards] (hypotf): Likewise.
10891         [non-C99-based standards] (j0f): Likewise.
10892         [non-C99-based standards] (j1f): Likewise.
10893         [non-C99-based standards] (jnf): Likewise.
10894         [non-C99-based standards] (lgammaf): Likewise.
10895         [non-C99-based standards] (tgammaf): Likewise.
10896         [non-C99-based standards] (y0f): Likewise.
10897         [non-C99-based standards] (y1f): Likewise.
10898         [non-C99-based standards] (ynf): Likewise.
10899         [non-C99-based standards] (isnanf): Likewise.
10900         [non-C99-based standards] (acoshf): Likewise.
10901         [non-C99-based standards] (asinhf): Likewise.
10902         [non-C99-based standards] (atanhf): Likewise.
10903         [non-C99-based standards] (cbrtf): Likewise.
10904         [non-C99-based standards] (expm1f): Likewise.
10905         [non-C99-based standards] (ilogbf): Likewise.
10906         [non-C99-based standards] (log1pf): Likewise.
10907         [non-C99-based standards] (logbf): Likewise.
10908         [non-C99-based standards] (nextafterf): Likewise.
10909         [non-C99-based standards] (remainderf): Likewise.
10910         [non-C99-based standards] (rintf): Likewise.
10911         [non-C99-based standards] (scalbf): Likewise.
10912         [non-C99-based standards] (copysignl): Likewise.
10913         [non-C99-based standards] (exp2l): Likewise.
10914         [non-C99-based standards] (log2l): Likewise.
10915         [non-C99-based standards] (modfl): Allow.
10916         [non-C99-based standards] (erfl): Do not allow.
10917         [non-C99-based standards] (erfcl): Likewise.
10918         [non-C99-based standards] (gammal): Likewise.
10919         [non-C99-based standards] (hypotl): Likewise.
10920         [non-C99-based standards] (j0l): Likewise.
10921         [non-C99-based standards] (j1l): Likewise.
10922         [non-C99-based standards] (jnl): Likewise.
10923         [non-C99-based standards] (lgammal): Likewise.
10924         [non-C99-based standards] (tgammal): Likewise.
10925         [non-C99-based standards] (y0l): Likewise.
10926         [non-C99-based standards] (y1l): Likewise.
10927         [non-C99-based standards] (ynl): Likewise.
10928         [non-C99-based standards] (isnanl): Likewise.
10929         [non-C99-based standards] (acoshl): Likewise.
10930         [non-C99-based standards] (asinhl): Likewise.
10931         [non-C99-based standards] (atanhl): Likewise.
10932         [non-C99-based standards] (cbrtl): Likewise.
10933         [non-C99-based standards] (expm1l): Likewise.
10934         [non-C99-based standards] (ilogbl): Likewise.
10935         [non-C99-based standards] (log1pl): Likewise.
10936         [non-C99-based standards] (logbl): Likewise.
10937         [non-C99-based standards] (nextafterl): Likewise.
10938         [non-C99-based standards] (remainderl): Likewise.
10939         [non-C99-based standards] (rintl): Likewise.
10940         [non-C99-based standards] (scalbl): Likewise.
10941         [ISO || ISO99 || ISO11] (*_t): Do not allow.
10942         [non-C99-based standards] (FP_*): Do not allow.
10943         [C99-based standards] (FP_*): Change to
10944         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
10945         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
10946         allow.
10947         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
10948         (SIG_ERR): Likewise.
10949         [X/Open-based standards] (SIG_HOLD): Likewise.
10950         (SIG_IGN): Likewise.
10951         (SIGABRT): Use macro-int-constant.  Specify type.  Require
10952         positive value.
10953         (SIGFPE): Likewise.
10954         (SIGILL): Likewise.
10955         (SIGINT): Likewise.
10956         (SIGSEGV): Likewise.
10957         (SIGTER): Likewise.
10958         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
10959         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
10960         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
10961         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
10962         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
10963         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
10964         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
10965         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
10966         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
10967         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
10968         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
10969         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
10970         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
10971         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
10972         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
10973         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
10974         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
10975         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
10976         [X/Open-based standards] (SIGTRAP): Likewise.
10977         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
10978         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
10979         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
10980         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
10981         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
10982         allow.
10984 2012-05-08  Ian Wienand  <ianw@vmware.com>
10986         [BZ #14080]
10987         * time/tzset.c (__tzset_parse_tz): Update default rules for
10988         daylight time changes in the Energy Policy Act of 2005.
10990 2012-05-09  Andreas Jaeger  <aj@suse.de>
10992         [BZ #13983]
10993         * elf/ldconfig.c (parse_conf): Change string to make clear that
10994         ldconfig only issued a warning if ld.so.conf does not exist.
10996 2012-05-08  David S. Miller  <davem@davemloft.net>
10998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
10999         movxtod instead of popping the value on the stack.
11001         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11003 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
11005         * config.h.in: Add HAVE_ARM_PCS_VFP.
11007 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
11009         [BZ #13979]
11010         * include/features.h: Warn if user requests __FORTIFY_SOURCE
11011         checking but the checks are disabled for any reason.
11013 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
11015         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
11016         and ELF64_R_TYPE with ELFW(R_TYPE).
11018 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
11020         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
11021         (ulimit): Likewise.
11023         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
11024         (settimeofday): Likewise.
11026 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
11028         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
11029         a struct th_u2 inside the union, and move tu_block/tu_code into
11030         a new th_u3 union of tu_block/tu_code inside of that.  Move
11031         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
11032         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
11033         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
11034         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
11035         (th_stuff): Change to th_u1.tu_stuff.
11036         (th_data): Define.
11037         (th_msg): Change to th_u1.th_u2.tu_data.
11039 2012-05-07  David S. Miller  <davem@davemloft.net>
11041         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11043         [BZ #14074]
11044         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
11045         (SETUP_PIC_REG): Use it.
11046         (SETUP_PIC_REG_LEAF): Use it.
11048 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
11050         [BZ #13885]
11051         [BZ #13923]
11052         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
11053         USE_AS_EXPM1L.
11054         (EXPL_FINITE): Likewise.
11055         (FLDLOG): Likewise.
11056         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
11057         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
11058         e_expl.S.
11059         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
11060         USE_AS_EXPM1L.
11061         (EXPL_FINITE): Likewise.
11062         (FLDLOG): Likewise.
11063         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
11064         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
11065         e_expl.S.
11066         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
11067         test of -max_value argument for long double.
11068         * sysdeps/i386/fpu/libm-test-ulps: Update.
11069         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11071 2012-05-06  David S. Miller  <davem@davemloft.net>
11073         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
11074         quad soft-float symbols whose references which are compiler
11075         generated.
11076         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
11078 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
11080         [BZ #13884]
11081         [BZ #13914]
11082         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
11083         USE_AS_EXP10L.
11084         (EXPL_FINITE): Likewise.
11085         (FLDLOG): Likewise.
11086         (c0): Likewise.
11087         (c1): Likewise.
11088         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
11089         Adjust comments for base varying.
11090         (__expl_finite): Change alias to EXPL_FINITE.
11091         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
11092         e_expl.S.
11093         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
11094         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
11095         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
11096         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
11097         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
11098         USE_AS_EXP10L.
11099         (EXPL_FINITE): Likewise.
11100         (FLDLOG): Likewise.
11101         (c0): Likewise.
11102         (c1): Likewise.
11103         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
11104         Adjust comments for base varying.
11105         (__expl_finite): Change alias to EXPL_FINITE.
11106         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
11107         tests for bugs.
11108         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11110         [BZ #14064]
11111         * math/libm-test.inc (check_float_internal): Correct ulp
11112         calculation for subnormal expected results.
11114 2012-05-06  Andreas Jaeger  <aj@suse.de>
11116         * Makeconfig (+math-flags): New, set to -frounding-math.
11117         (+cflags): Add +math-flags so that all of glibc gets compiled with
11118         it.
11120         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
11122 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
11124         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
11125         Disable one test.
11127         [BZ #13787]
11128         [BZ #13922]
11129         [BZ #14036]
11130         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
11131         (__ieee754_expl): Allow for and saturate large arguments.
11132         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
11133         (u_threshold): Likewise.
11134         (__exp): Call __ieee754_exp before checking for overflow and
11135         underflow.
11136         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
11137         (u_threshold): Likewise.
11138         (__expf): Call __ieee754_expf before checking for overflow and
11139         underflow.
11140         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
11141         (u_threshold): Likewise.
11142         (__expl): Call __ieee754_expl before checking for overflow and
11143         underflow.
11144         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
11145         (__ieee754_expl): Allow for and saturate large arguments.
11146         * math/libm-test.inc (exp_test): Add another test.  Do not allow
11147         missing overflow exception on overflow.
11148         (expm1_test): Do not allow missing overflow exception on overflow.
11150         * sysdeps/i386/fpu/e_expl.c: Move to ...
11151         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
11152         rather than using inline asm.
11153         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
11154         * sysdeps/x86_64/fpu/e_expl.S: Copy from
11155         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
11157         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
11158         (nice): Likewise.
11159         (poll): Likewise.
11160         (signal): Likewise.
11161         (time): Likewise.
11162         (times): Likewise.
11164 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
11166         * sysdeps/unix/syscalls.list (adjtime): Add entry from
11167         sysdeps/unix/common/syscalls.list.
11168         (fchmod): Likewise.
11169         (fchown): Likewise.
11170         (ftruncate): Likewise.
11171         (getrusage): Likewise.
11172         (gettimeofday): Likewise.
11173         (setpgid): Likewise.
11174         (setregid): Likewise.
11175         (setreuid): Likewise.
11176         (sigaction): Likewise.
11177         (truncate): Likewise.
11178         (vhangup): Likewise.
11179         * sysdeps/unix/common/syscalls.list: Remove file.
11180         * sysdeps/unix/bsd/Implies: Don't include unix/common.
11181         * sysdeps/unix/sysv/linux/Implies: Likewise.
11183 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
11185         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
11186         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
11187         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
11188         Moved to ...
11189         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
11190         Here.
11191         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
11192         to ...
11193         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
11194         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
11195         to ...
11196         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
11197         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
11198         to ...
11199         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
11200         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
11201         to ...
11202         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
11203         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
11204         to ...
11205         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
11206         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
11207         to ...
11208         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
11209         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
11210         to ...
11211         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
11212         Here.
11213         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
11214         to ...
11215         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
11216         Here.
11217         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
11218         to ...
11219         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
11220         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
11221         Moved to ...
11222         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
11223         Here.
11224         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
11225         to ...
11226         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
11228 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
11230         * sysdeps/unix/common/bits/dirent.h: Remove file.
11231         * sysdeps/unix/common/bits/fcntl.h: Likewise.
11233         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
11234         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
11235         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
11236         * sysdeps/unix/bsd/isatty.c: Likewise.
11237         * sysdeps/unix/bsd/tcdrain.c: Likewise.
11238         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
11239         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
11241 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11243         [BZ #13563]
11244         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
11245         long double comparison inaccuracies.
11246         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
11247         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11249 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
11251         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
11252         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
11254 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
11256         [BZ #14049]
11257         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
11258         nonzero digits before rounding a hex value.
11259         * stdlib/tst-strtod.c (tests): Add another test.
11261 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11263         * sysdeps/s390/fpu/libm-test-ulps: Update.
11265 2012-05-03  Andreas Jaeger  <aj@suse.de>
11267         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
11268         does not get optimized out.
11269         (malloc_opt_barrier): New.
11271 2012-05-03  Andreas Jaeger  <aj@suse.de>
11272             Roland McGrath  <roland@hack.frob.com>
11274         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
11275         intermediate file deletion.
11276         (generated): Add .symlist files.
11278 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
11280         [BZ #13775]
11281         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
11282         Redirect under this condition.
11283         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
11284         [__USE_GNU] (__dprintf_chk): Not under this condition.
11285         [__USE_GNU] (__vdprintf_chk): Likewise.
11286         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
11287         under this condition.
11288         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
11289         [__USE_XOPEN2K8] (dprintf): Define under this condition.
11290         [__USE_XOPEN2K8] (vdprintf): Likewise.
11291         [__USE_GNU] (__dprintf_chk): Not under this condition.
11292         [__USE_GNU] (__vdprintf_chk): Likewise.
11293         [__USE_GNU] (dprintf): Likewise.
11294         [__USE_GNU] (vdprintf): Likewise.
11296 2012-05-03  Roland McGrath  <roland@hack.frob.com>
11298         * elf/Makefile (common-generated): Set this instead of generated for
11299         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
11300         $(all-built-dso)-derived lists.
11302 2012-05-03  Andreas Jaeger  <aj@suse.de>
11304         * sysdeps/i386/fpu/libm-test-ulps: Update.
11306         * FAQ: Removed.
11307         * FAQ.in: Likewise.
11308         * scripts/gen-FAQ.pl: Likewise.
11309         * manual/install.texi (Installation): Point to online location of
11310         FAQ.
11311         * Makefile (files-for-dist): Remove FAQ.
11312         (FAQ): Remove.
11314 2012-05-02  Allan McRae  <allan@archlinux.org>
11316         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
11317         (LDFLAGS-reldepmod5.so): Likewise.
11318         (LDFLAGS-reldep6mod1.so): Likewise.
11319         (LDFLAGS-reldep6mod4.so): Likewise.
11320         (LDFLAGS-reldep8mod3.so): Likewise.
11321         (LDFLAGS-unload4mod1.so): Likewise.
11322         (LDFLAGS-unload4mod2.so): Likewise.
11323         (LDFLAGS-tst-initorder): Likewise.
11324         (LDFLAGS-tst-initordera2.so): Likewise.
11325         (LDFLAGS-tst-initordera3.so): Likewise.
11326         (LDFLAGS-tst-initordera4.so): Likewise.
11327         (LDFLAGS-tst-initorderb2.so): Likewise.
11328         (LDFLAGS-noload): Likewise.
11329         (LDFLAGS-next): Likewise.
11330         (LDFLAGS-order2mod1.so): Likewise.
11331         (LDFLAGS-order2mod2.so): Likewise.
11332         (LDFLAGS-tst-initorder2): Likewise.
11333         (LDFLAGS-tst-initorder2a.so): Likewise.
11334         (LDFLAGS-tst-initorder2b.so): Likewise.
11335         (LDFLAGS-tst-initorder2c.so): Likewise.
11336         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
11338 2012-05-02  David S. Miller  <davem@davemloft.net>
11340         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11342 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
11344         [BZ #14055]
11345         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
11347 2012-05-02  Andreas Jaeger  <aj@suse.de>
11349         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
11350         since we manipulate rounding mode.
11351         (CPPFLAGS-test-idouble.c): Likewise.
11352         (CPPFLAGS-test-ifloat.c): Likewise.
11353         (CFLAGS-test-ldouble.c): Likewise.
11354         (CFLAGS-test-double.c): Likewise.
11355         (CFLAGS-test-float.c): Likewise.
11356         (CFLAGS-test-misc.c): Likewise.
11357         (CFLAGS-test-test-fenv.c): Likewise.
11359 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11361         [BZ #2550]
11362         [BZ #2570]
11363         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
11364         comparisons to determine direction to adjust input.
11366 2012-05-01  Roland McGrath  <roland@hack.frob.com>
11368         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
11369         output to the target.
11371         * scripts/localplt.awk: New file.
11372         * elf/Makefile ($(objpfx)check-localplt): Target removed.
11373         (check-localplt-CFLAGS): Variable removed.
11374         ($(all-built-dso:=.jmprel)): New static pattern rule.
11375         (generated): Add those targets.
11376         (localplt-built-dso): New variable.
11377         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
11379         * elf/check-localplt.c: File removed.
11381         * scripts/check-execstack.awk: New file.
11382         * elf/Makefile ($(objpfx)check-execstack): Target removed.
11383         (check-execstack-CFLAGS): Variable removed.
11384         ($(objpfx)check-execstack.h): Target removed.
11385         ($(objpfx)execstack-default): New target.
11386         (generated): Add that instead of check-execstack.h.
11387         ($(all-built-dso:=.phdr)): New static pattern rule.
11388         (generated): Add those targets.
11389         * elf/check-execstack.c: File removed.
11391         * scripts/check-textrel.awk: New file.
11392         * elf/Makefile ($(objpfx)check-textrel): Target removed.
11393         (check-textrel-CFLAGS): Variable removed.
11394         (all-built-dso): Use := to define.o
11395         ($(all-built-dso:=.dyn)): New static pattern rule.
11396         (generated): Add those targets.
11397         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
11398         * config.make.in (READELF): New substituted variable.
11399         * elf/check-textrel.c: File removed.
11401 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
11403         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
11404         allow.
11405         * conform/data/ctype.h-data [C99-based standards] (isblank):
11406         Expect function.
11407         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
11408         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
11409         [ISO || ISO99 || ISO11] (*_t): Do not allow.
11410         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
11411         Specify type.  Require positive value.
11412         (EILSEQ): Likewise.
11413         (ERANGE): Likewise.
11414         [ISO || POSIX] (EILSEQ): Do not expect.
11415         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
11416         Specify type.  Require positive value.
11417         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
11418         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
11419         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
11420         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
11421         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
11422         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
11423         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
11424         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
11425         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
11426         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
11427         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
11428         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
11429         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
11430         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
11431         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
11432         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
11433         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
11434         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
11435         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
11436         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
11437         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
11438         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
11439         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
11440         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
11441         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
11442         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
11443         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
11444         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
11445         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
11446         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
11447         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
11448         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
11449         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
11450         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
11451         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
11452         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
11453         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
11454         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
11455         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
11456         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
11457         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
11458         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
11459         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
11460         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
11461         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
11462         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
11463         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
11464         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
11465         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
11466         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
11467         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
11468         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
11469         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
11470         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
11471         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
11472         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
11473         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
11474         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
11475         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
11476         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
11477         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
11478         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
11479         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
11480         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
11481         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
11482         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
11483         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
11484         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
11485         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
11486         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
11487         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
11488         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
11489         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
11490         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
11491         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
11492         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
11493         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
11494         Require >= 2.
11495         (FLT_ROUNDS): Expect as macro, not constant.
11496         (FLT_MANT_DIG): Use macro-int-constant.
11497         (DBL_MANT_DIG): Likewise.
11498         (LDBL_MANT_DIG): Likewise.
11499         (FLT_DIG): Likewise.
11500         (DBL_DIG): Likewise.
11501         (LDBL_DIG): Likewise.
11502         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
11503         (DBL_MIN_EXP): Likewise.
11504         (LDBL_MIN_EXP): Likewise.
11505         (FLT_MAX_EXP): Use macro-int-constant.
11506         (DBL_MAX_EXP): Likewise.
11507         (LDBL_MAX_EXP): Likewise.
11508         (FLT_MAX_10_EXP): Likewise.
11509         (DBL_MAX_10_EXP): Likewise.
11510         (LDBL_MAX_10_EXP): Likewise.
11511         (FLT_MAX): Use macro-constant.
11512         (DBL_MAX): Likewise.
11513         (LDBL_MAX): Likewise.
11514         (FLT_EPSILON): Use macro-constant.  Give upper bound.
11515         (DBL_EPSILON): Likewise.
11516         (LDBL_EPSILON): Likewise.
11517         (FLT_MIN): Likewise.
11518         (DBL_MIN): Likewise.
11519         (LDBL_MIN): Likewise.
11520         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
11521         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
11522         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
11523         [ISO11] (FLT_HAS_SUBNORM): Likewise.
11524         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
11525         [ISO11] (DBL_DECIMAL_DIG): Likewise.
11526         [ISO11] (FLT_DECIMAL_DIG): Likewise.
11527         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
11528         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
11529         [ISO11] (FLT_TRUE_MIN): Likewise.
11530         [ISO11] (LDBL_TRUE_MIN): Likewise.
11531         [ISO || ISO99 || ISO11] (*_t): Do not allow.
11532         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
11533         (SCHAR_MIN): Use macro-int-constant.  Specify type.
11534         (SCHAR_MAX): Likewise.
11535         (UCHAR_MAX): Likewise.
11536         (CHAR_MIN): Likewise.
11537         (CHAR_MAX): Likewise.
11538         (MB_LEN_MAX): Use macro-int-constant.
11539         (SHRT_MIN): Use macro-int-constant.  Specify type.
11540         (SHRT_MAX): Likewise.
11541         (USHRT_MAX): Likewise.
11542         (INT_MAX): Likewise.
11543         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
11544         bound negative.
11545         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
11546         bound with "U".
11547         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
11548         bound with "L".
11549         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
11550         bound negative.  Suffix upper bound with "L".
11551         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
11552         bound with "UL".
11553         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
11554         Specify type.
11555         [C99-based standards] (LLONG_MAX): Likewise.
11556         [C99-based standards] (ULLONG_MAX): Likewise.
11557         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
11558         == 0.
11559         [ISO11] (max_align_t): Require type.
11560         [ISO || ISO99 || ISO11] (*_t): Do not allow.
11562         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
11563         from $CFLAGS, without defining away __attribute__ calls.
11564         (checknamespace): Use $CFLAGS_namespace.
11566         * conform/conformtest.pl (@keywords): Only include C99 keywords
11567         for standards based on C99 or C11.
11569         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
11570         Disable tests.
11571         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
11572         UNIX98]: Likewise.
11574         * conform/conformtest.pl: Handle "macro-int-constant" and test for
11575         usability of symbols in #if.
11577         * conform/conformtest.pl: If macro or constant types start
11578         "promoted:", expect the symbol to be of the following type
11579         promoted by the integer promotions.
11581         * conform/conformtest.pl: Parse all "constant" and "macro" lines
11582         in one place.  Also handle "macro-constant".
11584         * conform/conformtest.pl: Only accept expected macro values with
11585         "==".  Parse all "macro" lines in one place.
11586         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
11588         * conform/conformtest.pl: Handle braced types on "constant" lines
11589         instead of handling "typed-constant".
11590         * conform/data/signal.h-data: Use "constant" instead of
11591         "typed-constant".
11593         * conform/conformtest.pl: Handle "optional-" at start of lines in
11594         one place rather than duplicating several cases.  Handle each
11595         format of "macro" line with initial "optional-".
11597         * conform/conformtest.pl: Only accept expected constant or
11598         optional-constant values with "==".  Parse all "constant" lines in
11599         one place.  Parse all "optional-constant" lines in one place.
11600         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
11601         * conform/data/fmtmsg.h-data: Likewise.
11602         * conform/data/netinet/in.h-data: Likewise.
11603         * conform/data/tar.h-data: Likewise.
11604         * conform/data/limits.h-data: Use "==" form on "constant" and
11605         "optional-constant" lines.
11607         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
11608         Use -std=c99 for XOPEN2K.
11609         (@knownproblems): Remove.
11610         (newtoken): Don't check %isknown.
11612         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
11613         Do not expect macro.
11614         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
11615         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
11616         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
11617         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
11618         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
11619         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
11620         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
11621         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
11622         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
11623         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
11624         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
11625         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
11626         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
11627         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
11628         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
11629         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
11630         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
11631         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
11632         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
11633         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
11634         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
11635         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
11636         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
11637         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
11638         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
11639         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
11640         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
11641         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
11642         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
11643         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
11644         [XPG3] (acosh): Likewise.
11645         [XPG3] (asinh): Likewise.
11646         [XPG3] (atanh): Likewise.
11647         [XPG3] (cbrt): Likewise.
11648         [XPG3] (expm1): Likewise.
11649         [XPG3] (ilogb): Likewise.
11650         [XPG3] (log1p): Likewise.
11651         [XPG3] (logb): Likewise.
11652         [XPG3] (nextafter): Likewise.
11653         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
11654         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
11655         [XPG3] (remainder): Likewise.
11656         [XPG3] (rint): Likewise.
11657         [XPG3 || XPG4 || UNIX98] (round): Likewise.
11658         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
11659         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
11660         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
11661         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
11662         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
11663         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
11664         [UNIX98 || XOPEN2K] (scalb): Expect.
11665         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
11666         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
11667         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
11668         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
11669         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
11670         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
11671         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
11672         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
11673         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
11674         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
11675         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
11676         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
11677         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
11678         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
11679         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
11680         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
11681         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
11682         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
11683         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
11684         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
11685         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
11686         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
11687         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
11688         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
11689         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
11690         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
11691         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
11692         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
11693         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
11694         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
11695         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
11696         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
11697         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
11698         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
11699         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
11700         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
11701         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
11702         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
11703         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
11704         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
11705         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
11706         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
11707         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
11708         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
11709         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
11710         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
11711         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
11712         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
11713         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
11714         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
11715         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
11716         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
11717         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
11718         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
11719         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
11720         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
11721         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
11722         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
11723         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
11724         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
11725         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
11726         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
11727         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
11728         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
11729         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
11730         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
11731         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
11732         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
11733         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
11734         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
11735         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
11736         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
11737         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
11738         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
11739         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
11740         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
11741         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
11742         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
11743         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
11744         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
11745         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
11746         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
11747         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
11748         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
11749         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
11750         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
11751         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
11752         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
11753         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
11754         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
11755         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
11756         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
11757         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
11758         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
11759         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
11760         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
11761         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
11762         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
11763         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
11764         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
11765         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
11766         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
11767         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
11768         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
11769         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
11770         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
11771         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
11772         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
11773         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
11774         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
11775         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
11776         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
11777         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
11778         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
11779         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
11780         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
11781         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
11782         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
11783         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
11784         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
11785         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
11786         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
11787         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
11788         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
11789         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
11790         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
11791         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
11792         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
11793         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
11794         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
11795         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
11796         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
11797         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
11798         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
11799         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
11800         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
11801         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
11803         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
11804         _XOPEN_SOURCE_EXTENDED for XPG4.
11806         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
11808         * Makeconfig (localtime): Remove variable.
11809         (inst_localtime-file): Likewise.
11811 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
11813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
11814         Update.
11815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
11816         Update.
11817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
11818         Update.
11819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
11820         Update.
11821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
11822         Update.
11823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
11824         Update.
11825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
11826         Update.
11827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
11828         Update.
11829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
11830         Update.
11832 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
11834         [BZ #2550]
11835         [BZ #2570]
11836         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
11837         comparisons to determine direction to adjust input.
11838         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11839         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
11840         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
11841         Likewise.
11842         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
11843         Likewise.
11844         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11845         Likewise.
11846         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11847         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11848         Likewise.
11849         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11850         Likewise.
11851         * math/libm-test.inc (nexttoward_test): Add more tests.
11853 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
11855         [BZ #14040]
11856         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
11857         in version GLIBC_2.1, not GLIBC_2.0.
11858         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
11859         Likewise.
11861 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
11863         [BZ #13942]
11864         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
11865         (1 - x) * (1 + x).
11866         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
11867         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
11868         * math/libm-test.inc (acos_test): Add more tests.
11869         (asin_test): Likewise.
11870         * sysdeps/i386/fpu/libm-test-ulps: Update.
11871         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11873         [BZ #14034]
11874         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
11875         of square root.
11876         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
11877         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
11878         * math/libm-test.inc (acos_test_tonearest): New function.
11879         (acos_test_towardzero): Likewise.
11880         (acos_test_downward): Likewise.
11881         (acos_test_upward): Likewise.
11882         (asin_test_tonearest): Likewise.
11883         (asin_test_towardzero): Likewise.
11884         (asin_test_downward): Likewise.
11885         (asin_test_upward): Likewise.
11886         (main): Call the new functions.
11887         * sysdeps/i386/fpu/libm-test-ulps: Update.
11888         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11890         [BZ #13884]
11891         [BZ #13924]
11892         * math/e_exp10.c: Include <float.h>.
11893         (__ieee754_exp10): Handle underflow here rather than multiplying
11894         large negative argument by M_LN10.
11895         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
11896         of __ieee754_expf.
11897         * math/e_exp10l.c: Include <float.h>.
11898         (__ieee754_exp10l): Handle underflow here rather than multiplying
11899         large negative argument by M_LN10l.
11900         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
11901         spurious overflow exception on underflow.
11903 2012-04-29  Marek Polacek  <polacek@redhat.com>
11905         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
11906         (__fortify_function): New macro.
11907         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
11908         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
11909         __extern_always_inline.
11910         * libio/bits/stdio2.h: Likewise.
11911         * libio/bits/stdio.h: Likewise.
11912         * string/string.h: Likewise.
11913         * string/bits/string3.h: Likewise.
11914         * include/stdio.h: Likewise.
11915         * stdlib/bits/stdlib.h: Likewise.
11916         * stdlib/stdlib.h: Likewise.
11917         * rt/bits/mqueue2.h: Likewise.
11918         * rt/mqueue.h: Likewise.
11919         * posix/bits/unistd.h: Likewise.
11920         * posix/unistd.h: Likewise.
11921         * io/bits/poll2.h: Likewise.
11922         * io/bits/fcntl2.h: Likewise.
11923         * io/fcntl.h: Likewise.
11924         * io/sys/poll.h: Likewise.
11925         * misc/bits/syslog.h: Likewise.
11926         * misc/bits/syslog-ldbl.h: Likewise.
11927         * misc/sys/syslog.h: Likewise.
11928         * socket/bits/socket2.h: Likewise.
11929         * socket/sys/socket.h: Likewise.
11930         * debug/tst-chk1.c: Likewise.
11931         * wcsmbs/bits/wchar2.h: Likewise.
11932         * wcsmbs/bits/wchar-ldbl.h: Likewise.
11933         * wcsmbs/wchar.h: Likewise.
11935 2012-04-29  Andreas Jaeger  <aj@suse.de>
11937         * Makerules (tests): Remove enable-check-abi protection.
11938         (check-abi-warn): Remove.
11939         (check-abi-%): Remove check-abi-warn usage.
11941         * configure.in: Remove check-abi configure option.
11942         * configure: Regenerated.
11943         * config.make.in (enable-check-abi): Remove.
11945 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
11947         [BZ #14033]
11948         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
11949         double functions to double *_finite functions.
11951         [BZ #13941]
11952         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
11953         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
11954         LDBL_MIN_EXP.
11955         * stdio-common/Makefile (tests): Add tst-sprintf3.
11956         * stdio-common/tst-sprintf3.c: New file.
11958         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
11959         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
11961 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
11963         * conform/conformtest.pl: Remove duplicate typed-constant
11964         handling.
11966 2012-04-28  David S. Miller  <davem@davemloft.net>
11968         * Makerules (%.abilist): Add vpath on sysdep_dirs.
11969         (check-abi-%): Remove AWK script prerequisite and explicit
11970         abilist directory.
11971         (check-abi): Rewrite to just diff the symlist with the abilist.
11972         (config-tls, config-abi-config): Delete, no longer used.
11973         (update-abi-%): Remove AWK script and explicit abilist directory.
11974         (update-abi): Rewrite to simply compare and conditionally copy the
11975         symlist and the sysdep abilist file.  Remove update-abi-config
11976         checks.
11977         * abilist/ld.abilist: Remove.
11978         * abilist/libBrokenLocale.abilist: Remove.
11979         * abilist/libanl.abilist: Remove.
11980         * abilist/libcrypt.abilist: Remove.
11981         * abilist/libdl.abilist: Remove.
11982         * abilist/librt.abilist: Remove.
11983         * abilist/libthread_db.abilist: Remove.
11984         * abilist/libutil.abilist: Remove.
11985         * scripts/extract-abilist.awk: Remove.
11986         * scripts/merge-abilist.awk: Remove.
11987         * sysdeps/generic/libcidn.abilist: New file.
11988         * sysdeps/generic/libnss_compat.abilist: New file.
11989         * sysdeps/generic/libnss_db.abilist: New file.
11990         * sysdeps/generic/libnss_dns.abilist: New file.
11991         * sysdeps/generic/libnss_files.abilist: New file.
11992         * sysdeps/generic/libnss_hesiod.abilist: New file.
11993         * sysdeps/generic/libnss_nis.abilist: New file.
11994         * sysdeps/generic/libnss_nisplus.abilist: New file.
11995         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
11996         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
11997         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
11998         file.
11999         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
12000         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
12001         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
12002         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
12003         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
12004         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
12005         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
12006         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
12007         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
12008         file.
12009         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
12010         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
12011         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
12012         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
12013         file.
12014         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
12015         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
12016         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
12017         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
12018         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
12019         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
12020         file.
12021         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
12022         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
12023         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
12024         file.
12025         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
12026         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
12027         New file.
12028         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
12029         New file.
12030         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
12031         New file.
12032         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
12033         New file.
12034         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
12035         New file.
12036         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
12037         New file.
12038         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
12039         New file.
12040         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
12041         New file.
12042         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
12043         New file.
12044         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
12045         New file.
12046         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
12047         New file.
12048         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
12049         New file.
12050         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
12051         New file.
12052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
12053         file.
12054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
12055         New file.
12056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
12057         New file.
12058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
12059         file.
12060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
12061         New file.
12062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
12063         New file.
12064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
12065         file.
12066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
12067         New file.
12068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
12069         New file.
12070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
12071         New file.
12072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
12073         New file.
12074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
12075         New file.
12076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
12077         New file.
12078         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
12079         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
12080         file.
12081         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
12082         New file.
12083         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
12084         file.
12085         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
12086         file.
12087         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
12088         file.
12089         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
12090         file.
12091         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
12092         file.
12093         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
12094         New file.
12095         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
12096         file.
12097         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
12098         file.
12099         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
12100         New file.
12101         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
12102         file.
12103         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
12104         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
12105         file.
12106         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
12107         New file.
12108         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
12109         file.
12110         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
12111         file.
12112         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
12113         file.
12114         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
12115         file.
12116         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
12117         file.
12118         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
12119         New file.
12120         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
12121         file.
12122         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
12123         file.
12124         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
12125         New file.
12126         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
12127         file.
12128         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
12129         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
12130         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
12131         file.
12132         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
12133         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
12134         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
12135         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
12136         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
12137         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
12138         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
12139         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
12140         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
12141         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
12142         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
12143         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
12144         file.
12145         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
12146         New file.
12147         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
12148         file.
12149         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
12150         file.
12151         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
12152         file.
12153         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
12154         file.
12155         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
12156         file.
12157         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
12158         New file.
12159         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
12160         New file.
12161         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
12162         file.
12163         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
12164         New file.
12165         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
12166         file.
12167         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
12168         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
12169         file.
12170         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
12171         New file.
12172         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
12173         file.
12174         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
12175         file.
12176         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
12177         file.
12178         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
12179         file.
12180         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
12181         file.
12182         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
12183         New file.
12184         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
12185         New file.
12186         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
12187         file.
12188         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
12189         New file.
12190         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
12191         file.
12193 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
12195         * conform/conformtest.pl: Fix typo in handling typed-constant from
12196         allow-header.
12198 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
12200         * README: Cut down references to pre-2.6 Linux kernels and
12201         Linuxthreads.  Update lists of configurations in libc and ports
12202         and sort alphabetically.  Say "or newer" with Linux kernel version
12203         requirements.
12205         * config.h.in [IS_IN_build]: Allow compiling without optimization.
12207 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
12209         [BZ #887]
12210         * math/libm-test.inc (logb_test_downward): New test to expose
12211         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
12212         rounding mode.
12214 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
12216         [BZ #14027]
12217         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
12218         to be done.
12219         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
12220         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
12222 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
12224         * sysdeps/unix/i386/brk.S: Remove file.
12225         * sysdeps/unix/i386/dl-brk.S: Likewise.
12226         * sysdeps/unix/i386/pipe.S: Likewise.
12227         * sysdeps/unix/i386/sigreturn.S: Likewise.
12228         * sysdeps/unix/i386/syscall.S: Likewise.
12229         * sysdeps/unix/i386/vfork.S: Likewise.
12230         * sysdeps/unix/i386/wait.S: Likewise.
12232         * sysdeps/unix/common/tcsendbrk.c: Move to ...
12233         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
12235         * configure.in (arm*-none*): Do not allow without
12236         --enable-hacker-mode.
12237         (netbsd*): Remove case setting base_os.
12238         (386bsd*): Likewise.
12239         (freebsd*): Likewise.
12240         (bsdi*): Likewise.
12241         (osf*): Likewise.
12242         (sunos*): Likewise.
12243         (ultrix*): Likewise.
12244         (newsos*): Likewise.
12245         (dynix*): Likewise.
12246         (*bsd*): Likewise.
12247         (sysv*): Likewise.
12248         (isc*): Likewise.
12249         (esix*): Likewise.
12250         (sco*): Likewise.
12251         (minix*): Likewise.
12252         (irix4*): Likewise.
12253         (irix6*): Likewise.
12254         (solaris[2-9]*): Likewise.
12255         (none): Likewise.
12256         * configure: Regenerated.
12258 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12260         [BZ #11521]
12261         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
12262         overflow or cancellation in calculating denominator.
12263         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
12264         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
12265         down expression to avoid unexpected rounding in newer GCCs.
12266         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
12268 2012-04-26  David S. Miller  <davem@davemloft.net>
12270         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
12271         long-double compat symbols.
12272         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
12273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
12274         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
12275         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
12276         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
12277         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
12278         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
12279         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
12280         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
12281         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
12282         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
12283         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
12284         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12286 2012-04-25  David S. Miller  <davem@davemloft.net>
12288         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
12289         HWCAP_* values only after the memory barriers have been defined.
12290         (atomic_full_barrier): Define.
12291         (atomic_read_barrier): Define.
12292         (atomic_write_barrier): Define.
12294 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12296         * shlib-versions: Add libgcc_s version information.
12297         * sysdeps/generic/libgcc_s.h: Remove.
12298         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
12299         libgcc_s.h.
12300         * sysdeps/gnu/unwind-resume.c: Likewise.
12301         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
12303 2012-04-25  David S. Miller  <davem@davemloft.net>
12305         * sysdeps/unix/sparc/brk.S: Delete.
12306         * sysdeps/unix/sparc/dl-brk.S: Delete.
12307         * sysdeps/unix/sparc/pipe.S: Delete.
12308         * sysdeps/unix/sparc/sysdep.S: Delete.
12309         * sysdeps/unix/sparc/sysdep.h: Delete.
12310         * sysdeps/unix/sparc/vfork.S: Delete.
12311         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
12312         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
12313         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
12314         ret_ERRVAL, r0, r1, MOVE): Define.
12315         (JUMPTARGET): Remove.
12316         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
12317         sysdeps/unix/sparc/sysdep.h
12318         (ENTRY, END): Remove.
12319         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12321 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
12323         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
12324         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
12325         -DIS_IN_build.
12327         * timezone/README: Update upstream location and email address for
12328         tzcode and tzdata.
12329         * timezone/zdump.c: Update from tzcode 2012b.
12330         * timezone/zic.c: Likewise.
12332         * configure.in (libc_cv_as_needed): Remove test.
12333         * configure: Regenerated.
12334         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
12335         conditional definition.
12336         [$(have-as-needed) != yes] (no-as-needed): Likewise.
12337         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
12338         * config.make.in (have-as-needed): Remove variable.
12340 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12341             Paul Pluzhnikov  <ppluzhnikov@google.com>
12343         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
12344         strings correctly.
12346 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
12348         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
12349         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
12350         * sysdeps/sh/strlen.S: Likewise.
12352 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
12354         * sysdeps/unix/fork.S: Remove file.
12355         * sysdeps/unix/i386/fork.S: Likewise.
12356         * sysdeps/unix/sparc/fork.S: Likewise.
12358         * sysdeps/unix/system.c: Remove file.
12359         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
12361         * sysdeps/unix/getegid.S: Remove file.
12362         * sysdeps/unix/geteuid.S: Likewise.
12364 2012-04-24  Roland McGrath  <roland@hack.frob.com>
12366         * scripts/check-localplt.awk: New file.
12367         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
12368         of diff.
12369         * scripts/data/localplt-generic.data: Add a comment.
12371         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
12372         NODE when __dir_mkfile failed.
12373         * sysdeps/mach/hurd/symlinkat.c: Likewise.
12374         Reported by Ludovic Courtès <ludo@gnu.org>.
12376 2012-04-24  Andreas Jaeger  <aj@suse.de>
12378         * Makerules (common-clean): Also remove gen-as-const-headers
12379         files.
12381 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
12383         * Makerules (native-compile): Do not change working directory for
12384         build.  Use $(OUTPUT_OPTION) in command.
12385         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
12387 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12389         [BZ #13886]
12390         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
12391         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
12392         * math/libm-test.inc (floor_test): Add more tests.
12393         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
12395 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
12397         * sysdeps/unix/getdents.c: Remove file.
12398         * sysdeps/unix/sysv/getdents.c: Likewise.
12399         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
12401         * sysdeps/unix/syscalls.list (madvise): Add syscall from
12402         sysdeps/unix/mman/syscalls.list.
12403         (mmap): Likewise.
12404         (mprotect): Likewise.
12405         (msync): Likewise.
12406         (munmap): Likewise.
12407         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
12408         * sysdeps/unix/mman/syscalls.list: Remove.
12409         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
12411         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
12412         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
12413         * configure: Regenerated.
12414         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
12415         $(libgcc_s_suffix).
12416         * config.make.in (libgcc_s_suffix): Remove variable.
12418 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
12420         * sysdeps/unix/sysv/gethostname.c: Move to ...
12421         * sysdeps/posix/gethostname.c: ... here.
12423         * sysdeps/unix/execve.S: Remove file.
12425         * sysdeps/unix/_exit.S: Remove file.
12427 2012-04-23  Andreas Jaeger  <aj@suse.de>
12429         [BZ #13739]
12430         * manual/Makefile: Remove make dist support, there's no
12431         need for a stand-alone documentation tar ball.
12432         (TEXI2DVI): Define always, it's not in Makeconfig.
12433         (dist): Removed.
12434         (tar-it): Removed.
12435         (edition): Removed.
12436         (glibc-doc-$(edition).tar): Removed
12437         (%.Z): Removed.
12438         (%.gz): Removed.
12439         (%.uu): Removed.
12440         (ETAGS): Remove, it's in Makeconfig.
12441         (move-if-change): Remove, it's in Makeconfig.
12443 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
12445         [BZ #13970]
12446         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
12447         (strtod, strtof, strtold, strtol, strtoul, strtoq)
12448         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
12449         (strtod_l, strtof_l, strtold_l): Remove __wur.
12450         It is not necessarily an error to ignore strtol's return value.
12451         One can reliably look at the stored endptr to decide whether
12452         the number had valid syntax.
12454 2012-04-21  Andreas Jaeger  <aj@suse.de>
12456         [BZ #13739]
12457         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
12459 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
12461         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
12462         * sysdeps/unix/sysv/Versions: Remove file.
12464 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
12466         [BZ #13927]
12467         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12469 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
12471         [BZ #7064]
12472         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
12473         version from __vm86.
12475 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
12477         * sysdeps/unix/common/lxstat.c: Remove file.
12478         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
12480         * sysdeps/unix/sysv/Makefile: Remove file.
12482         * sysdeps/unix/sysv/direct.h: Remove file.
12484         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
12485         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
12486         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
12487         * sysdeps/unix/sysv/bits/signum.h: Likewise.
12488         * sysdeps/unix/sysv/bits/stat.h: Likewise.
12489         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
12490         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
12492         * sysdeps/unix/sysv/setrlimit.c: Remove file.
12494         * sysdeps/unix/xmknod.c: Remove file.
12495         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
12497         * sysdeps/unix/sysv/settimeofday.c: Remove file.
12499         * sysdeps/unix/sysv/i386/time.S: Remove file.
12501         * sysdeps/unix/fxstat.c: Remove file.
12502         * sysdeps/unix/xstat.c: Likewise.
12503         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
12505         * sysdeps/unix/sysv/sigaction.c: Remove file.
12507         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
12508         (sysdep_headers): Remove variable.
12509         [termio.h not in sysdep_headers] (generated): Likewise.
12510         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
12511         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
12512         * sysdeps/unix/sysv/tcdrain.c: Likewise.
12513         * sysdeps/unix/sysv/tcflow.c: Likewise.
12514         * sysdeps/unix/sysv/tcflush.c: Likewise.
12515         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
12516         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
12517         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
12518         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
12519         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
12521         * sysdeps/unix/siglist.c: Remove file.
12523         * sysdeps/unix/getppid.S: Remove file.
12525         * sysdeps/unix/mkdir.c: Remove file.
12526         * sysdeps/unix/rmdir.c: Likewise.
12528 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
12530         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
12531         ERR_MAX value.
12532         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
12533         errlist-compat value.
12535 2012-04-18  David S. Miller  <davem@davemloft.net>
12537         * sysdeps/generic/memcopy.h (reg_char): Delete.
12538         * debug/strcat_chk.c: Use char, not reg_char.
12539         * debug/strcpy_chk.c: Likewise.
12540         * debug/strncat_chk.c: Likewise.
12541         * debug/strncpy_chk.c: Likewise.
12542         * string/memchr.c: Likewise.
12543         * string/memrchr.c: Likewise.
12544         * string/rawmemchr.c: Likewise.
12545         * string/strcat.c: Likewise.
12546         * string/strchr.c: Likewise.
12547         * string/strchrnul.c: Likewise.
12548         * string/strcmp.c: Likewise.
12549         * string/strcpy.c: Likewise.
12550         * string/strncat.c: Likewise.
12551         * string/strncmp.c: Likewise.
12552         * string/strncpy.c: Likewise.
12554 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
12556         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
12557         __builtin_memcopy is called when src and dest ranges are known to not
12558         overlap.
12560 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
12562         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
12563         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
12564         fwd_align_merge macro call.
12565         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
12566         bwd_align_merge macro call.
12567         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
12569 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
12571         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
12572         bwd_align_merge macros.
12573         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
12574         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
12575         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
12577 2012-04-18  David S. Miller  <davem@davemloft.net>
12579         * sysdeps/sparc/sparc64/memcopy.h: Delete.
12581 2012-04-18  Andreas Jaeger  <aj@suse.de>
12583         [BZ# 6794]
12584         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
12585         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
12586         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
12588         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
12589         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
12590         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
12592         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
12593         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
12594         Adjust for changed ldbl-128 files.
12596         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
12597         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
12598         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
12600 2012-04-17  David S. Miller  <davem@davemloft.net>
12602         * sysdeps/sparc/sparc32/memcopy.h: Delete.
12604 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
12606         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
12607         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
12608         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
12609         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
12610         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
12611         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
12613 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12615         [BZ #6794]
12616         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
12617         * math/libm-test.inc: Add ilogb errno and exception tests.
12618         * math/w_ilogb.c: New file: ilogb wrapper.
12619         * math/w_ilogbf.c: New file: ilogbf wrapper.
12620         * math/w_ilogbl.c: New file: ilogbl wrapper.
12621         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
12622         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
12623         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
12624         exception being thrown with 0.0 as argument.
12625         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
12626         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
12627         exception being thrown with 0.0 as argument.
12628         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
12629         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
12630         exception being thrown with 0.0 as argument.
12631         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
12632         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
12633         exception being thrown with 0.0 as argument.
12634         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
12635         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
12636         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
12637         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
12638         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
12639         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
12640         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
12641         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
12642         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
12644 2012-04-17  Petr Baudis  <pasky@ucw.cz>
12646         * include/sys/uio.h: Change __vector to __iovec to avoid clash
12647         with altivec.
12649 2012-04-16  Marek Polacek  <polacek@redhat.com>
12651         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
12653 2012-04-16  Marek Polacek  <polacek@redhat.com>
12655         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
12656         operands of fdivp instruction.
12658 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
12660         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
12661         * elf/tst-auditmod3b.c: Likewise.
12662         * elf/tst-auditmod4b.c: Likewise.
12663         * elf/tst-auditmod5b.c: Likewise.
12664         * elf/tst-auditmod6b.c: Likewise.
12665         * elf/tst-auditmod6c.c: Likewise.
12666         * elf/tst-auditmod7b.c: Likewise.
12667         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
12668         * sysdeps/x86_64/preconfigure.in: Likewise.
12669         * sysdeps/x86_64/preconfigure: Regenerated.
12671 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
12673         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
12674         __ILP32__.
12676 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
12678         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12679         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
12681 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
12683         [BZ #13973]
12684         * locale/iso-639.def: Fix gl language name. Spotted by
12685         Yaron Shahrabani.
12687 2012-04-12  Roland McGrath  <roland@hack.frob.com>
12689         [BZ #2074]
12690         * libio/libio.h (__io_write_fn): Update comment.
12692 2012-04-12  Petr Baudis  <pasky@ucw.cz>
12694         [BZ #2074]
12695         * stdio.texi (Hook Functions): The user provided writer function
12696         is not allowed to return -1.
12698 2012-04-11  David S. Miller  <davem@davemloft.net>
12700         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12702 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
12704         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
12705         Add a leading slash to rtkaio.
12707 2012-04-11  Jim Meyering  <meyering@redhat.com>
12709         [BZ #11959]
12710         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
12711         It is not necessarily an error to ignore fwrite's return
12712         value.  One can reliably use ferror to test for errors after
12713         the fact.
12715 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
12717         * bits/types.h (__snseconds_t): New type.
12718         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
12720         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
12721         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
12722         (__SNSECONDS_T_TYPE): Likewise.
12723         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
12724         (__SNSECONDS_T_TYPE): Likewise.
12725         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
12726         (__SNSECONDS_T_TYPE): Likewise.
12728 2012-04-10  Andreas Jaeger  <aj@suse.de>
12730         [BZ #2636]
12731         * manual/time.texi (Processor Time): Return type of times is
12732         elapsed real time since an arbitrary point in the past.
12733         (CPU Time): Move CLK_TCK from here...
12734         (Processor Time): ...to here.  Correct description.
12735         * manual/conf.texi (Constants for Sysconf): Correct description of
12736         _SC_CLK_TCK.
12738 2012-04-10  David S. Miller  <davem@davemloft.net>
12740         [BZ #13967]
12741         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
12742         where the is a gap between DT_REL(A) and DT_JMPREL.
12744 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
12746         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
12747         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
12748         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
12750 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
12752         * elf/dl-support.c (_dl_inhibit_cache): New variable.
12753         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
12754         (dl_main): Handle --inhibit-cache.
12755         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
12756         _dl_inhibit_cache.
12757         * elf/dl-load.c (_dl_map_object): Use it.
12758         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
12760 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
12762         [BZ #13872]
12763         * sysdeps/i386/fpu/e_powl.S (p78): New object.
12764         (__ieee754_powl): Saturate large exponents rather than testing for
12765         overflow of y*log2(x).
12766         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12767         * math/libm-test.inc (pow_test): Do not permit spurious overflow
12768         exceptions.
12770         [BZ #11521]
12771         * math/s_ctan.c: Include <float.h>.
12772         (__ctan): Avoid internal overflow or cancellation in calculating
12773         denominator.
12774         * math/s_ctanf.c: Likewise.
12775         * math/s_ctanl.c: Likewise.
12776         * math/s_ctanh.c: Likewise.
12777         * math/s_ctanhf.c: Likewise.
12778         * math/s_ctanhl.c: Likewise.
12779         * math/libm-test.inc (ctan_test): Add more tests.
12780         (ctanh_test): Likewise.
12781         * sysdeps/i386/fpu/libm-test-ulps: Update.
12782         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12784 2012-04-09  Andreas Jaeger  <aj@suse.de>
12786         [BZ #6894]
12787         * manual/filesys.texi (Directory Entries): Mention that d_namlen
12788         is an optional BSD extension.
12790         [BZ #10254]
12791         * manual/stdio.texi (Opening Streams): Document additional fopen
12792         parameters.
12794 2012-04-09  Roland McGrath  <roland@hack.frob.com>
12796         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
12797         %eax without telling the compiler.
12799 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
12801         [BZ # 13963]
12802         * manual/install.texi: Use sourceware.org.
12804 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
12806         [BZ #13873]
12807         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
12808         (__ieee754_pow): Generate overflow and underflow using huge*huge
12809         and tiny*tiny rather than just returning constant infinity or zero
12810         for large exponents.
12811         * math/libm-test.inc (pow_test): Require overflow exceptions for
12812         applicable cases of large exponents.
12814         [BZ #706]
12815         * sysdeps/i386/fpu/e_pow.S (p10): New object.
12816         (__ieee754_pow): Use iterative multiplication algorithm only for
12817         integer exponents with absolute value below 1024.  Check for odd
12818         integer exponents when using algorithm for real exponents.
12819         * math/libm-test.inc (pow_test): Add more tests.
12820         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12822 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
12824         [BZ #13705]
12825         * math/libm-test.inc (exp_test): Do not allow overflow exception
12826         on underflow test.
12828 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
12830         [BZ #13705]
12831         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
12832         instead of __kernel_standard_f.
12834 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
12836         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
12837         * sysdeps/x86_64/memset_chk.S: Likewise.
12839 2012-04-08  Andreas Jaeger  <aj@suse.de>
12841         [BZ #10153]
12842         * manual/startup.texi (Environment Access): Describe return value
12843         for putenv and setenv.
12845         [BZ #6895]
12846         * manual/filesys.texi (Directory Entries): Add description for
12847         DT_LNK.
12849         [BZ #6890]
12850         * manual/filesys.texi (Directory Entries): Clarify that it's file
12851         system not operating system in the description of DT_UNKNOWN.
12853         [BZ #6578]
12854         * manual/syslog.texi (closelog): Fix reference, it's openlog.
12856 2012-04-08  Stephen Compall  <s11@member.fsf.org>
12858         [BZ #6649]
12859         * manual/llio.texi (Opening and Closing Files): Add cross
12860         reference to explain mode argument.
12862 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
12864         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
12865         * sysdeps/x86_64/memset_chk.S: Likewise.
12867 2012-04-07  David S. Miller  <davem@davemloft.net>
12869         * elf/elf.h (R_SPARC_WDISP10): Define.
12870         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
12871         R_SPARC_SIZE32.
12872         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
12873         R_SPARC_SIZE64 and R_SPARC_H34.
12875 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
12877         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
12878         conditions and remove no longer applicable assertion.
12880 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
12882         * bits/byteswap.h: Include <features.h>.
12883         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
12884         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
12886 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
12888         * bits/byteswap.h (__bswap_16): Removed.
12889         Include <bits/byteswap-16.h> to get __bswap_16.
12890         * sysdeps/i386/bits/byteswap.h: Likewise.
12891         * sysdeps/s390/bits/byteswap.h: Likewise.
12892         * sysdeps/x86_64/bits/byteswap.h: Likewise.
12893         * bits/byteswap-16.h: New file.
12894         * sysdeps/i386/bits/byteswap-16.h: Likewise.
12895         * sysdeps/s390/bits/byteswap-16.h: Likewise.
12896         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
12897         * string/Makefile (headers): Add bits/byteswap-16.h.
12899 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
12901         [BZ #13895]
12902         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
12903         extra indirection.
12904         * nss/Makefile (tests-static, tests): Add tst-nss-static.
12905         * nss/tst-nss-static.c: New.
12907 2012-04-06  Robert Millan  <rmh@gnu.org>
12909         [BZ #6486]
12910         * manual/llio.texi (File Position Primitive): lseek
12911         refers to WHENCE when it really means OFFSET.
12913 2012-04-06  Andreas Jaeger  <aj@suse.de>
12915         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
12916         strncmp declarations.
12918         * abilist/libc.abilist: Add __poll and __ppoll.
12920 2012-04-05  David S. Miller  <davem@davemloft.net>
12922         * scripts/check-local-headers.sh: Accept a host triplet in the
12923         path matched by the exclude regexp.
12925         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
12926         definition.
12927         * sysdeps/powerpc/powerpc32/dl-machine.h
12928         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
12929         * sysdeps/s390/s390-32/dl-machine.h
12930         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
12931         * sysdeps/sparc/sparc32/dl-machine.h
12932         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
12933         * sysdeps/sparc/sparc64/dl-machine.h
12934         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
12936         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
12937         lazy binding.
12938         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
12939         undefined symbol errors.
12941         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
12942         DT_NEEDED entries.
12944 2012-04-05  Michael Matz  <matz@suse.de>
12946         [BZ #13592]
12947         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
12949 2012-04-05  Andreas Jaeger  <aj@suse.de>
12951         [BZ #13908]
12952         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
12953         comment.
12955 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
12957         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
12958         which ROUND is no valid rounding mode.
12960 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
12962         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
12963         read again.
12964         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
12966 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
12968         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
12969         an exception using FPU order intentionally.
12971 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
12973         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
12974         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
12975         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
12976         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
12978 2012-04-05  Simon Josefsson  <simon@josefsson.org>
12980         [BZ #12340]
12981         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
12982         EINVAL when BUFLEN is too smal.
12984 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
12986         [BZ #13553]
12987         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
12988         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
12990 2012-04-03  Andreas Jaeger  <aj@suse.de>
12992         [BZ #13938]
12993         * manual/setjmp.texi (System V contexts): Fix sentence.
12995         [BZ #13926]
12996         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
12997         New macro for this case.
12998         [!__GNUC__] (__bswap_64): New inline function for this case.
12999         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13000         * bits/byteswap.h: Likewise.
13001         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
13002         ull, guard with __GLIBC_HAVE_LONG_LONG.
13004         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
13005         __GLIBC_HAVE_LONG_LONG.
13007         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
13008         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
13010 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
13012         [BZ #13691]
13013         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
13014         inptr and inend, rather than using last_ch.
13016 2012-04-02  David S. Miller  <davem@davemloft.net>
13018         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
13019         * stdio-common/printf-parse.h (read_int): Change return type to
13020         'int', return -1 on INT_MAX overflow.
13021         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
13022         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
13023         overflows INT_MAX.  Check for overflow of in-format-string precision
13024         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
13025         SIZE_MAX not INT_MAX for integer overflow test.
13026         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
13027         skip the construct in the format string but do not record anything.
13028         * stdio-common/bug22.c: Adjust to test both width/prevision
13029         INT_MAX overflow as well as total length INT_MAX overflow.  Check
13030         explicitly for proper errno values.
13032 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
13034         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
13035         CHAR_MAX.
13036         * string/test-strcmp.c [! WIDE]: Likewise.
13037         * time/tst-mktime2.c: Likewise for INT_MAX.
13038         * string/test-string.h: #include <sys/param.h> for MIN.
13040         * csu/init-first.c (__libc_init_first): Call __ctype_init.
13041         * sysdeps/i386/init-first.c (init): Likewise.
13042         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
13043         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
13044         * sysdeps/sh/init-first.c (init): Likewise.
13046 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
13048         * po/ru.po: Update from translation team.
13049         * po/vi.po: Likewise.
13051 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
13053         * resolv/nss_dns/dns-host.c: Merge copyright years.
13055 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13057         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
13058         Optimize memcpy with prefetch if
13059         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
13060         src, dst pointers have unequal 16 byte alignments.
13062 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
13064         [BZ #13928]
13065         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
13066         from a CNAME entry and return the minimum ttl for the query.
13067         (gaih_getanswer_slice): Likewise.
13069 2012-03-30  Jeff Law  <law@redhat.com>
13071         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
13072         due to long keys.
13073         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
13074         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
13076         * resolv/nss_dns/dns-host.c: Update copyright year.
13078 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
13080         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
13081         requests to save a system call.  Fix check that all bytes are sent.
13083         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
13084         comments for sendmmsg.
13086 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13088         [BZ #13691]
13089         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
13090         with only 1 character between 0x0041 and 0x01b0.
13091         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
13092         * wcsmbs/tst-mbsnrtowcs.c: New file.
13094 2012-03-29  David S. Miller  <davem@davemloft.net>
13096         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
13097         small copies by hand.
13099 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
13101         [BZ #13761]
13102         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
13103         _nss_compat_initgroups_dyn): Fall back to malloc/free
13104         for large group memberships.
13106 2012-03-28  David S. Miller  <davem@davemloft.net>
13108         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
13109         that branches into memcpy.
13110         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
13111         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
13112         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
13113         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
13114         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
13115         bits.
13116         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
13117         implementation too.
13118         * sysdeps/sparc/mempcpy.S: New file.
13120         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
13121         the IFUNC routine in the libc case.
13122         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
13124         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
13125         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
13126         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
13127         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
13128         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
13129         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
13130         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
13131         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
13133         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
13134         loop to 256 bytes instead of 64 bytes and fix test signedness.
13136         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
13137         * sysdeps/sparc/sparc32/Makefile: rather than here...
13138         * sysdeps/sparc/sparc64/Makefile: and here.
13140 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
13142         * malloc/mallocbug.c: Avoid warnings about unused variables.
13144 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
13146         [BZ #13760]
13147         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
13148         in the right place. Discard and retry query if response is
13149         larger than input buffer size.
13151 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
13153         [BZ #369]
13154         [BZ #2678]
13155         [BZ #3866]
13156         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
13157         x for large integer exponent.
13158         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
13159         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
13160         sign of result as needed afterwards.
13161         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
13162         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
13163         result for underflowing pow the same as for overflow.
13164         (__kernel_standard_l): Handle powl overflow and underflow here
13165         rather than calling __kernel_standard.
13166         * math/libm-test.inc (pow_test): Add more tests.
13168         [BZ #3868]
13169         [BZ #13879]
13170         [BZ #13910]
13171         [BZ #13911]
13172         [BZ #13912]
13173         [BZ #13913]
13174         [BZ #13915]
13175         [BZ #13916]
13176         [BZ #13917]
13177         [BZ #13918]
13178         [BZ #13919]
13179         [BZ #13920]
13180         [BZ #13921]
13181         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
13182         * sysdeps/ieee754/k_standard.c: Include <float.h>.
13183         (__kernel_standard_l): New function.
13184         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
13185         __kernel_standard.
13186         * math/w_acosl.c (__acosl): Likewise.
13187         * math/w_asinl.c (__asinl): Likewise.
13188         * math/w_atan2l.c (__atan2l): Likewise.
13189         * math/w_atanhl.c (__atanhl): Likewise.
13190         * math/w_coshl.c (__coshl): Likewise.
13191         * math/w_exp10l.c (__exp10l): Likewise.
13192         * math/w_exp2l.c (__exp2l): Likewise.
13193         * math/w_fmodl.c (__fmodl): Likewise.
13194         * math/w_hypotl.c (__hypotl): Likewise.
13195         * math/w_j0l.c (__j0l, __y0l): Likewise.
13196         * math/w_j1l.c (__j1l, __y1l): Likewise.
13197         * math/w_jnl.c (__jnl, __ynl): Likewise.
13198         * math/w_lgammal.c (__lgammal): Likewise.
13199         * math/w_log10l.c (__log10l): Likewise.
13200         * math/w_log2l.c (__log2l): Likewise.
13201         * math/w_logl.c (__logl): Likewise.
13202         * math/w_powl.c (__powl): Likewise.
13203         * math/w_remainderl.c (__remainderl): Likewise.
13204         * math/w_scalbl.c (sysv_scalbl): Likewise.
13205         * math/w_sinhl.c (__sinhl): Likewise.
13206         * math/w_sqrtl.c (__sqrtl): Likewise.
13207         * math/w_tgammal.c (__tgammal): Likewise.
13208         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
13209         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
13210         * math/libm-test.inc (acos_test): Add more tests.
13211         (acosh_test): Likewise.
13212         (asin_test): Likewise.
13213         (atanh_test): Likewise.
13214         (exp_test): Likewise.
13215         (exp10_test): Likewise.
13216         (exp2_test): Likewise.
13217         (expm1_test): Likewise.
13218         (lgamma_test): Likewise.
13219         (log_test): Likewise.
13220         (log10_test): Likewise.
13221         (log1p_test): Likewise.
13222         (log2_test): Likewise.
13223         (pow_test): Do not allow some spurious overflow exceptions.
13224         (sqrt_test): Add more tests.
13225         (tgamma_test): Likewise.
13226         (y0_test): Likewise.
13227         (y1_test): Likewise.
13228         (yn_test): Likewise.
13230 2012-03-27  Anton Blanchard  <anton@samba.org>
13232         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
13233         MAP_HUGETLB.
13234         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
13235         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
13236         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
13238 2012-03-27  David S. Miller  <davem@davemloft.net>
13240         * conform/Makefile: Run run-conformtest.sh using $(BASH).
13242         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
13243         have-as-vis3 check.
13245 2012-03-27  Andreas Jaeger  <aj@suse.de>
13247         * sysdeps/x86_64/elf/configure.in: Moved to ...
13248         * sysdeps/x86_64/configure.in: ... here.
13249         * sysdeps/x86_64/elf/start.S: Moved to ...
13250         * sysdeps/x86_64/start.S: ... here.
13251         * sysdeps/x86_64/elf/configure: Delete.
13253         * sysdeps/x86_64/configure.in: Merge contents from
13254         sysdeps/i386/configure.in (without i686 check).
13256         * sysdeps/i386/elf/Versions: Merge into ...
13257         * sysdeps/i386/Versions: ... this.
13258         * sysdeps/i386/elf/Versions: Delete file.
13259         * sysdeps/i386/elf/start.S: Moved to ...
13260         * sysdeps/i386/start.S: ...here.
13261         * sysdeps/i386/elf/configure.in: Merge into...
13262         * sysdeps/i386/configure.in: ...here.
13263         * sysdeps/i386/elf/configure.in: Delete file.
13264         * sysdeps/i386/elf/configure: Delete file.
13266         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
13267         * debug/backtracesyms.c: ... here.
13268         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
13269         * debug/backtracesymsfd.c: ... here.
13270         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
13271         * sysdeps/generic/ifunc-sel.h: ... here.
13273         * sysdeps/unix/i386/start.c: Delete file.
13274         * sysdeps/unix/sparc/start.c: Delete file.
13275         * sysdeps/unix/start.c: Delete file.
13277         * sysdeps/sh/elf/configure.in: Moved to ...
13278         * sysdeps/sh/configure.in: ... here.
13279         * sysdeps/sh/elf/start.S: Moved to ...
13280         * sysdeps/sh/start.S: ... here.
13281         * sysdeps/sh/elf/configure: Delete file.
13283         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
13284         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
13285         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
13286         * sysdeps/powerpc/powerpc64/entry.h: ... here.
13287         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
13288         * sysdeps/powerpc/powerpc64/start.S: here.
13289         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
13290         * sysdeps/powerpc/powerpc64/Makefile: ... this.
13291         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
13292         * sysdeps/powerpc/powerpc64/configure.in: ... this.
13293         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
13295         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
13296         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
13297         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
13298         * sysdeps/powerpc/powerpc32/start.S: ... here.
13299         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
13300         * sysdeps/powerpc/powerpc32/configure.in: ... this.
13301         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
13303         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
13304         * sysdeps/powerpc/ifunc-sel.h: ... here.
13305         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
13306         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
13308         * sysdeps/sparc/elf/configure.in: Moved to ...
13309         * sysdeps/sparc/configure.in: ... here.
13310         * sysdeps/sparc/elf/configure: Delete file.
13311         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
13312         * sysdeps/sparc/sparc32/start.S: ... here.
13313         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
13314         * sysdeps/sparc/sparc64/start.S: ... here.
13315         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
13316         * sysdeps/sparc/sparc32/Makefile: ... this.
13317         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
13318         * sysdeps/sparc/sparc64/Makefile: ... this.
13320         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
13321         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
13322         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
13323         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
13324         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
13325         * sysdeps/s390/s390-32/setjmp.S: ... here.
13326         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
13327         * sysdeps/s390/s390-32/configure.in: ... here.
13328         * sysdeps/s390/s390-32/elf/configure: Delete file.
13329         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
13330         * sysdeps/s390/s390-32/start.S: ... here.
13332         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
13333         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
13334         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
13335         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
13336         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
13337         * sysdeps/s390/s390-64/setjmp.S: ... here.
13338         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
13339         * sysdeps/s390/s390-64/configure.in: ... here
13340         * sysdeps/s390/s390-64/elf/configure: Delete file.
13341         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
13342         * sysdeps/s390/s390-64/start.S: ... here.
13343         * sysdeps/s390/s390-64/elf/configure: Delete.
13345         * configure.in: Remove support for elf directories in sysdeps.
13347         * configure: Regenerated.
13348         * sysdeps/i386/configure: Regenerated.
13349         * sysdeps/powerpc/powerpc32/configure: Regenerated.
13350         * sysdeps/powerpc/powerpc64/configure: Regenerated.
13351         * sysdeps/s390/s390-32/configure: Regenerated.
13352         * sysdeps/s390/s390-64/configure: Regenerated.
13353         * sysdeps/sh/configure: Regenerated.
13354         * sysdeps/sparc/configure: Regenerated.
13355         * sysdeps/x86_64/configure: Regenerated.
13357 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
13359         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13361         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
13362         denormal result into account.
13364 2012-03-25  Roland McGrath  <roland@hack.frob.com>
13366         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
13367         Reported by Allan McRae <allan@archlinux.org>.
13369 2012-03-23  Jeff Law  <law@redhat.com>
13371         * nss/getnssent.c (__nss_getent): Fix typo.
13373 2012-03-23  David S. Miller  <davem@davemloft.net>
13375         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13377 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
13379         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
13380         to pad to uint64_t for each field.
13381         (dl_tls_index): Replace unsigned long with uint64_t.
13383 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
13384         Paul Pluzhnikov  <ppluzhnikov@google.com>
13386         [BZ #6528]
13387         * grp/Makefile (otherlibs): Don't set it.
13388         * inet/Makefile (otherlibs): Likewise.
13389         * login/Makefile (otherlibs): Likewise.
13390         * nscd/Makefile (otherlibs): Likewise.
13391         * posix/Makefile (otherlibs): Likewise.
13392         * pwd/Makefile (otherlibs): Likewise.
13393         * rt/Makefile (otherlibs): Likewise.
13394         * sunrpc/Makefile (otherlibs): Likewise.
13395         * nss/Makefile (otherlibs): Likewise.
13396         Add libnss_files to routines and static-only-routines.
13397         ($(objpfx)getent): Remove rule.
13398         * resolv/Makefile: Add libnss_dns and libresolv to routines and
13399         static-only-routines.
13401 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
13403         [BZ #13892]
13404         * math/s_cexp.c: Include <float.h>.
13405         (__cexp): Handle exp result overflowing not necessarily
13406         overflowing both real and imaginary parts of result.
13407         * math/s_cexpf.c: Likewise.
13408         * math/s_cexpl.c: Likewise.
13409         * math/libm-test.inc (cexp_test): Add more tests.
13410         * sysdeps/i386/fpu/libm-test-ulps: Update.
13411         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13413 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
13415         * include/link.h (ELFW): New macro.
13416         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
13417         Replace ELF64_R_TYPE with ELFW(R_TYPE).
13419 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
13421         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
13422         with uint64_t.
13424 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
13426         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
13427         declaration.
13428         (struct La_x32_retval): Likewise.
13430 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
13432         * sysdeps/x86_64/preconfigure.in: New file.
13433         * sysdeps/x86_64/preconfigure: New generated file.
13435 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
13437         [BZ #13824]
13438         * math/e_exp2l.c: Include <float.h>.
13439         (__ieee754_exp2l): Handle overflow and underflow cases
13440         separately.  Only pass fractional part of argument to
13441         __ieee754_expl.
13442         * math/libm-test.inc (exp2_test): Add more tests.
13444         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
13445         negating x to take absolute value.
13446         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
13447         Likewise.
13448         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
13449         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
13450         Likewise.
13451         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
13452         computing low part if x was negated.
13453         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
13455 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
13457         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
13458         la_x32_gnu_pltexit.
13459         (pltexit): Cast int_retval to ptrdiff_t.
13460         * elf/tst-auditmod3b.c: Likewise.
13461         * elf/tst-auditmod4b.c: Likewise.
13462         * elf/tst-auditmod5b.c: Likewise.
13463         * elf/tst-auditmod6b.c: Likewise.
13464         * elf/tst-auditmod6c.c: Likewise.
13465         * elf/tst-auditmod7b.c: Likewise.
13467         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
13468         and x32_gnu_pltexit.
13470         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
13471         __ELF_NATIVE_CLASS.
13472         (La_x32_regs): New macro.
13473         (La_x32_retval): Likewise.
13474         (la_x32_gnu_pltenter): New function prototype.
13475         (la_x32_gnu_pltexit): Likewise.
13477 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
13479         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
13480         exponent.
13482         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13484         * configure.in (libc_cv_cc_nofma): Check for option to disable
13485         generation of FMA instructions.
13486         * configure: Regenerate.
13487         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
13488         * sysdeps/ieee754/dbl-64/Makefile: New file.
13489         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
13490         Remove brandred-fma4.
13491         (CFLAGS-brandred-fma4.c): Remove.
13492         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
13493         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
13494         define.
13495         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
13496         define.
13498 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
13500         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
13501         LLONG_MAX != LONG_MAX.
13502         (_itoa_word): Use _ITOA_WORD_TYPE on value.
13503         (_fitoa_word): Likewise.
13504         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
13505         LLONG_MAX != LONG_MAX.
13506         * stdio-common/_itowa.h: Include <_itoa.h>.
13507         (_itowa_word): Use _ITOA_WORD_TYPE on value.
13508         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
13509         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
13510         only if not defined.
13511         (_ITOA_WORD_TYPE): Likewise.
13512         (_itoa_word): Use _ITOA_WORD_TYPE on value.
13513         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
13515 2012-03-21  David S. Miller  <davem@davemloft.net>
13517         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13519 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
13521         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
13522         of x86_64 when setting libc_cv_slibdir, libdir and
13523         libc_cv_localedir.
13524         * sysdeps/unix/sysv/linux/configure: Regenerated.
13526 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
13528         * manual/lang.texi (Old Varargs): Remove section.
13529         (How Variadic): Update menu.
13530         (va_start): Do not mention varargs.h.
13532 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
13533             Joseph Myers  <joseph@codesourcery.com>
13535         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
13536         link test.
13537         * configure: Regenerated.
13539 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
13541         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
13542         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
13543         conformtest.pl
13545 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
13547         * NOTES: Remove.
13548         * Makefile (files-for-dist): Remove NOTES.
13549         (NOTES): Remove rule.
13550         * README: Don't refer to NOTES.
13551         * manual/creature.texi: Don't include macros.texi.
13552         * manual/intro.texi (creature.texi): Remove comment referring to
13553         NOTES.
13555         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
13556         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
13557         * configure: Regenerated.
13558         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
13559         LIBC_TRY_CC_OPTION.
13560         (libc_cv_as_i686): Likewise.
13561         (libc_cv_cc_avx): Likewise.
13562         (libc_cv_cc_sse2avx): Likewise.
13563         (libc_cv_cc_fma4): Likewise.
13564         (libc_cv_cc_novzeroupper): Likewise.
13565         * sysdeps/i386/configure: Regenerated.
13567         [BZ #13883]
13568         * sysdeps/i386/fpu/s_cexp.S: Remove.
13569         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13570         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13571         * math/libm-test.inc (cexp_test): Add more tests.
13572         * sysdeps/i386/fpu/libm-test-ulps: Update.
13573         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13575 2012-03-21  Allan McRae  <allan@archlinux.org>
13577         * timezone/Makefile: Do not install iso3166.tab and zone.tab
13579 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
13581         [BZ #13871]
13582         * math/w_exp2.c: Do not include <float.h>.
13583         (o_threshold, u_threshold): Remove.
13584         (__exp2): Calculate result before checking finiteness and calling
13585         __kernel_standard.
13586         * math/w_exp2f.c: Likewise.
13587         * math/w_exp2l.c: Likewise.
13588         * math/libm-test.inc (exp2_test): Require overflow exception for
13589         1e6 input.
13591         [BZ #3866]
13592         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
13593         range of signed 64-bit integers before using fistpll.  Remove
13594         checks for whether integers fit in mantissa bits.
13595         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
13596         the range of signed 32-bit integers before using fistpl.  Remove
13597         checks for whether integers fit in mantissa bits.
13598         * sysdeps/i386/fpu/e_powl.S (p64): New object.
13599         (__ieee754_powl): Test for y outside the range of signed 64-bit
13600         integers before using fistpll.  Reduce 64-bit values to 63-bit
13601         ones as needed.
13602         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
13603         divide-by-zero is raised for zero to large negative powers.
13604         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
13605         (__ieee754_powl): Test for y outside the range of signed 64-bit
13606         integers before using fistpll.  Reduce 64-bit values to 63-bit
13607         ones as needed.
13608         * math/libm-test.inc (pow_test): Add more tests.
13610 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
13612         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
13613         <stdio-common/_itoa.h>.
13614         * debug/segfault.c: Likewise.
13615         * elf/dl-cache.c: Likewise.
13616         * elf/dl-minimal.c: Likewise.
13617         * elf/dl-misc.c: Likewise.
13618         * elf/dl-sysdep.c: Likewise.
13619         * elf/dl-version.c: Likewise.
13620         * elf/rtld.c: Likewise.
13621         * hurd/hurdsock.c: Likewise.
13622         * hurd/lookup-retry.c: Likewise.
13623         * malloc/malloc.c: Likewise.
13624         * malloc/mtrace.c: Likewise.
13625         * nscd/nscd_getgr_r.c: Likewise.
13626         * nscd/nscd_getpw_r.c: Likewise.
13627         * nscd/nscd_getserv_r.c: Likewise.
13628         * posix/getopt_init.c: Likewise.
13629         * posix/wordexp.c: Likewise.
13630         * stdio-common/_itoa.c: Likewise.
13631         * stdio-common/printf_fphex.c: Likewise.
13632         * stdio-common/vfprintf.c: Likewise.
13633         * string/_strerror.c: Likewise.
13634         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
13635         * sysdeps/i386/i686/hp-timing.h: Likewise.
13636         * sysdeps/mach/_strerror.c: Likewise.
13637         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
13638         * sysdeps/mach/hurd/sethostid.c: Likewise.
13639         * sysdeps/mach/hurd/xmknodat.c: Likewise.
13640         * sysdeps/mach/xpg-strerror.c: Likewise.
13641         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
13642         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
13643         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
13644         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
13645         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
13646         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
13647         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
13648         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
13649         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
13650         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
13651         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
13652         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
13653         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
13654         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
13655         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
13656         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
13657         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
13658         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
13659         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
13660         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
13661         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
13663         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
13665         * stdio-common/_itoa.h: Moved to ...
13666         * sysdeps/generic/_itoa.h: Here.
13668         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
13670         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
13671         instead of "_itoa.h" and "_itowa.h".
13672         * stdio-common/vfprintf.: Likewise.
13674 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
13676         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
13677         <bits/wordsize.h>.
13678         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
13679         (__signbit): Likwise.
13680         (llrintf): Likwise.
13681         (llrint): Likwise.
13683 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
13685         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
13686         __WORDSIZE != 64.
13688 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
13690         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
13691         OVERFLOW_EXCEPTION_OK.
13692         * math/libm-test.inc ("Philosophy"): Update comment about
13693         exception testing.
13694         (OVERFLOW_EXCEPTION): Define.
13695         (OVERFLOW_EXCEPTION_OK): Likewise.
13696         (INVALID_EXCEPTION_OK): Renumber.
13697         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
13698         (IGNORE_ZERO_INF_SIGN): Likewise.
13699         (test_exceptions): Handle FE_OVERFLOW.
13700         (exp10_test): Expect overflow exceptions.
13701         (exp2_test): Likewise.
13702         (expm1_test): Likewise.
13703         (nextafter_test): Likewise.
13704         (pow_test): Likewise.
13705         (scalbn_test): Likewise.
13706         (scalbln_test): Likewise.
13708 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
13710         * sysdeps/x86_64/bits/atomic.h
13711         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
13712         64bit integer.
13713         (atomic_exchange_acq): Likewise.
13714         (__arch_exchange_and_add_body): Likewise.
13715         (__arch_add_body): Likewise.
13716         (atomic_add_negative): Likewise.
13717         (atomic_add_zero): Likewise.
13719 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
13721         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
13722         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
13724 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
13726         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
13727         Check __x86_64__ instead of __WORDSIZE.
13729 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
13731         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
13733 2012-03-19  David S. Miller  <davem@davemloft.net>
13735         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13737         * sysdeps/sparc/fpu/fenv_private.h: New file.
13738         * sysdeps/sparc/fpu/math_private.h: Use it.
13739         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
13740         Remove.
13741         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
13742         (libc_feholdexcept_setroundl): Remove.
13743         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
13744         Remove.
13745         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
13746         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
13748 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
13750         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
13751         int64_t instead of long int.
13752         (INSERT_WORDS64): Likwise.
13754 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
13756         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
13757         _Unwind_GetCFA return to _Unwind_Ptr first.
13759 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
13761         [BZ #13629]
13762         * math/s_clog.c: Include <float.h>.
13763         (__clog): Scale large or subnormal inputs.
13764         * math/s_clogf.c: Likewise.
13765         * math/s_clogl.c: Likewise.
13766         * math/s_clog10.c: Include <float.h>.
13767         (M_LOG10_2): Define.
13768         (__clog10): Scale large or subnormal inputs.
13769         * math/s_clog10f.c: Likewise.
13770         * math/s_clog10l.c: Likewise.
13771         * math/libm-test.inc (clog_test): Add more tests.
13772         (clog10_test): Likewise.
13773         * sysdeps/i386/fpu/libm-test-ulps: Update.
13774         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13776         [BZ #11451]
13777         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
13778         x and y.
13779         * math/libm-test.inc (atan2_test): Add another test.
13781         * Makerules (common-objdir-compile): Remove.
13782         * sysdeps/unix/Makefile (config-generated): Do not add
13783         $(unix-generated) to variable.
13784         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
13785         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
13786         Remove rule.
13787         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
13788         Likewise.
13789         [generic bits/local_lim.h] (before-compile): Do not append to
13790         variable.
13791         [generic bits/local_lim.h] (common-generated): Likewise.
13792         [generic sys/param.h] (before-compile): Do not append to variable.
13793         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
13794         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
13795         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
13796         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
13797         include.
13798         [generic sys/param.h] (sys/param.h-includes): Remove variable.
13799         [generic sys/param.h] (sys/param.h-includes): Remove rule.
13800         [generic sys/param.h] ($(addprefix
13801         $(common-objpfx),$(sys/param.h-includes))): Likewise.
13802         [generic sys/param.h] (common-generated): Do not append to
13803         variable.
13804         [generic sys/param.h] (sysdep_headers): Likewise.
13805         [generic bits/errno.h] (before-compile): Do not append to
13806         variable.
13807         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
13808         rule.
13809         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
13810         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
13811         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
13812         [generic bits/errno.h] (common-generated): Do not append to
13813         variable.
13814         [generic bits/ioctls.h] (before-compile): Do not append to
13815         variable.
13816         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
13817         rule.
13818         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
13819         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
13820         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
13821         rule.
13822         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
13823         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
13824         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
13825         [generic bits/ioctls.h] (common-generated): Do not append to
13826         variable.
13827         [generic sys/syscall.h] (syscall.h): Remove variable.
13828         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
13829         rule.
13830         [generic sys/syscall.h] (before-compile): Do not append to
13831         variable.
13832         [generic sys/syscall.h] (common-generated): Likewise.
13833         * sysdeps/unix/errnos-tmpl.c: Remove file.
13834         * sysdeps/unix/errnos.awk: Likewise.
13835         * sysdeps/unix/ioctls-tmpl.c: Likewise.
13836         * sysdeps/unix/ioctls.awk: Likewise.
13837         * sysdeps/unix/mk-local_lim.c: Likewise.
13838         * sysdeps/unix/snarf-ioctls: Likewise.
13840 2012-03-19  Richard Henderson  <rth@twiddle.net>
13842         * sysdeps/i386/fpu/fenv_private.h: New file.
13843         * sysdeps/i386/fpu/math_private.h: Use it.
13844         (math_opt_barrier, math_force_eval): Remove.
13845         (libc_feholdexcept_setround_53bit): Remove.
13846         (libc_feupdateenv_53bit): Remove.
13847         * sysdeps/x86_64/fpu/math_private.h: Likewise.
13848         (math_opt_barrier, math_force_eval): Remove.
13849         (libc_feholdexcept): Remove.
13850         (libc_feholdexcept_setround): Remove.
13851         (libc_fetestexcept, libc_fesetenv): Remove.
13852         (libc_feupdateenv_test): Remove.
13853         (libc_feupdateenv, libc_feholdsetround): Remove.
13854         (libc_feresetround): Remove.
13856         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
13857         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
13859         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
13860         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
13861         (libc_feupdateenv_testl): New.
13862         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
13863         (libc_feupdateenv_testf): New.
13864         (libc_feupdateenv): Use libc_feupdateenv_test.
13865         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
13866         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
13868         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
13869         (libc_feholdsetroundf, libc_feholdsetroundl): New.
13870         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
13871         (libc_feresetround_noex): New.
13872         (libc_feresetround_noexf): New.
13873         (libc_feresetround_noexl): New.
13874         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
13875         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
13876         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
13877         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
13878         SET_RESTORE_ROUND.
13879         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
13880         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
13881         (__cos): Likewise.
13882         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
13883         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
13884         SET_RESTORE_ROUND_NOEX.
13885         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
13886         SET_RESTORE_ROUND_NOEXF.
13887         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
13888         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
13889         (libc_feholdsetroundf): New.
13890         (libc_feresetround, libc_feresetroundf): New.
13892         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
13893         (libc_feholdexcept_setround_53bit): Convert from macro to function.
13894         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
13896         * sysdeps/generic/math_private.h: Include <fenv.h>.
13897         (default_libc_feholdexcept): New.
13898         (default_libc_feholdexcept_setround): New.
13899         (default_libc_fesetenv, default_libc_feupdateenv): New.
13900         (libc_feholdexcept): Only define if undefined.
13901         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
13902         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
13903         (libc_feholdexcept_setroundl): Likewise.
13904         (libc_feholdexcept_setround_53bit): Likewise.
13905         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
13906         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
13907         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
13908         (libc_feupdateenv_53bit): Likewise.
13909         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
13910         (libc_feholdexcept): Convert from macro to inline function.
13911         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
13912         (libc_fesetenv, libc_feupdateenv): Likewise.
13914         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
13915         not previously defined.
13916         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
13917         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
13918         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
13919         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
13920         * sysdeps/ieee754/flt-32/math_private.h: New file.
13921         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
13922         math_private.h below SET_FLOAT_WORD.
13923         (__isnan, __isinf_ns, __finite): Remove.
13924         (__isnanf, __isinf_nsf, __finitef): Remove.
13926 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
13928         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13930 2012-03-17  David S. Miller  <davem@davemloft.net>
13932         [BZ #6471]
13933         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
13934         for 2.16.
13936 2012-03-16  David S. Miller  <davem@davemloft.net>
13938         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
13939         warnings.
13941         [BZ #6471]
13942         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
13943         properly.
13944         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
13945         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
13946         sysdep_routines when subdir is sysvipc.
13947         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
13948         __getshmlba helper.
13950         * sysdeps/sparc/fpu/libm-test/ulps: Update.
13952 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
13954         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
13955         [__LP64__].
13957 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
13959         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
13960         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
13961         (__lround): Renamed to ...
13962         (__llround): This.  Replace long int with long long int.
13963         Define lround functions as aliases of llround functions.
13964         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
13966 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
13968         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
13969         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
13970         adresses to uintptr_t.  Replace "long int" and "unsigned long
13971         int" with "greg_t" on va_arg.
13973 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
13975         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
13976         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
13978         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
13979         Move e_machine check before EI_CLASS check.  Handle x32
13980         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
13981         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
13982         SKIP_EM_IA_64 and include
13983         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
13985         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
13986         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
13987         (add_system_dir): New macro.
13989         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
13990         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
13992 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
13994         [BZ #2551]
13995         [BZ #2552]
13996         [BZ #2553]
13997         [BZ #2554]
13998         [BZ #2562]
13999         [BZ #2563]
14000         [BZ #2565]
14001         [BZ #2566]
14002         [BZ #2576]
14003         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
14004         (y0): Likewise.
14005         * math/w_j0f.c (j0f): Likewise.
14006         (y0f): Likewise.
14007         * math/w_j0l.c (__j0l): Likewise.
14008         (__y0l): Likewise.
14009         * math/w_j1.c (j1): Likewise.
14010         (y1): Likewise.
14011         * math/w_j1f.c (j1f): Likewise.
14012         (y1f): Likewise.
14013         * math/w_j1l.c (__j1l): Likewise.
14014         (__y1l): Likewise.
14015         * math/w_jn.c (jn): Likewise.
14016         (yn): Likewise.
14017         * math/w_jnf.c (jnf): Likewise.
14018         (ynf): Likewise.
14019         * math/w_jnl.c (__jnl): Likewise.
14020         (__ynl): Likewise.
14021         * math/libm-test.inc (j0_test): Add more tests.
14022         (j1_test): Likewise.
14023         (jn_test): Likewise.  Add trailing semicolon to existing test.
14024         (y0_test): Likewise.
14025         (y1_test): Likewise.
14026         * sysdeps/i386/fpu/libm-test-ulps: Update.
14027         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14029         [BZ #13851]
14030         [BZ #13854]
14031         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
14032         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
14033         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
14034         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
14035         (__tanl): Set errno for infinite argument.
14036         * sysdeps/i386/fpu/mptan.c: Remove.
14037         * sysdeps/i386/fpu/s_tan.S: Likewise.
14038         * sysdeps/i386/fpu/s_tanl.S: Likewise.
14039         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
14040         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
14041         * math/libm-test.inc (tan_test): Add more tests and enable more
14042         tests for double and long double.
14043         * sysdeps/i386/fpu/libm-test-ulps: Update.
14044         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14046 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14048         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
14049         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
14051 2012-03-16  Roland McGrath  <roland@hack.frob.com>
14053         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
14054         * configure.in: Use it for both main tree and add-ons.
14055         * configure: Regenerated.
14057 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
14059         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
14061 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
14063         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
14064         in comment.
14066         [BZ #13851]
14067         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
14068         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
14069         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
14070         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
14071         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
14072         infinite argument.
14073         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
14074         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
14075         != 0 for prec == 2.
14076         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
14077         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
14078         * sysdeps/i386/fpu/s_cosl.S: Likewise.
14079         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
14080         * sysdeps/i386/fpu/s_sinl.S: Likewise.
14081         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
14082         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
14083         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
14084         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
14085         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
14086         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
14087         * math/libm-test.inc (cos_test): Add more tests and enable more
14088         tests for long double.
14089         (sin_test): Likewise.
14090         (sincos_test): Likewise.
14091         * sysdeps/i386/fpu/libm-test-ulps: Update.
14092         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14094 2012-03-16  David S. Miller  <davem@davemloft.net>
14096         * sysdeps/sparc/fpu/math_private.h: New file.
14098 2012-03-15  David S. Miller  <davem@davemloft.net>
14100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
14101         file.
14102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
14103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
14104         file.
14105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
14106         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
14107         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
14108         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
14109         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
14110         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
14111         sysdep routines.
14112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
14114         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
14115         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
14117         * sysdeps/sparc/sparc-ifunc.h: New file.
14118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
14119         sparc-ifunc.h
14120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
14121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
14122         Likewise.
14123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
14124         Likewise.
14125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
14126         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
14127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
14128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
14129         Likewise.
14130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
14131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
14132         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
14133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
14134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
14135         Likewise.
14136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
14137         Likewise.
14138         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
14139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
14140         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
14141         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
14142         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
14143         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
14144         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
14145         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
14146         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
14147         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
14148         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
14149         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
14150         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
14151         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
14152         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
14153         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
14154         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
14155         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
14156         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
14157         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
14158         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
14159         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
14160         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
14161         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
14163 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
14165         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
14166         scaling.
14167         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14169 2012-03-15  Andreas Jaeger  <aj@suse.de>
14171         [BZ #13852]
14172         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
14173         ieee754/flt-32 implementation for sin, cos and sincos.
14174         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
14175         * sysdeps/i386/fpu/s_cosf.S: Likewise.
14176         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
14177         * sysdeps/i386/fpu/s_sinf.S: Likewise.
14178         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
14179         ieee754/flt-32 implementation for tan.
14181         * math/libm-test.inc (cos_test): Enable some large input tests for
14182         float as well
14183         (sin_test): Likewise.
14184         (sincos_test): Likewise.
14185         (tan_test): Add tests for large input.
14187         * sysdeps/i386/fpu/libm-test-ulps: Update.
14189 2012-03-15  Andreas Jaeger  <aj@suse.de>
14191         [BZ #13658]
14192         * math/libm-test.inc (cos_test): Add more test cases.
14193         (sin_test): Likewise.
14194         (sincos_test): Likewise.
14196 2012-03-15  Andreas Jaeger  <aj@suse.de>
14198         [BZ #13837]
14199         * math/libm-test.inc (cos_test): Add a test case for large input
14200         value.
14201         (sin_test): Likewise.
14202         (sincos_test): Likewise.
14204 2012-03-15  Andreas Jaeger  <aj@suse.de>,
14205         Joseph Myers  <joseph@codesourcery.com>
14207         [BZ #13658]
14208         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
14209         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
14210         * sysdeps/i386/fpu/branred.c: Likewise.
14211         * sysdeps/i386/fpu/dosincos.c: Likewise.
14212         * sysdeps/i386/fpu/mpa.c: Likewise.
14213         * sysdeps/i386/fpu/s_cos.S: Likewise.
14214         * sysdeps/i386/fpu/s_sin.S: Likewise.
14215         * sysdeps/i386/fpu/s_sincos.S: Likewise.
14216         * sysdeps/i386/fpu/sincos32.c: Likewise.
14218         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
14219         Define.
14220         (libc_feupdateenv_53bit): Define.
14221         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
14222         Define.
14223         (libc_feupdateenv_53bit): Define.
14225         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
14226         53 bit (without extend i386 double precision).
14228         * math/libm-test.inc (sincos_test): Add tests for large input.
14229         (sin): Likewise.
14230         (cos): Likewise.
14232         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
14234 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
14236         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14238 2012-03-15  David S. Miller  <davem@davemloft.net>
14240         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
14241         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
14242         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
14243         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
14244         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
14245         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
14246         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
14247         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
14248         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
14249         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
14250         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
14251         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
14252         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
14253         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
14254         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
14255         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
14256         file.
14257         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
14258         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
14259         file.
14260         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
14261         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
14262         file.
14263         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
14264         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
14265         file.
14266         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
14267         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
14268         fmin/fmax sysdep routines.
14269         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
14271 2012-03-14  David S. Miller  <davem@davemloft.net>
14273         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
14274         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
14275         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
14276         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
14277         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
14278         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
14279         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
14280         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
14281         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
14282         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
14283         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
14284         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
14285         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
14286         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
14287         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
14288         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
14289         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
14290         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
14291         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
14292         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
14293         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
14294         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
14295         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
14296         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
14297         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
14298         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
14299         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
14300         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
14301         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
14302         routines.
14303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
14304         file.
14305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
14306         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
14307         file.
14308         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
14309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
14310         file.
14311         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
14312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
14313         file.
14314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
14315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
14316         file.
14317         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
14318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
14319         file.
14320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
14321         file.
14322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
14323         file.
14324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
14325         file.
14326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
14327         New file.
14328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
14329         file.
14330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
14331         file.
14332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
14333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
14334         file.
14335         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
14336         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
14337         file.
14338         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
14339         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
14340         file.
14341         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
14342         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
14343         VIS3 routines.
14345         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
14346         New file.
14348         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14350         * sysdeps/sparc/configure.in: New file.
14351         * sysdeps/sparc/configure: Generate.
14352         * configure.in (libc_cv_sparc_as_vis3): Substitute.
14353         * configure: Regenerate.
14354         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
14355         * config.make.in (have-as-vis3): New.
14356         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
14357         available use -Av9d instead of -Av9a.
14358         * sysdeps/sparc/sparc64/Makefile: Likewise.
14359         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
14360         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
14361         New file.
14362         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
14363         file.
14364         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
14365         New file.
14366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
14367         file.
14368         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
14369         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
14370         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
14371         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
14372         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
14374         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
14375         fzeros/fnegs to load 0x80000000 into a float register instead of
14376         using the stack.
14377         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
14379 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
14381         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14382         bits/syscall.h.
14383         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
14384         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
14385         ($(inst_includedir)/bits/syscall.h): Remove rule.
14386         ($(objpfx)bits/syscall.d): Include instead of
14387         $(objpfx)syscall-list.d.
14388         (generated): Change syscall-list.h and syscall-list.d to
14389         bits/syscall.h and bits/syscall.d.
14391 2012-03-14  Roland McGrath  <roland@hack.frob.com>
14393         [BZ #13846]
14394         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
14396 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
14398         [BZ #13841]
14399         * math/s_csqrt.c: Include <float.h>.
14400         (__csqrt): Scale large or subnormal inputs.
14401         * math/s_csqrtf.c: Likewise.
14402         * math/s_csqrtl.c: Likewise.
14403         * math/libm-test.inc (csqrt_test): Add more tests.
14404         * sysdeps/i386/fpu/libm-test-ulps: Update.
14405         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14407         [BZ #13840]
14408         * math/libm-test.inc (hypot_test): Add more tests.
14410 2012-03-13  David S. Miller  <davem@davemloft.net>
14412         [BZ #13840]
14413         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
14414         double-precision for the calculation instead of scaling.
14416 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
14418         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
14419         manipulate bits before adding and subtracting TWO52[sx].
14420         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
14421         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
14422         Likewise.
14423         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
14425 2012-03-13  David S. Miller  <davem@davemloft.net>
14427         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
14428         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
14429         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
14430         rtld-global-offsets.h
14431         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14433         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
14434         large parameters.
14436         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
14438         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
14439         'err' in the ifdef scope in which it is actually used.
14441         * nss/nss_db/db-init.c: Include string.h
14443 2012-03-12  David S. Miller  <davem@davemloft.net>
14445         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
14446         masking out of the most significant byte of random value used.
14447         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
14448         Fix coding style in previous change.
14450         * sysdeps/unix/sysv/linux/kernel-features.h
14451         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
14452         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
14453         expression.
14454         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
14455         later.
14457 2012-03-11  David S. Miller  <davem@davemloft.net>
14459         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
14460         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
14461         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
14462         for 'resultvar' otherwise things get truncated on 64-bit.
14464         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
14465         Fix masking out of the most significant byte of random value used.
14467         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14469 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
14471         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14473 2012-03-09  David S. Miller  <davem@davemloft.net>
14475         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
14476         variables with appropriate CPP guards.
14477         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
14478         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
14479         on resulting framesize and the management of the outregs buffer for pltexit.
14480         Preserve floating point return values across _dl_call_pltexit call.
14481         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
14482         framesize and the management of the outregs buffer for pltexit.
14483         Preserve floating point return values across _dl_call_pltexit
14484         call.
14485         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
14486         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
14487         (print_exit): Fix format string for return register value.
14489 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
14491         * sunrpc/Makefile (others): Add rpcgen.
14492         ($(objpfx)rpcgen): Remove special build rule and dependency on
14493         libc.
14494         * sunrpc/rpcgen.c: New file.
14496 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
14498         [BZ #13673]
14499         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
14500         * stdio-common/bug-vfprintf-nargs.c: Likewise.
14501         * sysdeps/i386/crti.S: Likewise.
14502         * sysdeps/i386/crtn.S: Likewise.
14503         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
14504         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
14505         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
14506         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
14507         * sysdeps/sh/crti.S: Likewise.
14508         * sysdeps/sh/crtn.S: Likewise.
14509         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
14511         [BZ #13673]
14512         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
14513         with URL.
14514         * locale/programs/locfile-kw.gperf: Likewise.
14515         * locale/programs/charmap-kw.h: Regenerated.
14516         * locale/programs/locfile-kw.h: Likewise.
14518         [BZ #13673]
14519         * intl/plural.y: Replace FSF snail mail address with URL.
14520         * intl/plural.c: Regenerated.
14522 2012-03-09  Richard Henderson  <rth@twiddle.net>
14524         * include/math_private.h: Remove file.
14525         * math/math_private.h: Move file ...
14526         * sysdeps/generic/math_private.h: ... here.
14528         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
14529         * sysdeps/powerpc/fpu/math_private.h: Likewise.
14530         * sysdeps/x86_64/fpu/math_private.h: Likewise.
14532         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
14533         and <math_private.h>.
14534         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14535         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14536         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14537         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14538         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14539         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
14540         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14541         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14542         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14543         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14544         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14545         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14546         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14547         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14548         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14549         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14550         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14551         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14552         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14553         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14554         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14555         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14556         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14557         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14558         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
14559         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14560         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14561         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14562         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14563         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14564         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14565         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14566         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
14567         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
14568         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14569         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14570         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14571         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14572         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14573         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14574         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
14575         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14576         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14577         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
14578         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
14579         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14580         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
14581         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
14582         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14583         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14584         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
14585         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
14586         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
14587         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14588         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
14589         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14590         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14591         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
14592         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
14593         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
14594         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14595         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
14596         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14597         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14598         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
14599         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14600         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14601         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14602         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
14603         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
14604         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
14605         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14606         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
14607         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14608         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
14609         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
14610         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
14611         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14612         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
14613         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
14614         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
14615         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
14616         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
14617         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
14618         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
14619         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
14620         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
14621         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
14622         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14623         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14624         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14625         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14626         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14627         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14628         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14629         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14630         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14631         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14632         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14633         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14634         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14635         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14636         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14637         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14638         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14639         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14640         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14641         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14642         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14643         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14644         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14645         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14646         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14647         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14648         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
14649         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14650         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14651         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14652         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14653         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14654         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14655         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14656         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14657         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
14658         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14659         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14660         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14661         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
14662         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14663         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
14664         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
14665         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14666         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14667         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
14668         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
14669         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
14670         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14671         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14672         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
14673         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
14674         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14675         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
14676         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
14677         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
14678         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
14679         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14680         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14681         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14682         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
14683         * sysdeps/ieee754/k_standard.c: Likewise.
14684         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14685         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14686         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14687         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14688         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14689         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14690         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14691         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14692         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14693         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14694         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14695         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14696         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14697         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14698         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14699         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14700         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
14701         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14702         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14703         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
14704         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
14705         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
14706         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14707         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14708         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
14709         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
14710         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14711         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14712         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14713         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14714         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
14715         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14716         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14717         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14718         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
14719         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14720         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14721         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
14722         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
14723         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14724         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
14725         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
14726         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
14727         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14728         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
14729         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
14730         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14731         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14732         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14733         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14734         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14735         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
14736         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14737         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
14738         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14739         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14740         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
14741         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
14742         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14743         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14744         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14745         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
14746         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14747         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14748         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14749         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14750         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14751         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14752         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14753         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14754         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14755         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14756         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14757         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14758         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14759         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14760         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
14761         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14762         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14763         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
14764         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
14765         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
14766         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14767         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14768         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
14769         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
14770         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
14771         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
14772         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
14773         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14774         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
14775         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
14776         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
14777         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
14778         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
14779         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
14780         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
14781         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
14782         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
14783         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
14784         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
14785         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
14786         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14787         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14788         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
14789         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14790         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14791         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
14792         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
14793         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
14794         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14795         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
14796         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14797         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14798         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14799         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14800         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14801         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14802         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14803         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14804         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14805         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14806         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14807         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14808         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14809         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
14810         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
14811         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
14812         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
14813         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14814         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
14815         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
14816         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
14817         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
14818         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
14819         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
14820         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
14821         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
14822         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
14823         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
14824         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
14825         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
14826         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
14827         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
14828         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
14829         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
14830         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
14831         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14832         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14833         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
14834         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
14835         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
14836         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
14837         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
14838         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
14839         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
14840         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
14841         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14842         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
14843         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
14844         * sysdeps/ieee754/s_lib_version.c: Likewise.
14845         * sysdeps/ieee754/s_matherr.c: Likewise.
14846         * sysdeps/ieee754/s_signgam.c: Likewise.
14847         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14848         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14849         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
14850         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
14851         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
14852         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
14853         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
14854         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
14855         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
14856         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
14857         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
14858         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
14859         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
14860         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
14861         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
14862         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
14863         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
14864         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
14865         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
14866         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
14867         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
14869 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
14871         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
14872         * sunrpc/rpc_main.c: Likewise.
14873         * sunrpc/rpc_svcout.c: Likewise.
14875 2012-03-09  David S. Miller  <davem@davemloft.net>
14877         * include/math_private.h: New file.
14879 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
14881         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
14882         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
14883         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
14884         from <bits/socket_type.h>.
14885         (enum __socket_type): Don't define here.
14886         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
14887         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14888         bits/socket_type.h.
14890         [BZ #13566]
14891         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
14892         checking __USE_GNU.
14894         * Makerules ($(inst_includedir)/%.h): New rule.
14895         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
14896         (install-others): Remove variable setting.
14897         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
14899 2012-03-08  Richard Henderson  <rth@twiddle.net>
14901         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
14902         from macro to inline function; merge with the
14903         !__LIBC_INTERNAL_MATH_INLINES version.
14904         (__ieee754_sqrtf): Likewise.
14906         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
14907         to inline function.
14908         (__rintf, __floor, __floorf): Likewise.
14910         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
14911         macro to inline function.
14912         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
14914         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
14915         not <math/math_private.h>.
14917 2012-03-08  David S. Miller  <davem@davemloft.net>
14919         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
14920         copyright year.
14921         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
14923 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
14925         * resolv/gai_misc.c (handle_requests): Fix struct timespec
14926         normalization.
14927         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
14928         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
14930 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
14932         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
14933         be defined individually, they must be defined as a block.  Define
14934         S for printing a string instead of hidint the different by using a
14935         macro for adding the 'l'.
14936         * stdio-common/tst-fphex-wide.c: Adjust.
14938 2012-03-07  Marek Polacek  <polacek@redhat.com>
14940         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
14942 2012-03-08  Marek Polacek  <polacek@redhat.com>
14944         [BZ #13806]
14945         * stdio-common/Makefile (tests): Add tst-fphex-wide.
14946         * stdio-common/tst-fphex.c: Define a few macros to make the
14947         test reusable.  Use them.
14948         * stdio-common/tst-fphex-wide.c: New file.
14950 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
14952         [BZ #6911]
14953         * manual/macros.texi (gnusystems): New macro.
14954         (nongnusystems): Likewise.
14955         (gnulinuxhurdsystems): Likewise.
14956         (gnuhurdsystems): Likewise..
14957         (gnulinuxsystems): Likewise.
14958         * manual/charset.texi: Use new macros or @theglibc{} to refer to
14959         variants of the GNU system, not "GNU system".
14960         * manual/conf.texi: Likewise.
14961         * manual/errno.texi: Likewise.  Update example of errno macro
14962         expansion.
14963         * manual/filesys.texi: Likewise.
14964         (getumask): Document as specific to GNU/Hurd.
14965         * manual/install.texi: Likewise.  Reword some references to
14966         GNU/Linux.
14967         * manual/intro.texi: Likewise.
14968         * manual/io.texi: Likewise.
14969         (File Name Portability): Detail which constraints are inapplicable
14970         to all GNU systems and which are only inapplicable to GNU/Hurd.
14971         * manual/job.texi: Likewise.
14972         * manual/llio.texi: Likewise.
14973         (O_NOCTTY): Document as present on GNU/Linux.
14974         * manual/maint.texi: Likewise.
14975         * manual/memory.texi: Likewise.
14976         * manual/pattern.texi: Likewise.
14977         * manual/pipe.texi: Likewise.
14978         * manual/process.texi: Likewise.
14979         * manual/resource.texi: Likewise.
14980         (RUSAGE_CHILDREN): Remove statement about specifying a particular
14981         child on GNU/Hurd.
14982         * manual/setjmp.texi: Likewise.
14983         * manual/signal.texi: Likewise.
14984         * manual/startup.texi: Likewise.
14985         * manual/stdio.texi: Likewise.
14986         * manual/terminal.texi: Likewise.
14987         (ONLCR): Document as POSIX.
14988         (OXTABS): Document availability on GNU/Linux as XTABS.
14989         (ONOEOT): Document availability separately from other bits.
14990         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
14991         * manual/time.texi: Likewise.
14992         * manual/users.texi: Likewise.
14993         * INSTALL: Regenerated.
14994         * sysdeps/gnu/errlist.c: Regenerated.
14996         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
14997         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
14998         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
14999         puts.
15000         * configure: Regenerated.
15002 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
15004         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
15005         default includes instead of AC_HEADER_CHECK.
15006         * sysdeps/i386/configure: Regenerated.
15008         [BZ #10716]
15009         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
15010         * math/s_cacoshf.c (__cacoshf): Likewise.
15011         * math/s_cacoshl.c (__cacoshl): Likewise.
15012         * math/s_casinh.c (__casinh): Set signs of result from argument.
15013         * math/s_casinhf.c (__casinhf): Likewise.
15014         * math/s_casinhl.c (__casinhl): Likewise.
15015         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
15016         (casinh_test): Add more tests.
15017         * sysdeps/i386/fpu/libm-test-ulps: Update.
15018         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15020 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
15022         * po/zh_TW.po: Update from translation team.
15024         * login/Makefile (distribute): Remove variable.
15025         * catgets/Makefile: Likewise.
15026         * mach/Makefile: Likewise.
15027         * malloc/Makefile: Likewise.
15028         * misc/Makefile: Likewise.
15029         * iconv/Makefile: Likewise.
15030         * nscd/Makefile: Likewise.
15031         * hurd/Makefile: Likewise.
15032         * manual/Makefile: Likewise.
15033         * locale/Makefile: Likewise.
15034         * intl/Makefile: Likewise.
15035         * conform/Makefile: Likewise.
15036         * nss/Makefile: Likewise.
15037         * time/Makefile: Likewise.
15038         * soft-fp/Makefile: Likewise.
15039         * dirent/Makefile: Likewise.
15040         * gmon/Makefile: Likewise.
15041         * po/Makefile: Likewise.
15042         * rt/Makefile: Likewise.
15043         * socket/Makefile: Likewise.
15044         * math/Makefile: Likewise.
15045         * signal/Makefile: Likewise.
15046         * debug/Makefile: Likewise.
15047         * elf/Makefile: Likewise.
15048         * timezone/Makefile: Likewise.
15049         * stdlib/Makefile: Likewise.
15050         * iconvdata/Makefile: Likewise.
15051         * sunrpc/Makefile: Likewise.
15052         * io/Makefile: Likewise.
15053         * argp/Makefile: Likewise.
15054         * inet/Makefile: Likewise.
15055         * hesiod/Makefile: Likewise.
15056         * grp/Makefile: Likewise.
15057         * csu/Makefile: Likewise.
15058         * wctype/Makefile: Likewise.
15059         * crypt/Makefile: Likewise.
15060         * libio/Makefile: Likewise.
15061         * string/Makefile: Likewise.
15062         * nis/Makefile: Likewise.
15063         * resolv/Makefile: Likewise.
15064         * stdio-common/Makefile: Likewise.
15065         * wcsmbs/Makefile: Likewise.
15066         * dlfcn/Makefile: Likewise.
15067         * posix/Makefile: Likewise.
15069         [BZ #6959]
15070         * timezone/Makefile: Don't install timezone files, just the programs
15071         and scripts.
15073 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
15075         * nss/databases.def: Add missing gshadow entry.
15077         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
15079 2012-03-06  Marek Polacek  <polacek@redhat.com>
15081         [BZ #13726]
15082         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
15083         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
15084         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
15085         * stdio-common/tst-long-dbl-fphex.c: New file.
15087 2012-03-06  David S. Miller  <davem@davemloft.net>
15089         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
15090         (set_obp_int): New function.
15091         (get_obp_int): New function.
15092         (__get_clockfreq_via_dev_openprom): Likewise.
15093         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
15094         Avoid unused variable warnings on 'val' and use builtin_expect.
15095         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
15096         __builtin_expect.
15097         (INLINE_CLONE_SYSCALL): Likewise.
15099 2012-03-05  David S. Miller  <davem@davemloft.net>
15101         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15103 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
15105         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15107         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
15108         only for |x| >= 40.
15109         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15111 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
15113         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
15114         Replace gettimeofday with __vdso_gettimeofday.
15116         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15117         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
15118         __vdso_clock_gettime and __vdso_getcpu.
15120         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
15121         time with __vdso_time.
15123 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
15125         * manual/lang.texi (size_t): Note types to which size_t may be
15126         equivalent with the GNU C Library, but do not describe when
15127         differences between them are significant.
15129 2012-03-05  Andreas Jaeger  <aj@suse.de>
15131         * sysdeps/i386/fpu/libm-test-ulps: Update.
15133 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
15135         [BZ #3976]
15136         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
15137         (__ieee754_pow): Save and restore rounding mode and use
15138         round-to-nearest for main computations.
15139         * math/libm-test.inc (pow_test_tonearest): New function.
15140         (pow_test_towardzero): Likewise.
15141         (pow_test_downward): Likewise.
15142         (pow_test_upward): Likewise.
15143         (main): Call the new functions.
15144         * sysdeps/i386/fpu/libm-test-ulps: Update.
15145         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15147         [BZ #3976]
15148         * math/libm-test.inc (cosh_test_tonearest): New function.
15149         (cosh_test_towardzero): Likewise.
15150         (cosh_test_downward): Likewise.
15151         (cosh_test_upward): Likewise.
15152         (sinh_test_tonearest): Likewise.
15153         (sinh_test_towardzero): Likewise.
15154         (sinh_test_downward): Likewise.
15155         (sinh_test_upward): Likewise.
15156         (main): Call the new functions.
15157         * sysdeps/i386/fpu/libm-test-ulps: Update.
15158         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15160 2012-03-05  Tom de Vries  <tom@codesourcery.com>
15162         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
15163         default stack guard is set in last bytes.
15164         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
15166 2012-03-05  Kees Cook  <keescook@chromium.org>
15168         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
15170         [BZ #13656]
15171         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
15172         possibly allocate from heap instead of stack.
15173         * stdio-common/bug-vfprintf-nargs.c: New file.
15174         * stdio-common/Makefile (tests): Add nargs overflow test.
15176 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
15178         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15180 2012-03-03  Marek Polacek  <polacek@redhat.com>
15182         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
15183         * math/math_private.h: Likewise.
15184         * stdlib/tst-strtod.c: Likewise.
15185         * sysdeps/i386/i486/bits/atomic.h: Likewise.
15186         * sysdeps/x86_64/bits/atomic.h: Likewise.
15188 2012-03-02  David S. Miller  <davem@davemloft.net>
15190         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
15191         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
15192         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
15193         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
15194         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
15195         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
15196         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
15197         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
15199 2012-03-02  Roland McGrath  <roland@hack.frob.com>
15201         [BZ #13792]
15202         * manual/examples/README: New file, says the example source files
15203         can be used under GPL>=2.
15204         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
15205         line containing just "*/".
15206         * manual/examples/add.c: Add copyright header (GPL>=2).
15207         * manual/examples/argp-ex1.c: Likewise.
15208         * manual/examples/argp-ex2.c: Likewise.
15209         * manual/examples/argp-ex3.c: Likewise.
15210         * manual/examples/argp-ex4.c: Likewise.
15211         * manual/examples/atexit.c: Likewise.
15212         * manual/examples/db.c: Likewise.
15213         * manual/examples/dir.c: Likewise.
15214         * manual/examples/dir2.c: Likewise.
15215         * manual/examples/execinfo.c: Likewise.
15216         * manual/examples/filecli.c: Likewise.
15217         * manual/examples/filesrv.c: Likewise.
15218         * manual/examples/fmtmsgexpl.c: Likewise.
15219         * manual/examples/genpass.c: Likewise.
15220         * manual/examples/inetcli.c: Likewise.
15221         * manual/examples/inetsrv.c: Likewise.
15222         * manual/examples/isockad.c: Likewise.
15223         * manual/examples/longopt.c: Likewise.
15224         * manual/examples/memopen.c: Likewise.
15225         * manual/examples/memstrm.c: Likewise.
15226         * manual/examples/mkfsock.c: Likewise.
15227         * manual/examples/mkisock.c: Likewise.
15228         * manual/examples/mygetpass.c: Likewise.
15229         * manual/examples/pipe.c: Likewise.
15230         * manual/examples/popen.c: Likewise.
15231         * manual/examples/rprintf.c: Likewise.
15232         * manual/examples/search.c: Likewise.
15233         * manual/examples/select.c: Likewise.
15234         * manual/examples/setjmp.c: Likewise.
15235         * manual/examples/sigh1.c: Likewise.
15236         * manual/examples/sigusr.c: Likewise.
15237         * manual/examples/stpcpy.c: Likewise.
15238         * manual/examples/strdupa.c: Likewise.
15239         * manual/examples/strftim.c: Likewise.
15240         * manual/examples/strncat.c: Likewise.
15241         * manual/examples/subopt.c: Likewise.
15242         * manual/examples/swapcontext.c: Likewise.
15243         * manual/examples/termios.c: Likewise.
15244         * manual/examples/testopt.c: Likewise.
15245         * manual/examples/testpass.c: Likewise.
15246         * manual/examples/timeval_subtract.c: Likewise.
15248         [BZ #13792]
15249         * manual/time.texi (Elapsed Time): Move timeval_subtract example
15250         function to ...
15251         * manual/timeval_subtract.c.texi: ... here, new file.
15253 2012-03-02  David S. Miller  <davem@davemloft.net>
15255         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
15257 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
15259         [BZ #3976]
15260         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
15261         (__sin): Save and restore rounding mode and use round-to-nearest
15262         for all computations.
15263         (__cos): Save and restore rounding mode and use round-to-nearest
15264         for all computations.
15265         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
15266         <fenv.h>.
15267         (tan): Save and restore rounding mode and use round-to-nearest for
15268         all computations.
15269         * math/libm-test.inc (cos_test_tonearest): New function.
15270         (cos_test_towardzero): Likewise.
15271         (cos_test_downward): Likewise.
15272         (cos_test_upward): Likewise.
15273         (sin_test_tonearest): Likewise.
15274         (sin_test_towardzero): Likewise.
15275         (sin_test_downward): Likewise.
15276         (sin_test_upward): Likewise.
15277         (tan_test_tonearest): Likewise.
15278         (tan_test_towardzero): Likewise.
15279         (tan_test_downward): Likewise.
15280         (tan_test_upward): Likewise.
15281         (main): Call the new functions.
15282         * sysdeps/i386/fpu/libm-test-ulps: Update.
15283         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15285         [BZ #10135]
15286         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
15287         small n, then large n, before computing and testing k+n.
15288         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
15289         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
15290         Likewise.
15291         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
15292         Likewise.
15293         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
15294         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
15295         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
15296         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
15297         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
15298         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
15299         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
15300         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
15301         * math/libm-test.inc (scalbn_test): Add more tests.
15302         (scalbln_test): Likewise.
15304         * manual/filesys.texi (mode_t): Describe constraints on size and
15305         signedness, not exact equivalence to a particular type.
15306         (ino_t): Likewise.
15307         (ino64_t): Likewise.
15308         (dev_t): Likewise.
15309         (nlink_t): Likewise.
15310         (blkcnt_t): Likewise.
15311         (blkcnt64_t): Likewise.
15312         * manual/llio.texi (off_t): Likewise.
15314         [BZ #3976]
15315         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
15316         (__ieee754_exp): Save and restore rounding mode and use
15317         round-to-nearest for all computations.
15318         * math/libm-test.inc (exp_test_tonearest): New function.
15319         (exp_test_towardzero): Likewise.
15320         (exp_test_downward): Likewise.
15321         (exp_test_upward): Likewise.
15322         (main): Call the new functions.
15323         * sysdeps/i386/fpu/libm-test-ulps: Update.
15324         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15326 2012-03-01  Chris Demetriou  <cgd@google.com>
15328         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
15329         have predictable order.
15331 2012-03-01  David S. Miller  <davem@davemloft.net>
15333         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
15335         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
15336         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
15337         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
15338         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
15340         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
15341         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
15342         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
15343         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
15344         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
15345         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
15346         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
15347         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
15348         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
15350         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15352         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
15353         * sysdeps/sparc/fpu/libm-test-ulps: to here.
15354         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
15356         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
15357         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
15358         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
15359         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
15360         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
15361         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
15362         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
15363         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
15364         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
15365         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
15366         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
15367         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
15368         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15369         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
15370         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
15371         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15372         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
15373         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
15374         * sysdeps/sparc/elf/configure: Regenerated.
15376 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
15378         * configure.in (AS, LD): Require binutils 2.20 or later.
15379         * configure: Regenerated.
15380         * manual/install.texi (Tools for Compilation): Give binutils 2.20
15381         as required minimum version.
15382         * INSTALL: Regenerated.
15384         [BZ #2541]
15385         [BZ #4108]
15386         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
15387         before squaring exponent.
15388         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
15389         bottom long double and 27 bits of top long double before squaring
15390         exponent.
15391         * math/libm-test.inc (erfc_test): Add more tests.
15392         * sysdeps/i386/fpu/libm-test-ulps: Update.
15393         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
15394         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15396 2012-03-01  Kai Tietz  <ktietz@redhat.com>
15398         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
15399         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
15400         containing bit-fields.
15401         * soft-fp/extended.h (_FP_UNION_E): Likewise.
15402         * soft-fp/single.h (_FP_UNION_S): Likewise.
15403         * soft-fp/double.h (_FP_UNION_D): Likewise.
15405 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
15407         [BZ #13786]
15408         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
15409         not include ../strcmp.S.
15410         [USE_AS_STRNCASECMP_L]: Likewise.
15411         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
15412         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
15413         * sysdeps/i386/i686/multiarch/strncase_l-c.c
15414         (__strncasecmp_l_ia32): Define as alias to
15415         __strncasecmp_l_nonascii.
15417         [BZ #5794]
15418         * math/libm-test.inc (expm1_test): Add test for bug 5794.
15419         * sysdeps/i386/fpu/libm-test-ulps: Update.
15420         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15422         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
15423         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15425 2012-02-29  Jeff Law  <law@redhat.com>
15427         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
15428         out of bounds read.
15430 2012-02-29  Marek Polacek  <polacek@redhat.com>
15432         [BZ #13706]
15433         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
15434         * elf/Makefile: Add rules to run tst-unused-dep.out.
15436 2012-02-28  David S. Miller  <davem@davemloft.net>
15438         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
15439         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
15440         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
15441         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
15442         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
15443         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
15445 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
15447         * math/libm-test.inc (llround_test): Move one test from
15448         lround_test.  Use TEST_f_L in moved test.
15449         (lround_test): Move misplaced test to llround_test.  Add testcase
15450         from bug 2561.
15452 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
15454         * sysdeps/x86_64/fpu/e_expf.S: New file.
15455         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
15457 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
15459         [BZ #13637]
15460         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
15461         of remain_len that may cause incomplete multi-byte character and
15462         false match.
15463         * posix/bug-regex33.c: New file.
15464         * posix/Makefile (tests): Add bug-regex33.
15466 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
15468         * manual/macros.texi: New file.
15469         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
15470         * manual/libc.texinfo: Include macros.texi.
15471         * manual/creatute.texi: Likewise.
15472         * manual/install.texi: Likewise.
15473         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
15474         @glibcadj{} in references to the GNU C Library.
15475         * manual/charset.texi: Likewise.
15476         * manual/conf.texi: Likewise.
15477         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
15478         when not using those macros.
15479         * manual/creature.texi: Likewise.
15480         * manual/crypt.texi: Likewise.
15481         * manual/errno.texi: Likewise.
15482         * manual/filesys.texi: Likewise.
15483         * manual/header.texi: Likewise.
15484         * manual/install.texi: Likewise.
15485         * manual/intro.texi: Likewise.
15486         * manual/io.texi: Likewise.
15487         * manual/job.texi: Likewise.
15488         * manual/lang.texi: Likewise.
15489         * manual/libc.texiinfo: Likewise.
15490         * manual/llio.texi: Likewise.
15491         * manual/locale.texi: Likewise.
15492         * manual/maint.texi: Likewise.
15493         * manual/math.texi: Likewise.
15494         * manual/memory.texi: Likewise.
15495         * manual/message.texi: Likewise.
15496         * manual/nss.texi: Likewise.
15497         * manual/pattern.texi: Likewise.
15498         * manual/process.texi: Likewise.
15499         * manual/resource.texi: Likewise.
15500         * manual/search.texi: Likewise.
15501         * manual/setjmp.texi: Likewise.
15502         * manual/signal.texi: Likewise.
15503         * manual/socket.texi: Likewise.
15504         * manual/startup.texi: Likewise.
15505         * manual/stdio.texi: Likewise.
15506         * manual/string.texi: Likewise.
15507         * manual/sysinfo.texi: Likewise.
15508         * manual/syslog.texi: Likewise.
15509         * manual/terminal.texi: Likewise.
15510         * manual/time.texi: Likewise.
15511         * manual/users.texi: Likewise.
15512         * INSTALL: Regenerated.
15513         * NOTES: Regenerated.
15514         * sysdeps/gnu/errlist.c: Regenerated.
15516 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
15518         * include/dirent.h: Include <dirstream.h> before
15519         <dirent/dirent.h>.
15521 2012-02-28  David S. Miller  <davem@davemloft.net>
15523         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
15524         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
15525         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
15526         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
15528 2012-02-27  David S. Miller  <davem@davemloft.net>
15530         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
15531         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
15532         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
15533         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
15535         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
15536         frame pointer instead of stack pointer relative arg slot.
15537         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
15538         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
15539         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
15541 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
15543         [BZ #3992]
15544         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
15546 2012-02-27  David S. Miller  <davem@davemloft.net>
15548         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
15549         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
15550         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
15551         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
15552         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
15553         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
15554         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
15555         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
15557 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
15559         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
15560         later.  Allow versions 5-9.
15561         * configure: Regenerated.
15562         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
15563         required minimum version and 4.6 as recommended version.  Do not
15564         mention bugs in GCC 2.7 and 2.8.
15565         * INSTALL: Regenerated.
15567 2012-02-27  David S. Miller  <davem@davemloft.net>
15569         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
15570         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
15571         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
15572         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
15573         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
15574         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
15575         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
15576         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
15578         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
15579         manipulate bits before adding and subtracting TWO112[sx].
15580         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
15582 2012-02-27  Roland McGrath  <roland@hack.frob.com>
15584         [BZ #13775]
15585         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
15586         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
15587         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
15588         being in POSIX, because they are in 1003.1-2008.
15590         * rt/tst-aio.c: Include <fcntl.h>.
15591         * rt/tst-aio7.c: Likewise.
15592         * rt/tst-aio64.c: Likewise.
15594         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
15596 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
15598         * manual/install.texi (--with-headers): Describe headers as
15599         interface headers, not private headers.
15600         (Specific advice for GNU/Linux systems): Describe use of headers
15601         from "make headers_install", not private headers from older
15602         kernels.
15603         * INSTALL: Regenerated.
15604         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
15605         Change to 2.6.19.
15606         * sysdeps/unix/sysv/linux/configure: Regenerated.
15608         * manual/llio.texi (fclean): Remove documentation.
15610         * manual/Makefile (libc-texi-generated): New variable.  Include
15611         version.texi.
15612         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
15613         $(libc-texi-generated), not duplicated list of files.
15614         (version.texi, stamp-version): New rules.
15615         (realclean): Remove $(libc-texi-generated), not individual files
15616         from that list.  Do not remove dir-add.texinfo.
15617         * manual/libc.texinfo: Comment out uses of edition numbers and
15618         references to printed manual.  Remove last-updated dates.
15619         (EDITION): Comment out.
15620         (ISBN): Likewise.
15621         (VERSION, UPDATED): Remove.
15622         (version.texi): Include.
15624 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
15626         * sysdeps/posix/spawni.c: Include <signal.h>.
15627         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
15628         * sysdeps/pthread/aio_fsync.c: Likewise.
15630 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
15632         * conform/Makefile (tests): Run only when not cross-compiling and
15633         when fast-check is not defined.
15635         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
15636         * conform/data/limits.h-data: Fixes for POSIX2008.
15637         * conform/run-conformtest.sh: Run all tests.
15638         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
15639         headers.
15640         * include/bits/dlfcn.h: Likewise.
15641         * include/langinfo.h: Likewise.
15642         * include/monetary.h: Likewise.
15643         * include/sys/poll.h: Likewise.
15645         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
15646         for __USE_GNU.
15647         * posix/spawn.h: Define __need_sigset_t.
15648         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
15649         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
15650         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
15651         to get sigevent_t only.
15652         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
15653         only for __USE_GNU.
15654         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15655         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
15656         process_vm_writev only for __USE_GNU.
15657         * termios/termios.h: Declare tcgetsid also for POSIX2008.
15659         * conform/Makefile: For now ignore errors from run-conformtest.
15660         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
15661         POSIX to avoid namespace pollution.  Don't prepend headers.
15662         * conform/data/aio.h-data: Fixes for POSIX testing.
15663         * conform/data/fcntl.h-data: Likewise.
15664         * conform/data/glob.h-data: Likewise.
15665         * conform/data/grp.h-data: Likewise.
15666         * conform/data/pthread.h-data: Likewise.
15667         * conform/data/pwd.h-data: Likewise.
15668         * conform/data/signal.h-data: Likewise.
15669         * conform/data/spawn.h-data: Likewise.
15670         * conform/data/stdio.h-data: Likewise.
15671         * conform/data/stdlib.h-data: Likewise.
15672         * conform/data/stropts.h-data: Likewise.
15673         * conform/data/sys/mman.h-data: Likewise.
15674         * conform/data/sys/stat.h-data: Likewise.
15675         * conform/data/sys/types.h-data: Likewise.
15676         * conform/data/sys/wait.h-data: Likewise.
15677         * conform/data/time.h-data: Likewise.
15678         * conform/data/unistd.h-data: Likewise.
15679         * conform/data/utime.h-data: Likewise.
15681         * io/sys/stat.h: fchmod was always in POSIX.
15682         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
15683         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
15684         * rt/aio.h: Define __need_timespec before including <time.h>.
15685         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
15686         struct.  Add forward declaration of pthread_attr_t and use it in
15687         sigevent.
15688         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
15689         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
15690         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
15691         always remove CLK_TCK definition.
15693 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
15695         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
15697 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
15699         * conform/run-conformtest.sh: New file.
15700         * conform/Makefile: Run run-conformtest for tests.
15701         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
15702         support.
15704         * conform/data/uchar.h-data: New file.
15705         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
15706         * conform/data/arpa/inet.h-data: Likewise.
15707         * conform/data/assert.h-data: Likewise.
15708         * conform/data/complex.h-data: Likewise.
15709         * conform/data/cpio.h-data: Likewise.
15710         * conform/data/ctype.h-data: Likewise.
15711         * conform/data/dirent.h-data: Likewise.
15712         * conform/data/dlfcn.h-data: Likewise.
15713         * conform/data/errno.h-data: Likewise.
15714         * conform/data/fcntl.h-data: Likewise.
15715         * conform/data/float.h-data: Likewise.
15716         * conform/data/fmtmsg.h-data: Likewise.
15717         * conform/data/fnmatch.h-data: Likewise.
15718         * conform/data/ftw.h-data: Likewise.
15719         * conform/data/glob.h-data: Likewise.
15720         * conform/data/grp.h-data: Likewise.
15721         * conform/data/iconv.h-data: Likewise.
15722         * conform/data/inttypes.h-data: Likewise.
15723         * conform/data/langinfo.h-data: Likewise.
15724         * conform/data/libgen.h-data: Likewise.
15725         * conform/data/limits.h-data: Likewise.
15726         * conform/data/locale.h-data: Likewise.
15727         * conform/data/math.h-data: Likewise.
15728         * conform/data/monetary.h-data: Likewise.
15729         * conform/data/mqueue.h-data: Likewise.
15730         * conform/data/ndbm.h-data: Likewise.
15731         * conform/data/net/if.h-data: Likewise.
15732         * conform/data/netdb.h-data: Likewise.
15733         * conform/data/netinet/in.h-data: Likewise.
15734         * conform/data/nl_types.h-data: Likewise.
15735         * conform/data/poll.h-data: Likewise.
15736         * conform/data/pthread.h-data: Likewise.
15737         * conform/data/pwd.h-data: Likewise.
15738         * conform/data/regex.h-data: Likewise.
15739         * conform/data/sched.h-data: Likewise.
15740         * conform/data/search.h-data: Likewise.
15741         * conform/data/semaphore.h-data: Likewise.
15742         * conform/data/setjmp.h-data: Likewise.
15743         * conform/data/signal.h-data: Likewise.
15744         * conform/data/spawn.h-data: Likewise.
15745         * conform/data/stdarg.h-data: Likewise.
15746         * conform/data/stdio.h-data: Likewise.
15747         * conform/data/stdlib.h-data: Likewise.
15748         * conform/data/string.h-data: Likewise.
15749         * conform/data/strings.h-data: Likewise.
15750         * conform/data/stropts.h-data: Likewise.
15751         * conform/data/sys/ipc.h-data: Likewise.
15752         * conform/data/sys/mman.h-data: Likewise.
15753         * conform/data/sys/msg.h-data: Likewise.
15754         * conform/data/sys/resource.h-data: Likewise.
15755         * conform/data/sys/select.h-data: Likewise.
15756         * conform/data/sys/sem.h-data: Likewise.
15757         * conform/data/sys/shm.h-data: Likewise.
15758         * conform/data/sys/socket.h-data: Likewise.
15759         * conform/data/sys/stat.h-data: Likewise.
15760         * conform/data/sys/statvfs.h-data: Likewise.
15761         * conform/data/sys/time.h-data: Likewise.
15762         * conform/data/sys/timeb.h-data: Likewise.
15763         * conform/data/sys/times.h-data: Likewise.
15764         * conform/data/sys/types.h-data: Likewise.
15765         * conform/data/sys/uio.h-data: Likewise.
15766         * conform/data/sys/un.h-data: Likewise.
15767         * conform/data/sys/utsname.h-data: Likewise.
15768         * conform/data/sys/wait.h-data: Likewise.
15769         * conform/data/syslog.h-data: Likewise.
15770         * conform/data/tar.h-data: Likewise.
15771         * conform/data/termios.h-data: Likewise.
15772         * conform/data/utime.h-data: Likewise.
15773         * conform/data/utmpx.h-data: Likewise.
15774         * conform/data/varargs.h-data: Likewise.
15775         * conform/data/wchar.h-data: Likewise.
15776         * conform/data/wctype.h-data: Likewise.
15777         * conform/data/wordexp.h-data: Likewise.
15779         * include/stropts.h: New file.
15780         * include/uchar.h: New file.
15781         * include/aio.h: Changes to allow conformtest.pl to use the headers.
15782         * include/assert.h: Likewise.
15783         * include/ctype.h: Likewise.
15784         * include/dirent.h: Likewise.
15785         * include/dlfcn.h: Likewise.
15786         * include/fcntl.h: Likewise.
15787         * include/fnmatch.h: Likewise.
15788         * include/glob.h: Likewise.
15789         * include/grp.h: Likewise.
15790         * include/libio.h: Likewise.
15791         * include/locale.h: Likewise.
15792         * include/math.h: Likewise.
15793         * include/net/if.h: Likewise.
15794         * include/netdb.h: Likewise.
15795         * include/netinet/in.h: Likewise.
15796         * include/pthread.h: Likewise.
15797         * include/pwd.h: Likewise.
15798         * include/regex.h: Likewise.
15799         * include/sched.h: Likewise.
15800         * include/search.h: Likewise.
15801         * include/setjmp.h: Likewise.
15802         * include/signal.h: Likewise.
15803         * include/stdio.h: Likewise.
15804         * include/stdlib.h: Likewise.
15805         * include/string.h: Likewise.
15806         * include/sys/cdefs.h: Likewise.
15807         * include/sys/mman.h: Likewise.
15808         * include/sys/msg.h: Likewise.
15809         * include/sys/resource.h: Likewise.
15810         * include/sys/select.h: Likewise.
15811         * include/sys/socket.h: Likewise.
15812         * include/sys/stat.h: Likewise.
15813         * include/sys/statvfs.h: Likewise.
15814         * include/sys/time.h: Likewise.
15815         * include/sys/times.h: Likewise.
15816         * include/sys/uio.h: Likewise.
15817         * include/sys/utsname.h: Likewise.
15818         * include/sys/wait.h: Likewise.
15819         * include/termios.h: Likewise.
15820         * include/time.h: Likewise.
15821         * include/ulimit.h: Likewise.
15822         * include/unistd.h: Likewise.
15823         * include/utime.h: Likewise.
15824         * include/wchar.h: Likewise.
15825         * include/wctype.h: Likewise.
15826         * include/wordexp.h: Likewise.
15828         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
15830         * time/time.h: TIME_UTC must be a macro.
15831         Make timespec_get available for ISO C11 only as well.
15833 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
15835         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
15836         Reported by Peng Haitao <penght@cn.fujitsu.com>.
15838 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
15840         * configure.in: Use -o not -a in test for unsupported multi-arch.
15842 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
15844         * manual/texinfo.tex: Update to version 2012-01-19.16.
15846 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
15848         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
15850 2012-02-24  Roland McGrath  <roland@hack.frob.com>
15852         [BZ #13738]
15853         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
15854         * manual/fdl-1.3.texi: New file.
15855         * manual/fdl-1.1.texi: File removed.
15857         [BZ #13738]
15858         * manual/libc.texinfo (FDL_VERSION): New @set.
15859         Use it for mention of FDL in cover text.
15860         (Documentation License): Use it in @include file name.
15862 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
15863             Roland McGrath  <roland@hack.frob.com>
15865         [BZ #5461]
15866         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
15867         not LONG_LONG_MAX and LONG_LONG_MIN.
15868         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
15869         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
15870         name.
15871         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
15873 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
15875         [BZ #2547]
15876         [BZ #11365]
15877         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
15878         manipulate bits before adding and subtracting TWO23[sx].
15879         * math/libm-test.inc (nearbyint_test): Add more tests.
15881 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
15883         [BZ #2548]
15884         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
15885         bits before adding and subtracting TWO23[sx].
15886         * math/libm-test.inc (rint_test): Add more tests.
15887         (rint_test_tonearest): Likewise.
15888         (rint_test_towardzero): Likewise.
15889         (rint_test_downward): Likewise.
15890         (rint_test_upward: Likewise.
15892 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
15894         [BZ #10110]
15895         * include/stdc-predef.h: New file.  Extracted from features.h.
15896         * include/features.h: Include stdc-predef.h.
15897         * Makefile (headers): Add stdc-predef.h.
15898         * CONFORMANCE (Compiler limitations): Update.
15900 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
15902         * manual/libc.texinfo (VERSION, UPDATED): Revert.
15904 2012-02-21  David S. Miller  <davem@davemloft.net>
15906         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
15907         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
15909 2012-02-20  David S. Miller  <davem@davemloft.net>
15911         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
15912         using a normal save/restore sequence, rather than allocating a
15913         dummy stack frame just to store a frame pointer and restore.
15914         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
15916 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
15918         * manual/install.texi: Fix stray word in line-wrapped comment.
15920 2012-02-20  David S. Miller  <davem@davemloft.net>
15922         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
15923         both binutils and gcc support GOTDATA.
15925         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
15926         "rd %pc" in the PIC register setup sequences.
15928         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
15929         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
15930         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
15931         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
15932         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
15933         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
15934         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15935         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
15936         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
15937         (SYSCALL_ERROR_HANDLER): Likewise.
15938         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
15939         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
15940         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
15941         (SYSCALL_ERROR_HANDLER): Likewise.
15943         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
15944         (HAVE_GCC_GOTDATA): New.
15945         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
15946         relocation support in both binutils and gcc.
15947         * sysdeps/sparc/elf/configure: Regenerate.
15949         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
15950         * sysdeps/sparc/sparc32/elf/configure: Delete.
15951         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
15952         * sysdeps/sparc/sparc64/elf/configure: Delete.
15953         * sysdeps/sparc/elf/configure.in: New file.
15954         * sysdeps/sparc/elf/configure: Generate.
15956         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
15957         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
15958         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
15959         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
15960         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
15962 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
15964         * manual/install.texi: Do not mention specific glibc version
15965         numbers.
15966         * manual/libc.texinfo (VERSION, UPDATED): Update.
15967         (@copying): Use @copyright{} and range of years.
15969 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
15971         [BZ #13695]
15972         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
15973         [crti.S not in sysdirs] (generated): Do not append.
15974         [crti.S not in sysdirs] (omit-deps): Likewise.
15975         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
15976         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
15977         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
15978         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
15979         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
15980         Likewise.
15981         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
15982         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
15983         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
15984         * csu/defs.awk: Remove file.
15985         * sysdeps/generic/initfini.c: Likewise.
15986         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
15987         variable.
15988         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
15989         Likewise.
15991 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
15993         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
15994         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
15995         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
15996         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
15997         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15998         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
15999         <bits/epoll.h>.
16000         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
16001         (__EPOLL_PACKED): Define to empty if not defined by
16002         <bits/epoll.h>.
16003         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
16004         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16005         bits/epoll.h.
16007 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
16009         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
16010         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
16011         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
16012         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
16013         <bits/timerfd.h>.
16014         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
16015         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16016         bits/timerfd.h.
16018 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
16020         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
16021         in C locale.
16022         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
16023         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
16024         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
16025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16027 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
16029         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16030         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
16032 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
16034         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
16035         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
16036         defined.
16037         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
16038         Likewise.
16039         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
16040         entry for 2.16.
16042 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
16044         * math/w_acos.c: Use non-signaling floating-point comparisons.
16045         * math/w_acosf.c: Likewise.
16046         * math/w_acosh.c: Likewise.
16047         * math/w_acoshf.c: Likewise.
16048         * math/w_acoshl.c: Likewise.
16049         * math/w_acosl.c: Likewise.
16050         * math/w_asin.c: Likewise.
16051         * math/w_asinf.c: Likewise.
16052         * math/w_asinl.c: Likewise.
16053         * math/w_atanh.c: Likewise.
16054         * math/w_atanhf.c: Likewise.
16055         * math/w_atanhl.c: Likewise.
16056         * math/w_exp2.c: Likewise.
16057         * math/w_exp2f.c: Likewise.
16058         * math/w_exp2l.c: Likewise.
16059         * math/w_j0.c: Likewise.
16060         * math/w_j0f.c: Likewise.
16061         * math/w_j0l.c: Likewise.
16062         * math/w_j1.c: Likewise.
16063         * math/w_j1f.c: Likewise.
16064         * math/w_j1l.c: Likewise.
16065         * math/w_jn.c: Likewise.
16066         * math/w_jnf.c: Likewise.
16067         * math/w_log.c: Likewise.
16068         * math/w_log10.c: Likewise.
16069         * math/w_log10f.c: Likewise.
16070         * math/w_log10l.c: Likewise.
16071         * math/w_log2.c: Likewise.
16072         * math/w_log2f.c: Likewise.
16073         * math/w_log2l.c: Likewise.
16074         * math/w_logf.c: Likewise.
16075         * math/w_logl.c: Likewise.
16076         * math/w_sqrt.c: Likewise.
16077         * math/w_sqrtf.c: Likewise.
16078         * math/w_sqrtl.c: Likewise.
16079         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16080         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
16081         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16082         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16083         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16085 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
16087         [BZ #9739]
16088         * manual/string.texi (strnlen): Use correct parameter name in
16089         equivalent expression.
16091 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
16093         [BZ #11174]
16094         * manual/users.texi (seteuid): Consistently use neweuid for
16095         argument name.
16097 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
16099         [BZ #13704]
16100         * manual/nss.texi (Services in the NSS configuration): Correct
16101         list of services in example configuration file.
16103 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
16105         [BZ #11322]
16106         * manual/arith.texi: Remove statements about negative zero
16107         behaving identically to zero.
16109 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
16111         [BZ #5993]
16112         * manual/install.texi: Do not document upgrading from libc5.
16114 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
16116         [BZ #4596]
16117         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
16119 2012-02-18  David S. Miller  <davem@davemloft.net>
16121         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
16122         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
16123         %o7 across the call.
16124         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
16125         instead.
16126         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
16127         SETUP_PIC_REG_LEAF.
16128         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16129         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
16130         * sysdeps/sparc/crtn.S: Likewise.
16132 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
16134         * aout/Makefile: Remove.
16136 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
16138         [BZ #13058]
16139         * manual/examples/argp-ex1.c (main): Format definition in GNU
16140         style.
16141         * manual/examples/argp-ex2.c (main): Likewise.
16142         * manual/examples/argp-ex3.c (main): Likewise.
16143         * manual/examples/argp-ex4.c (main): Likewise.
16144         * manual/examples/longopt.c (main): Use new-style prototype
16145         definition.
16146         * manual/examples/strncat.c (main): Specify return type and use
16147         (void) for arguments.
16148         * manual/examples/subopt.c (main): Use char **argv argument.
16150 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
16152         [BZ #5077]
16153         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
16154         rounding modes.
16156 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
16158         [BZ #6907]
16159         * manual/string.texi (strchr): Change when strchrnul is
16160         recommended.
16162 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
16164         [BZ #174]
16165         * manual/locale.texi (setlocale): Document LOCPATH.
16167 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
16169         [BZ #10210]
16170         * manual/process.texi (execle): Move @dots{} before last argument.
16172 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
16174         [BZ #12047]
16175         * manual/charset.texi (Generic Charset Conversion): Fix typo
16176         (LC_TYPE -> LC_CTYPE).
16178 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
16180         [BZ #5805]
16181         * manual/arith.texi (scalbn): Use @var{} on parameter names.
16182         (scalbnf): Likewise.
16183         (scalbnl): Likewise.
16184         (scalbln): Likewise.
16185         (scalblnf): Likewise.
16186         (scalblnl): Likewise.
16187         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
16188         (vwarnx): Likewise.
16189         (verr): Likewise.
16190         (verrx): Likewise.
16191         * manual/filesys.texi (telldir): Use braces around return type.
16192         * manual/llio.texi (mmap): Add space after comma.
16193         (mmap64): Likewise.
16194         * manual/math.texi (jn): Use @var{} on parameter names.
16195         (jnf): Likewise.
16196         (jnl): Likewise.
16197         (yn): Likewise.
16198         (ynf): Likewise.
16199         (ynl): Likewise.
16200         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
16201         line.
16202         * manual/resource.texi (ulimit): Use @dots{} instead of literal
16203         "...".
16204         (sched_get_priority_min): Remove semicolon on @deftypefun line.
16205         (sched_get_priority_max): Likewise.
16206         * manual/signal.texi (sigvec): Add space after comma.
16207         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
16208         names.
16209         (if_indextoname): Likewise.
16210         (if_freenameindex): Likewise.
16211         (sendto): Use ',' instead of '.' in prototype.
16212         * manual/startup.texi (syscall): Use @dots{} instead of literal
16213         "...".
16214         * manual/stdio.texi (__fpending): Separate initial words of
16215         paragraph from @deftypefun line.
16216         * manual/syslog.texi (syslog): Use @dots{} instead of literal
16217         "...".
16218         (vsyslog): Use @var{} on parameter names.
16219         * manual/terminal.texi (stty): Use @var{} on parameter names.
16220         * manual/users.texi (getutmp): Use @var{} on parameter names.
16221         (getutmpx): Likewise.
16223 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
16225         [BZ #6884]
16226         * manual/stdio.texi (fopen): Fix typos in description of
16227         ",ccs=STRING".
16229 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
16231         [BZ #4026]
16232         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
16233         get clock_id definition.
16235 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
16237         [BZ #4822]
16238         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
16239         (madvise): Cast every argument to void on its own.
16241 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
16243         [BZ #9902]
16244         * manual/startup.texi (Exit Status): Fix typo.
16246 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
16248         [BZ #10140]
16249         * manual/examples/argp-ex1.c: Include <stdlib.h>.
16250         * manual/examples/argp-ex2.c: Likewise.
16251         * manual/examples/argp-ex3.c: Likewise.
16253 2012-02-16  Richard Henderson  <rth@redhat.com>
16255         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
16256         * sysdeps/s390/s390-32/initfini.c: Remove.
16257         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
16258         * sysdeps/s390/s390-64/initfini.c: Remove.
16260 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
16262         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
16263         compiler output for sysdeps/generic/initfini.c.
16264         * sysdeps/sh/elf/initfini.c: Remove file.
16266 2012-02-16  David S. Miller  <davem@davemloft.net>
16268         [BZ #11494]
16269         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
16271         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
16272         * sysdeps/sparc/crti.S: New file.
16273         * sysdeps/sparc/crtn.S: New file.
16274         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
16275         * sysdeps/sparc/sparc64/Makefile: Likewise.
16277 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
16279         [BZ #3335]
16280         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
16282 2012-02-15  Roland McGrath  <roland@hack.frob.com>
16284         [BZ #4822]
16285         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
16287         * mach/devstream.c (cookie_io_functions_t): Macro removed.
16288         (write, read, close): Likewise.
16289         Patch by Aurelien Jarno <aurelien@aurel32.net>.
16291 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
16293         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
16294         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
16295         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
16296         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
16297         <bits/signalfd.h>.
16298         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
16299         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16300         bits/signalfd.h.
16302 2012-02-14  Marek Polacek  <polacek@redhat.com>
16304         * sysdeps/x86_64/crti.S: New file.
16305         * sysdeps/x86_64/crtn.S: New file.
16306         * sysdeps/x86_64/elf/initfini.c: Remove file.
16308 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
16310         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
16311         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
16312         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
16313         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
16314         <bits/inotify.h>.
16315         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
16316         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16317         bits/inotify.h.
16319 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
16321         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
16322         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
16323         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
16324         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
16325         <bits/eventfd.h>.
16326         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
16327         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16328         bits/eventfd.h.
16330 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
16332         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
16333         __feraiseexcept instead of feraiseexcept.
16335         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
16336         nanosleep invocations.
16337         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
16338         strings, and add error checking for a nanosleep invocations.
16340 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
16342         Replace FSF snail mail address with URLs, as per GNU coding standards.
16343         Most of the snail mail addresses were wrong anyway, and omitting
16344         them makes the source code easier to maintain.  Almost all of the
16345         changes are to license notices and to locale LC_IDENTIFICATION
16346         addresses, except for this one:
16347         * manual/libc.texinfo: In "Published by", give the FSF's URL,
16348         not its snail mail address.
16350 2012-02-09  Richard Henderson  <rth@twiddle.net>
16352         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
16353         of kernel-features.h.
16355         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
16357 2012-02-08  Marek Polacek  <polacek@redhat.com>
16359         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
16360         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
16361         * sysdeps/gnu/_G_config.h: Likewise.
16362         * sysdeps/generic/_G_config.h: Likewise.
16364 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
16366         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
16367         tests.
16368         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16370         * sysdeps/powerpc/powerpc32/crti.S: New file.
16371         * sysdeps/powerpc/powerpc32/crtn.S: New file.
16372         * sysdeps/powerpc/powerpc64/crti.S: New file.
16373         * sysdeps/powerpc/powerpc64/crtn.S: New file.
16375         * Makeconfig (have-initfini): Don't set.
16376         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
16377         * configure.in (nopic_initfini): Don't substitute.
16378         * config.h.in (HAVE_INITFINI): Don't #undef.
16379         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
16380         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
16382 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
16384         Support crti.S and crtn.S provided directly by architectures.
16385         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
16386         [crti.S in sysdirs] (omit-deps): Likewise.
16387         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
16388         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
16389         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
16390         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
16391         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
16392         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
16393         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
16394         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
16395         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
16396         compiler output for sysdeps/generic/initfini.c.
16397         * sysdeps/i386/elf/Makefile: Remove file.
16398         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
16400 2012-02-07  Marek Polacek  <polacek@redhat.com>
16402         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
16403         * sysdeps/gnu/_G_config.h: Likewise.
16404         * sysdeps/mach/hurd/_G_config.h: Likewise.
16406 2012-02-07  Marek Polacek  <polacek@redhat.com>
16408         * math/Makefile (tests): Add tst-CMPLX2.
16409         * math/tst-CMPLX2.c: New file.
16411 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
16413         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16415         * math/libm-test.inc (jn_test): Add missing L suffix.
16417 2012-02-06  Marek Polacek  <polacek@redhat.com>
16419         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
16420         * sysdeps/i386/fpu/e_powf.S: Likewise.
16421         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
16422         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
16423         * sysdeps/i386/fpu/e_acosh.S: Likewise.
16424         * sysdeps/i386/fpu/e_pow.S: Likewise.
16425         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
16426         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
16427         * sysdeps/i386/fpu/s_expm1.S: Likewise.
16428         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
16429         * sysdeps/i386/fpu/e_log2.S: Likewise.
16430         * sysdeps/i386/fpu/e_log2l.S: Likewise.
16431         * sysdeps/i386/fpu/e_scalb.S: Likewise.
16432         * sysdeps/i386/fpu/e_powl.S: Likewise.
16433         * sysdeps/i386/fpu/s_log1p.S: Likewise.
16434         * sysdeps/i386/fpu/e_log10f.S: Likewise.
16435         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
16436         * sysdeps/i386/fpu/e_logl.S: Likewise.
16437         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
16438         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
16439         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
16440         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
16441         * sysdeps/i386/fpu/e_log2f.S: Likewise.
16442         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
16443         * sysdeps/i386/fpu/e_log.S: Likewise.
16444         * sysdeps/i386/fpu/s_cexp.S: Likewise.
16445         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
16446         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
16447         * sysdeps/i386/fpu/e_logf.S: Likewise.
16448         * sysdeps/i386/fpu/e_log10l.S: Likewise.
16449         * sysdeps/i386/fpu/e_atanh.S: Likewise.
16450         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
16451         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
16452         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
16453         * sysdeps/i386/fpu/e_log10.S: Likewise.
16454         * sysdeps/i386/fpu/s_frexp.S: Likewise.
16455         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
16456         * sysdeps/i386/fpu/s_asinh.S: Likewise.
16457         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
16458         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
16459         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
16460         * sysdeps/i386/asm-syntax.h: Likewise.
16461         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16462         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16463         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16464         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
16465         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
16466         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16467         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
16468         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
16469         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16470         * sysdeps/powerpc/sysdep.h: Likewise.
16471         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
16472         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
16474 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
16476         [BZ #411]
16477         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
16479 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
16481         * sysdeps/i386/sysdep.h: Include <features.h>.
16482         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
16483         version.
16485 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
16487         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
16488         Define.
16489         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
16490         LOAD_PIC_REG_STR.
16492 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
16494         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
16495         (SETUP_PIC_REG): Use GET_PC_THUNK.
16496         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
16497         macro.
16499 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
16501         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
16502         for non-PIC compilation.
16503         (SETUP_PIC_REG): Add .p2align directive.
16504         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
16505         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
16506         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
16507         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
16508         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
16509         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
16510         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
16511         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
16512         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
16513         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
16514         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
16515         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
16516         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
16517         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
16518         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
16519         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
16520         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
16521         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
16522         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
16523         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
16524         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
16525         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
16526         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
16527         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
16528         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
16529         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
16530         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
16531         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
16532         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
16533         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
16534         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
16535         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
16536         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
16537         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
16538         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
16539         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
16540         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
16541         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
16542         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
16543         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
16544         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
16546 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
16548         * math/tst-CMPLX.c: Include <stdio.h>.
16550 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
16552         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
16553         float.
16554         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
16555         * sysdeps/sparc/bits/mathdef.h: Likewise.
16557 2012-01-31  Marek Polacek  <polacek@redhat.com>
16559         * libio/libio.h: Don't define _PARAMS.
16560         * locale/programs/config.h: Don't define PARAMS.
16561         * stdlib/strtol_l.c: Likewise.
16562         (__strtol_l): Remove PARAMS from the prototype.
16564 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
16566         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
16567         names.  Just use the correct names.  Remove unnecessary wrapper
16568         functions.
16569         * malloc/arena.c: Likewise.
16570         * malloc/hooks.c: Likewise.
16572         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
16573         ARENA_TEST says not to.  Simplify test for creation of a new arena.
16574         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
16576 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
16578         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
16579         into tail calls.
16580         (update_get_addr): New function.
16581         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
16582         GET_ADDR_MODULE parameter.
16584 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
16586         * crypt/cert.c: Remove __STDC__ conditionals.
16587         * crypt/crypt-entry.c: Likewise.
16588         * crypt/crypt_util.c: Likewise.
16589         * libio/filedoalloc.c: Likewise.
16590         * libio/fileops.c: Likewise.
16591         * libio/genops.c: Likewise.
16592         * libio/iofclose.c: Likewise.
16593         * libio/iofdopen.c: Likewise.
16594         * libio/iofopen.c: Likewise.
16595         * libio/iofopen64.c: Likewise.
16596         * libio/iogetdelim.c: Likewise.
16597         * libio/iopopen.c: Likewise.
16598         * libio/obprintf.c: Likewise.
16599         * libio/oldfileops.c: Likewise.
16600         * libio/oldiofclose.c: Likewise.
16601         * libio/oldiofdopen.c: Likewise.
16602         * libio/oldiofopen.c: Likewise.
16603         * libio/oldiopopen.c: Likewise.
16604         * libio/wfiledoalloc.c: Likewise.
16605         * libio/wgenops.c: Likewise.
16606         * locale/programs/xmalloc.c: Likewise.
16607         * misc/syslog.c: Likewise.
16608         * stdio-common/xbug.c: Likewise.
16609         * string/memchr.c: Likewise.
16610         * string/memcmp.c: Likewise.
16611         * string/memrchr.c: Likewise.
16612         * string/rawmemchr.c: Likewise.
16613         * sysdeps/posix/getcwd.c: Likewise.
16614         * time/strftime_l.c: Likewise.
16616 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
16618         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
16619         * config.make.in (config-cflags-sse2avx): Define.
16620         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
16621         Fix typo.
16623 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
16625         * scripts/config.guess: Update from upstream config git repository.
16626         * scripts/config.sub: Likewise.
16628 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
16630         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
16631         (EM_NUM): Update.
16632         (R_TILEPRO_*, R_TILEGX_*): New macros.
16634         * scripts/firstversions.awk: Fix bug in version range handling.
16636         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
16638         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
16640         * include/sys/epoll.h: New file.
16641         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
16642         libc_hidden_def.
16644 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
16646         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
16647         Avoid unnecessary __WORDSIZE == 64 test.
16648         (fmaxf): Use VEX format if possible.
16649         (fmax): Likewise.
16650         (fminf): Likewise.
16651         (fmin): Likewise.
16653         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
16654         * math/math_private.h: Remove libc_fegetround* and
16655         libc_fesetround*.
16656         * sysdeps/i386/configure.in: Check for -msse2avx.
16657         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
16658         also if SSE2AVX is defined.
16659         Remove libc_fegetround* and libc_fesetround*.
16660         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
16661         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
16662         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
16663         of HAS_YMM_USABLE.
16664         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
16665         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
16666         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
16667         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
16668         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
16670         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
16672 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16674         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
16675         size is not set.
16676         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
16678 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
16680         [BZ #13618]
16681         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
16682         relocation.
16683         * Makeconfig (libm): Define.
16684         * elf/Makefile: Add rules to build and run tst-relsort1.
16685         * elf/tst-relsort1.c: New file.
16686         * elf/tst-relsort1mod1.c: New file.
16687         * elf/tst-relsort1mod2.c: New file.
16689 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
16691         * math/s_ldexp.c: Remove __STDC__ conditionals.
16692         * math/s_ldexpf.c: Likewise.
16693         * math/s_ldexpl.c: Likewise.
16694         * math/s_nextafter.c: Likewise.
16695         * math/s_nexttowardf.c: Likewise.
16696         * math/s_significand.c: Likewise.
16697         * math/s_significandf.c: Likewise.
16698         * math/s_significandl.c: Likewise.
16699         * math/w_jnl.c: Likewise.
16700         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
16701         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
16702         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
16703         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
16704         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
16705         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
16706         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
16707         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
16708         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
16709         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
16710         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
16711         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16712         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
16713         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
16714         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
16715         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
16716         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
16717         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
16718         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
16719         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
16720         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
16721         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
16722         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
16723         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
16724         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
16725         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
16726         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
16727         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
16728         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
16729         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
16730         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
16731         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
16732         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
16733         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
16734         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
16735         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
16736         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
16737         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
16738         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
16739         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
16740         * sysdeps/ieee754/k_standard.c: Likewise.
16741         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16742         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
16743         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
16744         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
16745         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
16746         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
16747         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
16748         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
16749         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
16750         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
16751         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
16752         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
16753         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
16754         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
16755         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
16756         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
16757         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
16758         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
16759         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
16760         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
16761         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
16762         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
16763         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
16764         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
16765         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
16766         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
16767         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16768         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16769         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16770         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
16771         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
16772         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
16773         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
16774         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
16775         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
16776         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
16777         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
16778         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
16779         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
16780         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
16781         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
16782         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
16783         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
16784         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
16785         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
16786         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
16787         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
16788         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
16789         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
16790         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
16791         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
16792         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
16793         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
16794         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
16795         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
16796         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
16797         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
16798         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
16799         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
16800         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
16801         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
16802         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
16803         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
16804         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
16805         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
16806         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
16807         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
16808         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
16809         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
16810         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
16811         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
16812         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
16813         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
16814         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
16815         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
16816         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
16817         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
16818         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
16819         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
16820         * sysdeps/ieee754/s_matherr.c: Likewise.
16821         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
16822         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
16823         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
16824         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
16826 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
16828         * crypt/md5.h: Remove __STDC__ conditionals.
16829         * libio/libioP.h: Likewise.
16830         * locale/programs/config.h: Likewise.
16831         * sysdeps/generic/sysdep.h: Likewise.
16832         * sysdeps/i386/asm-syntax.h: Likewise.
16833         * sysdeps/s390/asm-syntax.h: Likewise.
16834         * sysdeps/unix/sysdep.h: Likewise.
16835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
16836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
16838 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
16840         * libio/libio.h: Remove __STDC__ conditionals.
16841         * malloc/obstack.h: Likewise.
16842         * math/complex.h: Likewise.
16843         * math/math.h: Likewise.
16844         * sysdeps/generic/_G_config.h: Likewise.
16845         * sysdeps/gnu/_G_config.h: Likewise.
16846         * sysdeps/mach/hurd/_G_config.h: Likewise.
16847         * sysdeps/powerpc/bits/mathdef.h: Likewise.
16848         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
16849         * sysdeps/sparc/bits/mathdef.h: Likewise.
16851 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
16853         [BZ #13583]
16854         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
16855         Clean up HAS_* macros.
16856         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
16857         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
16858         possible.
16859         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
16860         HAS_AVX.
16861         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
16862         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
16863         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
16864         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
16865         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
16867 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
16869         * elf/tst-unique3.cc (gets): Remove declaration.
16870         * elf/tst-unique3lib.cc (gets): Likewise.
16871         * elf/tst-unique3lib2.cc (gets): Likewise.
16872         * elf/tst-unique4.cc (gets): Likewise.
16874 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
16876         * include/stdio.h: Add C++ protection.  Add gets declarations and
16877         definitions.
16878         * debug/tst-chk1.c: Don't declare gets here.
16879         * stdio-common/tst-gets.c: Likewise.
16881 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
16883         * posix/glob: Remove directory.
16885 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
16887         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
16889 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
16891         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
16892         of the non-standard EPFNOSUPPORT.
16894 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16896         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
16897         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
16898         ANYWHERE set to 1 only on KERN_NO_SPACE error.
16900 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
16902         * wcsmbs/uchar.h: Test __STDC_VERSION__.
16904 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
16906         * nscd/aicache.c (addhstaiX): Do not cache negative results of
16907         transient errors.
16908         * nscd/grpcache.c (cache_addgr): Likewise.
16909         * nscd/hstcache.c (cache_addhst): Likewise.
16910         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16911         * nscd/pwdcache.c (cache_addpw): Likewise.
16912         * nscd/servicescache.c (cache_addserv): Likewise.
16914 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
16916         * malloc/malloc.c: Various cleanups.
16917         * malloc/hooks.c: Likewise.
16919         * stdlib/Makefile (tests): Add bug-fmtmsg1.
16920         * stdlib/bug-fmtmsg1.c: New file.
16922         * stdlib/fmtmsg.c (init): Add missing unlock.
16923         Patch by Peng Haitao <penght@cn.fujitsu.com>.
16925 2012-01-12  Marek Polacek  <polacek@redhat.com>
16927         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
16928         and _GNU_SOURCE.
16930 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16932         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
16933         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
16934         macro to ensure uniqueness of label name.
16935         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
16936         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
16938 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
16940         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
16942         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
16943         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
16944         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
16945         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
16947 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
16949         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
16951         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
16952         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
16953         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
16955         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
16957         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
16958         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
16959         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
16960         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
16962         * math/bits/math-finite.h: Add ldexp support.
16964 2012-01-10  Marek Polacek  <polacek@redhat.com>
16966         * locale/programs/localedef.h (show_archive_content): Add noreturn
16967         attribute.
16969 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
16971         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
16973 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
16975         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
16977         * io/Makefile (headers): Add bits/poll2.h.
16979 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
16981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
16982         typo #include statement.
16984 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
16986         * include/sys/cdefs.h: Define __attribute_alloc_size.
16987         * catgets/gencat.c: Add alloc_size attribute and apply consistently
16988         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
16989         * elf/pldd.c: Likewise.
16990         * iconv/iconv_charmap.c: Likewise.
16991         * iconv/iconvconfig.c: Likewise.
16992         * iconv/strtab.c: Likewise.
16993         * locale/programs/locale.c: Likewise.
16994         * locale/programs/localedef.h: Likewise.
16995         * locale/programs/simple-hash.c: Likewise.
16996         * nscd/nscd.h: Likewise.
16997         * nss/makedb.c: Likewise.
16998         * sysdeps/generic/ldconfig.h: Likewise.
16999         * locale/programs/localedef.c: Remove xmalloc prototype.
17000         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
17002 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17004         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
17005         appropriate.
17007 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
17009         * math/Makefile (tests): Add tst-CMPLX.
17010         * math/tst-CMPLX.c: New file.
17012         * math/complex.h (CMPLXL): Fix typo.
17014         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
17015         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
17016         GLIBC_2.16.
17017         * debug/tst-chk1.c: Add poll and ppoll tests.
17018         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
17019         * include/sys/poll.h: Add hidden proto for ppoll.
17020         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
17021         * sysdeps/mach/hurd/ppoll.c: Likewise.
17022         * io/ppoll.c: Likewise.
17023         * debug/poll_chk.c: New file.
17024         * debug/ppoll_chk.c: New file.
17025         * include/bits/poll2.h: New file.
17026         * io/bits/poll2.h: New file.
17028         [BZ #1350]
17029         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
17031         * configure.in: static is always set to yes.  Remove.
17032         * config.make.in: Don't set build-static.
17033         * Makeconfig: Remove use of build-static.
17034         * dlfcn/Makefile: Likewise.
17035         * elf/Makefile: Likewise.
17036         * math/Makefile: Likewise.
17037         * misc/Makefile: Likewise.
17038         * nptl/Makefile: Likewise.
17039         * sysdeps/mach/hurd/Makefile: Likewise.
17041         * configure.in: PWD_P is not used anymore.
17042         * config.make.in: Remove PWD_P entry.
17044         * configure.in: Remove last remnants of RANLIB.
17045         No need to check for signed size_t anymore.
17046         Don't set libc_commonpagesize and libc_relro_required here for Alpha
17047         and IA-64.
17048         Remove __builtin_expect test because we require at least gcc 3.4.
17049         * aclocal.m4: Likewise.
17051         * wcsmbs/mbrtoc16.c: Implement using towc function.
17052         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
17053         * wcsmbs/wcsmbsload.c: Likewise.
17054         * iconv/gconv_simple.c: Likewise.
17055         * iconv/gconv_int.h: Likewise.
17056         * iconv/gconv_builtin.h: Likewise.
17057         * iconv/iconv_prog.c: Remove CHAR16 handling.
17059         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
17061         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
17063         * configure.in: Remove --with-elf and --enable-bounded options.
17064         Dont set base_machine for ia64.  More non-ELF conditions removed.
17065         Remove testing and setting of leading underscore information.
17066         * config.make.in (build-bounded): Set to no.
17067         * config.h.in: Remove NO_UNDERSCORES entry.
17068         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
17069         them.
17070         * csu/start.c: Remove !NO_UNDERSCORE code.
17071         * locale/localeinfo.h: Likewise.
17072         * sysdeps/generic/machine-gmon.h: Likewise.
17073         * sysdeps/generic/sysdep.h: Likewise.
17074         * sysdeps/i386/sysdep.h: Likewise.
17075         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
17076         * sysdeps/mach/sysdep.h: Likewise.
17077         * sysdeps/s390/s390-32/sysdep.h: Likewise.
17078         * sysdeps/s390/s390-64/sysdep.h: Likewise.
17079         * sysdeps/sh/sysdep.h: Likewise.
17080         * sysdeps/sparc/sparc32/alloca.S: Likewise.
17081         * sysdeps/unix/i386/sysdep.S: Likewise.
17082         * sysdeps/unix/sparc/start.c: Likewise.
17083         * sysdeps/unix/sparc/sysdep.S: Likewise.
17084         * sysdeps/unix/sparc/sysdep.h: Likewise.
17085         * sysdeps/unix/start.c: Likewise.
17086         * sysdeps/unix/x86_64/sysdep.S: Likewise.
17087         * sysdeps/x86_64/sysdep.h: Likewise.
17089 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
17091         [BZ #13553]
17092         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
17093         for non-gcc.
17094         * argp/argp-fmtstream.h: Use const instead __const.
17095         * argp/argp.h: Likewise.
17096         * assert/assert.h: Likewise.
17097         * bits/fenv.h: Likewise.
17098         * bits/sched.h: Likewise.
17099         * bits/sigset.h: Likewise.
17100         * bits/sigthread.h: Likewise.
17101         * catgets/nl_types.h: Likewise.
17102         * conform/data/pthread.h-data: Likewise.
17103         * crypt/crypt-private.h: Likewise.
17104         * crypt/crypt.h: Likewise.
17105         * crypt/crypt_util.c: Likewise.
17106         * ctype/ctype.h: Likewise.
17107         * debug/execinfo.h: Likewise.
17108         * debug/mbsnrtowcs_chk.c: Likewise.
17109         * debug/mbsrtowcs_chk.c: Likewise.
17110         * debug/wcsnrtombs_chk.c: Likewise.
17111         * debug/wcsrtombs_chk.c: Likewise.
17112         * debug/wcstombs_chk.c: Likewise.
17113         * dirent/dirent.h: Likewise.
17114         * dlfcn/dlfcn.h: Likewise.
17115         * elf/neededtest4.c: Likewise.
17116         * grp/grp.h: Likewise.
17117         * gshadow/gshadow.h: Likewise.
17118         * iconv/gconv.h: Likewise.
17119         * iconv/gconv_int.h: Likewise.
17120         * iconv/gconv_simple.c: Likewise.
17121         * iconv/iconv.h: Likewise.
17122         * iconv/loop.c: Likewise.
17123         * iconv/skeleton.c: Likewise.
17124         * include/aio.h: Likewise.
17125         * include/aliases.h: Likewise.
17126         * include/argz.h: Likewise.
17127         * include/arpa/inet.h: Likewise.
17128         * include/assert.h: Likewise.
17129         * include/dirent.h: Likewise.
17130         * include/dlfcn.h: Likewise.
17131         * include/execinfo.h: Likewise.
17132         * include/fcntl.h: Likewise.
17133         * include/fenv.h: Likewise.
17134         * include/glob.h: Likewise.
17135         * include/grp.h: Likewise.
17136         * include/libintl.h: Likewise.
17137         * include/mntent.h: Likewise.
17138         * include/netdb.h: Likewise.
17139         * include/pwd.h: Likewise.
17140         * include/rpc/netdb.h: Likewise.
17141         * include/sched.h: Likewise.
17142         * include/search.h: Likewise.
17143         * include/shadow.h: Likewise.
17144         * include/signal.h: Likewise.
17145         * include/stdio.h: Likewise.
17146         * include/stdlib.h: Likewise.
17147         * include/string.h: Likewise.
17148         * include/sys/socket.h: Likewise.
17149         * include/sys/stat.h: Likewise.
17150         * include/sys/statfs.h: Likewise.
17151         * include/sys/statvfs.h: Likewise.
17152         * include/sys/syslog.h: Likewise.
17153         * include/sys/time.h: Likewise.
17154         * include/sys/uio.h: Likewise.
17155         * include/time.h: Likewise.
17156         * include/unistd.h: Likewise.
17157         * include/utmp.h: Likewise.
17158         * include/wchar.h: Likewise.
17159         * include/wctype.h: Likewise.
17160         * inet/aliases.h: Likewise.
17161         * inet/arpa/inet.h: Likewise.
17162         * inet/netinet/ether.h: Likewise.
17163         * inet/netinet/in.h: Likewise.
17164         * intl/libintl.h: Likewise.
17165         * io/bits/fcntl2.h: Likewise.
17166         * io/fcntl.h: Likewise.
17167         * io/ftw.h: Likewise.
17168         * io/sys/poll.h: Likewise.
17169         * io/sys/stat.h: Likewise.
17170         * io/sys/statfs.h: Likewise.
17171         * io/sys/statvfs.h: Likewise.
17172         * io/utime.h: Likewise.
17173         * libio/bits/stdio.h: Likewise.
17174         * libio/bits/stdio2.h: Likewise.
17175         * libio/libio.h: Likewise.
17176         * libio/libioP.h: Likewise.
17177         * libio/stdio.h: Likewise.
17178         * locale/lc-ctype.c: Likewise.
17179         * locale/locale.h: Likewise.
17180         * login/utmp.h: Likewise.
17181         * malloc/arena.c: Likewise.
17182         * malloc/malloc.c: Likewise.
17183         * malloc/malloc.h: Likewise.
17184         * malloc/mcheck.c: Likewise.
17185         * malloc/mtrace.c: Likewise.
17186         * math/bits/mathcalls.h: Likewise.
17187         * math/fenv.h: Likewise.
17188         * math/math_private.h: Likewise.
17189         * misc/bits/error.h: Likewise.
17190         * misc/bits/syslog.h: Likewise.
17191         * misc/err.h: Likewise.
17192         * misc/error.h: Likewise.
17193         * misc/fstab.h: Likewise.
17194         * misc/mntent.h: Likewise.
17195         * misc/regexp.h: Likewise.
17196         * misc/search.h: Likewise.
17197         * misc/sgtty.h: Likewise.
17198         * misc/sys/mman.h: Likewise.
17199         * misc/sys/syslog.h: Likewise.
17200         * misc/sys/uio.h: Likewise.
17201         * misc/sys/xattr.h: Likewise.
17202         * misc/ttyent.h: Likewise.
17203         * nis/rpcsvc/ypclnt.h: Likewise.
17204         * nss/nss.h: Likewise.
17205         * posix/bits/unistd.h: Likewise.
17206         * posix/fnmatch.h: Likewise.
17207         * posix/glob.h: Likewise.
17208         * posix/sched.h: Likewise.
17209         * posix/spawn.h: Likewise.
17210         * posix/sys/wait.h: Likewise.
17211         * posix/unistd.h: Likewise.
17212         * posix/wordexp.h: Likewise.
17213         * pwd/pwd.h: Likewise.
17214         * resolv/netdb.h: Likewise.
17215         * resource/sys/resource.h: Likewise.
17216         * rt/aio.h: Likewise.
17217         * rt/bits/mqueue2.h: Likewise.
17218         * rt/mqueue.h: Likewise.
17219         * shadow/shadow.h: Likewise.
17220         * signal/signal.h: Likewise.
17221         * socket/send.c: Likewise.
17222         * socket/sendto.c: Likewise.
17223         * socket/sys/socket.h: Likewise.
17224         * stdio-common/printf.h: Likewise.
17225         * stdlib/bits/stdlib.h: Likewise.
17226         * stdlib/fmtmsg.h: Likewise.
17227         * stdlib/monetary.h: Likewise.
17228         * stdlib/stdlib.h: Likewise.
17229         * stdlib/ucontext.h: Likewise.
17230         * streams/stropts.h: Likewise.
17231         * string/argz.h: Likewise.
17232         * string/bits/string2.h: Likewise.
17233         * string/string.h: Likewise.
17234         * string/strings.h: Likewise.
17235         * sunrpc/rpc/auth.h: Likewise.
17236         * sunrpc/rpc/auth_des.h: Likewise.
17237         * sunrpc/rpc/clnt.h: Likewise.
17238         * sunrpc/rpc/netdb.h: Likewise.
17239         * sunrpc/rpc/pmap_clnt.h: Likewise.
17240         * sunrpc/rpc/xdr.h: Likewise.
17241         * sysdeps/generic/inttypes.h: Likewise.
17242         * sysdeps/generic/net/if.h: Likewise.
17243         * sysdeps/generic/sys/swap.h: Likewise.
17244         * sysdeps/gnu/net/if.h: Likewise.
17245         * sysdeps/gnu/utmpx.h: Likewise.
17246         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
17247         * sysdeps/i386/i486/bits/string.h: Likewise.
17248         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
17249         * sysdeps/s390/bits/string.h: Likewise.
17250         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
17251         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
17252         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
17253         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
17254         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
17255         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
17256         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
17257         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
17258         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
17259         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
17260         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
17261         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
17262         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
17263         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
17264         * sysdeps/unix/sysv/linux/readv.c: Likewise.
17265         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
17266         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
17267         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17268         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
17269         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
17270         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
17271         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
17272         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
17273         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
17274         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
17275         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
17276         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
17277         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
17278         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
17279         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
17280         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
17281         * sysvipc/sys/ipc.h: Likewise.
17282         * sysvipc/sys/msg.h: Likewise.
17283         * sysvipc/sys/sem.h: Likewise.
17284         * sysvipc/sys/shm.h: Likewise.
17285         * termios/termios.h: Likewise.
17286         * time/sys/time.h: Likewise.
17287         * time/time.h: Likewise.
17288         * wcsmbs/bits/wchar2.h: Likewise.
17289         * wcsmbs/uchar.h: Likewise.
17290         * wcsmbs/wchar.h: Likewise.
17291         * wctype/wctype.h: Likewise.
17293         [BZ #13551]
17294         * Makeconfig: Remove all but ELF support including AIX support.
17295         * Makerules: Likewise.
17296         * config.h.in: Likewise.
17297         * config.make.in: Likewise.
17298         * configure: Likewise.
17299         * configure.in: Likewise.
17300         * csu/Makefile: Likewise.
17301         * csu/version.c: Likewise.
17302         * debug/Makefile: Likewise.
17303         * dlfcn/Makefile: Likewise.
17304         * elf/Makefile: Likewise.
17305         * extra-lib.mk: Likewise.
17306         * iconv/Makefile: Likewise.
17307         * include/libc-symbols.h: Likewise.
17308         * include/shlib-compat.h: Likewise.
17309         * resolv/Makefile: Likewise.
17310         * resolv/res_libc.c: Likewise.
17311         * rt/Makefile: Likewise.
17312         * sysdeps/i386/asm-syntax.h: Likewise.
17313         * sysdeps/i386/sysdep.h: Likewise.
17314         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
17315         * sysdeps/mach/sysdep.h: Likewise.
17316         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
17317         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
17318         * sysdeps/s390/asm-syntax.h: Likewise.
17319         * sysdeps/s390/s390-32/sysdep.h: Likewise.
17320         * sysdeps/s390/s390-64/sysdep.h: Likewise.
17321         * sysdeps/sh/sysdep.h: Likewise.
17322         * sysdeps/unix/sparc/sysdep.h: Likewise.
17323         * sysdeps/wordsize-32/divdi3.c: Likewise.
17324         * sysdeps/x86_64/sysdep.h: Likewise.
17326         * argp/Versions: Remove _argp_unlock_xxx.
17328         [BZ #13559]
17329         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
17330         * abilist/libBrokenLocale.abilist: Likewise.
17331         * abilist/libanl.abilist: Likewise.
17332         * abilist/libc.abilist: Likewise.
17333         * abilist/libcrypt.abilist: Likewise.
17334         * abilist/libdl.abilist: Likewise.
17335         * abilist/libm.abilist: Likewise.
17336         * abilist/libnsl.abilist: Likewise.
17337         * abilist/libpthread.abilist: Likewise.
17338         * abilist/libresolv.abilist: Likewise.
17339         * abilist/librt.abilist: Likewise.
17340         * abilist/libthread_db.abilist: Likewise.
17341         * abilist/libutil.abilist: Likewise.
17342         * abilist/libnss_db.abilist: New file.
17344         * scripts/abilist.awk: Add support for indirect functions.
17346         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
17348         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
17350         * shlib-versions: Remove entries for ports architectures.
17352         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
17353         files in ports.
17354         * elf/stackguard-macros.h: Remove support for IA-64.
17355         * elf/tst-auditmod1.c: Likewise.
17356         * sysdeps/generic/ldsodefs.h: Likewise.
17358         * sysdeps/unix/sysv/linux/configure.in: Ports should define
17359         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
17360         configure files.
17362         [BZ #13552]
17363         * configure.in: Remove --enable-omitfp support.
17364         * FAQ.in: Adjust.
17365         * config.make.in: Likewise.
17366         * Makeconfig: Likewise.
17367         * manual/install.texi: Likewise.
17369         In case anyone cares, the IA-64 architecture could move to ports.
17370         * sysdeps/ia64/*: Removed.
17371         * sysdeps/unix/sysv/linux/ia64/*: Removed.
17372         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
17374         [BZ #13555]
17375         * configure.in: Remove entries for unsupported architectures.
17377         [BZ #13533]
17378         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
17379         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
17380         routines.
17381         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
17382         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
17383         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
17384         fall back to using wcrtomb.
17385         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
17386         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
17387         renaming.
17388         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
17389         * wcsmbs/tst-c16c32-1.c: New file.
17391         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
17392         local variable.
17394         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
17396         * elf/tst-unique3.cc: Add explicit declaration of gets.
17397         * elf/tst-unique3lib.cc: Likewise.
17398         * elf/tst-unique3lib2.cc: Likewise.
17399         * elf/tst-unique4.cc: Likewise.
17401         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
17403 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
17405         [BZ #13566]
17406         * assert/assert.h (static_assert): Don't define for C++.
17407         * libio/stdio.h (gets): Do declare for C++ <= C++11.
17408         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
17410 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
17412         * iconv/loop.c (single loop): Fix assertion in storing of
17413         remaining bytes.
17415         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
17417 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
17419         * posix/getconf.c: Update copyright year.
17420         * nss/getent.c: Likewise.
17421         * nss/makedb.c: Likewise.
17422         * iconv/iconvconfig.c: Likewise.
17423         * iconv/iconv_prog.c: Likewise.
17424         * elf/ldconfig.c: Likewise.
17425         * elf/pldd.c: Likewise.
17426         * elf/sotruss.ksh: Likewise.
17427         * catgets/gencat.c: Likewise.
17428         * csu/version.c: Likewise.
17429         * elf/ldd.bash.in: Likewise.
17430         * elf/sprof.c (print_version): Likewise.
17431         * locale/programs/locale.c: Likewise.
17432         * locale/programs/localedef.c: Likewise.
17433         * login/programs/pt_chown.c: Likewise.
17434         * nscd/nscd.c (print_version): Likewise.
17435         * debug/xtrace.sh: Likewise.
17436         * malloc/memusage.sh: Likewise.
17437         * malloc/mtrace.pl: Likewise.
17438         * debug/catchsegv.sh: Likewise.
17440 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
17442         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
17443         pure attribute.
17445 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
17447         [BZ #13533]
17448         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
17449         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
17450         transformations.
17451         * iconv/gconv_int.h: Likewise.
17452         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
17453         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
17454         from libc for GLIBC_2.16.
17455         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
17456         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
17457         * wcsmbs/uchar.h: Really define mbstate_t.
17458         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
17459         * wcsmbs/c16rtomb.c: New file.
17460         * wcsmbs/mbrtoc16.c: New file.
17461         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
17462         for C/POSIX locale.
17463         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
17464         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
17466         * wcsmbs/wchar.h: Add missing __restrict.
17468 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
17470         [BZ #13532]
17471         * time/Makefile (routines): Add timespec_get.
17472         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
17473         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
17474         timespec for ISO C11.
17475         * time/timespec_get.c: New file.
17476         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
17477         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
17479         [BZ #13531]
17480         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
17481         * stdlib/stdlib.h: Declare aligned_alloc.
17482         * Versions.def: Add GLIBC_2.16 for libc.
17483         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
17485         [BZ 13527]
17486         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
17487         ISO C11.
17489         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
17490         code.
17492         [BZ #13528]
17493         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
17495         [BZ #13529]
17496         * assert/assert.h (static_assert): Define.
17498         * version.h: Update for 2.16 development version.
17500         [BZ #13526]
17501         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
17502         _ISOC11_SOURCE.
17504         * version.h (RELEASE): Bump for 2.15 release.
17505         * include/features.h (__GLIBC_MINOR__): Bump to 15.
17507         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
17508         Patch by Marek Polacek <mpolacek@redhat.com>.
17510         * bits/byteswap.h: Protect long long constants with __extension__.
17511         * sysdeps/i386/bits/byteswap.h: Likewise.
17512         * sysdeps/ia64/bits/byteswap.h: Likewise.
17513         * sysdeps/s390/bits/byteswap.h: Likewise.
17514         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17516 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17518         [BZ #13540]
17519         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
17520         destination buffer.
17521         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
17523 2011-12-23  Marek Polacek  <polacek@redhat.com>
17525         * elf/dl-addr.c (determine_info): Add inline keyword.
17526         * elf/tst-auditmod4b.c (check_avx): Likewise.
17527         * elf/tst-auditmod6b.c (check_avx): Likewise.
17528         * elf/tst-auditmod6c.c (check_avx): Likewise.
17529         * elf/tst-auditmod7b.c (check_avx): Likewise.
17531 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
17533         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
17534         !__SSE_MATH__.
17536 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17538         [BZ #13540]
17539         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
17540         processing for last bytes.
17542 2011-08-06  Bruno Haible  <bruno@clisp.org>
17544         [BZ #13061]
17545         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
17546         U+0385, not to U+1FEE.
17548         [BZ #13062]
17549         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
17550         entry for U+00A5 U+0301.
17552 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
17554         [BZ #13166]
17555         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
17556         buffer for the output is too small.
17558         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
17559         optimization.
17561         [BZ #13185]
17562         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
17563         SSE flags if possible.
17565 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17567         [BZ #13540]
17568         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
17569         processing for last bytes.
17571 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
17573         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
17574         (syscall-list-default-options, syscall-list-default-condition)
17575         (syscall-list-includes): Define.
17576         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
17577         list of ABIs and options and #if conditions for each ABI.  Do not
17578         handle common syscalls between ABIs specially.
17579         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
17580         Remove.
17581         (syscall-list-variants, syscall-list-32bit-options)
17582         (syscall-list-32bit-condition, syscall-list-64bit-options)
17583         (syscall-list-64bit-condition): Define.
17584         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
17585         (syscall-list-variants, syscall-list-32bit-options)
17586         (syscall-list-32bit-condition, syscall-list-64bit-options)
17587         (syscall-list-64bit-condition): Define.
17588         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
17589         Remove.
17590         (syscall-list-variants, syscall-list-32bit-options)
17591         (syscall-list-32bit-condition, syscall-list-64bit-options)
17592         (syscall-list-64bit-condition): Define.
17593         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
17594         Remove.
17595         (syscall-list-variants, syscall-list-32bit-options)
17596         (syscall-list-32bit-condition, syscall-list-64bit-options)
17597         (syscall-list-64bit-condition): Define.
17599 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
17601         * locale/iso-639.def: Add brx entry.
17603         [BZ #13328]
17604         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
17605         Proposed by Mariusz_Cukr <marcukr@op.pl>.
17607         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
17608         __feraiseexcept_renamed.
17610 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
17612         [BZ #13538]
17613         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
17614         EPOLLET with unsigned values.
17615         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
17616         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
17618         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
17619         to large cancellation.
17620         * math/s_cacoshf.c: Likewise.
17621         * math/s_cacoshl.c: Likewise.
17623 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
17625         [BZ #13305]
17626         [BZ #12786]
17627         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
17628         * math/s_cacoshf.c: Likewise.
17629         * math/s_cacoshl.c: Likewise.
17631 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
17633         [BZ #13439]
17634         * iconv/gconv.h: Define __GCONV_SWAP.
17635         * iconvdata/unicode.c: The swap bit must be stored in __flags.
17636         * iconvdata/utf-16.c: Likewise.
17637         * iconvdata/utf-32.c: Likewise.
17639 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
17641         [BZ #13524]
17642         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
17643         numerator after shifting it by one limb.
17645 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
17647         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
17648         under [__USE_EXTERN_INLINES].
17650 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
17652         [BZ #13446]
17653         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
17655 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17657         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
17658         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
17659         optimized code.
17660         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
17661         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
17662         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
17663         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
17664         for strncasecmp/strncasecmp_l compilation.
17665         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
17666         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
17668 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
17670         [BZ #13484]
17671         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
17672         of __asm__.
17674 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
17676         [BZ #13506]
17677         * time/tzfile.c (__tzfile_read): Check values from file header.
17679 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
17681         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
17682         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
17683         * powerpc/powerpc32/dl-start.S: Likewise.
17684         * powerpc/powerpc32/elf/start.S: Likewise.
17685         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
17686         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
17687         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
17688         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
17689         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
17690         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
17691         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
17692         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
17693         * powerpc/powerpc32/fpu/s_round.S: Likewise.
17694         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
17695         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
17696         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
17697         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
17698         * powerpc/powerpc32/memset.S: Likewise.
17699         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
17700         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
17701         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
17702         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
17703         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
17704         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
17705         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
17706         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
17707         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
17708         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
17709         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
17710         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
17711         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
17713 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17715         * math/libm-test.inc: Added more nearbyint tests.
17716         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
17717         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
17718         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
17719         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
17721 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
17723         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
17724         FD_CLOEXEC.
17726 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17728         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
17729         Add wcscpy-ssse3 wcscpy-c.
17730         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
17731         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
17732         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
17733         * sysdeps/x86_64/wcschr.S: New file.
17734         * sysdeps/x86_64/wcsrchr.S: New file.
17735         * string/test-strcmp.c: Remove checking of wcscmp function for
17736         wrong alignments.
17737         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
17738         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
17739         wcsrchr-sse2 wcsrchr-c.
17740         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
17741         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
17742         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
17743         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
17744         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
17745         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
17746         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
17747         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
17748         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
17749         * wcsmbc/wcschr.c (WCSCHR): New macro.
17751 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17753         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
17754         * wcsmbs/test-wcsrchr.c: New file.
17755         * string/test-strrchr.c: Add wcsrchr support.
17756         (WIDE): New macro.
17757         * wcsmbs/test-wcscpy.c: New file.
17758         * string/test-strcpy.c: Add wcscpy support.
17759         (WIDE): New macro.
17761 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
17763         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
17764         the inner loop.
17766 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
17768         [BZ #13472]
17769         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
17771 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
17773         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
17774         Minor optimizations.
17776         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
17777         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
17778         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
17780 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
17782         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
17783         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
17784         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
17785         for gcc to avoid warnings.
17786         * inet/Makefile (tests): Add tst-checks.
17787         * inet/tst-checks.c: New file.
17789         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
17790         warning.
17792         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
17793         __wmemcmp_sse2.
17795         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
17796         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
17798         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
17800 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
17802         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
17803         problem.
17805         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
17807 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
17809         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
17810         conditional on GCC version.
17811         (__arch_compare_and_exchange_val_8_acq)
17812         (__arch_compare_and_exchange_val_16_acq)
17813         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
17814         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
17815         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
17817 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
17819         * sysdeps/sh/backtrace.c: New file.
17821 2011-12-02  Andreas Schwab  <schwab@redhat.com>
17823         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
17824         parenthesis.
17826 2011-12-01  Andreas Schwab  <schwab@redhat.com>
17828         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
17829         falling back to utime.
17831 2011-11-30  Andreas Schwab  <schwab@redhat.com>
17833         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
17834         expectations for float.
17836 2011-11-29  Andreas Schwab  <schwab@redhat.com>
17838         * locale/weight.h (findidx): Add parameter len.
17839         * locale/weightwc.h (findidx): Likewise.
17840         * posix/fnmatch_loop.c (FCT): Adjust caller.
17841         * posix/regcomp.c (build_equiv_class): Likewise.
17842         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
17843         * posix/regexec.c (check_node_accept_bytes): Likewise.
17844         * string/strcoll_l.c (STRCOLL): Likewise.
17845         * string/strxfrm_l.c (STRXFRM): Likewise.
17847 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
17849         * Makefile.in: Remove CVSOPT handling.
17850         * configure.in: Remove use of AC_REVISION.
17851         * iconvdata/Makefile (distribute): No need to filter out CVS.
17852         * scripts/list-sources.sh: Remove CVS, subversion and monotone
17853         handling.
17855 2011-11-16  Andreas Schwab  <schwab@redhat.com>
17857         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
17858         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
17859         [USE_AS_STRNCASECMP_L]: Likewise.
17860         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
17861         NO_TLS_DIRECT_SEG_REFS.
17862         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
17863         Fix argument offsets for non-PIC.
17864         [USE_AS_STRNCASECMP_L]: Likewise.
17865         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
17866         NO_TLS_DIRECT_SEG_REFS.
17868 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
17870         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
17871         O_CLOEXEC.
17872         * locale/loadlocale.c (_nl_load_locale): Likewise.
17874 2011-11-15  Andreas Schwab  <schwab@redhat.com>
17876         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
17877         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
17878         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
17879         (SYSCALL_GETTIME): Set errno on error.
17881         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
17882         count references to noai6ai_cached.
17884 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
17886         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
17888         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
17889         FD_CLOEXEC for /proc/self/maps.
17891         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
17892         FD_CLOEXEC for /proc/meminfo.
17894         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
17895         gai.conf.
17897         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
17898         FD_CLOEXEC for given file.
17900         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
17902         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
17903         FD_CLOEXEC for /etc/hosts.
17904         (_gethtent): Likewise.
17906         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
17908         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
17909         cancellation and set FD_CLOEXEC for /etc/netgroup.
17911         * nss/nss_files/files-key.c (search): Don't allow cancellation when
17912         reading /etc/publickey.
17914         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
17915         allow cancellation when reading /etc/group.
17917         * nss/nss_files/files-alias.c (internal_setent): Don't allow
17918         cancellation.
17919         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
17921         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
17922         when using data file.
17924         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
17926         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
17927         (write_nis_obj): Use "c" and "e" in fopen.
17929         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
17931         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
17933         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
17935         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
17937         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
17938         locale.alias.
17940         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
17942         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
17944         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
17946         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
17947         file parsing and set FD_CLOEXEC.
17949 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
17951         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
17953 2011-11-14  Andreas Schwab  <schwab@redhat.com>
17955         * malloc/arena.c (arena_get2): Don't call reused_arena when
17956         _int_new_arena failed.
17958 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
17960         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
17961         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
17962         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
17963         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
17964         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
17965         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
17966         to compile strcasecmp and strncasecmp.
17967         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
17968         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
17970         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
17972 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
17974         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
17975         locale-defines.sym to gen-as-const-headers.
17976         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
17977         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
17978         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
17979         to compile strcasecmp and strncasecmp.
17980         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
17981         strcasecmp_l and strncasecmp_l.
17982         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
17983         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
17984         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
17985         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
17986         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
17987         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
17988         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
17989         * sysdeps/i386/i686/multiarch/strncase.S: New file.
17990         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
17991         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
17992         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
17994 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
17996         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
17997         result of SYSDEP_GETTIME_CPU to retval.
17998         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
17999         parameter list to macro.  Remove trailing semicolon.  Adjust users.
18001         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
18002         variable.
18004         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
18005         mantissa words.
18006         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
18008         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
18009         from unused variable.
18011         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
18012         DWARF definitions.
18013         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
18014         for assembling.
18016         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
18017         over namespaces.
18019         * sunrpc/rpc_prot.c (rejected): Fix case value.
18021         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
18022         unsigned long long int to avoid warnings in shift.
18024         * posix/regex_internal.c (re_string_reconstruct): Actually use result
18025         of use of trans.
18026         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
18027         variable tmp.
18029         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
18030         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
18031         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
18033         * nis/nis_table.c (nis_list): Use variable of correct type for
18034         result of __follow_path call.
18036 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18038         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
18039         of math functions ceil, trunc, floor, round, and sqrt, when
18040         avaliable on the platform.
18041         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
18042         name clash.
18043         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
18044         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
18045         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
18047 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
18049         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
18050         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
18052 2011-11-11  Roland McGrath  <roland@hack.frob.com>
18054         * include/unistd.h: Fix __readlink return type.
18055         Reported by Chris Metcalf <cmetcalf@tilera.com>.
18057 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
18059         * stdlib/ucontext.h: Undo last change for makecontext.
18061 2011-11-11  Andreas Schwab  <schwab@redhat.com>
18063         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
18065         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
18066         * setjmp/setjmp.h: Mark functions as non-leaf.
18067         * setjmp/bits/setjmp2.h: Likewise.
18068         * stdlib/ucontext.h: Likewise.
18070 2011-11-10  Andreas Schwab  <schwab@redhat.com>
18072         * malloc/arena.c (_int_new_arena): Don't increment narenas.
18073         (reused_arena): Don't check arena limit.
18074         (arena_get2): Atomically check arena limit.
18076 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
18078         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
18079         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
18081         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
18082         instructions.
18084 2011-11-07  Andreas Schwab  <schwab@redhat.com>
18086         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
18087         handler when locking.
18089         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
18090         Fix size of allocated buffer.
18092 2011-11-04  Andreas Schwab  <schwab@redhat.com>
18094         [BZ #10103]
18095         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
18096         declarations for long double functions.
18097         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
18099         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
18101 2011-11-03  Andreas Schwab  <schwab@redhat.com>
18103         * nscd/nscd.c (main): Don't start AVC thread until credentials are
18104         installed.
18106         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
18107         is disabled.
18109 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18111         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
18113 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
18115         * include/alloca.h (stackinfo_alloca_round): Define.
18116         (extend_alloca): Use it.
18117         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
18118         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
18119         here.
18121         * scripts/check-local-headers.sh: Ignore libaudit.h.
18123         * nscd/Makefile (extra-objs): Make recursively expanded.
18125 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
18127         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
18128         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
18130         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
18131         * posix/tst-rfc3484-2.c: Likewise.
18132         * posix/tst-rfc3484-3.c: Likewise.
18134         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
18135         process_vm_writev.
18136         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
18137         process_vm_writev.
18138         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
18139         process_vm_writev from libc using GLIBC_2.15 version.
18141         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
18143 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
18145         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
18146         stack usage.
18148 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
18150         [BZ #13367]
18151         * nss/getent.c (initgroups_keys): Show error message in case no group
18152         names are given.
18154         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
18155         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
18156         __bump_nl_timestamp.
18157         * nscd/connections (nscd_init): When host database is served open
18158         netlink socket and request notification about configuration changes.
18159         (main_loop_poll): Track netlink file descriptor and bump timestamp
18160         in case data becomes available.
18161         (main_loop_epoll): Likewise.
18162         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
18163         (database_pers_head): Add extra_data fileds.
18164         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
18165         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
18166         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
18167         Adjust caller.
18168         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
18169         in6ai data, call __free_in6ai.
18170         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
18171         Add -DHAVE_NETLINK.
18172         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
18173         interface information.  Reuse previous data if netlink timestamp
18174         is not changed.
18175         (__bump_nl_timestamp): New function.
18176         (__free_in6ai): New function.
18178 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
18180         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
18181         close_not_cancel_no_status here.
18182         (__check_pf): Reorganize code a bit to not call close twice if OOM.
18184 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
18186         [BZ #13276]
18187         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
18188         return value.
18190         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
18191         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
18192         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
18194 2011-07-03  Andreas Jaeger  <aj@suse.de>
18196         [BZ #10709]
18197         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
18198         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
18199         * math/libm-test.inc (sin_test): Add test case.
18201 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
18203         [BZ #13337]
18204         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
18205         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
18207         * elf/chroot_canon.c (chroot_canon): Cleanups.
18209         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
18211         [BZ #13335]
18212         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
18213         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
18215         * string/test-strchr.c: Make usable for strchrnul testing.
18216         * string/test-strchrnul.c: New file.
18217         * string/Makefile (strop-tests): Add strchrnul.
18219         * po/it.po: Update from translation team.
18220         * po/es.po: Likewise.
18222 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
18224         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
18225         the three constants needed as parameters.  Drop the others.
18226         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
18227         __m128i_strloadu_tolower.
18228         Create and initialize variable zero and use it in all the places
18229         where _mm_setzero_si128 was used.
18231         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
18232         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
18233         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
18234         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
18235         anymore.
18236         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
18237         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
18238         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
18239         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
18240         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
18241         __mpranred, __mptan.
18242         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
18243         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
18244         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
18245         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
18246         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
18247         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
18248         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
18249         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
18250         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
18252 2011-10-28  Andreas Schwab  <schwab@redhat.com>
18254         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
18255         redefine if SHARED.
18256         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
18258         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
18259         wide char related routines to wcsmbs subdir.
18261 2011-10-27  Andreas Schwab  <schwab@redhat.com>
18263         [BZ #13344]
18264         * misc/sys/cdefs.h (__THROWNL): Define.
18265         * posix/unistd.h: Use __THREADNL instead of __THREAD
18266         for memory synchronization functions.
18268 2011-10-26  Roland McGrath  <roland@hack.frob.com>
18270         [BZ #13349]
18271         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
18272         doesn't exist.
18273         * manual/stdio.texi (Obstack Streams): Node removed.
18275 2011-10-26  Andreas Schwab  <schwab@redhat.com>
18277         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
18278         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
18279         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
18281         * math/math_private.h (math_force_eval): Allow non-addressable
18282         arguments.
18283         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
18285 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
18287         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
18288         file is not needed.
18290         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
18291         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
18292         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
18293         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
18294         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
18295         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
18296         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
18297         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
18298         Add AVX variants.
18299         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
18300         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
18301         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
18302         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
18303         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
18304         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
18305         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
18306         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
18307         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
18308         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
18309         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
18310         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
18311         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
18312         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
18313         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
18314         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
18315         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
18316         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
18317         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
18319         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
18320         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
18322         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
18323         place.  Use VEX encoding when compiling for AVX.
18325 2011-10-25  Andreas Schwab  <schwab@redhat.com>
18327         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
18328         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
18330         * string/test-strchr.c (do_test): Don't generate NUL bytes.
18332 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
18334         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
18335         useless if() expression.
18336         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
18337         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
18338         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
18339         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
18340         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
18341         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
18342         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
18343         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
18344         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
18345         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
18346         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
18347         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
18348         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
18349         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
18350         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
18351         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
18352         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
18353         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
18354         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
18356         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
18358 2011-10-25  Andreas Schwab  <schwab@redhat.com>
18360         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
18361         condition.
18362         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18364 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
18366         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
18367         .text section.  Avoid duplicate constants.
18368         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
18369         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
18370         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
18371         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
18372         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
18373         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
18374         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
18375         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
18376         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
18377         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
18378         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
18379         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
18380         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
18381         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
18382         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
18383         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
18384         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
18385         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
18386         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
18387         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
18388         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
18389         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
18390         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
18391         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
18392         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
18393         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
18394         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
18395         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
18396         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
18397         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
18398         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
18399         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
18400         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
18401         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
18402         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
18403         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
18404         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
18405         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
18406         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
18407         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
18408         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
18409         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
18410         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
18411         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18412         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
18414 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
18416         * sysdeps/x86_64/dla.h: Move to ...
18417         * sysdeps/x86_64/fpu/dla.h: ...here.
18418         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
18419         situations.  Use __builtin_fma only for gcc 4.6 and up.
18421         * config.make.in: Add have-mfma4 entry.
18422         * configure.in: Substitute libc_cv_cc_fma4.
18423         * math/Makefile (dbl-only-routines): Add sincostab.
18424         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
18425         Use __sincostab not sincos.
18426         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
18427         name is a macro.
18428         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
18429         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
18430         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
18431         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
18432         using __copysign.
18433         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
18434         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
18435         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
18436         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
18437         and __inv.
18438         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
18439         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
18440         __copysign.
18441         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
18442         define aliases when function name is a macro.
18443         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
18444         sysdeps/ieee754/dbl-64/sincos.tbl.
18445         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
18446         fma4-enabled routines.
18447         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
18448         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
18449         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
18450         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
18451         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
18452         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
18453         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
18454         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
18455         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
18456         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
18457         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
18458         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
18459         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
18460         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
18461         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
18462         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
18463         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
18464         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
18465         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
18466         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
18467         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
18468         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
18469         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
18470         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
18471         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
18472         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
18473         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
18474         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
18475         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
18476         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
18478         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
18479         rename.
18480         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
18481         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
18482         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
18483         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
18484         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
18485         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
18486         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
18487         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
18489 2011-10-24  Andreas Schwab  <schwab@redhat.com>
18491         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
18493 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
18495         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
18497         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
18498         prediction.
18499         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
18501         * string/strnlen.c: Don't define STRNLEN, reverse logic.
18502         Remove unused variable magic_bits.
18503         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
18505         * string/strnlen.c: Define and use STRNLEN macro.
18506         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
18507         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
18508         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
18509         * wcsmbs/wcslen.c: Define and use WCSLEN.
18510         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
18511         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
18512         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
18513         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
18514         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
18515         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
18516         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
18518 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18520         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18521         strnlen-sse2-no-bsf.
18522         Rename strlen-no-bsf to strlen-sse2-no-bsf.
18523         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
18524         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
18525         Add strnlen support.
18526         (USE_AS_STRNLEN): New macro.
18527         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
18528         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
18529         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
18530         * sysdeps/x86_64/wcslen.S: New file.
18532 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
18534         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
18535         XMM-moves are used for copying on small sizes.
18537 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18539         * wcsmbs/Makefile (strop-tests): Add wcschr.
18540         * wcsmbs/test-wcschr.c: New file.
18541         * string/test-strchr.c: Update.
18542         Add wcschr support.
18543         (WIDE): New macro.
18545 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18547         * wcsmbs/Makefile (strop-tests): Add wcslen.
18548         * wcsmbs/test-wcslen.c: New file.
18549         * string/test-strlen.c: Update.
18550         Add wcslen support.
18551         (WIDE): New macro.
18553 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
18555         * po/it.po: Update from translation team.
18557 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18559         * sysdeps/x86_64/wcscmp.S: Update.
18560         Fix wrong comparison semantics.
18561         wcscmp shall use signed comparison not unsigned.
18562         Don't use substraction to avoid overflow bug.
18563         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
18564         * wcsmbc/wcscmp.c: Likewise.
18565         * string/test-strcmp.c: Likewise.
18566         Add new tests to check cases with negative values.
18568 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
18570         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
18571         * sysdeps/x86_64/dla.h: ...here.  New file.
18572         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
18573         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
18574         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
18575         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
18576         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
18577         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
18578         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
18579         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
18580         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
18582 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
18584         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
18585         __ynl_finite aliases.
18587 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
18589         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18591         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
18592         define DLA_FMA.
18593         [DLA_FMA] (EMULV): Use DLA_FMA.
18594         [DLA_FMA] (MUL12): Use EMULV.
18595         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
18596         that are not needed.
18597         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
18598         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
18599         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
18600         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
18601         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
18602         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
18603         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
18605 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
18607         * math/s_nan.c: Undef __nan.
18608         * math/s_nanf.c: Undef __nanf.
18609         * math/s_nanl.c: Undef __nanl.
18610         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
18611         "math_private.h".
18613 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
18615         * math/s_catan.c: Add branch predictions.
18616         * math/s_catanf.c: Likewise.
18617         * math/s_catanh.c: Likewise.
18618         * math/s_catanhf.c: Likewise.
18619         * math/s_catanhl.c: Likewise.
18620         * math/s_catanl.c: Likewise.
18621         * math/s_cexp.c: Likewise.
18622         * math/s_cexpf.c: Likewise.
18623         * math/s_cexpl.c: Likewise.
18624         * math/s_clog.c: Likewise.
18625         * math/s_clog10.c: Likewise.
18626         * math/s_clog10f.c: Likewise.
18627         * math/s_clog10l.c: Likewise.
18628         * math/s_clogf.c: Likewise.
18629         * math/s_clogl.c: Likewise.
18630         * math/s_csqrt.c: Likewise.
18631         * math/s_csqrtf.c: Likewise.
18632         * math/s_csqrtl.c: Likewise.
18633         * math/s_ctanf.c: Likewise.
18634         * math/s_ctanh.c: Likewise.
18635         * math/s_ctanhf.c: Likewise.
18636         * math/s_ctanhl.c: Likewise.
18637         * math/s_ctanl.c: Likewise.
18639         * math/math_private.h: Define __nan, __nanf, __nanl.
18640         * math/s_cacosh.c: Include <math_private.h>.
18641         * math/s_cacoshl.c: Likewise.
18642         * math/s_casinh.c: Likewise.
18643         * math/s_casinhf.c: Likewise.
18644         * math/s_casinhl.c: Likewise.
18645         * math/s_ccos.c: Rely entire on ccosh.
18646         * math/s_ccosf.c: Rely entire on ccoshf.
18647         * math/s_ccosl.c: Rely entirely on ccoshl.
18648         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
18649         Remove tests for FE_INVALID.
18650         * math/s_ccoshf.c: Likewise.
18651         * math/s_ccoshl.c: Likewise.
18652         * math/s_csin.c: Likewise.
18653         * math/s_csinf.c: Likewise.
18654         * math/s_csinh.c Likewise.
18655         * math/s_csinhf.c: Likewise.
18656         * math/s_csinhl.c: Likewise.
18657         * math/s_csinl.c: Likewise.
18658         * math/s_ctan.c: Likewise.
18659         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
18660         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
18661         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
18663 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
18665         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
18666         compilation problems.
18668         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
18669         __builtin_expect.
18671 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
18673         * sysdeps/i386/configure.in: Test for -mfma4 option.
18674         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
18675         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
18676         COMMON_CPUID_INDEX_80000001.
18677         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
18678         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
18679         use it if FMA3 is not supported.
18680         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
18682         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
18683         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18685 2011-10-20  Andreas Schwab  <schwab@redhat.com>
18687         [BZ #12892]
18688         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
18689         it would create a cycle with a link time dependency.
18691 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
18693         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
18694         instruction.
18695         * string/Makefile (strop-tests): Add rawmemchr.
18696         * string/test-rawmemchr.c: New file.
18698         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
18699         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
18700         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
18701         when compiling str{,n}casecmp and when AVX is available.  Hook up
18702         new optimized code in initializers.
18704 2011-10-19  Andreas Schwab  <schwab@redhat.com>
18706         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
18707         __feraiseexcept instead of feraiseexcept.
18709 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
18711         * math/math_private.h: Define defaults for libc_fetestexcept and
18712         libc_feupdateenv.
18713         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
18714         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
18715         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
18716         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
18717         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
18718         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
18719         libc_fetestexcept and libc_feupdateenv.
18721         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
18722         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
18723         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
18724         * sysdeps/x86_64/fpu/math_private.h: Define special version of
18725         libc_feholdexcept_setround.
18727         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
18728         Add s_nearbyint-c and s_nearbyintf-c.
18729         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
18730         nearbyintf inlines.
18731         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
18732         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
18733         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
18734         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
18736         * math/math_private.h: Define defaults for libc_fegetround,
18737         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
18738         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
18739         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
18740         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
18741         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
18742         standard functions.
18743         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
18744         Remove comments and hacks for old compiler versions.
18745         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
18746         libc_fegetround, libc_fesetround, libc_feholdexcept, and
18747         libc_feholdexceptl.
18749 2011-10-18  Andreas Schwab  <schwab@redhat.com>
18751         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
18752         (__feraiseexcept_renamed): Add __NTH.
18753         (feraiseexcept): Add __NTH.  Rename local variables to fix
18754         namespace violations.
18756 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
18758         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
18760         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
18762         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
18763         recently added interfaces.
18764         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
18766         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
18767         about macro parameter expansion.
18769         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
18770         __NO_MATH_INLINES is defined.  Cleanups.
18772         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
18773         and __floorf is target has SSE4.1.
18774         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
18775         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
18776         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
18777         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
18779         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
18780         name.
18781         (floorf): Likewise.
18783         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
18785 2011-10-17  Andreas Schwab  <schwab@redhat.com>
18787         * misc/sys/cdefs.h: Fix last change.
18789         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
18790         database lookup.
18792 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
18794         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
18796         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
18797         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
18798         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
18799         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
18800         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
18801         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
18802         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
18803         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
18804         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
18805         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
18806         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
18807         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
18808         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
18809         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
18810         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
18811         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
18812         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
18813         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
18814         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
18815         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
18816         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
18817         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
18819         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
18820         ceil, ceilf, floor, floorf.
18822         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
18823         Perform IRELATIVE relocations last.
18825         * elf/do-rel.h: Add another parameter nrelative, replacing the
18826         local variable with the same name.  Change name of the function
18827         to end in Rel or Rela (uppercase).
18828         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
18829         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
18830         elf_dynamic_do_##reloc function.
18832 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
18834         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
18835         is sufficient, at least on modern CPUs.
18837         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
18839         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
18840         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
18842         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
18843         __expl_finite.
18844         * math/bits/math-finite.h: Add entries for exp.
18845         * math/e_expl.c: Add __*_finite alias.
18846         * sysdeps/i386/fpu/e_exp.S: Likewise.
18847         * sysdeps/i386/fpu/e_expf.S: Likewise.
18848         * sysdeps/i386/fpu/e_expl.c: Likewise.
18849         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
18850         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
18851         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
18852         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
18853         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
18854         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
18855         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
18857         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
18858         is sufficient, at least on modern CPUs.
18860         * ctype/ctype-info.c (__ctype_init): Define.
18861         * include/ctype.h (__ctype_init): Declare.
18862         (__ctype_b_loc): The variable is always initialized.
18863         (__ctype_toupper_loc): Likewise.
18864         (__ctype_tolower_loc): Likewise.
18865         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
18866         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
18868 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
18870         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
18872         * configure.in: Also look in $cxxmachine/include for C++ system
18873         headers.
18875 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18877         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
18878         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
18879         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
18880         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
18881         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
18882         (USE_AS_WMEMCMP): New macro.
18883         Fixing indents.
18884         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
18885         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
18886         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
18887         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
18888         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18889         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
18890         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
18891         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
18892         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
18893         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
18894         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
18895         (USE_AS_WMEMCMP): New macro.
18896         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
18897         * sysdeps/string/test-memcmp.c: Update.
18898         Fix simple_wmemcmp.
18899         Add new tests.
18900         * wcsmbs/wmemcmp.c: Update.
18901         (WMEMCMP): New macro.
18902         Fix overflow bug.
18904 2011-10-12  Andreas Jaeger  <aj@suse.de>
18906         [BZ #13268]
18907         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
18909 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
18911         * libio/iofwide.c (do_length): Avoid warning.
18913         * ctype/ctype.h (__isctype_f): Add missing __THROW.
18915 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
18917         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
18919         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
18920         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
18921         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
18922         * sysdeps/i386/i686/fpu/e_log.S: New file.
18923         * sysdeps/i386/i686/fpu/e_logf.S: New file.
18924         * sysdeps/i386/i686/fpu/e_logl.S: New file.
18926         * ctype/ctype.h: Add support for inlined isXXX functions when
18927         compiling C++ code.
18929 2011-10-14  Andreas Schwab  <schwab@redhat.com>
18931         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18933         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
18935 2011-10-13  Roland McGrath  <roland@hack.frob.com>
18937         [BZ #13291]
18938         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
18940 2011-10-13  Andreas Schwab  <schwab@redhat.com>
18942         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
18943         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
18944         feraiseexcept.
18946         * sysdeps/x86_64/memrchr.S: Check for zero size.
18948         * string/stratcliff.c: Add memrchr tests.
18950 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18952         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18953         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
18954         rawmemchr-sse2 rawmemchr-sse2-bsf.
18955         * sysdeps/i386/i686/multiarch/memchr.S: New file.
18956         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
18957         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
18958         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
18959         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
18960         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
18961         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
18962         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
18963         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
18964         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
18965         * string/memrchr.c (MEMRCHR): New macro.
18967 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
18969         Add integration with gcc's -ffinite-math-only and optimize wrapper
18970         functions in libm.
18971         * Versions.def: Define GLIBC_2.15 version for libm.
18972         * math/Makefile (headers): Add bits/math-finite.h.
18973         * math/bits/math-finite.h: New file.
18974         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
18975         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
18976         * math/e_acoshl.c: Add __*_finite alias.
18977         * math/e_acosl.c: Likewise.
18978         * math/e_asinl.c: Likewise.
18979         * math/e_atan2l.c: Likewise.
18980         * math/e_atanhl.c: Likewise.
18981         * math/e_coshl.c: Likewise.
18982         * math/e_exp10.c: Likewise.
18983         * math/e_exp10f.c: Likewise.
18984         * math/e_exp10l.c: Likewise.
18985         * math/e_exp2l.c: Likewise.
18986         * math/e_fmodl.c: Likewise.
18987         * math/e_gammal_r.c: Likewise.
18988         * math/e_hypotl.c: Likewise.
18989         * math/e_j0l.c: Likewise.
18990         * math/e_j1l.c: Likewise.
18991         * math/e_jnl.c: Likewise.
18992         * math/e_lgammal_r.c: Likewise.
18993         * math/e_log10l.c: Likewise.
18994         * math/e_log2l.c: Likewise.
18995         * math/e_logl.c: Likewise.
18996         * math/e_powl.c: Likewise.
18997         * math/e_sinhl.c: Likewise.
18998         * math/e_sqrtl.c: Likewise.
18999         * math/e_scalb.c: Completely rewritten and optimized.
19000         * math/e_scalbf.c: Likewise.
19001         * math/e_scalbl.c: Likewise.
19002         * math/w_acos.c: Likewise.
19003         * math/w_acosf.c: Likewise.
19004         * math/w_acosl.c: Likewise.
19005         * math/w_acosh.c: Likewise.
19006         * math/w_acoshf.c: Likewise.
19007         * math/w_acoshl.c: Likewise.
19008         * math/w_asin.c: Likewise.
19009         * math/w_asinf.c: Likewise.
19010         * math/w_asinl.c: Likewise.
19011         * math/w_atan2.c: Likewise.
19012         * math/w_atan2f.c: Likewise.
19013         * math/w_atan2l.c: Likewise.
19014         * math/w_atanh.c: Likewise.
19015         * math/w_atanhf.c: Likewise.
19016         * math/w_atanhl.c: Likewise.
19017         * math/w_exp10.c: Likewise.
19018         * math/w_exp10f.c: Likewise.
19019         * math/w_exp10l.c: Likewise.
19020         * math/w_fmod.c: Likewise.
19021         * math/w_fmodf.c: Likewise.
19022         * math/w_fmodl.c: Likewise.
19023         * math/w_j0.c: Likewise.
19024         * math/w_j0f.c: Likewise.
19025         * math/w_j0l.c: Likewise.
19026         * math/w_j1.c: Likewise.
19027         * math/w_j1f.c: Likewise.
19028         * math/w_j1l.c: Likewise.
19029         * math/w_jn.c: Likewise.
19030         * math/w_jnf.c: Likewise.
19031         * math/w_log.c: Likewise.
19032         * math/w_logf.c: Likewise.
19033         * math/w_logl.c: Likewise.
19034         * math/w_log10.c: Likewise.
19035         * math/w_log10f.c: Likewise.
19036         * math/w_log10l.c: Likewise.
19037         * math/w_log2.c: Likewise.
19038         * math/w_log2f.c: Likewise.
19039         * math/w_log2l.c: Likewise.
19040         * math/w_pow.c: Likewise.
19041         * math/w_powf.c: Likewise.
19042         * math/w_powl.c: Likewise.
19043         * math/w_remainder.c: Likewise.
19044         * math/w_remainderf.c: Likewise.
19045         * math/w_remainderl.c: Likewise.
19046         * math/w_scalb.c: Likewise.
19047         * math/w_scalbf.c: Likewise.
19048         * math/w_scalbl.c: Likewise.
19049         * math/w_sqrt.c: Likewise.
19050         * math/w_sqrtf.c: Likewise.
19051         * math/w_sqrtl.c: Likewise.
19052         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
19053         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
19054         used.
19055         * math/math_private.h: Declare __kernel_standard_f.
19056         * math/w_cosh.c: Remove cruft and optimize a bit.
19057         * math/w_coshf.c: Likewise.
19058         * math/w_coshl.c: Likewise.
19059         * math/w_exp2.c: Likewise.
19060         * math/w_exp2f.c: Likewise.
19061         * math/w_exp2l.c: Likewise.
19062         * math/w_hypot.c: Likewise.
19063         * math/w_hypotf.c: Likewise.
19064         * math/w_hypotl.c: Likewise.
19065         * math/w_lgamma.c: Likewise.
19066         * math/w_lgamma_r.c: Likewise.
19067         * math/w_lgammaf.c: Likewise.
19068         * math/w_lgammaf_r.c: Likewise.
19069         * math/w_lgammal.c: Likewise.
19070         * math/w_lgammal_r.c: Likewise.
19071         * math/w_sinh.c: Likewise.
19072         * math/w_sinhf.c: Likewise.
19073         * math/w_sinhl.c: Likewise.
19074         * math/w_tgamma.c: Likewise.
19075         * math/w_tgammaf.c: Likewise.
19076         * math/w_tgammal.c: Likewise.
19077         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
19078         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
19079         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
19080         Minor optimizations.  Pretty printing.  Remove cruft.
19081         * sysdeps/i386/fpu/e_acosf.S: Likewise.
19082         * sysdeps/i386/fpu/e_acosh.S: Likewise.
19083         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
19084         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
19085         * sysdeps/i386/fpu/e_acosl.c: Likewise.
19086         * sysdeps/i386/fpu/e_asin.S: Likewise.
19087         * sysdeps/i386/fpu/e_asinf.S: Likewise.
19088         * sysdeps/i386/fpu/e_atan2.S: Likewise.
19089         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
19090         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
19091         * sysdeps/i386/fpu/e_atanh.S: Likewise.
19092         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
19093         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
19094         * sysdeps/i386/fpu/e_exp10.S: Likewise.
19095         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
19096         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
19097         * sysdeps/i386/fpu/e_exp2.S: Likewise.
19098         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
19099         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
19100         * sysdeps/i386/fpu/e_fmod.S: Likewise.
19101         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
19102         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
19103         * sysdeps/i386/fpu/e_hypot.S: Likewise.
19104         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
19105         * sysdeps/i386/fpu/e_log.S: Likewise.
19106         * sysdeps/i386/fpu/e_log10.S: Likewise.
19107         * sysdeps/i386/fpu/e_log10f.S: Likewise.
19108         * sysdeps/i386/fpu/e_log10l.S: Likewise.
19109         * sysdeps/i386/fpu/e_log2.S: Likewise.
19110         * sysdeps/i386/fpu/e_log2f.S: Likewise.
19111         * sysdeps/i386/fpu/e_log2l.S: Likewise.
19112         * sysdeps/i386/fpu/e_logf.S: Likewise.
19113         * sysdeps/i386/fpu/e_logl.S: Likewise.
19114         * sysdeps/i386/fpu/e_pow.S: Likewise.
19115         * sysdeps/i386/fpu/e_powf.S: Likewise.
19116         * sysdeps/i386/fpu/e_powl.S: Likewise.
19117         * sysdeps/i386/fpu/e_remainder.S: Likewise.
19118         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
19119         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
19120         * sysdeps/i386/fpu/e_scalb.S: Likewise.
19121         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
19122         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
19123         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
19124         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
19125         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
19126         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
19127         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
19128         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
19129         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
19130         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
19131         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
19132         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
19133         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
19134         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
19135         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
19136         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
19137         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
19138         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
19139         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
19140         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
19141         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
19142         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
19143         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
19144         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
19145         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
19146         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
19147         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
19148         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
19149         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
19150         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
19151         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
19152         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
19153         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
19154         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
19155         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
19156         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
19157         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
19158         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
19159         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
19160         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
19161         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
19162         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
19163         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
19164         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
19165         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
19166         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
19167         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
19168         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
19169         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
19170         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
19171         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
19172         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
19173         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
19174         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
19175         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
19176         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
19177         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
19178         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
19179         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
19180         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
19181         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
19182         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
19183         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
19184         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
19185         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
19186         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
19187         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
19188         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
19189         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
19190         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
19191         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
19192         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
19193         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
19194         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
19195         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
19196         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
19197         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
19198         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
19199         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
19200         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
19201         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
19202         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
19203         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
19204         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
19205         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
19206         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
19207         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
19208         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
19209         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
19210         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
19211         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
19212         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
19213         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
19214         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
19215         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
19216         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
19217         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
19218         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
19219         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
19220         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
19221         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
19222         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
19223         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
19224         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
19225         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
19226         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
19227         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
19228         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
19229         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
19230         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
19231         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
19232         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
19233         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
19234         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
19235         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
19236         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
19237         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
19238         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
19239         (__isnanf): Likewise.
19240         (__isinf_ns): Likewise.
19241         (__isinf_nsf): Likewise.
19242         (__finite): Likewise.
19243         (__finitef): Likewise.
19244         (__ieee754_sqrt): Define as macro.
19245         (__ieee754_sqrtf): Define as macro.
19246         (__ieee754_sqrtl): Define as macro.
19247         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
19248         inlined copy.
19249         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
19250         __FINITE_MATH_ONLY__ consistent.
19251         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
19253 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
19255         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
19256         of rawmemchr.
19258         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
19260 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
19262         * po/ja.po: Update from translation team.
19264 2011-10-08  Roland McGrath  <roland@hack.frob.com>
19266         * locale/programs/locarchive.c (prepare_address_space): New function.
19267         (create_archive, enlarge_archive, open_archive): Use it.
19269         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
19270         inside [SHARED], where it is used.
19272         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
19274         * nss/getent.c (netgroup_keys): Remove unused variable.
19275         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
19277 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
19279         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
19280         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
19281         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
19282         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
19283         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
19284         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
19285         * math/Makefile (libm-calls): Add s_isinf_ns.
19286         * math/divtc3.c: Use __isinf_nsl instead of isinf.
19287         * math/multc3.c: Likewise.
19288         * math/s_casin.c: Likewise.
19289         * math/s_casinf.c: Likewise.
19290         * math/s_casinl.c: Likewise.
19291         * math/s_ccos.c: Likewise.
19292         * math/s_ccosf.c: Likewise.
19293         * math/s_ccosl.c: Likewise.
19294         * math/s_ctan.c: Likewise.
19295         * math/s_ctanf.c: Likewise.
19296         * math/s_ctanh.c: Likewise.
19297         * math/s_ctanhf.c: Likewise.
19298         * math/s_ctanhl.c: Likewise.
19299         * math/s_ctanl.c: Likewise.
19300         * math/w_fmod.c: Likewise.
19301         * math/w_fmodf.c: Likewise.
19302         * math/w_fmodl.c: Likewise.
19303         * math/w_remainder.c: Likewise.
19304         * math/w_remainderf.c: Likewise.
19305         * math/w_remainderl.c: Likewise.
19306         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
19307         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
19308         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
19309         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
19310         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
19311         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
19312         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
19313         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
19315         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
19316         of the number.
19317         * stdio-common/printf_fphex.c: Likewise.
19318         * stdio-common/printf_size.c: Likewise.
19320         * math/e_exp10.c: Include math_private.h using <...> not "...".
19321         * math/e_exp10f.c: Likewise.
19322         * math/e_exp10l.c: Likewise.
19323         * math/e_exp2l.c: Likewise.
19324         * math/e_j0l.c: Likewise.
19325         * math/e_j1l.c: Likewise.
19326         * math/e_jnl.c: Likewise.
19327         * math/e_lgammal_r.c: Likewise.
19328         * math/e_rem_pio2l.c: Likewise.
19329         * math/e_scalb.c: Likewise.
19330         * math/e_scalbf.c: Likewise.
19331         * math/e_scalbl.c: Likewise.
19332         * math/k_cosl.c: Likewise.
19333         * math/k_sinl.c: Likewise.
19334         * math/k_tanl.c: Likewise.
19335         * math/s_cacoshf.c: Likewise.
19336         * math/s_catan.c: Likewise.
19337         * math/s_catanf.c: Likewise.
19338         * math/s_catanh.c: Likewise.
19339         * math/s_catanhf.c: Likewise.
19340         * math/s_catanhl.c: Likewise.
19341         * math/s_catanl.c: Likewise.
19342         * math/s_ccosh.c: Likewise.
19343         * math/s_ccoshf.c: Likewise.
19344         * math/s_ccoshl.c: Likewise.
19345         * math/s_cexp.c: Likewise.
19346         * math/s_cexpf.c: Likewise.
19347         * math/s_cexpl.c: Likewise.
19348         * math/s_clog.c: Likewise.
19349         * math/s_clog10.c: Likewise.
19350         * math/s_clog10f.c: Likewise.
19351         * math/s_clog10l.c: Likewise.
19352         * math/s_clogf.c: Likewise.
19353         * math/s_clogl.c: Likewise.
19354         * math/s_csin.c: Likewise.
19355         * math/s_csinf.c: Likewise.
19356         * math/s_csinh.c: Likewise.
19357         * math/s_csinhf.c: Likewise.
19358         * math/s_csinhl.c: Likewise.
19359         * math/s_csinl.c: Likewise.
19360         * math/s_csqrt.c: Likewise.
19361         * math/s_csqrtf.c: Likewise.
19362         * math/s_csqrtl.c: Likewise.
19363         * math/s_ctan.c: Likewise.
19364         * math/s_ctanf.c: Likewise.
19365         * math/s_ctanh.c: Likewise.
19366         * math/s_ctanhf.c: Likewise.
19367         * math/s_ctanhl.c: Likewise.
19368         * math/s_ctanl.c: Likewise.
19369         * math/s_ldexp.c: Likewise.
19370         * math/s_ldexpf.c: Likewise.
19371         * math/s_ldexpl.c: Likewise.
19372         * math/s_significand.c: Likewise.
19373         * math/s_significandf.c: Likewise.
19374         * math/s_significandl.c: Likewise.
19375         * math/w_acos.c: Likewise.
19376         * math/w_acosf.c: Likewise.
19377         * math/w_acosh.c: Likewise.
19378         * math/w_acoshf.c: Likewise.
19379         * math/w_acoshl.c: Likewise.
19380         * math/w_acosl.c: Likewise.
19381         * math/w_asin.c: Likewise.
19382         * math/w_asinf.c: Likewise.
19383         * math/w_asinl.c: Likewise.
19384         * math/w_atan2.c: Likewise.
19385         * math/w_atan2f.c: Likewise.
19386         * math/w_atan2l.c: Likewise.
19387         * math/w_atanh.c: Likewise.
19388         * math/w_atanhf.c: Likewise.
19389         * math/w_atanhl.c: Likewise.
19390         * math/w_cosh.c: Likewise.
19391         * math/w_coshf.c: Likewise.
19392         * math/w_coshl.c: Likewise.
19393         * math/w_dremf.c: Likewise.
19394         * math/w_exp10.c: Likewise.
19395         * math/w_exp10f.c: Likewise.
19396         * math/w_exp10l.c: Likewise.
19397         * math/w_exp2.c: Likewise.
19398         * math/w_exp2f.c: Likewise.
19399         * math/w_fmod.c: Likewise.
19400         * math/w_fmodf.c: Likewise.
19401         * math/w_fmodl.c: Likewise.
19402         * math/w_hypot.c: Likewise.
19403         * math/w_hypotf.c: Likewise.
19404         * math/w_hypotl.c: Likewise.
19405         * math/w_j0.c: Likewise.
19406         * math/w_j0f.c: Likewise.
19407         * math/w_j0l.c: Likewise.
19408         * math/w_j1.c: Likewise.
19409         * math/w_j1f.c: Likewise.
19410         * math/w_j1l.c: Likewise.
19411         * math/w_jn.c: Likewise.
19412         * math/w_jnf.c: Likewise.
19413         * math/w_jnl.c: Likewise.
19414         * math/w_lgamma.c: Likewise.
19415         * math/w_lgamma_r.c: Likewise.
19416         * math/w_lgammaf.c: Likewise.
19417         * math/w_lgammaf_r.c: Likewise.
19418         * math/w_lgammal.c: Likewise.
19419         * math/w_lgammal_r.c: Likewise.
19420         * math/w_log.c: Likewise.
19421         * math/w_log10.c: Likewise.
19422         * math/w_log10f.c: Likewise.
19423         * math/w_log10l.c: Likewise.
19424         * math/w_log2.c: Likewise.
19425         * math/w_log2f.c: Likewise.
19426         * math/w_log2l.c: Likewise.
19427         * math/w_logf.c: Likewise.
19428         * math/w_logl.c: Likewise.
19429         * math/w_pow.c: Likewise.
19430         * math/w_powf.c: Likewise.
19431         * math/w_powl.c: Likewise.
19432         * math/w_remainder.c: Likewise.
19433         * math/w_remainderf.c: Likewise.
19434         * math/w_remainderl.c: Likewise.
19435         * math/w_scalb.c: Likewise.
19436         * math/w_scalbf.c: Likewise.
19437         * math/w_scalbl.c: Likewise.
19438         * math/w_sinh.c: Likewise.
19439         * math/w_sinhf.c: Likewise.
19440         * math/w_sinhl.c: Likewise.
19441         * math/w_sqrt.c: Likewise.
19442         * math/w_sqrtf.c: Likewise.
19443         * math/w_sqrtl.c: Likewise.
19444         * math/w_tgamma.c: Likewise.
19445         * math/w_tgammaf.c: Likewise.
19446         * math/w_tgammal.c: Likewise.
19448         * po/ja.po: Update from translation team.
19450 2011-09-29  Andreas Jaeger  <aj@suse.de>
19452         [BZ #13179]
19453         * sunrpc/netname.c (netname2host): Fix logic.
19455         [BZ #6779]
19456         [BZ #6783]
19457         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
19458         correctly.
19459         * math/w_remainder.c (__remainder): Likewise.
19460         * math/w_remainderf.c (__remainderf): Likewise.
19461         * math/libm-test.inc (remainder_test): Add test cases.
19463 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19465         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
19466         sdiv_qrnnd.
19468 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
19470         * string/test-memcmp.c: Avoid unncessary #defines.
19471         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
19473 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19475         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
19476         Use new sse2 version for core i3 - i7 as it's faster
19477         than sse42 version.
19478         (bit_Prefer_PMINUB_for_stringop): New.
19479         * sysdeps/x86_64/rawmemchr.S: Update.
19480         Replace with faster SSE2 version.
19481         * sysdeps/x86_64/memrchr.S: New file.
19482         * sysdeps/x86_64/memchr.S: Update.
19483         Replace with faster SSE2 version.
19485 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
19487         * elf/dl-load.c (lose): Add cast to avoid warning.
19489 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
19491         * po/ca.po: Update from translation team.
19493         * inet/getnetgrent_r.c: Hook up nscd.
19494         * nscd/Makefile (routines): Add nscd_netgroup.
19495         (nscd-modules): Add netgroupcache.
19496         (CFLAGS-netgroupcache.c): Define.
19497         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
19498         (cache_search): Add const to second parameter.
19499         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
19500         INNETGR.
19501         (dbs): Add netgrdb entry.
19502         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
19503         (verify_persistent_db): Handle netgrdb.
19504         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
19505         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
19506         GETFDNETGR.
19507         (netgroup_response_header): Define.
19508         (innetgroup_response_header): Define.
19509         (datahead): Add netgroup_response_header and innetgroup_response_header
19510         elements.
19511         * nscd/nscd.conf: Add entries for netgroup cache.
19512         * nscd/nscd.h (dbtype): Add netgrdb.
19513         (_PATH_NSCD_NETGROUP_DB): Define.
19514         (netgroup_iov_disabled): Declare.
19515         (xmalloc, xcalloc, xrealloc): Move declarations here.
19516         (cache_search): Adjust prototype.
19517         Add netgroup-related prototypes.
19518         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
19519         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
19520         (__nscd_innetgr): Declare.
19521         * nscd/selinux.c (perms): Use access_vector_t as element type and
19522         add netgroup-related initializers.
19523         * nscd/netgroupcache.c: New file.
19524         * nscd/nscd_netgroup.c: New file.
19525         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
19526         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
19527         For four parameters use innetgr.
19528         * nss/nss_files/files-init.c: Add definition and callback for netgr.
19529         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
19530         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
19531         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
19533         * nscd/connections.c (register_traced_file): Don't register file
19534         for disabled databases.
19536 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
19538         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
19540         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
19541         from tree and freeing node.
19543 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
19545         * nss/nsswitch.c (__nss_database_lookup): Handle
19546         nss_parse_service_list out of memory case.
19548 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
19550         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
19551         out of memory case.
19553 2011-10-04  Andreas Schwab  <schwab@redhat.com>
19555         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
19556         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
19557         pass it down.
19558         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
19559         elf_machine_rela, elf_machine_lazy_rel.
19560         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
19561         (ELF_DYNAMIC_DO_REL): Likewise.
19562         (ELF_DYNAMIC_DO_RELA): Likewise.
19563         (ELF_DYNAMIC_RELOCATE): Likewise.
19564         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
19565         to ELF_DYNAMIC_DO_REL.
19566         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
19567         (dl_main): In trace mode always set __RTLD_NOIFUNC.
19568         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
19569         elf_machine_rela.
19570         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
19571         skip_ifunc, don't call ifunc function if non-zero.
19572         (elf_machine_rela): Likewise.
19573         (elf_machine_lazy_rel): Likewise.
19574         (elf_machine_lazy_rela): Likewise.
19575         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
19576         (elf_machine_lazy_rel): Likewise.
19577         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
19578         Likewise.
19579         (elf_machine_lazy_rel): Likewise.
19580         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19581         Likewise.
19582         (elf_machine_lazy_rel): Likewise.
19583         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
19584         (elf_machine_lazy_rel): Likewise.
19585         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
19586         (elf_machine_lazy_rel): Likewise.
19587         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
19588         (elf_machine_lazy_rel): Likewise.
19589         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
19590         (elf_machine_lazy_rel): Likewise.
19591         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
19592         (elf_machine_lazy_rel): Likewise.
19593         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
19594         (elf_machine_lazy_rel): Likewise.
19596 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
19598         * nss/nss_files/files-init.c (_nss_files_init): Use static
19599         initialization for all the *_traced_file variables.
19601 2011-09-28  Andreas Schwab  <schwab@redhat.com>
19603         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
19605 2011-09-27  Roland McGrath  <roland@hack.frob.com>
19607         [BZ #13226]
19608         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
19610 2011-09-27  Andreas Schwab  <schwab@redhat.com>
19612         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
19613         Reread the line before reparsing it.
19615 2011-09-26  Andreas Schwab  <schwab@redhat.com>
19617         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
19619 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
19620             Maxim Kuvyrkov  <maxim@codesourcery.com>
19621             Joseph Myers  <joseph@codesourcery.com>
19623         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
19624         if needed for __stack_chk_guard.
19626 2011-09-19  Roland McGrath  <roland@hack.frob.com>
19628         * sysdeps/posix/spawni.c (script_execute): Always define it.
19629         It will be optimized away if unused.
19630         (maybe_script_execute): New function.
19631         (__spawni): Call it.
19633         * Makerules: Don't include tls.make.
19634         (config-tls): Always set to thread.
19635         * tls.make.c: File removed.
19637 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
19639         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
19640         * config.make.in (CPPFLAGS-config): New substituted variable.
19642 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
19644         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
19646         [BZ #13192]
19647         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
19648         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
19650 2011-09-15  Roland McGrath  <roland@hack.frob.com>
19652         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
19653         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
19654         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
19655         (CALL_FAIL): Likewise.
19656         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
19657         (CALL_FAIL): Macro removed.
19658         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
19660 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
19662         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
19663         for __FINITE_MATH_ONLY__ == 1.
19665 2011-09-15  Andreas Schwab  <schwab@redhat.com>
19667         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
19668         __ieee754_sqrt instead of sqrt.
19669         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
19670         __ieee754_sqrtf instead of sqrtf.
19671         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
19672         __floorf instead of floorf.
19673         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
19674         __floorf, __truncf instead of floorf, truncf.
19676 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
19678         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
19680         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
19681         __extern_always_inline.
19682         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
19683         32-bit.
19685 2011-09-14  Andreas Schwab  <schwab@redhat.com>
19687         * elf/rtld.c (dl_main): Also relocate in dependency order when
19688         doing symbol dependency testing.
19690 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
19692         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19693         Always define `refsym'.
19695 2011-09-13  Andreas Schwab  <schwab@redhat.com>
19697         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
19698         (__FD_ELT): Renamed from __FDELT.
19699         * misc/bits/select2.h (__FD_ELT): Likewise.
19700         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
19701         __FD_MASK instead of __FDELT, __FDMASK.
19702         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
19703         Likewise.
19704         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
19705         Likewise.
19707         * elf/Makefile (gen-ldd): Fix pattern.
19709         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
19710         (init_tls): Likewise.
19712 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
19714         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
19716 2011-09-12  Andreas Schwab  <schwab@redhat.com>
19718         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
19719         `struct cmsghdr *' instead of `void *'.
19720         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
19721         Likewise.
19723 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
19725         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
19726         if non-absolute.
19727         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
19728         ldd_rewrite_script.
19730 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
19732         * configure.in: Remove --with-tls option.
19733         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
19734         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
19735         out in case it is missing.
19736         * sysdeps/ia64/elf/configure.in: Likewise.
19737         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
19738         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
19739         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
19740         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
19741         * sysdeps/sh/elf/configure.in: Likewise.
19742         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
19743         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
19744         * sysdeps/x86_64/elf/configure.in: Likewise.
19745         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
19746         * sysdeps/mach/hurd/tls.h: Likewise.
19748         [BZ #13067]
19749         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
19751         [BZ #13090]
19752         * configure.in: Fix use of AC_INIT.
19754         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
19756 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
19758         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
19759         __set_errno.
19760         * malloc/hooks.c: Likewise.
19762         [BZ #11929]
19763         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
19764         variables statically.
19765         (narenas): Initialize.
19766         (list_lock): Initialize.
19767         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
19768         initializtion of main_arena and list_lock.  Small cleanups.
19769         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
19770         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
19771         Add initializers to main_arena and mp_.
19772         (malloc_state): Remove pagesize member.  Change all users to use
19773         GLRO(dl_pagesize).
19775         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
19776         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
19777         is always initialized.
19779         * malloc/malloc.c: Removed unused configurations and dead code.
19780         * malloc/arena.c: Likewise.
19781         * malloc/hooks.c: Likewise.
19782         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
19784         * include/tls.h: Removed.  USE___THREAD must always be defined.
19785         * bits/libc-tsd.h: Don't handle !USE___THREAD.
19786         * elf/dl-libc.c: Likewise.
19787         * elf/dl-tsd.c: Likewise.
19788         * include/errno.h: Likewise.
19789         * include/netdb.h: Likewise.
19790         * include/resolv.h: Likewise.
19791         * inet/herrno-loc.c: Likewise.
19792         * inet/herrno.c: Likewise.
19793         * malloc/arena.c: Likewise.
19794         * malloc/hooks.c: Likewise.
19795         * malloc/malloc.c: Likewise.
19796         * resolv/res-state.c: Likewise.
19797         * resolv/res_libc.c: Likewise.
19798         * sysdeps/i386/dl-machine.h: Likewise.
19799         * sysdeps/ia64/dl-machine.h: Likewise.
19800         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
19801         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
19802         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
19803         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
19804         * sysdeps/sh/dl-machine.h: Likewise.
19805         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
19806         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
19807         * sysdeps/unix/i386/sysdep.S: Likewise.
19808         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
19809         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
19810         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
19811         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19812         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
19813         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
19814         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
19815         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
19816         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
19817         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
19818         * sysdeps/unix/x86_64/sysdep.S: Likewise.
19819         * sysdeps/x86_64/dl-machine.h: Likewise.
19820         * tls.make.c: Likewise.
19822         * configure.in: Remove --with-__thread option.  Make tests for
19823         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
19824         tls_model attribute fail if no support is available.  Remove
19825         USE_IN_LIBIO.
19826         * Makeconfig: Adjust for dropped configure option.  All features are
19827         now mandatory.
19828         * Makerules: Likewise.
19829         * Versions.def: Likewise.
19830         * argp/argp-fmtstream.c: Likewise.
19831         * argp/argp-fmtstream.h: Likewise.
19832         * argp/argp-help.c: Likewise.
19833         * assert/assert.c: Likewise.
19834         * config.h.in: Likewise.
19835         * config.make.in: Likewise.
19836         * configure: Likewise.
19837         * configure.in: Likewise.
19838         * csu/Versions: Likewise.
19839         * csu/init.c: Likewise.
19840         * elf/tst-audit2.c: Likewise.
19841         * elf/tst-tls10.c: Likewise.
19842         * elf/tst-tls10.h: Likewise.
19843         * elf/tst-tls11.c: Likewise.
19844         * elf/tst-tls12.c: Likewise.
19845         * elf/tst-tls14.c: Likewise.
19846         * elf/tst-tlsmod11.c: Likewise.
19847         * elf/tst-tlsmod12.c: Likewise.
19848         * elf/tst-tlsmod13.c: Likewise.
19849         * elf/tst-tlsmod13a.c: Likewise.
19850         * elf/tst-tlsmod14a.c: Likewise.
19851         * elf/tst-tlsmod15b.c: Likewise.
19852         * elf/tst-tlsmod16a.c: Likewise.
19853         * elf/tst-tlsmod16b.c: Likewise.
19854         * elf/tst-tlsmod7.c: Likewise.
19855         * elf/tst-tlsmod8.c: Likewise.
19856         * elf/tst-tlsmod9.c: Likewise.
19857         * gmon/gmon.c: Likewise.
19858         * grp/fgetgrent_r.c: Likewise.
19859         * grp/putgrent.c: Likewise.
19860         * hurd/fopenport.c: Likewise.
19861         * include/libc-symbols.h: Likewise.
19862         * include/tls.h: Likewise.
19863         * intl/gettextP.h: Likewise.
19864         * intl/loadinfo.h: Likewise.
19865         * locale/global-locale.c: Likewise.
19866         * locale/localeinfo.h: Likewise.
19867         * mach/devstream.c: Likewise.
19868         * malloc/arena.c: Likewise.
19869         * malloc/set-freeres.c: Likewise.
19870         * misc/err.c: Likewise.
19871         * misc/getttyent.c: Likewise.
19872         * misc/mntent_r.c: Likewise.
19873         * posix/getopt.c: Likewise.
19874         * posix/wordexp.c: Likewise.
19875         * pwd/fgetpwent_r.c: Likewise.
19876         * resolv/Versions: Likewise.
19877         * resolv/res_hconf.c: Likewise.
19878         * shadow/fgetspent_r.c: Likewise.
19879         * shadow/putspent.c: Likewise.
19880         * stdio-common/printf_fphex.c: Likewise.
19881         * stdio-common/tmpfile.c: Likewise.
19882         * stdlib/abort.c: Likewise.
19883         * stdlib/fmtmsg.c: Likewise.
19884         * sunrpc/auth_unix.c: Likewise.
19885         * sunrpc/clnt_perr.c: Likewise.
19886         * sunrpc/clnt_tcp.c: Likewise.
19887         * sunrpc/clnt_udp.c: Likewise.
19888         * sunrpc/clnt_unix.c: Likewise.
19889         * sunrpc/openchild.c: Likewise.
19890         * sunrpc/svc_simple.c: Likewise.
19891         * sunrpc/svc_tcp.c: Likewise.
19892         * sunrpc/svc_udp.c: Likewise.
19893         * sunrpc/svc_unix.c: Likewise.
19894         * sunrpc/xdr.c: Likewise.
19895         * sunrpc/xdr_array.c: Likewise.
19896         * sunrpc/xdr_rec.c: Likewise.
19897         * sunrpc/xdr_ref.c: Likewise.
19898         * sunrpc/xdr_stdio.c: Likewise.
19900 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
19902         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
19904 2011-07-03  Andreas Jaeger  <aj@suse.de>
19906         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
19907         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
19908         regenerate with gen-libm-tests.pl.
19910 2010-05-12  Petr Baudis  <pasky@suse.cz>
19912         [BZ #11589]
19913         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
19914         around j0() zero points by switching to j1().
19915         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
19916         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
19917         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
19918         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
19920 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
19922         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
19923         instead of 0.
19924         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
19925         instead of 0.
19926         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19927         Patch in part by Pavel Roskin <proski@gnu.org>.
19929         [BZ #13138]
19930         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
19931         realloc.
19932         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
19933         Free memory block if necessary.
19935         [BZ #12847]
19936         * libio/genops.c (INTDEF): For string streams the _lock pointer can
19937         be NULL.  Don't lock in this case.
19939 2011-09-09  Roland McGrath  <roland@hack.frob.com>
19941         * elf/elf.h (ELFOSABI_GNU): New macro.
19942         (ELFOSABI_LINUX): Define to that.
19944 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
19946         * string/strncat.c (strncat): Undef the symbol in case it has been
19947         defined in bits/string.h.
19949 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
19951         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
19953         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
19954         link map.
19956 2011-08-17  Andreas Jaeger  <aj@suse.de>
19958         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
19960 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
19961             Ian Lance Taylor  <iant@google.com>
19963         * math/libm-test.inc (lround_test): New testcase.
19964         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
19966 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
19968         * Makefile: Remove support for automatic cvs check-ins.
19969         * Makerules: Likewise.
19970         * config.make.in: Likewise.
19971         * configure.in: Likewise.
19972         * intl/Makefile: Likewise.
19973         * locale/Makefile: Likewise.
19974         * po/Makefile: Likewise.
19975         * posix/Makefile: Likewise.
19976         * sysdeps/gnu/Makefile: Likewise.
19977         * sysdeps/mach/hurd/Makefile: Likewise.
19978         * sysdeps/sparc/sparc32/Makefile: Likewise.
19980         [BZ #13118]
19981         * posix/Makefile (bug-regex32-ENV): Define.
19982         Patch by John Stanley <jpsinthemix@verizon.net>.
19984         * misc/Makefile (headers): Add bits/select2.h.
19985         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
19986         * misc/bits/select2.h: New file.
19987         * include/bits/select2.h: New file.
19988         * debug/Makefile (routines): Add fdelt_chk.
19989         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
19990         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
19991         FD_ISSET.
19992         * debug/fdelt_chk.c: New file.
19994         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
19995         * wcsmbs/test-wmemcmp.c: Likewise.
19996         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
19997         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
19999 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20001         * string/Makefile (strop-tests): Add memcmp.
20002         * string/test-wmemcmp.c: New file.
20003         * string/test-memcmp.c: Add wmemcmp support.
20005 2011-09-08  Roland McGrath  <roland@hack.frob.com>
20007         [BZ #13153]
20008         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
20009         2011-07-19 change.
20011         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
20012         garbage value in a __mach_port_mod_refs call in the cases of the
20013         task-self and thread-self ports.
20015 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20017         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
20019 2011-09-08  Andreas Schwab  <schwab@redhat.com>
20021         * elf/dl-load.c (lose): Check for non-null L.
20023 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
20025         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
20027         * elf/dl-libc.c (dlerror_run): Pass back error code from
20028         dl_catch_error.
20030         [BZ #13123]
20031         * elf/dl-load.c (lose): Free l_origin if it is valid.
20033         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
20034         names.
20035         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
20036         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
20037         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
20038         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
20039         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
20040         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
20042 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20044         * sysdeps/powerpc/fpu/e_hypot.c: New file.
20045         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
20046         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
20047         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
20048         * sysdeps/powerpc/fpu/k_cosf.c: New file.
20049         * sysdeps/powerpc/fpu/k_sinf.c: New file.
20050         * sysdeps/powerpc/fpu/s_cosf.c: New file.
20051         * sysdeps/powerpc/fpu/s_sinf.c: New file.
20052         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
20053         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
20055 2011-08-15  Alan Modra  <amodra@gmail.com>
20057         [BZ #13092]
20058         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
20059         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
20060         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
20061         ppc_mcount to static-only-routines.
20062         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
20063         __mcount_internal.
20064         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
20065         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
20067 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
20069         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
20070         for finite and infinity parameters.
20072 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
20074         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
20075         and add nop instructions for throughput optimization.
20076         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
20078 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
20080         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
20081         aligned copy for power7 with vector-scalar instructions.
20082         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
20084 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
20086         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
20087         AVX check.
20089 2011-09-07  Andreas Schwab  <schwab@redhat.com>
20091         [BZ #13144]
20092         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
20093         last change.
20095 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
20097         * sysdeps/unix/sysv/linux/x86_64/init-first.c
20098         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
20099         syscall wrapper around clock_gettime in __vdso_clock_gettime.
20100         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
20101         clock_gettime.
20103 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
20105         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
20106         Forgot to demangle the pointer.
20108         * sysdeps/i386/sysdep.h: Define atom_text_section.
20109         * sysdeps/x86_64/sysdep.h: Likewise.
20110         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
20111         section with atom_text_section.
20112         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
20113         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
20114         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
20115         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
20116         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
20118         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
20119         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
20120         already be defined.  Change to take two parameters and don't assign
20121         result to variable.  Adjust all users.
20122         Define INTERNAL_GETTIME if not already defined.
20123         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
20124         call.
20125         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
20126         HAVE_CLOCK_GETTIME_VSYSCALL.
20127         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
20129         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
20130         gettimeofday vsyscall, just use time.
20132 2011-09-06  Andreas Schwab  <schwab@redhat.com>
20134         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
20135         <errno.h>.
20137 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
20139         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
20140         syscall on x86-64.
20141         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
20142         syscall.
20143         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
20144         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
20145         syscall if possible.
20147 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
20149         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
20150         e_ident.  Don't pass to find_mapsXX.
20151         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
20153 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
20155         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20156         strchr-sse2-no-bsf strrchr-sse2-no-bsf
20157         * sysdeps/x86_64/multiarch/strchr.S: Update.
20158         Check bit_slow_BSF bit.
20159         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
20160         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
20161         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
20163 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
20165         [BZ #13134]
20166         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
20167         before glibc 2.15.
20168         (tryshell): Define.
20169         (__spawni): Change last parameter to be flag.  Test
20170         SPAWN_XFLAGS_USE_PATH flag to use path or not.
20171         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
20172         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
20173         * posix/spawni.c: Likewise.
20174         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
20175         * posix/spawnp.c: Likewise.  Change normal version to use
20176         SPAWN_XFLAGS_USE_PATH.
20177         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
20178         SPAWN_XFLAGS_TRY_SHELL.
20180         [BZ #13150]
20181         * posix/glob.h: Remove gcc 1.x support.
20183         [BZ #13068]
20184         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
20186 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
20188         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20189         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
20190         strrchr-sse2-bsf
20191         * sysdeps/i386/i686/multiarch/strchr.S: New file.
20192         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
20193         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
20194         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
20195         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
20196         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
20198 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20200         * sysdeps/x86_64/wcscmp.S: New file.
20202         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
20203         wcscmp-c wcscmp-sse2
20204         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
20205         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
20206         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
20207         * wcsmbs/wcscmp.c: Allow renaming.
20209 2011-09-05  David S. Miller  <davem@davemloft.net>
20211         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
20212         stack slot, rather than the struct return pointer slot.
20213         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
20214         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
20215         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
20216         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
20218 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
20220         * po/ja.po: Update from translation team.
20222         [BZ #13144]
20223         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
20224         kernel in 64-bit binaries.
20226 2011-09-01  David S. Miller  <davem@davemloft.net>
20228         * elf/elf.h (HWCAP_SPARC_*): Move to..
20229         * sysdeps/sparc/sysdep.h: this new file and add new values.
20230         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
20231         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
20232         _DL_HWCAP_COUNT to 24.
20233         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
20234         entries.
20235         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
20236         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
20237         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
20238         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
20239         instead of magic constants.
20240         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20242 2011-08-31  David S. Miller  <davem@davemloft.net>
20244         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
20245         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
20246         Reimplement to do errno handling inline.
20247         (SYSCALL_ERROR_HANDLER): New macro.
20248         (__SYSCALL_STRING): Do not do errno handling in asm.
20249         (__CLONE_SYSCALL_STRING): Delete.
20250         (__INTERNAL_SYSCALL_STRING): Delete.
20251         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
20252         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
20253         (PSEUDO): Reimplement to do errno handling inline.
20254         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
20255         (SYSCALL_ERROR_HANDLER): New macro.
20256         (__SYSCALL_STRING): Do not do errno handling in asm.
20257         (__CLONE_SYSCALL_STRING): Delete.
20258         (__INTERNAL_SYSCALL_STRING): Delete.
20259         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
20260         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
20261         i386.
20262         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
20263         (inline_syscall*): Add 'err' argument.
20264         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
20265         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
20266         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
20267         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
20269         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
20270         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
20272 2011-08-30  Andreas Schwab  <schwab@redhat.com>
20274         * elf/rtld.c (dl_main): Relocate objects in dependency order.
20276 2011-08-29  Jiri Olsa <jolsa@redhat.com>
20278         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
20279         directive.
20281 2011-08-24  David S. Miller  <davem@davemloft.net>
20283         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
20285 2011-08-24  Andreas Schwab  <schwab@redhat.com>
20287         * elf/Makefile: Add rules to build and run unload8 test.
20288         * elf/unload8.c: New file.
20289         * elf/unload8mod1.c: New file.
20290         * elf/unload8mod1x.c: New file.
20291         * elf/unload8mod2.c: New file.
20292         * elf/unload8mod3.c: New file.
20294         * elf/dl-close.c (_dl_close_worker): Reset private search list if
20295         it wasn't used.
20297 2011-08-23  David S. Miller  <davem@davemloft.net>
20299         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
20300         subtract stack bias.
20301         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
20302         %sp not %fp in calculations.
20303         (_JMPBUF_UNWINDS_ADJ): Likewise.
20305         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
20306         (aio_suspend): Call it to force an exception region around the
20307         AIO_MISC_WAIT() invocation.
20309 2011-08-23  Andreas Schwab  <schwab@redhat.com>
20311         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
20312         backslash.
20314 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
20316         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
20317         protection macro.
20318         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
20319         and <dl-machine.h>.
20320         (Elf64_FuncDesc): Remove.
20322 2011-08-22  David S. Miller  <davem@davemloft.net>
20324         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
20325         sigaltstack check, add missing cfi directives.
20326         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
20327         missing cfi directives, and sigaltstack handling.
20329 2011-08-16  Andreas Schwab  <schwab@redhat.com>
20331         [BZ #11724]
20332         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
20333         object is seen twice.
20334         * elf/dl-fini.c (_dl_sort_fini): Likewise.
20336         * elf/Makefile (distribute): Add tst-initorder2.c.
20337         (tests): Add tst-initorder2.
20338         (modules-names): Add tst-initorder2a tst-initorder2b
20339         tst-initorder2c tst-initorder2d.  Add rules to build them.
20340         ($(objpfx)tst-initorder2.out): New rule.
20341         * elf/tst-initorder2.c: New file.
20342         * elf/tst-initorder2.exp: New file.
20344 2011-08-22  Andreas Schwab  <schwab@redhat.com>
20346         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
20348         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
20349         dependencies back to end of function.
20351         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20352         $(elfobjdir)/ld.so.
20354 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
20356         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
20357         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
20358         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
20359         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
20360         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
20361         of __vdso_gettimeofday.
20362         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
20363         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
20364         attribute_hidden.
20365         (_libc_vdso_platform_setup): Remove initialization of
20366         __vdso_gettimeofday and __vdso_time.
20368 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
20370         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
20371         and fgetc_unlocked.
20372         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
20373         getc_unlocked.
20375         * elf/dl-open.c (add_to_global): Report additions to the global scope
20376         for LD_DEBUG=scopes.
20377         (dl_open_worker): Also print scope of newly loaded dependencies.
20378         (_dl_show_scope): Indicate if there is no scope.
20380         [BZ #13114]
20381         * stdio-common/Makefile (tests): Add bug24.
20382         * stdio-common/bug24.c: New file.
20384 2011-08-19  Andreas Jaeger  <aj@suse.de>
20386         [BZ #13114]
20387         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
20388         non-existant file when using close-on-exec mode.
20390 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
20392         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
20393         the very first instruction.
20395         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
20396         the CFI state in the end.
20397         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
20398         inclusion of dl-trampoline.h.
20399         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
20401 2011-08-19  Andreas Schwab  <schwab@redhat.com>
20403         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
20404         expectations for long double.
20406         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
20407         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
20409 2011-08-14  David S. Miller  <davem@davemloft.net>
20411         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
20412         artificual limit depends upon the system page size.
20414 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
20416         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
20417         * resolv/Makefile: Define CFLAGS-libresolv.
20419 2011-08-17  Andreas Schwab  <schwab@redhat.com>
20421         * nss/makedb.c (compute_tables): Make variables used in nested
20422         function static.
20424 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
20426         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
20427         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
20428         if buffer was too small.
20430         * elf/pldd.c (main): Attach to all threads in the process.
20431         Rewrite /proc handling to use *at functions.
20433 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
20435         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
20436         specifies first scope to show.
20437         (dl_open_worker): Update callers.  Move printing scope of new
20438         object to before the relocation.
20439         * elf/rtld.c (dl_main): Update _dl_show_scope call.
20440         * sysdeps/generic/ldsodefs.h: Update declaration.
20442         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
20443         string for the scope number.
20445 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
20447         * nscd/servicescache.c (cache_addserv): Make sure written is always
20448         initialized.
20450 2011-08-14  Roland McGrath  <roland@hack.frob.com>
20452         * sysdeps/i386/i486/bits/atomic.h
20453         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
20454         statement expression, so as to suppress "set but not used" warning.
20455         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
20457         * string/strncat.c (STRNCAT): Use prototype definition.
20459         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
20460         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
20461         -Iprograms here.
20462         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
20463         (localedef-modules): Add localedef.
20464         (locale-modules): Add locale.
20466         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
20467         * elf/rtld.c (dl_main): Invert order of assignment in last change,
20468         to avoid a warning.
20470 2011-08-14  David S. Miller  <davem@davemloft.net>
20472         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
20473         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
20475 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
20477         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
20478         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
20479         * elf/rtld.c (dl_main): Set l_name of vDSO.
20480         Call _dl_show_scope when DL_DEBUG_SCOPES.
20481         (process_dl_debug): Recognize scopes flag and also set it for all.
20482         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
20483         Declare _dl_show_scope.
20485         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
20486         (do_dlopen): Pass caller_dlopen to dl_open.
20487         (__libc_dlopen_mode): Initialize caller_dlopen.
20489         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
20490         of libc.  Make tolower call locale-independent.  Optimize a bit by
20491         using isdigit instead of isalnum.
20492         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
20494 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
20496         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
20497         was a dependency or dynamically loaded.
20499 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
20501         * intl/l10nflist.c: Allow architecture-specific pop function.
20502         * sysdeps/x86_64/l10nflist.c: New file.
20504         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
20505         classification.
20507 2011-08-10  Andreas Schwab  <schwab@redhat.com>
20509         * include/dirent.h: Add libc_hidden_proto for scandirat and
20510         scandirat64.  Don't declare __scandirat64.
20511         * dirent/scandirat.c: Add libc_hidden_def.
20512         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
20513         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
20515 2011-08-10  David S. Miller  <davem@davemloft.net>
20517         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
20518         enum.
20519         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20520         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20521         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20523 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
20525         * Versions.def [libc]: Add GLIBC_2.15.
20526         * dirent/Makefile (routines): Add scandirat and scandirat64.
20527         * dirent/Versions [libc]: Export scandirat and scandirat64 for
20528         GLIBC_2.15.
20529         * dirent/dirent.h: Declare scandirat and scandirat64.
20530         * dirent/scandirat.c: New file.
20531         * dirent/scandirat64.c: New file.
20532         * sysdeps/wordsize-64/scandirat.c: New file.
20533         * sysdeps/wordsize-64/scandirat64.c: New file.
20534         * dirent/opendir.c: Define opendirat.
20535         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
20536         using scandirat.
20537         * dirent/scandir64.c: Adjust for scandir.c change.
20538         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
20539         __scandirat64, and __scandir_cancel_handler.
20540         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
20541         additional parameter and use openat instead of open (outside of ld.so).
20542         Add new __opendir as wrapper around __opendirat.
20543         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
20544         here without requiring old scandirat implementation.
20546 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
20548         * dirent/scandir.c (cancel_handler): Renamed to
20549         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
20550         defined.  Adjust users.
20551         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
20552         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
20554 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
20556         * string/test-string.h (IMPL): Use __STRING to expand name and then
20557         stringify it.
20559         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
20560         of cleanups.
20562 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20564         * string/Makefile: Update.
20565         (strop-tests): Append strncat.
20566         * string/test-wcscmp.c: New file.
20567         New comprehensive test for wcscmp.
20568         * string/test-strcmp.c: Update.
20569         (WIDE): New define.
20571 2011-07-22  Andreas Schwab  <schwab@redhat.com>
20573         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
20574         line.
20576 2011-07-26  Andreas Schwab  <schwab@redhat.com>
20578         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20579         encoding to ACE if AI_IDN.
20581 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
20583         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
20584         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
20586 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
20588         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
20589         Fix overflow bug in strncat.
20590         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
20592         * string/test-strncat.c: Update.
20593         Add new tests for checking overflow bugs.
20595 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
20597         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20598         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
20599         * sysdeps/i386/i686/multiarch/strcat.S: New file.
20600         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
20601         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
20602         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
20603         * sysdeps/i386/i686/multiarch/strncat.S: New file.
20604         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
20605         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
20607         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
20608         (USE_AS_STRCAT): Define.
20609         Add strcat and strncat support.
20610         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
20612 2011-07-25  Andreas Schwab  <schwab@redhat.com>
20614         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
20615         __n bigger than INT_MAX+1.
20616         (__strncmp_g): Likewise.
20618 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
20620         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
20621         * libio/stido.h: Likewise.
20623         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
20624         (AF_NFC): Define.
20625         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
20626         (AF_NFC): Define.
20628         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
20629         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20630         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20631         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20632         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20634         [BZ #13021]
20635         * scripts/test-installation.pl: Don't expect libnss_test1 to be
20636         installed.
20638         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
20639         typo.
20640         (_dl_x86_64_save_sse): Likewise.
20642 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
20644         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
20645         OSXSAVE.
20646         (_dl_x86_64_save_sse): Likewise.
20648         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
20650         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
20652 2011-07-21  Andreas Schwab  <schwab@redhat.com>
20654         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
20655         change.
20656         (_dl_x86_64_save_sse): Use correct AVX check.
20658 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20660         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
20661         bug in strncpy/strncat.
20662         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
20664 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
20666         * string/tester.c (test_strcat): Add tests for different alignments
20667         of source and destination.
20668         (test_strncat): Likewise.
20670 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
20672         [BZ #12852]
20673         * posix/glob.c (glob): Check passed in values before using them in
20674         expressions to avoid some overflows.
20675         (glob_in_dir): Likewise.
20677         [BZ #13007]
20678         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
20679         check for AVX enablement so that we don't crash with old kernels and
20680         new hardware.
20681         * elf/tst-audit4.c: Add same checks here.
20682         * elf/tst-audit6.c: Likewise.
20684         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
20686 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
20688         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
20690 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
20692         * po/cs.po: Update from translation team.
20693         * po/bg.po: Likewise.
20695 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
20697         * misc/sys/cdefs.h: Add support for const attribute.
20698         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
20699         to gnu_dev_{major,minor,makedev} functions.
20701 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
20703         * intl/dcigettext.c (get_output_charset): Add missing bracket.
20705 2011-07-20  Andreas Schwab  <schwab@redhat.com>
20707         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
20708         strlen results.
20710 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20712         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
20713         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
20714         register in order to avoid conflicts with the soft frame pointer
20715         being held in r11 when necessary.
20716         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20717         (INTERNAL_VSYSCALL_NCS): Likewise.
20719 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
20721         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
20722         * elf/dl-fini.c (_dl_fini): Adjust caller.
20723         * elf/dl-close.c (_dl_close_worker): Likewise.
20724         * sysdeps/generic/ldsodefs.h: Adjust declaration.
20726 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
20728         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
20729         "aux_cache->nlibs < 0".
20731         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
20732         in the reload-count case.
20734 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
20736         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20737         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
20738         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
20739         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
20740         * sysdeps/x86_64/multiarch/strcat.S: New file.
20741         * sysdeps/x86_64/multiarch/strncat.S: New file.
20742         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
20743         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
20744         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
20745         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
20746         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
20747         (USE_AS_STRCAT): Define.
20748         Add strcat and strncat support.
20749         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
20750         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
20751         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
20752         * string/strncat.c: Update.
20753         (USE_AS_STRNCAT): Define.
20754         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20755         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
20756         and i7.
20757         * sysdeps/x86_64/multiarch/init-arch.h
20758         (bit_Prefer_PMINUB_for_stringop): New.
20759         (index_Prefer_PMINUB_for_stringop): Likewise.
20760         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
20761         bit_Prefer_PMINUB_for_stringop.
20763 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
20765         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
20766         buffer64.
20767         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
20768         of casting of buffer.
20769         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
20770         buffer32 and buffer64.
20771         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
20772         writes instead of casting of buffer.
20773         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
20774         buffer32.
20775         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
20776         casting of buffer.
20778 2011-07-19  Andreas Schwab  <schwab@redhat.com>
20780         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
20782 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
20784         * nscd/nscd.c (termination_handler): Don't do anything for a database
20785         if it has not yet been initialized.
20787 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
20789         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
20791 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
20793         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
20795 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
20797         * po/nl.po: Update from translation team.
20798         * po/sv.po: Likewise.
20800 2011-07-16  Roland McGrath  <roland@hack.frob.com>
20802         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
20803         now disallowed by GCC.
20805         * configure.in (use-default-link): Default to yes if a test -shared
20806         link meets our qualifications.
20807         * configure: Regenerated.
20809         * config.make.in (output-format): New variable.
20810         * configure.in: Check for ld --print-output-format support.
20811         * configure: Regenerated.
20812         * Makerules ($(common-objpfx)format.lds)
20813         [$(output-format) != unknown]: Just use $(output-format),
20814         instead of the linker-script munging.
20816 2011-07-14  Roland McGrath  <roland@hack.frob.com>
20818         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
20819         of $(common-objpfx)shlib.lds.
20820         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
20822         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
20823         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
20825         * configure.in (-z relro check): Adjust test code to add a large
20826         writable data section after it.
20827         * configure: Regenerated.
20829 2011-07-11  Roland McGrath  <roland@hack.frob.com>
20831         * configure.in (-z relro check): Fix test code to make the variable
20832         truly const.
20833         * configure: Regenerated.
20835 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
20837         * nscd/nscd.h (struct traced_file): Define.
20838         (struct database_dyn): Remove inotify_descr, reset_res, and filename
20839         elements.  Add traced_files.
20840         (inotify_fd): Declare.
20841         (register_traced_file): Declare.
20842         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
20843         (inotify_fd): Export.
20844         (resolv_conf_descr): Remove.
20845         (nscd_init): Move inotify descriptor creation to main.
20846         Don't register files for notification here.
20847         (register_traced_file): New function.
20848         (invalidate_cache): Don't use reset_res to determine whether to call
20849         res_init, go through the list of registered files.
20850         (main_loop_poll): The inotify descriptors are now stored in the
20851         structures for the traced files.
20852         (main_loop_epoll): Likewise
20853         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
20854         to __nss_disable_nscd.
20855         * nscd/cache.c (prune_cache): There is no single inotify descriptor
20856         for a database anymore.  Check the records for all the registered
20857         files instead.
20858         * nss/Makefile (libnss_files-routines): Add files-init.
20859         (libnss_db-routines): Add db-init.
20860         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
20861         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
20862         * nss/nss_db/db-init.c: New file.
20863         * nss/nss_files/files-init.c: New file.
20864         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
20865         __nss_lookup_function.
20866         (__nss_lookup_function): Call nss_load_library.
20867         (nss_load_all_libraries): New function.
20868         (__nss_disable_nscd): Take parameter with callback function for files
20869         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
20870         used for the cached services.
20871         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
20872         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
20873         options for features to all the files in nscd.
20875         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
20877 2011-07-10  Roland McGrath  <roland@hack.frob.com>
20879         * csu/elf-init.c (__libc_csu_init): Comment typo.
20881 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
20883         * po/pl.po: Update from translation team.
20884         * po/ja.po: Likewise.
20885         * po/ru.po: Likewise.
20886         * po/ko.po: Likewise.
20887         * po/fr.po: Likewise.
20889 2011-07-09  Roland McGrath  <roland@hack.frob.com>
20891         * configure.in (.ctors/.dtors header and trailer check):
20892         Use an empirical test on a built program.
20893         * configure: Regenerated.
20895         * configure.in (-z relro check): Use an empirical test on a built DSO.
20896         Detect, but do not require, on ia64.
20897         * configure: Regenerated.
20899         * configure.in (READELF): Find it with AC_CHECK_TOOL.
20900         Update tests that use readelf to use $READELF instead.
20901         * configure: Regenerated.
20903 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
20905         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
20906         if the result is not used.
20908 2011-07-05  Andreas Jaeger  <aj@suse.de>
20910         [BZ#9696]
20911         * stdlib/tst-strtod.c: Add testcase.
20913 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
20915         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
20916         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
20917         The latter has a higher limit.  Take additional parameter to pass to
20918         the new function.
20919         (__pathconf): Pass file to __statfs_link_max.
20920         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
20921         __statfs_link_max.
20922         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
20923         __statfs_link_max.
20925         [BZ #12868]
20926         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
20927         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20928         Handle Lustre.
20929         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
20930         (__statfs_filesize_max): Likewise.
20931         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
20933 2011-07-05  Andreas Jaeger  <aj@suse.de>
20935         * resolv/res_comp.c (dn_skipname): Remove unused variable.
20937 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
20939         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
20940         `status' variable.
20941         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
20942         Likewise.
20944 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
20946         * Makefile (strop-tests): Add strncat.
20947         * string/test-strncat.c: New file.
20949 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
20951         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
20953 2011-06-21  Andreas Jaeger  <aj@suse.de>
20955         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
20956         Copy rule from iconvdata/Makefile.
20958 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
20960         [BZ #12922]
20961         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
20962         but no long options are defined, just return 'W'.
20964 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
20966         [BZ #9696]
20967         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
20969 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
20971         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
20972         netgroups to read.
20973         (innetgr): Likewise.
20975 2011-07-05  Roland McGrath  <roland@hack.frob.com>
20977         * config.make.in (install_root): Default to $(DESTDIR).
20979 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
20981         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
20983 2011-07-02  Roland McGrath  <roland@hack.frob.com>
20985         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
20987         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
20988         containing directory rather than embedding absolute directory names.
20990         * scripts/check-local-headers.sh: Rewritten using awk.
20991         Match by word, not by line.  Print error messages for matches.
20992         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
20994         * Makerules [shlib-lds-flags empty]:
20995         ($(common-objpfx)libc_pic.opts): New target.
20996         ($(common-objpfx)libc_pic.os.clean): New target.
20997         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
20999         * config.make.in (OBJCOPY): New variable.
21000         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
21001         * configure: Regenerated.
21003         * config.make.in (use-default-link): New variable.
21004         * configure.in (use_default_link): Grok --with-default-link to set it.
21005         * configure: Regenerated.
21006         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
21007         (shlib-lds, shlib-lds-flags): Define to empty.
21009         * Makerules (shlib-lds): New variable.
21010         (shlib-lds-flags): New variable.
21011         (build-shlib, build-moduile, build-module-asneeded): Use it.
21012         ($(common-objpfx)libc.so): Use $(shlib-lds).
21013         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
21014         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
21016         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
21017         DT_FLAGS/DT_FLAGS_1 with zero flags.
21019         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
21020         linker script munging.
21022 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
21024         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
21025         as 128-bit value.
21026         * crypt/sha512.c (sha512_process_block): Perform total addition using
21027         128-bit if possible.
21028         (__sha512_finish_ctx): Likewise.
21029         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
21030         as 64-bit value.
21031         * crypt/sha256.c (SWAP64): Define.
21032         (sha256_process_block): Perform total addition using 64-bit if
21033         possible.
21034         (__sha256_finish_ctx): Likewise.
21036 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
21038         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
21039         * nscd/initgrcache.c (addinitgroupsX): Likewise.
21040         * nscd/hstcache.c (cache_addhst): Likewise.
21041         * nscd/grpcache.c (cache_addgr): Likewise.
21042         * nscd/aicache.c (addhstaiX): Likewise
21043         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
21045 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
21047         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
21048         * nscd/initgrcache.c (addinitgroupsX): Likewise.
21049         * nscd/hstcache.c (cache_addhst): Likewise.
21050         * nscd/grpcache.c (cache_addgr): Likewise.
21051         * nscd/aicache.c (addhstaiX): Likewise
21053 2011-07-01  Andreas Schwab  <schwab@redhat.com>
21055         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
21056         domain only when needed.
21058 2011-06-30  Andreas Schwab  <schwab@redhat.com>
21060         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
21061         is always restored.
21063 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
21065         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
21066         are re-adding the entry.
21067         * nscd/servicescache.c (cache_addserv): Likewise.
21069 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
21071         * sysdeps/generic/dl-irel.h: fix protection against multiple
21072         inclusions.
21073         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
21075 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
21077         [BZ #12935]
21078         * malloc/memusage.sh: Fix quoting in message.
21079         * debug/xtrace.sh: Likewise.
21081         * configure.in: Remove support for --experimental-malloc option, make
21082         it the default.
21083         * config.make.in: Likewise.
21084         * malloc/Makefile: Likewise.
21086 2011-06-27  Andreas Schwab  <schwab@redhat.com>
21088         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
21089         two-byte characters.
21091 2011-06-27  Roland McGrath  <roland@hack.frob.com>
21093         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
21094         AC_CACHE_CHECK invocation.
21095         * configure: Regenerated.
21097         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
21099 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
21101         [BZ #12350]
21102         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
21103         bit from old_res_options.
21105         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
21107         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
21108         value type for setfct.
21110 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
21112         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
21113         __gettimeofday instead of gettimeofday.
21115 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
21117         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
21119 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
21121         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
21123         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
21124         info.
21126 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
21128         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21129         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
21130         strcpy-sse2-unaligned strncpy-sse2-unaligned
21131         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
21132         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
21133         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
21134         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
21135         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
21136         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
21137         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
21138         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
21139         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
21140         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
21141         (STRCPY): Support SSE2 and SSSE3 versions.
21143 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
21145         [BZ #12874]
21146         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
21147         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
21148         kernels which artificially limit size of requests.
21150 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
21152         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21153         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
21154         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
21155         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
21156         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
21157         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
21158         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
21159         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
21160         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
21161         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
21162         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
21163         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
21164         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
21165         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
21166         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
21167         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21168         Enable unaligned load optimization for Intel Core i3, i5 and i7
21169         processors.
21170         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
21171         Define.
21172         (index_Fast_Unaligned_Load): Define.
21173         (HAS_FAST_UNALIGNED_LOAD): Define.
21175 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
21177         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
21179 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
21181         [BZ #12907]
21182         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
21183         until it is clear that the information is realy needed.
21184         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
21186 2011-06-22  Andreas Schwab  <schwab@redhat.com>
21188         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
21190 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
21192         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
21193         /sys/devices/system/cpu/online if it is usable.
21195         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
21196         reading the information from the /proc filesystem to once a second.
21198 2011-06-21  Andreas Jaeger  <aj@suse.de>
21200         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
21201         NULL after inclusion of kernel headers.
21203 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
21205         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
21206         calls to internal_setent.
21208         [BZ #12885]
21209         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
21210         addresses using gethostbyname4_r ignore IPv4 addresses.
21212         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
21213         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
21215         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
21217 2011-06-20  David S. Miller  <davem@davemloft.net>
21219         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
21220         inclusions.
21221         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
21223         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
21224         (elf_irel): Use it.
21225         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
21226         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
21227         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
21228         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
21229         * sysdeps/x86_64/dl-irel.h: Likewise.
21231         * elf/dl-runtime.c: Use elf_ifunc_invoke.
21232         * elf/dl-sym.c: Likewise.
21234 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
21236         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
21237         need to dereference resplen2.
21239 2011-06-14  Andreas Schwab  <schwab@redhat.com>
21241         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
21243 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
21245         * Makeconfig: Define vardbdir and inst_vardbdir.
21246         * nss/Makefile: Add rules to install db-Makefile.
21248         * nss/nss_db/db-XXX.c: Cleanup.
21250         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
21251         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
21252         GLIBC_PRIVATE.
21253         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
21254         * nss/makedb.c: Implement -g option to specify that value strings
21255         are generated and should not be added to table iterated over for
21256         get*ent calls.
21257         * nss/nss_db/db-initgroups.c: New file.
21259         * nss/getent.c: Add support for initgroups lookups through getgrouplist
21260         interface.
21262         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
21263         (internal_getgrouplist): Adjust to name change.
21264         Update use_initgroups_entry if this is not the first call.
21265         * nss/databases.def: Add initgroups entry.
21267         * nss/makedb.c (compute_tables): Check result of multiple hash table
21268         sizes to minimize maximum chain length.
21270 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
21272         * Versions.def: Add entry for libnss_db.
21273         * shlib-versions: Likewise.
21274         * nss/Makefile: Add rules to build libnss_db.
21275         * nss/Versions: Add libnss_db information.  Organize libnss_files
21276         entries better.
21277         * nss/db-Makefile: Add gshadow support.  Change rules for the new
21278         makedb progra.  Some minor improvements to generate smaller files.
21279         * nss/nss_db/nss_db.h: Move NSS database header data structures to
21280         here from...
21281         * nss/makedb.c: ...here.
21282         Improve database format to be smaller and require less memory at
21283         runtime.
21284         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
21285         db anymore.
21286         * nss/nss_db/db-netgrp.c: Likewise.
21287         * nss/nss_db/db-open.c: Likewise.
21288         * nss/nss_files/flies-XXX.x: Adjust comments.
21289         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
21290         * nss/nss_files/files-grp.c: Likewise.
21291         * nss/nss_files/files-hosts.c: Likewise.
21292         * nss/nss_files/files-network.c: Likewise.
21293         * nss/nss_files/files-proto.c: Likewise.
21294         * nss/nss_files/files-pwd.c: Likewise.
21295         * nss/nss_files/files-rpc.c: Likewise.
21296         * nss/nss_files/files-service.c: Likewise.
21297         * nss/nss_files/files-sgrp.c: Likewise.
21298         * nss/nss_files/files-spwd.c: Likewise.
21299         * nss/nss_db/db-alias.c: Removed.
21300         * nss/nss_db/dummy-db.h: Removed.
21302 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
21304         * nss/makedb.c: Rewritten to not use database library.
21305         * nss/Makefile: Update to build new makedb program.
21307 2011-06-14  Andreas Jaeger  <aj@suse.de>
21309         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
21310         memset declaration.
21312 2011-06-10  Andreas Schwab  <schwab@redhat.com>
21314         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
21315         tmpbuf.
21317 2011-06-10  Roland McGrath  <roland@hack.frob.com>
21319         * Makerules (shlib.lds): Fail if the linker script comes out empty.
21320         * elf/Makefile ($(objpfx)ld.so): Likewise.
21322         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
21323         Don't list ld.so twice in dependencies.
21325         * posix/bug-regex31.c: Include <stdlib.h>.
21327         * nscd/hstcache.c (cache_addhst): Remove unused variable.
21329         * nis/nss_compat/compat-spwd.c
21330         (getspent_next_nss_netgr): Remove unused variable.
21331         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
21333         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
21334         nonmembers" output to use the right array.
21336         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
21338         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
21340         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
21341         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
21342         * catgets/gencat.c (read_input_file): Likewise.
21343         * locale/programs/locarchive.c (enlarge_archive): Likewise.
21345         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
21346         variable definition inside #if's controlling its use.
21348         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
21350         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
21352         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
21354         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
21355         unreachable code.
21357         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
21359         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
21360         * configure: Regenerated.
21362         * Makerules: Revert last change.
21363         * elf/Makefile: Likewise.
21365 2011-06-09  Roland McGrath  <roland@hack.frob.com>
21367         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
21368         * elf/Makefile ($(objpfx)librtld.os): Likewise.
21369         (reloc-link): Likewise.
21371 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
21373         * elf/Makefile: Add rules to build pldd.
21374         * elf/pldd.c: New file.
21375         * elf/pldd-xx.c: New file.
21377 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
21379         * version.h: Update for 2.15 development version.
21381 2011-06-07  David S. Miller  <davem@davemloft.net>
21383         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
21384         ifuncs.
21385         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
21386         elf_machine_lazy_rel): Likewise.
21387         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
21388         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
21389         elf_machine_lazy_rel): Likewise.
21390         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
21391         dl_hwcap via passed in argument.
21392         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
21393         Likewise.
21395 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21397         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
21399 2011-06-06  Roland McGrath  <roland@hack.frob.com>
21401         [BZ #12849]
21402         * manual/fdl-1.1.texi: New file, verbatim from:
21403         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
21404         * manual/lgpl-2.1.texi: New file, verbatim from:
21405         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
21406         * manual/Makefile (licenses): New variable, list those new file names.
21407         (texis): Use it.
21408         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
21410         * manual/fdl.texi: File removed.
21411         * manual/lesser.texi: File removed.
21412         * manual/libc.texinfo (Copying, Documentation License):
21413         Use new @include file names, put @appendix directive before @include.
21415 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
21417         [BZ #12841]
21418         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
21419         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
21420         (mq_open): Add __NTH.
21422 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
21424         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21425         Assume Intel Core i3/i5/i7 processor if AVX is available.
21427 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
21429         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
21430         typo.
21432 2011-05-31  Andreas Schwab  <schwab@redhat.com>
21434         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
21435         memory.  Use alloca_account.  Fix memory leak when retrying.
21437 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
21439         * version.h (RELEASE): Bump for 2.14 release.
21440         * include/features.h (__GLIBC_MINOR__): Bump to 14.
21442         * config.make.in (RANLIB): Remove entry.
21444 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
21446         * po/Makefile (po-sed-cmd): Add ksh to extensions.
21447         (libc.pot): Work around missing support for .ksh extension in xgettext.
21449         [BZ #12684]
21450         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
21451         if both request failed.
21452         (send_dg): In case of server errors clear resplen or *resplen2.
21454         [BZ #12454]
21455         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
21456         when there are multiple maps.
21457         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
21458         (_dl_fini): Remove test here.
21460         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
21462 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
21464         [BZ #12350]
21465         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
21466         bit from old_res_options.
21467         (gaih_inet): Likewise.
21469         [BZ #11099]
21470         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
21471         as signed.
21473         * resolv/res_init.c (res_setoptions): Make the code more compact.
21475         [BZ #11558]
21476         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
21477         set RES_USEVC.
21479         [BZ #11634]
21480         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
21482         * malloc/malloc.h: Mark malloc hook variables as deprecated.
21484         [BZ #11781]
21485         * malloc/malloc.h: Declare malloc hook variables as volatile.
21487         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
21488         in last patch.
21490         [BZ #11799]
21491         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
21492         raise in the comment.
21493         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
21494         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
21495         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
21497 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
21499         [BZ #12811]
21500         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
21501         grow the buffers more if it already has to be sufficient.
21502         (build_wcs_upper_buffer): Likewise.
21503         * posix/regexec.c (check_matching): Likewise.
21504         (clean_state_log_if_needed): Likewise.
21505         (extend_buffers): Don't enlarge buffers beyond size of the input
21506         buffer.
21507         Patches mostly by Emil Wojak <emil@wojak.eu>.
21508         * posix/bug-regex32.c: New file.
21509         * posix/Makefile (tests): Add bug-regex32.
21511         * locale/findlocale.c (_nl_find_locale): Return right away if
21512         _nl_explode_name failed.
21513         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
21515         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
21517         * debug/xtrace.sh: Unify messages.
21518         * malloc/memusage.sh: Likewise.
21520         [BZ #12813]
21521         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
21522         time symbol from vDSO.  Substitute with vsyscall if not available.
21523         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
21524         __vdso_time.
21526         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
21527         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
21528         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
21529         Add sendmmsg and internal_sendmmsg.
21530         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
21531         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
21532         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
21534         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
21535         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
21536         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
21538 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
21540         [BZ #12813]
21541         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
21542         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
21543         available.
21544         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
21545         __vdso_getcpu.
21547         [BZ #12814]
21548         * iconvdata/Makefile (tests): Add bug-iconv9.
21549         * iconvdata/bug-iconv9.c: New file.
21551 2011-05-27  Andreas Schwab  <schwab@redhat.com>
21553         [BZ #12814]
21554         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
21556 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
21558         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
21559         (struct user_regs_struct): Change intcs field back to cs.
21561 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
21563         * po/ja.po: Update from translation team.
21565 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
21567         [BZ #12795]
21568         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
21569         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
21571 2011-05-20  Andreas Schwab  <schwab@redhat.com>
21573         * stdlib/longlong.h: Update from GCC.
21575 2011-05-23  Andreas Schwab  <schwab@redhat.com>
21577         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
21578         parameter name.
21579         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
21580         Add parameter name.
21581         (__sysconf): Pass it down.
21583 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
21585         [BZ #12671]
21586         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
21587         some situations.
21588         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
21589         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
21590         add in in __libc_use_alloca calls.  Adjust callers.
21591         (glob): Use malloc in some situations.
21593         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
21594         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
21595         pltexit.
21597 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
21599         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
21600         and CLOCK_BOOTTIME_ALARM.
21602         [BZ #12782]
21603         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
21604         is returned.
21606         * string/_strerror.c (__strerror_r): Print negative errors as signed
21607         numbers.
21609         [BZ #12777]
21610         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
21611         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
21612         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
21614         * configure.in: Fix typo in redirection and correct removal of test
21615         files in two cases.
21617         [BZ #12788]
21618         * locale/setlocale.c (new_composite_name): Fix test to check for
21619         identical name of all categories.
21621         [BZ #12792]
21622         * libio/filedoalloc.c (local_isatty): New function.
21623         (_IO_file_doallocate): Use local_isatty.
21624         * stdio-common/perror.c (perror): In case a new stream is used
21625         forward the stream error.
21626         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
21627         error flag.
21629 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
21631         [BZ #11869]
21632         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
21633         alloca.
21634         * include/alloca.h (extend_alloca_account): Define.
21636         [BZ #11857]
21637         * posix/regex.h: Fix comments with documentation of user-accessible
21638         fields after compilation and describe correct free'ing of pattern
21639         after re_compile_pattern.
21640         Patch by Reuben Thomas <rrt@sc3d.org>.
21642 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
21644         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
21645         and -mno-altivec to prevent the compiler from using Altivec and/or
21646         VSX instructions when the corresponding registers are not available.
21648 2011-05-19  Andreas Schwab  <schwab@redhat.com>
21650         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
21652 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
21654         * libio/freopen.c (freopen): Use __dup2, not dup2.
21655         * libio/freopen64.c (freopen64): Likewise.
21657 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
21659         [BZ #12775]
21660         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
21661         * math/Makefile (tests): Add test-powl.
21662         (CFLAGS-test-powl.c): Define.
21663         * math/test-powl.c: New file.
21665 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
21667         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
21669 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
21671         [BZ #11837]
21672         * iconvdata/gb18030.c: Update to GB18020-2005.
21674 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
21676         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
21677         RE_SYNTAX_POSIX_AWK): Update to match recent development.
21678         Patch by Aharon Robbins <arnold@skeeve.com>.
21680         [BZ #11892]
21681         * stdlib/putenv.c (putenv): Don't always create copy of the variable
21682         on the stack.
21684         [BZ #11895]
21685         * misc/pselect.c (__pselect): Handle timeout value errors hidden
21686         through underflows.
21688         [BZ #12766]
21689         * misc/error.c (error_at_line): Ensure file_name and old_file_name
21690         point to strings before performing equality test for error_one_per_line
21691         mode.
21693         [BZ #11697]
21694         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
21696         [BZ #11820]
21697         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
21698         (struct user_fpregs_struct): Avoid __uint*_t types.
21700         [BZ #6420]
21701         * malloc/mtrace.c (tr_where): Add additional parameter to point to
21702         symbol info.  Use it instead of calling _dl_addr locally.
21703         (lock_and_info): New function.
21704         (tr_freehook): Call lock_and_info and pass symbol info as additional
21705         parameter to tr_where.
21706         (tr_mallochook): Likewise.
21707         (tr_reallochook): Likewise.
21708         (tr_memalignhook): Likewise.
21710         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
21711         used and couldn't be at all thread-safe.
21713 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
21715         * libio/freopen.c (freopen): Don't close old file descriptor
21716         before the new one is opened.  Instead dup the new file descriptor
21717         to the old one after the new stream is created.
21718         * libio/freopen64.c (freopen64): Likewise.
21719         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
21720         * libio/fileops.c (_IO_new_file_close_it): Handle new
21721         _IO_FLAGS2_NOCLOSE flag.
21722         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
21723         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
21724         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
21725         _IO_FLAGS2_NOCLOSE flag.
21726         * include/unistd.h: Add hidden_proto for dup3.
21727         Define __have_dup3.
21728         * io/dup3.c: Define hidden symbol.
21729         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
21731         [BZ #7101]
21732         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
21733         when an incomplete long option is used.
21734         * posix/tst-getopt_long1.c: New file.
21735         * posix/Makefile (tests): Add tst-getopt_long1.
21737         [BZ #10138]
21738         * scripts/config.guess: Update from autoconf-2.68.
21739         * scripts/config.sub: Likewise.
21741         [BZ #10157]
21742         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
21743         tests into ...
21744         (has_cpuclock): ...this.  New function.
21745         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
21746         macro here based on has_cpuclock code.
21748         [BZ #10149]
21749         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
21750         First byte (not low byte) is now always NUL.
21751         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
21753         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
21754         Use non-cancelable interfaces.
21756         [BZ #9809]
21757         * locale/iso-639.def: Add entry for Sorani.
21759         [BZ #11901]
21760         * include/stdlib.h: Move include protection to the right place.
21761         Define abort_msg_s.  Declare __abort_msg with it.
21762         * stdlib/abort.c (__abort_msg): Adjust type.
21763         * assert/assert.c (__assert_fail_base): New function.  Majority
21764         of code from __assert_fail.  Allocate memory for __abort_msg with
21765         mmap.
21766         (__assert_fail): Now call __assert_fail_base.
21767         * assert/assert-perr.c: Remove bulk of implementation.  Use
21768         __assert_fail_base.
21769         * include/assert.hL Declare __assert_fail_base.
21770         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
21771         mmap.
21772         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
21774 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
21776         [BZ #11952]
21777         [BZ #12453]
21778         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
21779         until all modules are registered in the DTV.
21780         * elf/Makefile: Add rules to build and run tst-tls19.
21781         * elf/tst-tls19.c: New file.
21782         * elf/tst-tls19mod1.c: New file.
21783         * elf/tst-tls19mod2.c: New file.
21784         * elf/tst-tls19mod3.c: New file.
21785         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
21787         [BZ #12083]
21788         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
21789         correctly.
21791         [BZ #12601]
21792         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
21793         two-byte sequence errors.
21794         * iconvdata/Makefile (tests): Add bug-iconv8.
21795         * iconvdata/bug-iconv8.c: New file.
21797         [BZ #12626]
21798         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
21799         buf2 definition.
21801         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
21803         [BZ #12432]
21804         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
21805         (dummy_getcfa): New function.
21806         (init): Get _Unwind_GetCFA address, use dummy if not found.
21807         (backtrace_helper): In recursion check, also check whether CFA changes.
21808         (__backtrace): Completely initialize arg.
21810         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
21811         storing incomplete byte sequence in state object.  Avoid testing for
21812         guaranteed too small input if we know there is enough data available.
21814 2011-05-11  Andreas Schwab  <schwab@redhat.com>
21816         * Makeconfig (+link-pie): Indent.
21817         * Rules (binaries-pie): Define if $(have-fpie) and
21818         $(build-shared).
21819         (binaries-shared): Also filter out $(binaries-pie).
21820         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
21821         * nscd/Makefile (others-pie): Add nscd.
21822         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
21823         ($(objpfx)nscd): Remove command override.
21824         * login/Makefile (others-pie): Add pt_chown.
21825         ($(objpfx)pt_chown): Remove command override.
21826         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
21827         remove command overrides.
21829 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
21831         * libio/tst_putwc.c: Fix error messages.
21833         [BZ #12724]
21834         * libio/fileops.c (_IO_new_file_close_it): Always flush when
21835         currently writing and seek to current position when not.
21836         * libio/Makefile (tests): Add bug-fclose1.
21837         * libio/bug-fclose1.c: New file.
21839 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
21841         [BZ #12511]
21842         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
21843         don't set DF_1_NODELETE here.
21844         (do_lookup_x): When entering new entry test for copy relocation
21845         and if necessary set DF_1_NODELETE flag.
21846         * elf/tst-unique4.cc: New file.
21847         * elf/tst-unique4.h: New file.
21848         * elf/tst-unique4lib.cc: New file.
21849         * elf/Makefile: Add rules to build and run tst-unique4.
21850         Patch by Piotr Bury <pbury@goahead.com>.
21852 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
21854         [BZ #12052]
21855         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
21857         [BZ #12625]
21858         * misc/mntent_r.c (addmntent): Flush the stream after the output
21860         [BZ #12393]
21861         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
21862         (is_trusted_path_normalize): Skip initial colon.  Append slash
21863         to empty buffer.  Duplicate is_trusted_path code but allow
21864         constructed patch to be prefix.
21865         (is_dst): Allow $ORIGIN followed by /.
21866         (_dl_dst_substitute): Correct clearing of check_for_trusted.
21867         Correct testing of result of is_trusted_path_normalize
21868         (decompose_rpath): Fix warning.
21870 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
21872         [BZ #11257]
21873         * grp/initgroups.c (internal_getgrouplist): When we found the service
21874         list through the initgroups entry in nsswitch.conf do not always
21875         continue on a successful lookup.  Don't always use the
21876         __nss_group_database value if it is set.
21877         * nss/nsswitch.conf (initgroups): Change action for successful db
21878         lookup to continue for compatibility.
21880 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
21882         [BZ #11532]
21883         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
21884         and CP774 modules.
21885         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
21886         and CP774 modules.
21887         * iconvdata/tst-tables.sh: Likewise.
21888         * iconvdata/cp770.c: New file.
21889         * iconvdata/cp771.c: New file.
21890         * iconvdata/cp772.c: New file.
21891         * iconvdata/cp773.c: New file.
21892         * iconvdata/cp774.c: New file.
21893         * iconvdata/testdata/CP770: New file.
21894         * iconvdata/testdata/CP770..UTF8: New file.
21895         * iconvdata/testdata/CP771: New file.
21896         * iconvdata/testdata/CP771..UTF8: New file.
21897         * iconvdata/testdata/CP772: New file.
21898         * iconvdata/testdata/CP772..UTF8: New file.
21899         * iconvdata/testdata/CP773: New file.
21900         * iconvdata/testdata/CP773..UTF8: New file.
21901         * iconvdata/testdata/CP774: New file.
21902         * iconvdata/testdata/CP774..UTF8: New file.
21904         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
21905         END CHARMAP line.
21906         * iconvdata/gen-8bit-gap.sh: Likewise.
21907         * iconvdata/gen-8bit.sh: Likewise.
21909         * locale/iso-639.def: Add ary entry.
21911         [BZ #11258]
21912         * locale/C-translit.h.in: Add U20A1 transliteration.
21914         [BZ #12178]
21915         * locale/iso-639.def: Add wae entry.
21916         Patch by Kevin Bortis <bortis@translate-wae.ch>.
21918         [BZ #12545]
21919         * locale/programs/localedef.c (construct_output_path): Use ssize_t
21920         for n.
21922         [BZ #12711]
21923         * locale/C-translit.h.in: Add entry for U20B9.
21924         Patch by pravin.d.s@gmail.com.
21926 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
21928         [BZ #12713]
21929         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
21930         ENAMETOOLONG use generic getcwd.
21931         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
21932         in rtld.  Use *stat64.
21933         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
21934         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
21935         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
21936         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
21937         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
21938         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
21939         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
21940         __fstatat64 macros.
21941         * include/dirent.h: Add libc_hidden_proto for rewinddir.
21942         * dirent/rewinddir.c: Add libc_hidden_def.
21943         * sysdeps/mach/hurd/rewinddir.c: Likewise.
21944         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
21946         * include/dirent.h (__alloc_dir): Add flags parameter.
21947         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
21948         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
21949         __alloc_dir.
21950         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
21951         from fdopendir if O_CLOEXEC is already set.
21953 2011-03-15  Alan Modra  <amodra@gmail.com>
21955         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
21956         l_tls_firstbyte_offset non-zero.  Save padding offset in
21957         l_tls_firstbyte_offset for later use.
21958         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
21959         freeing static tls block.
21961 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
21963         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
21964         where #ifdef was intended.  The intent is to prevent ARG_MAX from
21965         being defined by the kernel headers.
21967 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
21969         [BZ #12734]
21970         * resolv/resolv.h: Define RES_NOTLDQUERY.
21971         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
21972         no-tld-query and set RES_NOTLDQUERY.
21973         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
21974         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
21975         modern BIND to search name as TLD unless forbidden.
21977 2011-05-07  Petr Baudis  <pasky@suse.cz>
21978             Ulrich Drepper  <drepper@gmail.com>
21980         [BZ #12393]
21981         * elf/dl-load.c (fillin_rpath): Move trusted path check...
21982         (is_trusted_path): ...to here.
21983         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
21984         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
21985         using is_trusted_path_normalize() in setuid scripts.
21987 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
21989         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
21990         __BEGIN/__END_DECLS.
21992 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
21994         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
21995         NSS_STATUS_NOTFOUND if no record was found.
21997 2011-05-05  Andreas Schwab  <schwab@redhat.com>
21999         * sunrpc/Makefile (headers): Add rpc/netdb.h.
22000         (headers-not-in-tirpc): Remove rpc/netdb.h
22001         * resolv/netdb.h: Revert last change.
22003 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
22005         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
22006         circular dependency between libgcc.a and libc.a.
22008 2011-05-05  Andreas Schwab  <schwab@redhat.com>
22010         * resolv/netdb.h: Don't include <rpc/netdb.h>.
22011         * nis/Makefile: Don't install rpcsvc/*.
22012         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
22013         instead of <rpc/types.h>.
22014         (MAXHOSTNAMELEN): Define.
22016 2011-05-03  Andreas Schwab  <schwab@redhat.com>
22018         * elf/ldconfig.c (add_dir): Don't crash on empty path.
22020 2011-04-28  Maciej Babinski  <mbabinski@google.com>
22022         [BZ #12714]
22023         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
22024         gethostbyname4_r when IPv6 results are possible.
22026 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
22028         [BZ #12723]
22029         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
22030         _PC_PIPE_BUF handling.
22032 2011-04-30  Bruno Haible  <bruno@clisp.org>
22034         [BZ #12717]
22035         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
22036         * resolv/netdb.h (getnameinfo): Change type of flags parameter
22037         to 'int'.
22038         * inet/getnameinfo.c (getnameinfo): Likewise.
22040 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
22042         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
22043         to groups setting in database lookup.
22044         * nss/nsswitch.conf: Add initgroups entry.
22046 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
22048         [BZ #12685]
22049         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
22050         mode string.
22051         Patch by Eric Blake <eblake@redhat.com>.
22053 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
22055         * sunrpc/Makefile (need-export-routines): Add svc_run.
22056         (routines): Remove svc_run.
22057         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
22058         * sunrpc/clnt_perr.c (clnt_perrno): Export.
22059         * sunrpc/svc_run.c (svc_run): Likewise.
22060         * sunrpc/svc_udp.c (svcudp_create): Likewise.
22062 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
22064         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
22065         problem in reallocation in last patch.
22067 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
22069         * sunrpc/Makefile: Move inclusion of Rules.
22071 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
22073         * nss/nss_files/files-initgroups.c: New file.
22074         * nss/Makefile (libnss_files-routines): Add files-initgroups.
22075         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
22076         _nss_files_initgroups_dyn.
22078 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
22080         * elf/elf.h (R_ARM_IRELATIVE): Define.
22082 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
22084         * po/ru.po: Update from translation team.
22086 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
22088         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
22089         dependencies.
22091 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
22093         [BZ #12653]
22094         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
22095         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
22096         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
22097         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
22098         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
22100 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
22102         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
22103         differing bytes.
22104         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
22105         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
22106         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
22108 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
22110         [BZ #12420]
22111         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
22112         storing it.
22113         * stdlib/bug-getcontext.c: New file.
22114         * stdlib/Makefile: Add rules to build and run bug-getcontext.
22116 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22118         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
22119         instructions into .machine "z9-109".
22120         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
22121         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
22123 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22125         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
22126         between environment variables and auxiliary vector.
22128 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
22130         * Makefile: Add rules to build linkobj/libc.so.
22131         * include/libc-symbols.h: Define libc_hidden_nolink.
22132         * include/rpc/auth.h: Mark functions which are to be hidden.
22133         * include/rpc/auth_des.h: Likewise.
22134         * include/rpc/auth_unix.h: Likewise.
22135         * include/rpc/clnt.h: Likewise.
22136         * include/rpc/des_crypt.h: Likewise.
22137         * include/rpc/key_prot.h: Likewise.
22138         * include/rpc/pmap_clnt.h: Likewise.
22139         * include/rpc/pmap_prot.h: Likewise.
22140         * include/rpc/pmap_rmt.h: Likewise.
22141         * include/rpc/rpc_msg.h: Likewise.
22142         * include/rpc/svc.h: Likewise.
22143         * include/rpc/svc_auth.h: Likewise.
22144         * include/rpc/xdr.h: Likewise.
22145         * nis/Makefile: Link all DSOs against linkobj/libc.so.
22146         * nss/Makefile: Likewise.
22147         * sunrpc/Makefile: Don't install headers.  Build library with normal
22148         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
22149         * sunrpc/auth_des.c: Hide exported symbols by default, export some
22150         for the compat linking library.  Remove use of INTDEF/INTUSE.
22151         * sunrpc/auth_none.c: Likewise.
22152         * sunrpc/auth_unix.c: Likewise.
22153         * sunrpc/authdes_prot.c: Likewise.
22154         * sunrpc/authuxprot.c: Likewise.
22155         * sunrpc/clnt_gen.c: Likewise.
22156         * sunrpc/clnt_perr.c: Likewise.
22157         * sunrpc/clnt_raw.c: Likewise.
22158         * sunrpc/clnt_simp.c: Likewise.
22159         * sunrpc/clnt_tcp.c: Likewise.
22160         * sunrpc/clnt_udp.c: Likewise.
22161         * sunrpc/clnt_unix.c: Likewise.
22162         * sunrpc/des_crypt.c: Likewise.
22163         * sunrpc/des_soft.c: Likewise.
22164         * sunrpc/get_myaddr.c: Likewise.
22165         * sunrpc/key_call.c: Likewise.
22166         * sunrpc/key_prot.c: Likewise.
22167         * sunrpc/netname.c: Likewise.
22168         * sunrpc/pm_getmaps.c: Likewise.
22169         * sunrpc/pm_getport.c: Likewise.
22170         * sunrpc/pmap_clnt.c: Likewise.
22171         * sunrpc/pmap_prot.c: Likewise.
22172         * sunrpc/pmap_prot2.c: Likewise.
22173         * sunrpc/pmap_rmt.c: Likewise.
22174         * sunrpc/publickey.c: Likewise.
22175         * sunrpc/rpc_cmsg.c: Likewise.
22176         * sunrpc/rpc_common.c: Likewise.
22177         * sunrpc/rpc_dtable.c: Likewise.
22178         * sunrpc/rpc_prot.c: Likewise.
22179         * sunrpc/rpc_thread.c: Likewise.
22180         * sunrpc/rtime.c: Likewise.
22181         * sunrpc/svc.c: Likewise.
22182         * sunrpc/svc_auth.c: Likewise.
22183         * sunrpc/svc_authux.c: Likewise.
22184         * sunrpc/svc_raw.c: Likewise.
22185         * sunrpc/svc_run.c: Likewise.
22186         * sunrpc/svc_simple.c: Likewise.
22187         * sunrpc/svc_tcp.c: Likewise.
22188         * sunrpc/svc_udp.c: Likewise.
22189         * sunrpc/svc_unix.c: Likewise.
22190         * sunrpc/svcauth_des.c: Likewise.
22191         * sunrpc/xcrypt.c: Likewise.
22192         * sunrpc/xdr.c: Likewise.
22193         * sunrpc/xdr_array.c: Likewise.
22194         * sunrpc/xdr_float.c: Likewise.
22195         * sunrpc/xdr_intXX_t.c: Likewise.
22196         * sunrpc/xdr_mem.c: Likewise.
22197         * sunrpc/xdr_rec.c: Likewise.
22198         * sunrpc/xdr_ref.c: Likewise.
22199         * sunrpc/xdr_sizeof.c: Likewise.
22200         * sunrpc/xdr_stdio.c: Likewise.
22202 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
22204         [BZ #12650]
22205         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
22206         * sysdeps/ia64/dl-tls.h: Likewise.
22207         * sysdeps/powerpc/dl-tls.h: Likewise.
22208         * sysdeps/s390/dl-tls.h: Likewise.
22209         * sysdeps/sh/dl-tls.h: Likewise.
22210         * sysdeps/sparc/dl-tls.h: Likewise.
22211         * sysdeps/x86_64/dl-tls.h: Likewise.
22212         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
22214 2011-03-14  Andreas Schwab  <schwab@redhat.com>
22216         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
22217         rpath element also skip the following colon.
22218         (expand_dynamic_string_token): Add is_path parameter and pass
22219         down to DL_DST_REQUIRED and _dl_dst_substitute.
22220         (decompose_rpath): Call expand_dynamic_string_token with
22221         non-zero is_path.  Ignore empty rpaths.
22222         (_dl_map_object_from_fd): Call expand_dynamic_string_token
22223         with zero is_path.
22225 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
22227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
22228         Make cancelable.
22230 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
22232         [BZ #12655]
22233         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
22234         Patch by Filipe David Manana <fdmanana@apache.org>.
22236 2011-04-07  Andreas Schwab  <schwab@redhat.com>
22238         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
22239         Maintain aligned stack.
22240         (CHECK_RSP): Remove unused macro.
22242 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
22244         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
22245         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
22247 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
22249         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
22251         * include/features.h: Mention __USE_XOPEN2K8 in comment.
22253 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
22255         [BZ #12518]
22256         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
22257         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
22258         * sysdeps/x86_64/memmove.c: New file.
22259         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
22260         (memcpy): Renamed to ...
22261         (__new_memcpy): This.
22262         (memcpy): Provide GLIBC_2_14 memcpy.
22263         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
22264         (memcpy): Provide GLIBC_2_2_5 memcpy.
22266 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
22268         [BZ #12631]
22269         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
22271 2011-03-30  Andreas Schwab  <schwab@redhat.com>
22273         * misc/syncfs.c: New file.
22274         * misc/Makefile (routines): Add syncfs.
22275         * posix/unistd.h: Declare syncfs.
22276         * sysdeps/unix/syscalls.list: Add syncfs.
22278 2011-04-01  Andreas Schwab  <schwab@redhat.com>
22280         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
22281         open_by_handle_at.
22282         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
22283         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
22284         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
22285         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
22286         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
22287         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
22288         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
22290 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
22292         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
22293         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
22294         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
22295         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
22296         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
22297         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
22298         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
22300         * io/Makefile: Compile fallocate.c, fallocate64.c, and
22301         sync_file_range.c with -fexceptions.
22302         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
22303         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
22304         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
22305         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
22306         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
22307         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
22308         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
22309         sync_file_range as cancellation point
22310         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
22311         now a wrapper around __call_sync_file_range with cancellation handling.
22312         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
22313         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
22314         function name to __call_sync_file_range.
22315         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
22316         Add call_sync_file_range.
22318 2011-04-01  Andreas Schwab  <schwab@redhat.com>
22320         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22321         bits/timex.h.
22323 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
22325         * iconv/iconv.h: Fix typo in comment.
22326         * io/fcntl.h: Likewise.
22327         * libio/stdio.h: Likewise.
22328         * posix/spawn.h: Likewise.
22329         * posix/unistd.h: Likewise.
22330         * stdlib/stdlib.h: Likewise.
22331         * time/time.h: Likewise.
22332         * wcsmbs/wchar.h: Likewise.
22334         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
22335         open_by_handle): Add.
22336         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
22337         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
22338         Augment a few comments.
22339         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
22340         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
22341         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
22342         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
22343         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
22344         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
22345         open_by_handle.
22347         * io/fcntl.h (AT_EMPTY_PATH): Define.
22349 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
22351         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
22352         * sysdeps/unix/sysv/linux/bits/time.h: New file.
22353         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
22354         to...
22355         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
22356         * Versions.def: Add GLIBC_2.14.
22357         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
22358         Export.
22360 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
22362         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
22363         round counter.
22364         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
22366 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
22368         [BZ #12597]
22369         * string/test-strncmp.c (do_page_test): New function.
22370         (check2): Likewise.
22371         (test_main): Call check2.
22372         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
22374 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
22376         [BZ #12587]
22377         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
22378         Handle cache information in CPU leaf 4.
22379         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
22381 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
22383         [BZ #12583]
22384         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
22385         character representation.
22386         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
22388 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
22390         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
22391         END(__isnan) to END(__isnanf) to match function entry point/label
22392         EALIGN(__isnanf,...).
22394 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
22396         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
22398 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
22400         [BZ #12510]
22401         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
22402         copy from the symbol referenced in the relocation to initialize the
22403         used variable.
22404         Patch by Piotr Bury <pbury@goahead.com>.
22405         * elf/Makefile: Add rules to build and tst-unique3.
22406         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
22407         * elf/tst-unique3.cc: New file.
22408         * elf/tst-unique3.h: New file.
22409         * elf/tst-unique3lib.cc: New file.
22410         * elf/tst-unique3lib2.cc: New file.
22412         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
22414 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
22416         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
22417         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
22418         to _start.
22420 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
22422         * elf/dl-load.c (_dl_map_object): If we are looking for the first
22423         to-be-loaded object along a path to loader is ld.so.
22425 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
22426             Ulrich Drepper  <drepper@gmail.com>
22428         * sysdeps/x86_64/memset.S: After aligning destination, code
22429         branches to different locations depending on the value of
22430         misalignment, when multiarch is enabled. Fix this.
22432 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
22434         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
22435         Set _x86_64_preferred_memory_instruction for AMD processsors.
22436         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22437         Set bit_Prefer_SSE_for_memop for AMD processors.
22439 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
22441         * libio/fmemopen.c (fmemopen): Optimize a bit.
22443 2011-03-03  Andreas Schwab  <schwab@redhat.com>
22445         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
22447 2011-03-03  Roland McGrath  <roland@redhat.com>
22449         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
22451 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
22453         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
22454         __bzero_ultra1 instead of __memset_ultra1.
22456 2011-02-23  Andreas Schwab  <schwab@redhat.com>
22457             Ulrich Drepper  <drepper@gmail.com>
22459         [BZ #12509]
22460         * include/link.h (struct link_map): Add l_orig_initfini.
22461         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
22462         returning unsuccessfully.
22463         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
22464         close of a file loaded at startup, restore the original l_initfini
22465         list.
22466         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
22467         list, store the pointer.
22468         * elf/Makefile ($(objpfx)noload-mem): New rule.
22469         (noload-ENV): Define.
22470         (tests): Add $(objpfx)noload-mem.
22471         * elf/noload.c: Include <memcheck.h>.
22472         (main): Call mtrace.  Close all opened handles.
22474 2011-02-17  Andreas Schwab  <schwab@redhat.com>
22476         [BZ #12454]
22477         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
22478         dependencies are missing.
22480 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22482         Fix __if_freereq crash: Unlike the generic version which uses free,
22483         Hurd needs munmap.
22484         * sysdeps/mach/hurd/ifreq.h: New file.
22486 2011-01-27  Petr Baudis  <pasky@suse.cz>
22487             Ulrich Drepper  <drepper@gmail.com>
22489         [BZ 12445]#
22490         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
22491         to extend_alloca().
22492         * stdio-common/bug23.c: New file.
22493         * stdio-common/Makefile (tests): Add bug23.
22495 2010-09-28  Andreas Schwab  <schwab@redhat.com>
22496             Ulrich Drepper  <drepper@gmail.com>
22498         [BZ #12489]
22499         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
22500         before performing relro protection.  At old place add assertion
22501         to make sure nothing changed.
22503 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
22504             Glauber de Oliveira Costa  <glommer@gmail.com>
22506         * elf/elf.h: Add new ARM TLS relocs.
22508 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
22510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
22511         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
22512         cast from r3.
22513         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
22514         'tests' variable.
22515         * sysdeps/wordsize-64/tst-writev.c: New file.
22517 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
22519         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
22520         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
22521         insns in _dl_start to prevent a TOC reference before relocs are
22522         resolved.
22524 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
22526         [BZ #12469]
22527         * Makeconfig: Remove RANLIB definition.
22528         * Makerules: Don't use RANLIB.
22529         * aclocal.m4: Remove ranlib test.
22530         * configure.in: No need to check for ranlib.
22531         * elf/rtld-Rules: Don't use RANLIB.
22533 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22535         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
22536         protection macro.
22537         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
22538         inclusion protection macro.
22540         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
22541         SIGRTMIN and SIGRTMAX and print information in that case only when
22542         SIGRTMIN is defined.
22544 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
22546         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
22547         arginfo fn returning -1.
22549         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
22550         and thousands string is zero terminated.
22552 2011-02-03  Andreas Schwab  <schwab@redhat.com>
22554         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
22555         sysdeps/unix/sysv/linux/bits/socket.h.
22557 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22559         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
22560         (__CPU_COUNT): Remove old macros.
22561         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
22562         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
22563         (__CPU_ALLOC, __CPU_FREE): Add macros.
22564         (__sched_cpualloc, __sched_cpufree): Add declarations.
22566 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
22568         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
22569         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
22570         * nscd/aicache.c (addhstaiX): Return timeout of added value.
22571         (readdhstai): Return value of addhstaiX call.
22572         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
22573         (addgrbyX): Return value returned by cache_addgr.
22574         (readdgrbyname): Return value returned by addgrbyX.
22575         (readdgrbygid): Likewise.
22576         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
22577         (addpwbyX): Return value returned by cache_addpw.
22578         (readdpwbyname): Return value returned by addhstbyX.
22579         (readdpwbyuid): Likewise.
22580         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
22581         (addservbyX): Return value returned by cache_addserv.
22582         (readdservbyname): Return value returned by addservbyX:
22583         (readdservbyport): Likewise.
22584         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
22585         (addhstbyX): Return value returned by cache_addhst.
22586         (readdhstbyname): Return value returned by addhstbyX.
22587         (readdhstbyaddr): Likewise.
22588         (readdhstbynamev6): Likewise.
22589         (readdhstbyaddrv6): Likewise.
22590         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
22591         (readdinitgroups): Return value returned by addinitgroupsX.
22592         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
22593         (prune_cache): Keep track of timeout value of re-added entries.
22594         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
22595         * nscd/nscd.h: Adjust prototypes of readd* functions.
22597 2011-02-04  Roland McGrath  <roland@redhat.com>
22599         * nis/nis_server.c (nis_servstate): Use the right name for 0.
22600         (nis_stats): Likewise.
22601         * nis/nis_modify.c (nis_modify): Likewise.
22602         * nis/nis_remove.c (nis_remove): Likewise.
22603         * nis/nis_add.c (nis_add): Likewise.
22605         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
22607         * posix/fnmatch_loop.c: Add some consts.
22609         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
22611 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
22613         [BZ #12460]
22614         * config.make.in (config-cflags-novzeroupper): Define.
22615         * configure.in: Substitute libc_cv_cc_novzeroupper.
22616         * elf/Makefile (AVX-CFLAGS): Define.
22617         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
22618         (CFLAGS-tst-auditmod4a.c): Likewise.
22619         (CFLAGS-tst-auditmod4b.c): Likewise.
22620         (CFLAGS-tst-auditmod6b.c): Likewise.
22621         (CFLAGS-tst-auditmod6c.c): Likewise.
22622         (CFLAGS-tst-auditmod7b.c): Likewise.
22623         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
22625 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
22627         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
22628         function to the callback.
22629         Patch partly by Jiri Olsa <jolsa@redhat.com>.
22631 2011-02-02  Andreas Schwab  <schwab@redhat.com>
22633         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
22634         of errno.
22636 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
22638         [BZ #11724]
22639         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
22640         of constructors.
22641         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
22642         of destructors.
22643         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
22645         [BZ #11724]
22646         * elf/Makefile: Add rules to build and run new test.
22647         * elf/tst-initorder.c: New file.
22648         * elf/tst-initorder.exp: New file.
22649         * elf/tst-initordera1.c: New file.
22650         * elf/tst-initordera2.c: New file.
22651         * elf/tst-initordera3.c: New file.
22652         * elf/tst-initordera4.c: New file.
22653         * elf/tst-initorderb1.c: New file.
22654         * elf/tst-initorderb2.c: New file.
22655         * elf/tst-order-a1.c: New file.
22656         * elf/tst-order-a2.c: New file.
22657         * elf/tst-order-a3.c: New file.
22658         * elf/tst-order-a4.c: New file.
22659         * elf/tst-order-b1.c: New file.
22660         * elf/tst-order-b2.c: New file.
22661         * elf/tst-order-main.c: New file.
22662         New test case by George Gensure <werkt0@gmail.com>.
22664 2010-10-01  Andreas Schwab  <schwab@redhat.com>
22666         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
22667         decoding ACE if AI_CANONIDN.
22669 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
22671         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
22673 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
22675         * version.h (RELEASE): Bump for 2.13 release.
22676         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
22678         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
22680         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
22681         MADV_NOHUGEPAGE.
22682         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
22683         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
22684         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
22685         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
22686         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
22687         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
22689         * posix/getconf.c: Update copyright year.
22690         * catgets/gencat.c: Likewise.
22691         * csu/version.c: Likewise.
22692         * debug/catchsegv.sh: Likewise.
22693         * debug/xtrace.sh: Likewise.
22694         * elf/ldconfig.c: Likewise.
22695         * elf/ldd.bash.in: Likewise.
22696         * elf/sprof.c (print_version): Likewise.
22697         * iconv/iconv_prog.c: Likewise.
22698         * iconv/iconvconfig.c: Likewise.
22699         * locale/programs/locale.c: Likewise.
22700         * locale/programs/localedef.c: Likewise.
22701         * malloc/memusage.sh: Likewise.
22702         * malloc/mtrace.pl: Likewise.
22703         * nscd/nscd.c (print_version): Likewise.
22704         * nss/getent.c: Likewise.
22706         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
22707         PF_CAIF, and PF_ALG.
22708         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
22710 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
22712         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
22713         (modules-names): Use them.
22714         (ifunc-test-modules, ifunc-pie-tests): Define.
22715         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
22716         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
22717         (test-extras): Likewise.
22718         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
22719         $(compile-command.c).
22720         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
22721         (all-built-dso): Define.
22722         (check-textrel.out, check-execstack.out): Depend on it.
22724         * configure.in: Don't override --enable-multi-arch.
22726 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
22728         [BZ #6812]
22729         * nscd/hstcache.c (tryagain): Define.
22730         (cache_addhst): Return tryagain not notfound for temporary errors.
22731         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
22732         failed.
22734 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
22736         [BZ #10563]
22737         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
22738         to make the syscall.
22739         * sysdeps/unix/sysv/linux/setgroups.c: New file.
22741         [BZ #12378]
22742         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
22743         and fall back to matching as normal character if the string ends before
22744         the matching ']' is found.  This is what POSIX requires.
22745         * posix/testfnm.c: Adjust test result.
22746         * posix/globtest.sh: Adjust test result.  Add new test.
22747         * posix/tst-fnmatch.input: Likewise.
22748         * posix/tst-fnmatch2.c: Add new test.
22750 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
22752         * elf/Makefile (check-execstack): Revert last change.  Depend on
22753         check-execstack.h.
22754         (check-execstack.h): New target.
22755         (generated): Add check-execstack.h.
22756         * elf/check-execstack.c: Include "check-execstack.h".
22757         (main): Revert last change.
22758         (handle_file): Return zero if GNU_STACK is absent and
22759         DEFAULT_STACK_PERMS doesn't include PF_X.
22761 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
22763         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
22764         in child fails because the descriptor is already closed.
22765         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
22766         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
22767         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
22769         [BZ #12397]
22770         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
22771         syscall.
22773         [BZ #10484]
22774         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
22775         temporary buffer used to handle multi lookups locally.
22776         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
22778 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
22780         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
22781         loader is ld.so.
22783 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
22785         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
22786         alignment for SSE2.
22788 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
22790         [BZ #12394]
22791         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
22792         characters.  When rounding increased number of integer digits recompute
22793         number of groups.
22794         * stdio-common/tst-grouping.c: New file.
22795         * stdio-common/Makefile: Add rules to build and run tst-grouping.
22797 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
22799         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
22800         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
22802         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
22803         void.
22804         * bits/select.h: Likewise.
22806 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
22808         * po/ja.po: Update from translation team.
22810 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
22812         [BZ #11155]
22813         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
22814         implementation just like for lxstat, fxstatat, et al.
22816 2010-12-27  Jim Meyering  <meyering@redhat.com>
22818         [BZ #12348]
22819         * posix/regexec.c (build_trtable): Return failure indication upon
22820         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22822 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
22824         [BZ #12201]
22825         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
22826         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
22827         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
22828         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
22830         [BZ #12207]
22831         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
22833         [BZ #12204]
22834         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
22835         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
22837 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
22839         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
22840         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
22841         script has SORT_BY_INIT_PRIORITY.
22842         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
22843         NO_CTORS_DTORS_SECTIONS is defined.
22844         * elf/soinit.c: Likewise.
22845         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
22846         NO_CTORS_DTORS_SECTIONS is defined.
22847         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
22848         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
22849         * sysdeps/sh/init-first.c: Likewise.
22850         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
22852 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
22854         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
22855         always use the slow path.
22857 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
22859         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
22860         similar rule which adds the sysdep directories to the header search in
22861         order to pick up the correct platform stackinfo.h.
22862         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
22863         perform test if it is, otherwise return successfully without testing.
22864         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
22865         DEFAULT_STACK_PERMS define in stackinfo.h.
22866         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
22867         defined in stackinfo.h.
22868         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
22869         DEFAULT_STACK_PERMS defined in stackinfo.h.
22870         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
22871         * sysdeps/ia64/stackinfo.h: Likewise.
22872         * sysdeps/s390/stackinfo.h: Likewise.
22873         * sysdeps/sh/stackinfo.h: Likewise.
22874         * sysdeps/sparc/stackinfo.h: Likewise.
22875         * sysdeps/x86_64/stackinfo.h: Likewise.
22876         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
22877         PF_X for powerpc64.  Retain PF_X for powerpc32.
22879 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
22881         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
22882         accurately.
22883         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
22884         GETDENTS_64BIT_ALIGNED.
22886 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
22888         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
22890 2010-12-10  Andreas Schwab  <schwab@redhat.com>
22892         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
22893         _GNU_SOURCE.
22895         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
22896         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
22897         Remove __restrict.
22898         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
22899         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
22901 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
22903         [BZ #11655]
22904         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
22905         are initialized.
22907 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
22909         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
22911 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
22913         * po/it.po: Update from translation team.
22915 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
22917         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
22918         unused codes.
22920 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
22922         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
22924 2010-11-24  Andreas Schwab  <schwab@redhat.com>
22926         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
22927         specially.
22928         (gaih_getanswer_slice): Likewise.
22930 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
22932         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
22934 2010-05-31  Petr Baudis  <pasky@suse.cz>
22936         [BZ #11149]
22937         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
22938         silently even in the chroot mode.
22940 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
22942         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
22943         last patch a bit.  Pretty printing
22945 2010-05-31  Petr Baudis <pasky@suse.cz>
22947         [BZ #10085]
22948         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
22949         initialization of skip_initgroups_dyn.
22951 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
22953         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
22954         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
22956 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
22958         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
22960 2010-11-11  Andreas Schwab  <schwab@redhat.com>
22962         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
22963         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
22964         (tst-fnmatch-ENV): Set MALLOC_TRACE.
22965         ($(objpfx)tst-fnmatch-mem): New rule.
22966         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
22967         * posix/tst-fnmatch.c (main): Call mtrace.
22969 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
22971         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22972         Support Intel processor model 6 and model 0x2c.
22974 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
22976         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
22977           signed comparison.
22979 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
22981         [BZ #12205]
22982         * string/test-strncasecmp.c (check_result): New function.
22983         (do_one_test): Use it.
22984         (check1): New function.
22985         (test_main): Use it.
22986         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
22987         Support strcasecmp and strncasecmp.
22989 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
22991         [BZ #12194]
22992         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
22993         * sysdeps/x86_64/bits/byteswap.h: Likewise.
22995 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
22997         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
22998         IFUNC support.
22999         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
23000         memset-x86-64.
23001         * sysdeps/x86_64/multiarch/bzero.S: New file.
23002         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
23003         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
23004         * sysdeps/x86_64/multiarch/memset.S: New file.
23005         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
23006         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23007         Set bit_Prefer_SSE_for_memop for Intel processors.
23008         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
23009         Define.
23010         (index_Prefer_SSE_for_memop): Define.
23011         (HAS_PREFER_SSE_FOR_MEMOP): Define.
23013 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
23015         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
23016         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
23018 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
23020         [BZ #12191]
23021         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
23022         (__x86_64_raw_data_cache_size_half): Likewise.
23023         (__x86_64_raw_shared_cache_size): Likewise.
23024         (__x86_64_raw_shared_cache_size_half): Likewise.
23026         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
23027         (__x86_64_raw_data_cache_size_half): Likewise.
23028         (__x86_64_raw_shared_cache_size): Likewise.
23029         (__x86_64_raw_shared_cache_size_half): Likewise.
23030         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
23031         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
23032         and __x86_64_raw_shared_cache_size_half.  Round
23033         __x86_64_data_cache_size_half, __x86_64_data_cache_size
23034         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
23035         to multiple of 256 bytes.
23037 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
23039         [BZ #12167]
23040         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
23041         of inacessible symlinks.  Verify result of symlink before returning it.
23042         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
23043         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
23045 2010-10-28  Erich Ritz  <erichritz@gmail.com>
23047         * math/math.h (isinf): Fix typo in comment.
23049 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
23051         * po/da.po: Update from translation team.
23053 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
23055         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
23056         is added to the list.
23058 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23059             Ulrich Drepper  <drepper@gmail.com>
23061         * elf/dl-object.c (_dl_new_object): Don't append the new object to
23062         the global list here.  Move code to...
23063         (_dl_add_to_namespace_list): ...here.  New function.
23064         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
23065         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
23066         * elf/dl-load.c (lose): Don't remove the element from the list.
23067         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
23068         (_dl_map_object): Likewise.
23070 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
23072         [BZ #12159]
23073         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
23074         into all bytes of SSE register.
23075         Patch by Richard Li <richardpku@gmail.com>.
23077 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
23079         [BZ #12140]
23080         * malloc/malloc.c (_int_free): Fill correct number of bytes when
23081         perturbing.
23083 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
23085         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
23086         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
23087         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
23088         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
23089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
23090         submachine.
23091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
23093 2010-10-22  Andreas Schwab  <schwab@redhat.com>
23095         * include/dlfcn.h (__RTLD_SECURE): Define.
23096         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
23097         mode & __RTLD_SECURE instead.
23098         (open_path): Rename preloaded parameter to secure.
23099         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
23100         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
23101         * elf/dl-deps.c (openaux): Likewise.
23102         * elf/rtld.c (struct map_args): Remove is_preloaded.
23103         (map_doit): Don't use it.
23104         (dl_main): Likewise.
23105         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
23106         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
23108 2010-09-09  Andreas Schwab  <schwab@redhat.com>
23110         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
23111         (sysd-rules-targets): Remove duplicates.
23112         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
23113         rtld-%.$o dependency.
23115 2010-10-18  Andreas Schwab  <schwab@redhat.com>
23117         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
23118         _dl_map_object do it.
23120 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
23122         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
23123         fast fma builtins, define the macros in the C99 standard.
23124         (FP_FAST_FMAF): Likewise.
23125         (FP_FAST_FMAL): Likewise.
23126         * sysdeps/x86_64/bits/mathdef.h: Likewise.
23128         * bits/mathdef.h: Update copyright year.
23129         * sysdeps/powerpc/bits/mathdef.h: Likewise.
23131 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
23133         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
23134         builtins, define the macros in the C99 standard.
23135         (FP_FAST_FMAF): Likewise.
23136         (FP_FAST_FMAL): Likewise.
23137         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
23138         multiply/add.
23139         (FP_FAST_FMAF): Likewise.
23141 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
23143         [BZ #3268]
23144         * math/libm-test.inc (fma_test): Some new testcases.
23145         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
23146         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
23147         y and infinite z.  Do multiplication by C already in long double.
23148         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
23149         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
23150         y and infinite z.  Do bitwise or of inexact bit into u.d.
23151         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
23152         * sysdeps/i386/fpu/s_fmaf.S: Removed.
23153         * sysdeps/i386/fpu/s_fma.S: Removed.
23154         * sysdeps/i386/fpu/s_fmal.S: Removed.
23156 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
23158         [BZ #3268]
23159         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
23160         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
23161         computation is not scheduled after fetestexcept.  Fix value
23162         of minimum denormal long double.
23164 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
23166         [BZ #3268]
23167         * math/libm-test.inc (fma_test): Add some more tests.
23168         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
23169         correctly.
23171 2010-10-15  Andreas Schwab  <schwab@redhat.com>
23173         * scripts/data/localplt-s390-linux-gnu.data: New file.
23174         * scripts/data/localplt-s390x-linux-gnu.data: New file.
23176 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
23178         [BZ #3268]
23179         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
23180         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
23181         instead of dbl-64.
23182         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
23183         inlines.
23184         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
23185         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
23186         if one of x and y is very large and the other is subnormal.
23187         * sysdeps/s390/fpu/s_fmaf.c: New file.
23188         * sysdeps/s390/fpu/s_fma.c: New file.
23189         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
23190         * sysdeps/powerpc/fpu/s_fma.S: New file.
23191         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
23192         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
23193         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
23195 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
23197         [BZ #3268]
23198         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
23199         fma tests.
23200         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
23201         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
23202         * sysdeps/i386/i686/multiarch/s_fma.c: Include
23203         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
23204         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
23205         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
23206         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
23208 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
23210         [BZ #12078]
23211         * posix/regcomp.c (parse_branch): One more memory leak plugged.
23212         * posix/bug-regex31.input: Add test case.
23214 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
23216         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
23217         * posix/bug-regex31.input: New file.
23219         [BZ #12078]
23220         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
23221         (parse_sub_exp): Fix last change, use postorder.
23223         * posix/bug-regex31.c: New file.
23224         * posix/Makefile: Add rules to build and run bug-regex31.
23226         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
23228         [BZ #12078]
23229         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
23231         [BZ #12108]
23232         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
23233         to have entries in sys_siglist.
23235         [BZ #12093]
23236         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
23237         be NULL.
23239 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
23241         [BZ #3268]
23242         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
23243         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
23244         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
23245         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
23246         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
23247         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
23248         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
23249         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
23250         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
23251         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
23252         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
23253         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
23254         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
23255         * math/ftestexcept.c (fetestexcept): Likewise.
23256         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
23257         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
23258         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
23259         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
23260         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
23261         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
23262         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
23264 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
23266         [BZ #12107]
23267         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
23268         newline.
23270 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
23272         * string/bug-strstr1.c: New file.
23273         * string/Makefile: Add rules to build and run bug-strstr1.
23275 2010-10-05  Eric Blake  <eblake@redhat.com>
23277         [BZ #12092]
23278         * string/str-two-way.h (two_way_long_needle): Always clear memory
23279         when skipping input due to the shift table.
23281 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
23283         [BZ #12005]
23284         * malloc/mcheck.c: Handle large requests.
23286         [BZ #12077]
23287         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
23288         for strncmp and strncasecmp.
23289         * string/stratcliff.c: Add tests for strcmp and strncmp.
23290         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
23292 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
23294         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
23295         __set_fpscr.
23297 2010-09-30  Andreas Jaeger  <aj@suse.de>
23299         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
23300         (CGROUP_SUPER_MAGIC): Define.
23301         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
23302         Handle btrfs and cgroup file systems.
23303         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
23304         Likewise.
23306 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
23308         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
23309         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
23311 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23313         [BZ #12067]
23314         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
23315         trying to locate the ELF header.
23317 2010-09-27  Andreas Schwab  <schwab@redhat.com>
23319         [BZ #11611]
23320         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
23321         Mask out sign-bit copies when constructing f_fsid.
23323 2010-09-24  Petr Baudis <pasky@suse.cz>
23325         * debug/stack_chk_fail_local.c: Add missing licence exception.
23326         * debug/warning-nop.c: Likewise.
23328 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
23330         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
23331         implementing getdents64 using getdents syscall, set d_type if
23332         __ASSUME_GETDENTS32_D_TYPE.
23334 2010-09-16  Andreas Schwab  <schwab@redhat.com>
23336         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
23337         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
23339 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
23341         [BZ #12037]
23342         * posix/unistd.h: Undo change of feature selection for ftruncate from
23343         2010-01-11.
23345 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
23347         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
23348         detection.
23350 2010-09-20  Andreas Schwab  <schwab@redhat.com>
23352         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
23353         fanotify_mark.
23354         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
23356 2010-09-14  Andreas Schwab  <schwab@redhat.com>
23358         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
23359         variables after CHECK_SP call.
23360         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
23362 2010-09-13  Andreas Schwab  <schwab@redhat.com>
23363             Ulrich Drepper  <drepper@redhat.com>
23365         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
23366         re-relocationg ld.so.
23367         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
23368         _dl_init_paths call.
23369         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
23370         here anymore.
23372 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
23374         * resolv/res_init.c (__res_vinit): Count the default server we added.
23376 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
23377             Ulrich Drepper  <drepper@redhat.com>
23379         [BZ #11968]
23380         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
23381         (____longjmp_chk): Use %ebx for saving value across system call.
23382         Add unwind info.
23384 2010-09-06  Andreas Schwab  <schwab@redhat.com>
23386         * manual/Makefile: Don't mix pattern rules with normal rules.
23388 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
23390         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
23391         operation.
23392         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
23393         * libio/iofopncook.c (_IO_cookie_init): Likewise.
23394         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
23395         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
23396         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
23397         Likewise.
23399 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
23401         [BZ #11979]
23402         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
23403         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
23405 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
23407         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
23408         * sysdeps/x86_64/addmul_1.S: Likewise.
23409         * sysdeps/x86_64/lshift.S: Likewise.
23410         * sysdeps/x86_64/mul_1.S: Likewise.
23411         * sysdeps/x86_64/rshift.S: Likewise.
23412         * sysdeps/x86_64/sub_n.S: Likewise.
23413         * sysdeps/x86_64/submul_1.S: Likewise.
23415 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23417         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
23418         Define __sched_param instead of SCHED_* and sched_param when
23419         <bits/sched.h> is included with __need_schedparam defined.
23420         * bits/sched.h [__need_schedparam]
23421         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
23422         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
23423         (__defined_schedparam): Define to 1.
23424         (__sched_param): New structure, identical to sched_param.
23425         (__need_schedparam): Undefine.
23427 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
23429         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
23430         (epoll_create1): Declare.
23432         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
23434 2010-08-31  Andreas Schwab  <schwab@redhat.com>
23436         [BZ #7066]
23437         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
23438         shifting retval into place.
23440 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
23442         * nis/rpcsvc/nis.h: Update copyright notice.
23443         * nis/rpcsvc/nis.x: Likewise.
23444         * nis/rpcsvc/nis_callback.h: Likewise.
23445         * nis/rpcsvc/nis_callback.x: Likewise.
23446         * nis/rpcsvc/nis_object.x: Likewise.
23447         * nis/rpcsvc/nis_tags.h: Likewise.
23448         * nis/rpcsvc/yp.h: Likewise.
23449         * nis/rpcsvc/yp.x: Likewise.
23450         * nis/rpcsvc/ypupd.h: Likewise.
23451         * nis/yp_xdr.c: Likewise.
23452         * nis/ypupdate_xdr.c: Likewise.
23454         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
23455         mainly the body of pmap_getport.  Add parameters to specify timeouts.
23456         (pmap_getport): Use __libc_rpc_getport.
23457         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
23458         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
23459         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
23461 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
23463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
23464         fanotify_mark.
23466 2010-08-27  Roland McGrath  <roland@redhat.com>
23468         * sysdeps/i386/i686/multiarch/Makefile
23469         (CFLAGS-varshift.c): New variable.
23471 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
23473         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
23474         * sysdeps/i386/i686/multiarch/varshift.c: New file.
23476         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
23478         * sysdeps/x86_64/strlen.S: Minimal code improvement.
23480 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
23482         * sysdeps/x86_64/strlen.S: Unroll the loop.
23483         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
23484         strlen-sse2 strlen-sse2-bsf.
23485         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
23486         __strlen_no_bsf if bit_Slow_BSF is set.
23487         (__strlen_sse42): Removed.
23488         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
23489         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
23491 2010-08-25  Roland McGrath  <roland@redhat.com>
23493         * sysdeps/x86_64/multiarch/varshift.S: File removed.
23494         * sysdeps/x86_64/multiarch/varshift.c: New file.
23495         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
23496         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
23497         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
23498         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
23500 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
23502         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23503         strlen-sse2 strlen-sse2-bsf.
23504         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
23505         __strlen_sse2_bsf if bit_Slow_BSF is unset.
23506         (__strlen_sse2): Removed.
23507         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
23508         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
23509         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
23510         bit_Slow_BSF for Atom.
23511         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
23512         (index_Slow_BSF): Define.
23513         (HAS_SLOW_BSF): Define.
23515 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
23517         [BZ #10851]
23518         * resolv/res_init.c (__res_vinit): When no server address at all
23519         is given default to loopback.
23521 2010-08-24  Roland McGrath  <roland@redhat.com>
23523         * configure.in: Remove config-name.h generation.
23524         * configure: Regenerated.
23525         * config-name.in: File removed.
23526         * scripts/config-uname.sh: New file.
23527         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
23528         ($(objdir)config-name.h): New target.
23530         * sunrpc/rpc_parse.h: Avoid nested comment.
23532 2010-08-24  Richard Henderson  <rth@redhat.com>
23533             Ulrich Drepper  <drepper@redhat.com>
23534             H.J. Lu  <hongjiu.lu@intel.com>
23536         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
23537         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
23538         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
23539         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
23540         _mm_alignr_epi8 with _mm_loadu_si128.
23541         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
23542         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
23543         (__m128i_shift_right): Removed.
23544         * sysdeps/i386/i686/multiarch/varshift.h: New file.
23545         * sysdeps/i386/i686/multiarch/varshift.S: New file.
23546         * sysdeps/x86_64/multiarch/varshift.h: New file.
23547         * sysdeps/x86_64/multiarch/varshift.S: New file.
23549 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
23551         * configure.in: Move assembler checks to before sysdep dir checking.
23553 2010-08-20  Petr Baudis  <pasky@suse.cz>
23555         * LICENSES: Sync the sunrpc license.
23557 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
23559         * sunrpc/auth_des.c: Update copyright notice once again.
23560         * sunrpc/auth_none.c: Likewise.
23561         * sunrpc/auth_unix.c: Likewise.
23562         * sunrpc/authdes_prot.c: Likewise.
23563         * sunrpc/authuxprot.c: Likewise.
23564         * sunrpc/bindrsvprt.c: Likewise.
23565         * sunrpc/clnt_gen.c: Likewise.
23566         * sunrpc/clnt_perr.c: Likewise.
23567         * sunrpc/clnt_raw.c: Likewise.
23568         * sunrpc/clnt_simp.c: Likewise.
23569         * sunrpc/clnt_tcp.c: Likewise.
23570         * sunrpc/clnt_udp.c: Likewise.
23571         * sunrpc/clnt_unix.c: Likewise.
23572         * sunrpc/des_crypt.c: Likewise.
23573         * sunrpc/des_soft.c: Likewise.
23574         * sunrpc/get_myaddr.c: Likewise.
23575         * sunrpc/getrpcport.c: Likewise.
23576         * sunrpc/key_call.c: Likewise.
23577         * sunrpc/key_prot.c: Likewise.
23578         * sunrpc/openchild.c: Likewise.
23579         * sunrpc/pm_getmaps.c: Likewise.
23580         * sunrpc/pm_getport.c: Likewise.
23581         * sunrpc/pmap_clnt.c: Likewise.
23582         * sunrpc/pmap_prot.c: Likewise.
23583         * sunrpc/pmap_prot2.c: Likewise.
23584         * sunrpc/pmap_rmt.c: Likewise.
23585         * sunrpc/rpc/auth.h: Likewise.
23586         * sunrpc/rpc/auth_unix.h: Likewise.
23587         * sunrpc/rpc/clnt.h: Likewise.
23588         * sunrpc/rpc/des_crypt.h: Likewise.
23589         * sunrpc/rpc/key_prot.h: Likewise.
23590         * sunrpc/rpc/netdb.h: Likewise.
23591         * sunrpc/rpc/pmap_clnt.h: Likewise.
23592         * sunrpc/rpc/pmap_prot.h: Likewise.
23593         * sunrpc/rpc/pmap_rmt.h: Likewise.
23594         * sunrpc/rpc/rpc.h: Likewise.
23595         * sunrpc/rpc/rpc_des.h: Likewise.
23596         * sunrpc/rpc/rpc_msg.h: Likewise.
23597         * sunrpc/rpc/svc.h: Likewise.
23598         * sunrpc/rpc/svc_auth.h: Likewise.
23599         * sunrpc/rpc/types.h: Likewise.
23600         * sunrpc/rpc/xdr.h: Likewise.
23601         * sunrpc/rpc_clntout.c: Likewise.
23602         * sunrpc/rpc_cmsg.c: Likewise.
23603         * sunrpc/rpc_common.c: Likewise.
23604         * sunrpc/rpc_cout.c: Likewise.
23605         * sunrpc/rpc_dtable.c: Likewise.
23606         * sunrpc/rpc_hout.c: Likewise.
23607         * sunrpc/rpc_main.c: Likewise.
23608         * sunrpc/rpc_parse.c: Likewise.
23609         * sunrpc/rpc_parse.h: Likewise.
23610         * sunrpc/rpc_prot.c: Likewise.
23611         * sunrpc/rpc_sample.c: Likewise.
23612         * sunrpc/rpc_scan.c: Likewise.
23613         * sunrpc/rpc_scan.h: Likewise.
23614         * sunrpc/rpc_svcout.c: Likewise.
23615         * sunrpc/rpc_tblout.c: Likewise.
23616         * sunrpc/rpc_util.c: Likewise.
23617         * sunrpc/rpc_util.h: Likewise.
23618         * sunrpc/rpcinfo.c: Likewise.
23619         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
23620         * sunrpc/rpcsvc/key_prot.x: Likewise.
23621         * sunrpc/rpcsvc/klm_prot.x: Likewise.
23622         * sunrpc/rpcsvc/mount.x: Likewise.
23623         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
23624         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
23625         * sunrpc/rpcsvc/rex.x: Likewise.
23626         * sunrpc/rpcsvc/rstat.x: Likewise.
23627         * sunrpc/rpcsvc/rusers.x: Likewise.
23628         * sunrpc/rpcsvc/sm_inter.x: Likewise.
23629         * sunrpc/rpcsvc/spray.x: Likewise.
23630         * sunrpc/rpcsvc/yppasswd.x: Likewise.
23631         * sunrpc/rtime.c: Likewise.
23632         * sunrpc/svc.c: Likewise.
23633         * sunrpc/svc_auth.c: Likewise.
23634         * sunrpc/svc_authux.c: Likewise.
23635         * sunrpc/svc_raw.c: Likewise.
23636         * sunrpc/svc_run.c: Likewise.
23637         * sunrpc/svc_simple.c: Likewise.
23638         * sunrpc/svc_tcp.c: Likewise.
23639         * sunrpc/svc_udp.c: Likewise.
23640         * sunrpc/svc_unix.c: Likewise.
23641         * sunrpc/svcauth_des.c: Likewise.
23642         * sunrpc/xcrypt.c: Likewise.
23643         * sunrpc/xdr.c: Likewise.
23644         * sunrpc/xdr_array.c: Likewise.
23645         * sunrpc/xdr_float.c: Likewise.
23646         * sunrpc/xdr_mem.c: Likewise.
23647         * sunrpc/xdr_rec.c: Likewise.
23648         * sunrpc/xdr_ref.c: Likewise.
23649         * sunrpc/xdr_sizeof.c: Likewise.
23650         * sunrpc/xdr_stdio.c: Likewise.
23652         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
23653         handling.
23655 2010-08-19  Andreas Schwab  <schwab@redhat.com>
23657         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
23659 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
23661         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
23662         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
23663         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
23664         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
23665         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
23666         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
23667         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
23668         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
23669         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
23670         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
23671         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
23672         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
23673         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
23674         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
23676 2010-07-26  Anton Blanchard  <anton@samba.org>
23678         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
23679         * malloc/arena.c (heap_trim): Likewise.
23681 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
23683         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
23684         here.  Not...
23685         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
23686         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
23688 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
23690         * sysdeps/i386/elf/Makefile: New file.
23692 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
23694         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
23695         from fanotify_init.
23696         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
23697         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
23699 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
23701         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
23702         of strncasecmp_l.
23703         * sysdeps/multiarch/strcmp.S: Likewise.
23705 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
23707         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
23708         strncase_l-nonascii.
23709         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
23710         Add strncase_l-ssse3.
23711         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
23712         * sysdeps/x86_64/strcmp.S: Likewise.
23713         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
23714         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
23715         * sysdeps/x86_64/strncase.S: New file.
23716         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
23717         * sysdeps/x86_64/strncase_l.S: New file.
23718         * string/Makefile (strop-tests): Add strncasecmp.
23719         * string/test-strncasecmp.c: New file.
23721         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
23722         warning.
23724         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
23725         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
23727 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
23729         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
23731 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
23733         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
23734         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
23735         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
23737 2010-05-01  Alan Modra  <amodra@gmail.com>
23739         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
23740         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
23741         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
23742         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
23743         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
23744         tidying.  Don't tail-call __sigjmp_save for static lib.
23745         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
23746         save location.
23747         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
23748         (CALL_MCOUNT): Add eh info, and nop after bl.
23749         (TAIL_CALL_SYSCALL_ERROR): New macro.
23750         (PSEUDO_RET): Use it.
23751         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
23752         Correct save location of integer regs and cr.
23753         (_dl_profile_resolve): Correct cr save location.  Delete nops
23754         after bl when SHARED.  Reduce cfi size a little by better
23755         placement of cfi directives.
23756         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
23757         make a stack frame.  Instead use parm save area as a temp.
23758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
23759         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
23760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
23761         Don't make a stack frame for parent, use parm save area.
23762         Increase child stack frame to 112 bytes.  Don't save unused reg,
23763         and adjust reg usage.  Set up cfi on error recovery and
23764         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
23765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
23766         (__makecontext): Add dummy nop after jump to exit.
23767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
23768         Use correct parm save area and cr save, reduce stack frame.
23769         Correct cfi for possible PSEUDO_RET frame setup.
23770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
23771         Branch to local label emitted by PSEUDO_RET rather than
23772         __syscall_error.
23774 2010-08-12  Andreas Schwab  <schwab@redhat.com>
23776         [BZ #11904]
23777         * locale/programs/locale.c (print_assignment): New function.
23778         (show_locale_vars): Use it.
23780 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
23782         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
23783         field.
23784         (struct statfs64): Likewise.
23785         (_STATFS_F_FLAGS): Define.
23786         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
23787         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
23788         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
23789         (ST_VALID): Define locally.
23790         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
23791         __statvfs_getflags, use the provided value.
23792         * sysdeps/unix/sysv/linux/kernel-features.h: Define
23793         __ASSUME_STATFS_F_FLAGS.
23795         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
23797         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
23798         Add sys/fanotify.h.
23799         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
23800         fanotify_mask for GLIBC_2.13.
23801         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
23802         fanotify_init and fanotify_mark.
23803         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
23804         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
23806         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
23807         Add prlimit.
23808         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
23809         prlimit64 for GLIBC_2.13.
23810         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
23811         prlimit64.
23812         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
23813         syscall.
23814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
23815         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
23816         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
23817         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
23818         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
23819         add prlimit alias.
23820         * sysdeps/unix/sysv/linux/prlimit.c: New file.
23822         [BZ #11903]
23823         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
23824         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
23826         * nss/Makefile: Add rules to build and run tst-nss-test1.
23827         * shlib-versions: Add entry for libnss_test1.
23828         * nss/nss_test1.c: New file.
23829         * nss/tst-nss-test1.c: New file.
23831         * nss/nsswitch.c (__nss_database_custom): Define new variable.
23832         (__nss_configure_lookup): Set appropriate entry in
23833         __nss_configure_lookup to true.
23834         * nss/nsswitch.h: Define enum with indeces of databases in
23835         databases and __nss_database_custom arrays.  Declare
23836         __nss_database_custom.
23837         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
23838         to avoid using nscd when custom rules are installed.
23839         * nss/getXXbyYY_r.c: Likewise.
23840         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
23842         * nss/nss_files/files-parse.c: Whitespace fixes.
23844 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
23846         [BZ #11883]
23847         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
23848         * posix/fnmatch_loop.c: Likewise.
23850 2010-07-17  Andi Kleen  <ak@linux.intel.com>
23852         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
23853         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
23854         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
23855         * Versions.def [GLIBC_2.13]: Add.
23857 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
23859         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
23860         Also fail if tpwd after pwuid call is NULL.
23862 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23864         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
23865         when converting to ms.
23867 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23869         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
23870         EOPNOTSUPP errors with ENOTTY.
23871         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
23872         EOPNOTSUPP errors with ENOTTY.
23874 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
23876         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
23877         Add strcasecmp_l-ssse3.
23878         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
23879         strcasecmp.
23880         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
23881         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
23882         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
23884 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
23886         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
23888         * string/Makefile (strop-tests): Add strcasecmp.
23889         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
23890         strcasecmp_l-nonascii.
23891         (gen-as-const-headers): Add locale-defines.sym.
23892         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
23893         * sysdeps/x86_64/strcasecmp.S: New file.
23894         * sysdeps/x86_64/strcasecmp_l.S: New file.
23895         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
23896         * sysdeps/x86_64/locale-defines.sym: New file.
23897         * string/test-strcasecmp.c: New file.
23899         * string/test-strcasestr.c: Test both ends of the range of characters.
23900         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
23902 2010-07-29  Roland McGrath  <roland@redhat.com>
23904         [BZ #11856]
23905         * manual/locale.texi (Yes-or-No Questions): Fix example code.
23907 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
23909         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
23910         for ld.so.
23912 2010-07-27  Andreas Schwab  <schwab@redhat.com>
23914         * manual/memory.texi (Malloc Tunable Parameters): Document
23915         M_PERTURB.
23917 2010-07-26  Roland McGrath  <roland@redhat.com>
23919         [BZ #11840]
23920         * configure.in (-fgnu89-inline check): Set and substitute
23921         gnu89_inline, not libc_cv_gnu89_inline.
23922         * configure: Regenerated.
23923         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
23925 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
23927         * string/test-strnlen.c: New file.
23928         * string/Makefile (strop-tests): Add strnlen.
23929         * string/tester.c (test_strnlen): Add a few more test cases.
23930         * string/tst-strlen.c: Better error reporting.
23932         * sysdeps/x86_64/strnlen.S: New file.
23934 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
23936         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
23937         lower-latency instructions.
23939 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
23941         * string/test-strcasestr.c: New file.
23942         * string/test-strstr.c: New file.
23943         * string/Makefile (strop-tests): Add strstr and strcasestr.
23944         * string/str-two-way.h: Don't undefine MAX.
23945         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
23947 2010-07-21  Andreas Schwab  <schwab@redhat.com>
23949         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23950         strcasestr-nonascii.
23951         (CFLAGS-strcasestr-nonascii.c): Define.
23952         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
23953         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
23954         Remove unused attribute.
23956 2010-07-20  Roland McGrath  <roland@redhat.com>
23958         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
23959         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
23960         ld.so.cache was broken.  With it, there is no way to disable dsocaps
23961         like LD_HWCAP_MASK can disable hwcaps.
23963 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
23965         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
23967 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
23969         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
23970         call in strcasestr.
23971         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
23972         __strcasestr_sse42_nonascii.
23973         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
23974         strcasestr-nonascii.c.
23975         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
23977 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
23979         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
23980         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
23981         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
23982         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
23984 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
23986         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
23987         fcntl.
23989 2010-07-06  Andreas Schwab  <schwab@redhat.com>
23991         [BZ #11577]
23992         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
23993         dl_signal_cerror.
23995 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
23997         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
23998         _PC_PIPE_BUF using F_GETPIPE_SZ.
24000 2010-07-05  Roland McGrath  <roland@redhat.com>
24002         * manual/arith.texi (Rounding Functions): Fix rint description
24003         implicit in round description.
24005 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
24007         * elf/Makefile: Fix linking for a few tests to make recent linker
24008         happy.
24010 2010-06-30  Andreas Schwab  <schwab@redhat.com>
24012         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
24013         $(common-objpfx)libc_nonshared.a.
24015 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
24017         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
24018         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
24019         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
24020         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
24021         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
24022         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
24023         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
24024         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
24025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
24026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
24027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
24028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
24029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
24030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
24031         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
24032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
24033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
24034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
24035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
24036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
24037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
24038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
24039         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
24040         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
24041         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
24042         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
24043         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
24044         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
24045         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
24046         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
24047         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
24048         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
24049         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
24050         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
24051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
24052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
24053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
24054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
24055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
24056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
24057         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
24058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
24059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
24060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
24061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
24062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
24063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
24064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
24066 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
24068         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
24069         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
24070         * string/memmove.c (memmove): Renamed to ...
24071         (MEMMOVE): ...this.  Default to memmove.
24072         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
24073         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
24074         (END_CHK): Define.
24075         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24076         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
24077         mempcpy-ssse3-back memmove-ssse3-back.
24078         * sysdeps/x86_64/multiarch/bcopy.S: New file .
24079         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
24080         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
24081         * sysdeps/x86_64/multiarch/memcpy.S: New file.
24082         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
24083         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
24084         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
24085         * sysdeps/x86_64/multiarch/memmove.c: New file.
24086         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
24087         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
24088         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
24089         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
24090         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
24091         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
24092         Define.
24093         (index_Fast_Copy_Backward): Define.
24094         (HAS_ARCH_FEATURE): Define.
24095         (HAS_FAST_REP_STRING): Define.
24096         (HAS_FAST_COPY_BACKWARD): Define.
24098 2010-06-21  Andreas Schwab  <schwab@redhat.com>
24100         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
24101         Restore proper fallback handling.
24103 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
24105         [BZ #11701]
24106         * posix/group_member.c (__group_member): Correct checking loop.
24108         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
24109         OOM in getpwuid_r correctly.  Return error number when the caller
24110         should return, otherwise -1.
24111         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
24112         call returning > 0 value.
24113         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
24115 2010-06-07  Andreas Schwab  <schwab@redhat.com>
24117         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
24118         libc_nonshared.a from targets in modules-names.
24120 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
24122         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
24123         requires it.
24125 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
24127         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
24128         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
24129         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
24130         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
24132 2010-06-02  Andreas Schwab  <schwab@redhat.com>
24134         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
24136 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
24138         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
24139         and F_GETPIPE_SZ.
24140         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
24141         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
24142         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
24143         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
24144         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
24145         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
24147 2010-06-14  Roland McGrath  <roland@redhat.com>
24149         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
24151 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
24153         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
24154         __REDIRECT followed by __THROW.
24155         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
24156         * posix/getopt.h (getopt): Likewise.
24158 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
24160         * hurd/lookup-at.c (__file_name_lookup_at): Accept
24161         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
24162         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
24163         in AT_FLAGS.
24164         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
24165         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
24167 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
24169         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
24171 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
24173         [BZ #11640]
24174         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24175         Properly check family and model.
24177 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
24179         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
24181 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
24183         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
24185 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
24187         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
24188         symbol reference.
24190 2010-05-19  Andreas Schwab  <schwab@redhat.com>
24192         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
24193         symbol reference.
24195 2010-05-21  Andreas Schwab  <schwab@redhat.com>
24197         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
24198         and internal_recvmmsg.
24199         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
24200         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
24201         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
24202         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
24204         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
24205         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
24206         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
24208 2010-05-20  Andreas Schwab  <schwab@redhat.com>
24210         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
24212 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
24214         POWER7 optimizations.
24215         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
24216         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
24218 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
24220         * version.h: Update for 2.13 development version.
24222 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
24224         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
24225         exceptions.  Return 0.
24227 2010-05-07  Roland McGrath  <roland@redhat.com>
24229         * elf/ldconfig.c (main): Add a const.
24231 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
24233         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
24234         (args_options): Add no-idn option.
24235         (ahosts_keys_int): Add idn_flags to ai_flags.
24236         (parse_option): Handle 'i' option to clear idn_flags.
24238         * malloc/malloc.c (_int_free): Possible race in the most recently
24239         added check.  Only act on the data if no current modification
24240         happened.
24242 See ChangeLog.17 for earlier changes.