]> git.ipfire.org Git - thirdparty/glibc.git/blame_incremental - ChangeLog
Remove _G_NEED_STDARG_H.
[thirdparty/glibc.git] / ChangeLog
... / ...
CommitLineData
12012-09-20 Joseph Myers <joseph@codesourcery.com>
2
3 * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
4 * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
5 * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
6 * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
7
82012-09-19 Dmitry V. Levin <ldv@altlinux.org>
9
10 [BZ #14579]
11 * elf/rtld.c (dl_main): Limit the check for self loading to normal
12 mode only.
13 * elf/tst-rtld-load-self.sh: New test.
14 * elf/Makefile: Run it.
15
162012-09-18 Joseph Myers <joseph@codesourcery.com>
17
18 * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
19 (tst-writev-ENV): Remove.
20 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
21
222012-09-17 Chris Metcalf <cmetcalf@tilera.com>
23
24 * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
25
262012-09-17 Joseph Myers <joseph@codesourcery.com>
27
28 * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
29 unconditional.
30 * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
31 Likewise.
32 * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
33 * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
34 * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
35 Likewise.
36
372012-09-14 H.J. Lu <hongjiu.lu@intel.com>
38
39 [BZ #14587]
40 * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
41 * config.make.in (have-cpp-asm-debuginfo): Removed.
42 * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
43 * configure: Regenerated.
44
452012-09-14 Joseph Myers <joseph@codesourcery.com>
46
47 [BZ #5044]
48 * stdio-common/printf_fp.c: Include <stdbool.h> and
49 <rounding-mode.h>.
50 (___printf_fp): Determine rounding using get_rounding_mode and
51 round_away.
52 * stdio-common/tst-printf-round.c: New file.
53 * stdio-common/Makefile (tests): Add tst-printf-round.
54 (link-libm): New variable.
55 ($(objpfx)tst-printf-round): Depend in $(link-libm).
56
572012-09-13 H.J. Lu <hongjiu.lu@intel.com>
58
59 [BZ #14576]
60 * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
61 * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
62 Likewise.
63 * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
64 Likewise.
65
662012-09-13 Joseph Myers <joseph@codesourcery.com>
67
68 * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
69 * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
70 * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
71 * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
72
732012-09-12 Joseph Myers <joseph@codesourcery.com>
74
75 [BZ #14518]
76 * include/rounding-mode.h: New file.
77 * sysdeps/generic/get-rounding-mode.h: Likewise.
78 * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
79 * stdlib/strtod_l.c: Include <rounding-mode.h>.
80 (MAX_VALUE): New macro.
81 (MIN_VALUE): Likewise.
82 (overflow_value): New function.
83 (underflow_value): Likewise.
84 (round_and_return): Use overflow_value and underflow_value to
85 determine return values in overflow and underflow cases. Use
86 round_away to determine rounding depending on rounding mode.
87 (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
88 determine return values in overflow and underflow cases.
89 * stdlib/tst-strtod-round.c: Include <fenv.h>.
90 (struct test_results): New structure.
91 (struct test): Use struct test_results to store expected results
92 for all rounding modes.
93 (TEST): Include expected results for all rounding modes.
94 (test_in_one_mode): New function.
95 (do_test): Use test_in_one_mode to compute and check results.
96 Check results for all rounding modes.
97 * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
98 $(link-libm).
99
1002012-12-09 Allan McRae <allan@archlinux.org>
101
102 * sysdeps/i386/fpu/libm-test-ulps: Update
103
1042012-09-11 Joseph Myers <joseph@codesourcery.com>
105
106 * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
107 (_G_int32_t): Likewise.
108 (_G_uint16_t): Likewise.
109 (_G_uint32_t): Likewise.
110 (_G_HAVE_BOOL): Likewise.
111 (_G_HAVE_ATEXIT): Likewise.
112 (_G_HAVE_LONG_DOUBLE_IO): Likewise.
113 (_G_HAVE_IO_FILE_OPEN): Likewise.
114 * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
115 (_G_int32_t): Likewise.
116 (_G_uint16_t): Likewise.
117 (_G_uint32_t): Likewise.
118 (_G_HAVE_BOOL): Likewise.
119 (_G_HAVE_ATEXIT): Likewise.
120 (_G_HAVE_LONG_DOUBLE_IO): Likewise.
121 (_G_HAVE_IO_FILE_OPEN): Likewise.
122 * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
123 (_G_int32_t): Likewise.
124 (_G_uint16_t): Likewise.
125 (_G_uint32_t): Likewise.
126 (_G_HAVE_BOOL): Likewise.
127 (_G_HAVE_ATEXIT): Likewise.
128 (_G_HAVE_LONG_DOUBLE_IO): Likewise.
129 (_G_HAVE_IO_FILE_OPEN): Likewise.
130
1312012-09-11 H.J. Lu <hongjiu.lu@intel.com>
132
133 * csu/libc-tls.c: Update copyright years.
134
1352012-09-10 Joseph Myers <joseph@codesourcery.com>
136
137 * libioP.h [_G_USING_THUNKS]: Make code unconditional.
138 [!_G_USING_THUNKS]: Remove conditional code.
139 * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
140 * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
141
142 * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
143 [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
144 * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
145 (_G_VTABLE_LABEL_PREFIX): Likewise.
146 (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
147 * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
148 (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
149 (_G_VTABLE_LABEL_PREFIX): Likewise.
150 (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
151 * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
152 (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
153 (_G_VTABLE_LABEL_PREFIX): Likewise.
154 (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
155
1562012-09-10 H.J. Lu <hongjiu.lu@intel.com>
157
158 * libio/Makefile: Include ../Makeconfig before tests.
159 (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
160 only if $(build-shared) is yes.
161
162 * iconv/gconv_db.c: Update copyright years.
163
1642012-09-10 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
165
166 * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
167 unwind info if defined PIC. Fix special cases description.
168 * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
169
170 * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
171 DP_HI_MASK entry.
172 * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
173
1742012-09-07 H.J. Lu <hongjiu.lu@intel.com>
175
176 * scripts/check-local-headers.sh: Add "shopt -s nullglob".
177
178 * iconv/gconv_db.c (free_derivation): Check if deriv->steps
179 is NULL.
180
181 * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
182 (LDLIBS-tst-chk4): This.
183 (LDFLAGS-tst-chk5): Renamed to ...
184 (LDLIBS-tst-chk5): This.
185 (LDFLAGS-tst-chk6): Renamed to ...
186 (LDLIBS-tst-chk6): This.
187 (LDFLAGS-tst-lfschk4): Renamed to ...
188 (LDLIBS-tst-lfschk4): This.
189 (LDFLAGS-tst-lfschk5): Renamed to ...
190 (LDLIBS-tst-lfschk5): This.
191 (LDFLAGS-tst-lfschk6): Renamed to ...
192 (LDLIBS-tst-lfschk6): This.
193
194 * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
195 on $(common-objpfx)soversions.mk.
196
1972012-09-07 Joseph Myers <joseph@codesourcery.com>
198
199 [BZ #10014]
200 * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
201 example host name.
202
2032012-09-07 Siddhesh Poyarekar <siddhesh@redhat.com>
204
205 * malloc/arena.c (arena_get_retry): New function that gets
206 another arena for the caller to try its request on.
207 * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
208 current arena cannot fulfill the request.
209 (__libc_memalign): Likewise.
210 (__libc_memalign): Likewise.
211 (__libc_pvalloc): Likewise.
212 (__libc_calloc): Likewise.
213
2142012-09-05 John Tobey <john.tobey@gmail.com>
215
216 [BZ #13542]
217 * manual/arith.texi (Operations on Complex): Fix description
218 of carg branch cut.
219
2202012-09-06 Joseph Myers <joseph@codesourcery.com>
221
222 [BZ #10014]
223 * manual/socket.texi (Host Addresses): Use www.gnu.org as example
224 host name.
225
226 [BZ #10038]
227 * manual/memory.texi (Memory): Make order of menu items match
228 order of sections.
229
2302012-09-06 H.J. Lu <hongjiu.lu@intel.com>
231
232 * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
233 (_dl_initial_dtv): New. Defined if SHARED isn't defined.
234 (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
235
2362012-09-06 H.J. Lu <hongjiu.lu@intel.com>
237
238 * csu/libc-tls.c (static_dtv): Renamed to ...
239 (_dl_static_dtv): This. Make it global.
240 (_dl_initial_dtv): Removed.
241 (__libc_setup_tls): Updated.
242 * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
243 (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
244 DL_INITIAL_DTV.
245
2462012-09-06 Petr Machata <pmachata@redhat.com>
247
248 * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
249 (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
250 (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
251 (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
252
2532012-09-06 H.J. Lu <hongjiu.lu@intel.com>
254
255 [BZ #14545]
256 * csu/libc-tls.c (_dl_initial_dtv): New variable.
257 * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
258 freeing dtv[-1].
259
2602012-09-06 H.J. Lu <hongjiu.lu@intel.com>
261
262 [BZ #14544]
263 * Makeconfig (link-static-before-libc): Replace $(+prector)
264 with $(+prectorT).
265 (link-static-after-libc): Replace $(+postctor) with
266 $(+postctorT).
267 (link-bounded): Replace $(+prector)/$(+postctor) with
268 $(+prectorT)/$(+postctorT).
269 (+prectorT): New macro.
270 (+postctorT): Likewise.
271
2722012-09-06 Joseph Myers <joseph@codesourcery.com>
273
274 * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
275 (round_str): Handle values above the maximum for IBM long double
276 as inexact.
277 * stdlib/tst-strtod-round.c (tests): Regenerated.
278
2792012-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
280
281 * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
282 assembler flag.
283 * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
284 zarch_nohighgprs around the zarch optimized routines.
285 * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
286 * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
287 * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
288 for zarch.
289
2902012-09-05 David S. Miller <davem@davemloft.net>
291
292 * sysdeps/sparc/fpu/libm-test-ulps: Update.
293
294 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
295 HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
296 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
297 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
298 entries.
299
3002012-09-05 Alexandre Oliva <aoliva@redhat.com>
301
302 * malloc/arena.c: Fold copyright years.
303 * malloc/mcheck.c, malloc/memusage.c: Likewise.
304
3052012-09-05 Alexandre Oliva <aoliva@redhat.com>
306
307 * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
308
3092012-09-05 Alexandre Oliva <aoliva@redhat.com>
310
311 * manual/contrib.texi (Contributors): Fix typo. Complete entry.
312
3132012-09-05 Alexandre Oliva <aoliva@redhat.com>
314
315 * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
316 change internal state upon failure.
317
3182012-09-05 Alexandre Oliva <aoliva@redhat.com>
319
320 * malloc/mcheck.c (mcheck_check_all): Fix typo.
321 * malloc/memusage.c (mmap): Likewise.
322 (mmap64, mremap): Likewise. Adjust name in comment.
323
3242012-09-05 Siddhesh Poyarekar <siddhesh@redhat.com>
325
326 * libio/fileops.c: Fix typos in comments.
327 * libio/oldfileops.c: Likewise.
328 * libio/wfileops.c: Likewise.
329
3302012-09-05 Siddhesh Poyarekar <siddhesh@redhat.com>
331
332 [BZ #1349]
333 * malloc/Makefile (tests): Add tst-malloc-usable test case.
334 (tst-malloc-usable-ENV): Set environment for test case.
335 * malloc/hooks.c (malloc_check_get_size): New function to get
336 requested size.
337 * malloc/malloc.c (musable): Use malloc_check_get_size.
338 * malloc/tst-malloc-usable.c: New test case.
339
3402012-09-05 Andreas Schwab <schwab@linux-m68k.org>
341
342 * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
343
3442012-09-05 Allan McRae <allan@archlinux.org>
345
346 [BZ #13966]
347 * configure.in (CXX_SYSINCLUDES): Use compiler output to
348 determine header location.
349 * configure: Regenerated.
350
3512012-09-05 Andreas Schwab <schwab@linux-m68k.org>
352
353 * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
354 float format.
355 * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
356 LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
357 format.
358 (test): Regenerate.
359
3602012-09-04 David S. Miller <davem@davemloft.net>
361
362 * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
363 * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
364 * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
365
3662012-09-04 Florian Weimer <fweimer@redhat.com>
367
368 * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
369 failures.
370
371 * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
372
3732012-09-04 Joseph Myers <joseph@codesourcery.com>
374
375 [BZ #9914]
376 * libio/iogetdelim.c: Include <limits.h>.
377 (_IO_getdelim): Avoid integer overflow in testing whether cur_len
378 + len + 1 would overflow.
379
3802012-09-03 Andreas Jaeger <aj@suse.de>
381
382 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
383 * sysdeps/i386/fpu/libm-test-ulps: Update.
384
3852012-09-03 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
386
387 * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
388 Add s_sinf-sse2, s_conf-sse2.
389
390 * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
391 * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
392 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
393 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
394
395 * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
396 for using routine as __sinf_ia32.
397 Use macro for function declaration and weak_alias.
398 * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
399 for using routine as __cosf_ia32.
400 Use macro for function declaration and weak_alias.
401
402 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
403 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
404
405 * sysdeps/x86_64/fpu/s_sinf.S: New file.
406 * sysdeps/x86_64/fpu/s_cosf.S: New file.
407 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
408
409 * math/libm-test.inc (cos_test): Add more test cases.
410 (sin_test): Likewise.
411 (sincos_test): Likewise.
412
4132012-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
414
415 * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
416 (IFUNC_RESOLVE): Make pointers to the specialized implementations
417 hidden.
418 * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
419
4202012-09-02 H.J. Lu <hongjiu.lu@intel.com>
421
422 [BZ #14538]
423 * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
424 first element of the GOT.
425 (elf_machine_load_address): Return the difference between
426 the runtime address of _DYNAMIC and elf_machine_dynamic ().
427
4282012-09-01 Allan McRae <allan@archlinux.org>
429
430 [BZ #13412]
431 * configure.in (AWK): Require gawk version 3.0 or later.
432 * configure: Regenerated.
433
4342012-09-01 Joseph Myers <joseph@codesourcery.com>
435
436 * sysdeps/unix/sysv/linux/kernel-features.h
437 (__ASSUME_POSIX_CPU_TIMERS): Remove.
438 * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
439 [__NR_clock_getres]: Make code unconditional.
440 [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
441 (clock_getcpuclockid): Remove code left unreachable by removal of
442 conditionals.
443 * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
444 code unconditional.
445 [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
446 [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
447 * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
448 Make code unconditional.
449 [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
450 [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
451 * sysdeps/unix/sysv/linux/clock_settime.c
452 [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
453 conditional code.
454 [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
455 [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
456
4572012-08-29 H.J. Lu <hongjiu.lu@intel.com>
458
459 [BZ #14476]
460 * Makefile (install): Also pass LD_SO=$(ld.so-version) to
461 scripts/test-installation.pl.
462
463 * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
464 and $ld_so_version if it is set.
465
4662012-08-29 Siddhesh Poyarekar <siddhesh@redhat.com>
467
468 [BZ #14516]
469 * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
470 failure if reading from procfs failed.
471 * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
472
4732012-08-27 Joseph Myers <joseph@codesourcery.com>
474
475 * sysdeps/unix/sysv/linux/kernel-features.h
476 (__ASSUME_STAT64_SYSCALL): Remove all definitions.
477 * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
478 Remove conditional code.
479 [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
480 * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
481 Remove conditional code.
482 [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
483 * sysdeps/unix/sysv/linux/i386/fxstat.c
484 [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
485 [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
486 * sysdeps/unix/sysv/linux/i386/fxstatat.c
487 [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
488 [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
489 * sysdeps/unix/sysv/linux/i386/lxstat.c
490 [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
491 [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
492 * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
493 Remove conditional code.
494 [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
495 * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
496 Remove conditional code.
497 [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
498 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
499 <kernel-features.h>.
500 [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
501 Remove.
502 * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
503 Remove conditional code.
504 [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
505 * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
506 Remove conditional.
507
5082012-08-27 Mike Frysinger <vapier@gentoo.org>
509
510 [BZ #5400]
511 * NEWS: Add fixed bug number.
512
5132012-08-27 Joseph Myers <joseph@codesourcery.com>
514
515 [BZ #14519]
516 * stdlib/strtod_l.c (round_and_return): Return -0.0 for
517 underflowing exponent in case of negative sign.
518 * stdlib/tst-strtod-round-data: Add more tests.
519 * stdlib/tst-strtod-round.c (tests): Regenerated.
520
521 [BZ #3479]
522 * stdlib/strtod_l.c (NDIG): Remove.
523 (HEXNDIG): Likewise.
524 (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
525 smallest representable value.
526 (____STRTOF_INTERNAL): Use all fractional decimal digits that may
527 lie within an exact representation of 1/2 ulp of the result.
528 * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
529 unconditionally.
530 (TENS_P9_IDX): Define unconditionally.
531 (TENS_P9_SIZE): Likewise.
532 (TENS_P10_IDX): Likewise.
533 (TENS_P10_SIZE): Likewise.
534 [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
535 to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
536 [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
537 entries for 10^2^13 and 10^2^14.
538 [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
539 (TENS_P13_IDX): Define.
540 (TENS_P13_SIZE): Likewise.
541 (TENS_P14_IDX): Likewise.
542 (TENS_P14_SIZE): Likewise.
543 (_fpioconst_pow10): Change array size to
544 FPIOCONST_POW10_ARRAY_SIZE. Make entries for 10^2^9 and 10^2^10
545 unconditional.
546 (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
547 1024]: Add entries for 10^2^13 and 10^2^14.
548 [LAST_POW10 > _LAST_POW10]: Remove #error.
549 * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
550 (_fpioconst_pow10): Change array size to
551 FPIOCONST_POW10_ARRAY_SIZE.
552 * stdlib/gen-fpioconst.c: New file.
553 * stdlib/gen-tst-strtod-round.c: Likewise.
554 * stdlib/tst-strtod-round-data: Likewise.
555 * stdlib/tst-strtod-round.c: Likewise.
556 * stdlib/Makefile (tests): Add tst-strtod-round.
557
558 [BZ #14459]
559 * stdlib/strtod_l.c: Include <stdint.h>.
560 (NDEBUG): Do not define.
561 (round_and_return): Change EXPONENT parameter to type intmax_t.
562 Rearrange calculations to avoid internal overflow possibilities.
563 (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
564 Rearrange calculations to avoid internal overflow possibilities.
565 Assert that number fits inside MPNSIZE limbs.
566 (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
567 Change DIG_NO, INT_NO and LEAD_ZERO to type size_t. Rearrange
568 calculations and add assertions to avoid internal overflow
569 possibilities. Add casts to avoid signed/unsigned operations.
570 * stdlib/tst-strtod-overflow.c: New file.
571 * stdlib/Makefile (tests): Add tst-strtod-overflow.
572
5732012-08-25 Marek Polacek <polacek@redhat.com>
574
575 * time/time.h: Fix some typos in comments.
576
5772012-08-23 Roland McGrath <roland@hack.frob.com>
578
579 * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
580 * posix/tst-rfc3484-2.c: Likewise.
581 * posix/tst-rfc3484-3.c: Likewise.
582
5832012-08-23 Steve McIntyre <steve.mcintyre@linaro.org>
584
585 * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
586 (EF_ARM_ABI_FLOAT_HARD): Likewise.
587
5882012-08-23 Joseph Myers <joseph@codesourcery.com>
589
590 * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
591 #include of fxstatat64.c.
592
5932012-08-22 Roland McGrath <roland@hack.frob.com>
594
595 * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
596 * shadow/getspent_r.c: Likewise.
597 * shadow/getspnam.c: Likewise.
598 * shadow/getspnam_r.c: Likewise.
599 * gshadow/getsgent.c: Likewise.
600 * gshadow/getsgent_r.c: Likewise.
601 * gshadow/getsgnam.c: Likewise.
602 * gshadow/getsgnam_r.c: Likewise.
603 * inet/getnetbyad.c: Likewise.
604 * inet/getnetbyad_r.c: Likewise.
605 * inet/getnetbynm.c: Likewise.
606 * inet/getnetbynm_r.c: Likewise.
607 * inet/getnetent.c: Likewise.
608 * inet/getnetent_r.c: Likewise.
609 * inet/getproto.c: Likewise.
610 * inet/getproto_r.c: Likewise.
611 * inet/getprtent.c: Likewise.
612 * inet/getprtent_r.c: Likewise.
613 * inet/getprtname.c: Likewise.
614 * inet/getprtname_r.c: Likewise.
615 * inet/getrpcbyname.c: Likewise.
616 * inet/getrpcbyname_r.c: Likewise.
617 * inet/getrpcbynumber.c: Likewise.
618 * inet/getrpcbynumber_r.c: Likewise.
619 * inet/getrpcent.c: Likewise.
620 * inet/getrpcent_r.c: Likewise.
621 * inet/getaliasent.c: Likewise.
622 * inet/getaliasent_r.c: Likewise.
623 * inet/getaliasname.c: Likewise.
624 * inet/getaliasname_r.c: Likewise.
625 * nscd/getgrgid_r.c: Likewise.
626 * nscd/getgrnam_r.c: Likewise.
627 * nscd/gethstbyad_r.c: Likewise.
628 * nscd/gethstbynm3_r.c: Likewise.
629 * nscd/getpwnam_r.c: Likewise.
630 * nscd/getpwuid_r.c: Likewise.
631 * nscd/getsrvbynm_r.c: Likewise.
632 * nscd/getsrvbypt_r.c: Likewise.
633 * nscd/gai.c: Likewise.
634
635 * configure.in (build_nscd): New substituted variable, set
636 by --disable-build-nscd and defaults to $use_nscd.
637 * configure: Regenerated.
638 * config.make.in (build-nscd): New substituted variable.
639 * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
640 Change conditional to require [$(build-nscd) = yes] as well.
641 * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
642
643 [BZ# 13696]
644 * configure.in (use_nscd): New substituted variable, set by
645 --disable-nscd. If enabled, define USE_NSCD.
646 * configure: Regenerated.
647 * config.h.in: Add USE_NSCD.
648 * config.make.in (use-nscd): New substituted variable.
649 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
650 (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
651 (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
652 * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
653 (CFLAGS-getgrnam_r.c): Likewise.
654 (CFLAGS-initgroups.c): Likewise.
655 * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
656 * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
657 Variables removed.
658 * inet/getnetgrent_r.c
659 (nscd_setnetgrent): New function, broken out of ...
660 (setnetgrent): ... here. Call it.
661 (innetgr): Conditionalize nscd bits on [USE_NSCD].
662 (nscd_getnetgrent): Conditionalize on [USE_NSCD].
663 (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
664 * nscd/Makefile (routines, aux): Move definitions after include of
665 Makeconfig. Conditionalize on [$(use-nscd) != no].
666 * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
667 Conditionalize on [USE_NSCD].
668 (is_nscd, nscd_init_cb): Likewise.
669 (nss_load_library): Conditionalize init callback on [USE_NSCD].
670 * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
671 * nss/nss_db/db-init.c: Likewise.
672 * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
673 [USE_NSCD].
674 * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
675 (make_request): Use it.
676 (cache_valid_p): New function.
677 (__check_pf): Use it.
678 * NEWS: Add item for --disable-nscd.
679
6802012-08-22 Dmitry V. Levin <ldv@altlinux.org>
681
682 * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
683 to support sed >= 4.2.1-20-ga9bf076.
684 * configure: Regenerated.
685
6862012-08-22 Roland McGrath <roland@hack.frob.com>
687
688 * csu/libc-start.c (apply_irel): Move extern declarations inside here.
689 Conditionalize whole body on [IREL].
690
6912012-08-22 Jeff Law <law@redhat.com>
692
693 [BZ #14505]
694 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
695 if the family is PF_UNSPEC.
696
6972012-08-22 Mike Frysinger <vapier@gentoo.org>
698
699 * Makerules (lib-version): Rename from V.
700 (install-lib-nosubdir): Change V to lib-version.
701
7022012-08-22 Will Schmidt <will_schmidt@vnet.ibm.com>
703
704 [BZ #14252]
705 * powerpc32/power6/wcschr.c: New file.
706 * powerpc32/power6/wcscpy.c: New file.
707 * powerpc32/power6/wcsrchr.c: New file.
708 * powerpc64/power6/wcschr.c: New file.
709 * powerpc64/power6/wcscpy.c: New file.
710 * powerpc64/power6/wcsrchr.c: New file.
711
7122012-08-21 Maxim Kuvyrkov <maxim@codesourcery.com>
713
714 * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
715 (two_way_short_needle): Use it.
716 * string/strstr.c (AVAILABLE1_USES_J): Define.
717 * string/strcasestr.c: Likewise.
718
719 * string/str-two-way.h (two_way_short_needle): Use pointers instead of
720 array references.
721 * string/strcasestr.c (TOLOWER): Make side-effect safe.
722
723 [BZ #11607]
724 * NEWS: Add an entry.
725 * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
726 define their defaults.
727 (two_way_short_needle): Detect end-of-string on-the-fly.
728 * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
729 (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
730 * string/bug-strcasestr1.c: New test.
731 * string/Makefile: Run it.
732
7332012-08-21 Maxim Kuvyrkov <maxim@codesourcery.com>
734
735 [BZ #11607]
736 * string/str-two-way.h (two_way_short_needle): Optimize matching of
737 the first character.
738
7392012-08-21 Roland McGrath <roland@hack.frob.com>
740
741 * csu/elf-init.c (__libc_csu_irel): Function removed.
742 * csu/libc-start.c (apply_irel): New function.
743 (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
744
7452012-08-21 Joseph Myers <joseph@codesourcery.com>
746
747 * sysdeps/unix/sysv/linux/kernel-features.h
748 (__ASSUME_FADVISE64_64_SYSCALL): Remove.
749 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
750 <kernel-features.h>.
751 [__NR_fadvise64_64]: Make code unconditional.
752 [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
753 [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
754 !__NR_fadvise64_64)]: Likewise.
755 [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
756 !__NR_fadvise64_64))]: Likewise.
757 [__NR_fadvise64]: Make code unconditional.
758 [!__NR_fadvise64]: Remove conditional code.
759 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
760 <kernel-features.h>.
761 (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
762 unconditional.
763 (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
764 conditional code.
765 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
766 not include <kernel-features.h>.
767 (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
768 unconditional.
769 (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
770 conditional code.
771 * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
772 include <kernel-features.h>.
773 (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
774 unconditional.
775 (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
776 conditional code.
777
7782012-08-21 Will Schmidt <will_schmidt@vnet.ibm.com>
779
780 * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
781 slight instruction rearrangements per scrollpipe analysis.
782 * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
783
7842012-08-20 Roland McGrath <roland@hack.frob.com>
785
786 * manual/syslog.texi (syslog; vsyslog, closelog):
787 Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
788 Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
789
790 * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
791 DSOCAPS to match condition on defining it.
792
7932012-08-20 Joseph Myers <joseph@codesourcery.com>
794
795 * sysdeps/unix/sysv/linux/kernel-features.h
796 (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
797 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
798 [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
799 [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
800 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
801 [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
802 [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
803 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
804 [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
805 [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
806
807 * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
808 __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
809
810 * sysdeps/unix/sysv/linux/kernel-features.h
811 (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
812 * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
813 unconditional.
814 [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
815 * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
816 [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
817 (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
818 * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
819 Make code unconditional.
820 (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
821 (__mmap64) [!__NR_mmap2]: Likewise.
822 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
823 [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
824 (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
825 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
826 [__NR_mmap2]: Make code unconditional.
827 (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
828 (__mmap64) [!__NR_mmap2]: Likewise.
829
8302012-08-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
831
832 * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
833
8342012-08-18 Andreas Jaeger <aj@suse.de>
835
836 * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
837
8382012-08-18 Mike Frysinger <vapier@gentoo.org>
839
840 * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
841 * include/unistd.h (__have_sock_cloexec): Likewise.
842 (__have_pipe2): Likewise.
843 (__have_dup3): Likewise.
844
8452012-08-18 Mike Frysinger <vapier@gentoo.org>
846
847 [BZ #9685]
848 * include/unistd.h (__have_pipe2): Change define into an extern int.
849 (__have_dup3): Likewise.
850 * socket/have_sock_cloexec.c: Include fcntl.h.
851 (__have_pipe2): New variable.
852 (__have_dup3): Likewise.
853
8542012-08-17 Mike Frysinger <vapier@gentoo.org>
855
856 * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
857
8582012-08-17 Marek Polacek <polacek@redhat.com>
859
860 * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
861 ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
862
8632012-08-17 Roland McGrath <roland@hack.frob.com>
864
865 * configure.in: Add AC_SUBST for sysheaders.
866 * configure: Regenerated.
867 * config.make.in (sysheaders): New substituted variable.
868
869 * sysdeps/unix/mkfifo.c: Moved ...
870 * sysdeps/posix/mkfifo.c: ... here.
871 * sysdeps/unix/mkfifoat.c: Moved ...
872 * sysdeps/posix/mkfifoat.c: ... here.
873
874 * sysdeps/unix/utime.c: Moved ...
875 * sysdeps/posix/utime.c: ... here.
876
877 * sysdeps/unix/time.c: Moved ...
878 * sysdeps/posix/time.c: ... here.
879 * sysdeps/unix/sysv/linux/time.c: Adjust #include.
880 * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
881
882 * sysdeps/unix/nice.c: Moved ...
883 * sysdeps/posix/nice.c: ... here.
884
885 * sysdeps/unix/alarm.c: Moved ...
886 * sysdeps/posix/alarm.c: ... here.
887
888 * intl/Makefile ($(codeset_mo)): Depend on the input file.
889
8902012-08-17 Jeff Law <law@redhat.com>
891
892 * intl/Makefile (codeset_mo): New variable.
893 ($(codeset_mo)): New target.
894 (tst-codeset.out): Depend on that. Remove explicit rule.
895 (tst-gettext3.out, tst-gettext5.out): Likewise.
896 (LOCPATH-ENV, tst-codeset-ENV): New variables.
897 (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
898 * intl/tst-codeset.sh: Remove.
899 * intl/tst-gettext3.sh: Likewise.
900 * intl/tst-gettext5.sh: Likewise.
901
9022012-08-17 Roland McGrath <roland@hack.frob.com>
903
904 * sysdeps/unix/inet/syscalls.list: File removed. Move contents into ...
905 * sysdeps/unix/syscalls.list: ... here.
906
907 * sysdeps/posix/getaddrinfo.c
908 (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
909 (gaiconf_init, gaiconf_reload): Use them.
910 [!_STATBUF_ST_NSEC]
911 (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
912 Define using time_t rather than struct timespec.
913
914 * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
915 (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
916 Macros removed.
917 * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
918 [!NO_THREADS].
919 (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
920 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
921 Likewise.
922
923 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
924 __libc_cleanup_push argument.
925
926 * bits/param.h: New file.
927 * misc/sys/param.h: New file.
928 * include/sys/param.h: New file.
929 * misc/Makefile (headers): Add bits/param.h.
930 * sysdeps/generic/sys/param.h: File removed.
931 * sysdeps/unix/sysv/linux/bits/param.h: New file.
932 * sysdeps/unix/sysv/linux/sys/param.h: File removed.
933 * sysdeps/mach/hurd/bits/param.h: New file.
934 * sysdeps/mach/hurd/sys/param.h: New file.
935
936 * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
937 last change.
938
939 * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
940 [_IO_MTSAFE_IO].
941 * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
942 (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
943 New macros.
944
945 * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
946 * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
947 rather than -D_IO_MTSAFE_IO conditionally.
948 * stdio-common/Makefile (CPPFLAGS): Likewise.
949 * wcsmbs/Makefile (CPPFLAGS): Likewise.
950 * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
951 Use $(libio-mtsafe).
952 * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
953 of -D_IO_MTSAFE_IO.
954 (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
955 (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
956 (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
957 (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
958 (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
959 (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
960 (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
961 (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
962 (CFLAGS-fread_u_chk.c): Likewise.
963 (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
964 (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
965 (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
966 (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
967 * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
968 * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
969 * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
970 * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
971 * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
972
973 * libio/Makefile: Test [$(libc-reentrant) = yes]
974 instead of [$(filter %REENTRANT, $(defines)) nonempty].
975
976 * Makeconfig
977 [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
978 * sysdeps/pthread/configure: File removed.
979 * sysdeps/pthread/Makeconfig: New file.
980 * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
981 * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
982
9832012-08-16 Gary Benson <gbenson@redhat.com>
984
985 * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
986 unmapping the first object in a namespace.
987
9882012-08-16 Roland McGrath <roland@hack.frob.com>
989
990 * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
991 (__internal_setnetgrent): ... this. Add internal_function to
992 definition. Add libc_hidden_def.
993 (setnetgrent): Update caller.
994 (internal_endnetgrent): Renamed to ...
995 (__internal_endnetgrent): ... this. Add internal_function to
996 definition. Add libc_hidden_def.
997 (endnetgrent): Update caller.
998 (internal_getnetgrent_r): Renamed to ...
999 (__internal_getnetgrent_r): ... this. Add internal_function to
1000 definition. Add libc_hidden_def.
1001 (__getnetgrent_r): Update caller.
1002 * inet/netgroup.h: Update declarations. Add libc_hidden_proto uses.
1003
10042012-08-16 Joseph Myers <joseph@codesourcery.com>
1005
1006 * stdlib/longlong.h: Update from GCC.
1007
10082012-08-16 Roland McGrath <roland@hack.frob.com>
1009
1010 * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1011 on _QL, which is set by umul_ppmm but never used.
1012 * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1013 variables, which are set by GMP macros but never used.
1014 * stdio-common/_itowa.c (_itowa): Likewise.
1015 * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1016 * stdlib/mod_1.c (mpn_mod_1): Likewise.
1017
10182012-08-16 Carlos O'Donell <carlos_odonell@mentor.com>
1019
1020 * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1021 struct La_sh_regs is not constant.
1022 * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1023 <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1024 and struct La_sparc64_regs are not constant.
1025
10262012-08-16 Joseph Myers <joseph@codesourcery.com>
1027
1028 * sysdeps/unix/sysv/linux/kernel-features.h
1029 (__ASSUME_POSIX_TIMERS): Remove.
1030 * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1031 [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1032 * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1033 Make code unconditional.
1034 [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1035 * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1036 Make code unconditional.
1037 [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1038 * sysdeps/unix/sysv/linux/clock_nanosleep.c
1039 [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1040 [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1041 * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1042 Make code unconditional.
1043 [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1044 [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
1045 (__libc_missing_posix_timers): Remove.
1046
10472012-08-15 Roland McGrath <roland@hack.frob.com>
1048
1049 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
1050 check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
1051
1052 * bits/libc-lock.h (__rtld_lock_initialize): New macro.
1053
1054 * elf/dl-sym.c: Include <stdlib.h>.
1055
1056 * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
1057 constants, which avoids warnings in 32-bit builds.
1058
1059 * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
1060 (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
1061
1062 * misc/lseek.c: File moved to ...
1063 * io/lseek.c: ... here.
1064
1065 * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
1066
1067 * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
1068 shifting LEN more than 31 bits at once.
1069
10702012-08-15 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
1071
1072 [BZ #14195]
1073 * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
1074 segmentation fault for a case of two empty input strings.
1075 * string/test-strncasecmp.c (check1): Renamed to...
1076 (bz12205): ...this.
1077 (bz14195): Add new testcase for two empty input strings and N > 0.
1078 (test_main): Call new testcase, adapt for renamed function.
1079
10802012-08-15 Andreas Jaeger <aj@suse.de>
1081
1082 [BZ #14090]
1083 * crypt/md5test2.c: New test, based on test supplied by Serge
1084 Belyshev <belyshev@depni.sinp.msu.ru>.
1085 * crypt/Makefile (xtests): Add md5test-giant..
1086 * crypt/Makefile ($(objpfx)md5test-giant): Add.
1087
10882012-08-15 Paul Eggert <eggert@cs.ucla.edu>
1089
1090 [BZ #14090]
1091 * crypt/md5.c (md5_process_block): Don't assume the buffer
1092 length is less than 2**32.
1093 * crypt/sha512.c (sha512_process_block): Don't assume the buffer
1094 length is less than 2**64.
1095
10962012-08-15 Roland McGrath <roland@hack.frob.com>
1097
1098 * string/str-two-way.h: Include <sys/param.h>.
1099 (MAX): Macro removed.
1100
1101 * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1102 Move #define and #undef of memmove to just before and after
1103 including <string.h>.
1104
1105 * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1106 [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1107 and after including <string.h>. Move declarations of
1108 __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1109 to before #include "string/memmove.c".
1110
1111 * include/dirent.h: Declare __getdirentries.
1112
1113 * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
1114 using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
1115
11162012-08-14 Mike Frysinger <vapier@gentoo.org>
1117
1118 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
1119 * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
1120 * sysdeps/i386/configure: Regenerated.
1121 * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
1122 STABS_CURRENT_FILE, and STABS_FUN.
1123 (END): Remove call to STABS_FUN_END.
1124 (STABS_CURRENT_FILE1): Delete.
1125 (STABS_CURRENT_FILE): Likewise.
1126 (STABS_FUN): Likewise.
1127 (STABS_FUN_END): Likewise.
1128 (STABS_FUN2): Likewise.
1129 * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
1130 * sysdeps/x86_64/configure: Regenerated.
1131
11322012-08-14 Roland McGrath <roland@hack.frob.com>
1133
1134 * elf/dl-open.c: Include <atomic.h>.
1135 * elf/dl-lookup.c: Likewise.
1136
11372012-08-14 Joseph Myers <joseph@codesourcery.com>
1138
1139 * sysdeps/unix/sysv/linux/kernel-features.h
1140 (__ASSUME_CLONE_THREAD_FLAGS): Remove.
1141 * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
1142 unconditionally.
1143 * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
1144 unconditionally.
1145 * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
1146 condition on __ASSUME_CLONE_THREAD_FLAGS.
1147
11482012-08-14 Andreas Jaeger <aj@suse.de>
1149
1150 * sysdeps/i386/fpu/libm-test-ulps: Update.
1151
11522012-08-13 Maxim Kuvyrkov <maxim@codesourcery.com>
1153
1154 * include/atomic.h (atomic_exchange_and_add): Split into ...
1155 (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
1156 New atomic macros.
1157
11582012-08-13 Markus Trippelsdorf <markus@trippelsdorf.de>
1159
1160 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1161
11622012-08-13 Jeff Law <law@redhat.com>
1163
1164 * manual/stdio.texi (snprintf): Clarify handling of the trailing
1165 null byte in the output string.
1166
11672012-08-10 Joseph Myers <joseph@codesourcery.com>
1168
1169 * sysdeps/unix/sysv/linux/kernel-features.h
1170 (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
1171 [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
1172 (__ASSUME_ARG_MAX_STACK_BASED): Define.
1173 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1174 [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1175 !__ASSUME_ARG_MAX_STACK_BASED. Compare version with
1176 __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1177
11782012-08-09 Jeff Law <law@redhat.com>
1179
1180 [BZ #13939]
1181 * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1182 When avoid_arena is set, don't retry in the that arena. Pick the
1183 next one, whatever it might be.
1184 (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1185 (arena_lock): Pass in new parameter to arena_get2.
1186 * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1187 arena_get2.
1188 (__libc_malloc): Unify retrying after main arena failure with
1189 __libc_memalign version.
1190 (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1191
11922012-08-09 H.J. Lu <hongjiu.lu@intel.com>
1193
1194 [BZ #14166]
1195 * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1196 to __redirect_strstr.
1197 (__strstr_sse42): Use typeof __redirect_strstr.
1198 (__strstr_ia32): Likewise.
1199 (__libc_strstr): New prototype.
1200 (strstr): Renamed to ...
1201 (__libc_strstr): This.
1202 (strstr): New strong alias of __libc_strstr.
1203 * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1204 * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1205 __redirect_time.
1206 Include <time.h>.
1207 (__libc_time): New prototype.
1208 (time_ifunc): Replace time with __libc_time.
1209 (time): New strong alias and hidden definition of __libc_time.
1210 (__GI_time): Remove strong alias.
1211 * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1212 Include <stddef.h>.
1213 (memmove): Redefined to __redirect_memmove.
1214 (__memmove_sse2): Use typeof __redirect_memmove.
1215 (__memmove_ssse3): Likewise.
1216 (__memmove_ssse3_back): Likewise.
1217 (__libc_memmove): New prototype.
1218 (memmove): Renamed to ...
1219 (__libc_memmove): This.
1220 (memmove): New strong alias of __libc_memmove.
1221
12222012-08-08 Mark Salter <msalter@redhat.com>
1223
1224 * elf/elf.h
1225 (R_MN10300_TLS_GD): Define.
1226 (R_MN10300_TLS_LD): Likewise.
1227 (R_MN10300_TLS_LDO): Likewise.
1228 (R_MN10300_TLS_GOTIE): Likewise.
1229 (R_MN10300_TLS_IE): Likewise.
1230 (R_MN10300_TLS_LE): Likewise.
1231 (R_MN10300_TLS_DTPMOD): Likewise.
1232 (R_MN10300_TLS_DTPOFF): Likewise.
1233 (R_MN10300_TLS_TPOFF): Likewise.
1234 (R_MN10300_SYM_DIFF): Likewise.
1235 (R_MN10300_ALIGN): Likewise.
1236 (R_MN10300_NUM): Update.
1237
12382012-08-08 Joseph Myers <joseph@codesourcery.com>
1239
1240 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1241 Remove.
1242
12432012-08-08 Roland McGrath <roland@hack.frob.com>
1244
1245 * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1246
1247 * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1248 sysdeps/unix -> sysdeps/posix move.
1249 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1250
12512012-08-07 Allan McRae <allan@archlinux.org>
1252
1253 [BZ #14303]
1254 * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1255 (SUNOS_CPP): Likewise.
1256 (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1257 not found.
1258 (open_input): Call CPP using execvp.
1259
12602012-08-07 Joseph Myers <joseph@codesourcery.com>
1261
1262 * sysdeps/unix/sysv/linux/kernel-features.h
1263 (__ASSUME_PROT_GROWSUPDOWN): Remove.
1264 (__ASSUME_NO_CLONE_DETACHED): Likewise.
1265 (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1266 (__ASSUME_WAITID_SYSCALL): Likewise.
1267 * sysdeps/unix/sysv/linux/dl-execstack.c
1268 (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1269 code unconditional.
1270 (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1271 conditional code.
1272 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1273 [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1274 (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1275 code.
1276 * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1277 unconditional.
1278 [__ASSUME_WAITID_SYSCALL]: Likewise.
1279 [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1280
12812012-08-07 Roland McGrath <roland@hack.frob.com>
1282
1283 * sysdeps/unix/closedir.c: Renamed to ...
1284 * sysdeps/posix/closedir.c: ... here.
1285 * sysdeps/unix/dirfd.c: Renamed to ...
1286 * sysdeps/posix/dirfd.c: ... here.
1287 * sysdeps/unix/dirstream.h: Renamed to ...
1288 * sysdeps/posix/dirstream.h: ... here.
1289 * sysdeps/unix/fdopendir.c: Renamed to ...
1290 * sysdeps/posix/fdopendir.c: ... here.
1291 * sysdeps/unix/opendir.c: Renamed to ...
1292 * sysdeps/posix/opendir.c: ... here.
1293 * sysdeps/unix/readdir.c: Renamed to ...
1294 * sysdeps/posix/readdir.c: ... here.
1295 * sysdeps/unix/readdir_r.c: Renamed to ...
1296 * sysdeps/posix/readdir_r.c: ... here.
1297 * sysdeps/unix/rewinddir.c: Renamed to ...
1298 * sysdeps/posix/rewinddir.c: ... here.
1299 * sysdeps/unix/seekdir.c: Renamed to ...
1300 * sysdeps/posix/seekdir.c: ... here.
1301 * sysdeps/unix/telldir.c: Renamed to ...
1302 * sysdeps/posix/telldir.c: ... here.
1303 * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1304 * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1305 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1306 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1307
1308 * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1309 * bits/fcntl.h: ... here.
1310
1311 * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1312 not 0.
1313 (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1314 [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1315 (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1316 (struct flock): Move l_start, l_len to the beginning.
1317 Use __pid_t for l_pid.
1318 [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1319 [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1320 [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1321 (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1322 [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1323 [__USE_LARGEFILE64] (struct flock64): New type.
1324 (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1325
1326 * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1327 * bits/dirent.h: ... here.
1328
1329 * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1330 [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1331
13322012-08-07 Joseph Myers <joseph@codesourcery.com>
1333
1334 * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1335 Change from 2.6.0 to 2.6.16.
1336 * sysdeps/unix/sysv/linux/configure: Regenerated.
1337 * sysdeps/unix/sysv/linux/kernel-features.h
1338 (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1339 (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1340 version.
1341 (__ASSUME_UTIMES): Likewise.
1342 (__ASSUME_CLONE_STOPPED): Remove.
1343 (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1344 architectures, not kernel version.
1345 (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1346 (__ASSUME_NO_CLONE_DETACHED): Likewise.
1347 (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1348 (__ASSUME_WAITID_SYSCALL): Likewise.
1349 [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1350 condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1351 * README: State 2.6.16 as minimum Linux kernel version. Do not
1352 refer to older versions.
1353
13542012-08-06 Roland McGrath <roland@hack.frob.com>
1355
1356 * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1357 Define alphasort64 as an alias.
1358 * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1359 Define versionsort64 as an alias.
1360 * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1361 Define scandir64 as an alias.
1362 * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1363 Define scandirat64 as an alias.
1364 * dirent/alphasort64.c (alphasort64):
1365 Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1366 * dirent/versionsort64.c: Likewise.
1367 * dirent/scandir64.c: Likewise.
1368 * dirent/scandirat64.c: Likewise.
1369 * sysdeps/wordsize-64/alphasort.c: File removed.
1370 * sysdeps/wordsize-64/alphasort64.c: File removed.
1371 * sysdeps/wordsize-64/scandir.c: File removed.
1372 * sysdeps/wordsize-64/scandir64.c: File removed.
1373 * sysdeps/wordsize-64/scandirat.c: File removed.
1374 * sysdeps/wordsize-64/scandirat64.c: File removed.
1375 * sysdeps/wordsize-64/versionsort.c: File removed.
1376 * sysdeps/wordsize-64/versionsort64.c: File removed.
1377 * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1378 * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1379 * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1380 * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1381 * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1382 * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1383 * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1384 * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1385
1386 * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1387 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1388 [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1389 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1390 [defined __arch64__ || defined __sparcv9]
1391 (__INO_T_MATCHES_INO64_T): New macro.
1392 * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1393 [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1394 * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1395 * sysdeps/unix/sysv/linux/bits/dirent.h
1396 [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1397 (_DIRENT_MATCHES_DIRENT64): New macro.
1398
1399 * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1400 Define lockf64 as an alias.
1401 * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1402 Define fseeko64 as an alias.
1403 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1404 Define ftello64 as an alias.
1405 * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1406 Define _IO_fgetpos64 and fgetpos64 as aliases.
1407 * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1408 Define _IO_fsetpos64 and fsetpos64 as aliases.
1409 * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1410 Conditionalize body on this.
1411 * libio/fseeko64.c: Likewise.
1412 * libio/ftello64.c: Likewise.
1413 * libio/iofgetpos64.c: Likewise.
1414 * libio/iofsetpos64.c: Likewise.
1415 * sysdeps/wordsize-64/lockf.c: File removed.
1416 * sysdeps/wordsize-64/lockf64.c: File removed.
1417 * sysdeps/wordsize-64/fseeko.c: File removed.
1418 * sysdeps/wordsize-64/fseeko64.c: File removed.
1419 * sysdeps/wordsize-64/ftello.c: File removed.
1420 * sysdeps/wordsize-64/ftello64.c: File removed.
1421 * sysdeps/wordsize-64/iofgetpos.c: File removed.
1422 * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1423 * sysdeps/wordsize-64/iofsetpos.c: File removed.
1424 * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1425 * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1426 * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1427 * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1428 * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1429 * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1430 * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1431 * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1432 * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1433 * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1434 * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1435
1436 * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1437 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1438 [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1439 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1440 [defined __arch64__ || defined __sparcv9]
1441 (__OFF_T_MATCHES_OFF64_T): New macro.
1442 * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1443 [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1444 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1445 (__OFF_T_MATCHES_OFF64_T): New macro.
1446
14472012-08-06 H.J. Lu <hongjiu.lu@intel.com>
1448
1449 * stdlib/secure-getenv.c (__secure_getenv): Replace
1450 GLIBC_2_16 with GLIBC_2_17.
1451
14522012-08-06 H.J. Lu <hongjiu.lu@intel.com>
1453
1454 * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1455 * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1456
14572012-08-03 David S. Miller <davem@davemloft.net>
1458
1459 * sysdeps/sparc/fpu/libm-test-ulps: Update.
1460
14612012-08-03 Joseph Myers <joseph@codesourcery.com>
1462
1463 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1464 Remove.
1465 (__ASSUME_CORRECT_SI_PID): Likewise.
1466 (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1467 (__ASSUME_TMPFS_NAME): Likewise.
1468 * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1469 [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1470 * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1471 (HAVE_AUX_SECURE): Make definition unconditional.
1472 * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1473 [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1474
14752012-08-03 Roland McGrath <roland@hack.frob.com>
1476
1477 * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1478 * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1479 * sysdeps/mach/hurd/eloop-threshold.h: New file.
1480 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1481 __eloop_threshold instead of SYMLOOP_MAX.
1482
1483 * sysdeps/generic/eloop-threshold.h: New file.
1484 * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1485 of MAXSYMLINKS.
1486 * elf/chroot_canon.c (chroot_canon): Likewise.
1487
14882012-08-03 Joseph Myers <joseph@codesourcery.com>
1489
1490 [BZ #13717]
1491 * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1492 Change to 2.6.0 everywhere.
1493 * sysdeps/unix/sysv/linux/configure: Regenerated.
1494 * sysdeps/unix/sysv/linux/kernel-features.h
1495 (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
1496 (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
1497 kernel versions.
1498 (__ASSUME_POSIX_TIMERS): Define unconditionally.
1499 (__ASSUME_FUTEX_REQUEUE): Remove.
1500 (__ASSUME_STATFS64): Define unconditionally.
1501 (__ASSUME_AT_SECURE): Likewise.
1502 (__ASSUME_CORRECT_SI_PID): Likewise.
1503 (__ASSUME_TGKILL): Define without depending on kernel version for
1504 i386.
1505 (__ASSUME_UTIMES): Likewise.
1506 (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
1507 kernel version.
1508 (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
1509 (__ASSUME_TMPFS_NAME): Likewise.
1510 * README: Update reference to Linux kernel versions.
1511
15122012-08-02 Marek Polacek <polacek@redhat.com>
1513
1514 [BZ# 14150]
1515 * configure.in (libc_cv_asm_type_prefix): Remove test. Replace
1516 libc_cv_asm_type_prefix with %.
1517 * configure: Regenerated.
1518 * include/libc-symbols.h: Remove comment about
1519 ASM_TYPE_DIRECTIVE_PREFIX. Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1520 (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
1521 (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
1522 (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
1523 (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
1524 * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1525 [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
1526 [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
1527 * elf/tst-unique2mod1.c: Likewise.
1528 * elf/tst-unique1mod2.c: Likewise.
1529 * elf/tst-unique1mod1.c: Likewise.
1530 * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
1531 * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
1532 Replace ASM_TYPE_DIRECTIVE with .type.
1533 * sysdeps/s390/s390-64/sysdep.h: Likewise.
1534 * sysdeps/i386/sysdep.h: Likewise.
1535 * sysdeps/x86_64/sysdep.h: Likewise.
1536 * sysdeps/sh/sysdep.h: Likewise.
1537 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1538 Do not define ASM_TYPE_DIRECTIVE.
1539 * sysdeps/powerpc/sysdep.h: Likewise.
1540 * sysdeps/powerpc/powerpc32/sysdep.h:
1541 Replace ASM_TYPE_DIRECTIVE with .type.
1542 * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1543 * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1544 * sysdeps/i386/fpu/e_powf.S: Likewise.
1545 * sysdeps/i386/fpu/e_expl.S: Likewise.
1546 * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1547 * sysdeps/i386/fpu/e_acosh.S: Likewise.
1548 * sysdeps/i386/fpu/e_pow.S: Likewise.
1549 * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1550 * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1551 * sysdeps/i386/fpu/s_expm1.S: Likewise.
1552 * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1553 * sysdeps/i386/fpu/e_log2.S: Likewise.
1554 * sysdeps/i386/fpu/e_log2l.S: Likewise.
1555 * sysdeps/i386/fpu/e_scalb.S: Likewise.
1556 * sysdeps/i386/fpu/e_powl.S: Likewise.
1557 * sysdeps/i386/fpu/e_log10f.S: Likewise.
1558 * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1559 * sysdeps/i386/fpu/e_logl.S: Likewise.
1560 * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1561 * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1562 * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1563 * sysdeps/i386/fpu/e_log2f.S: Likewise.
1564 * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1565 * sysdeps/i386/fpu/e_log.S: Likewise.
1566 * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1567 * sysdeps/i386/fpu/e_logf.S: Likewise.
1568 * sysdeps/i386/fpu/e_log10l.S: Likewise.
1569 * sysdeps/i386/fpu/e_atanh.S: Likewise.
1570 * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1571 * sysdeps/i386/fpu/e_log10.S: Likewise.
1572 * sysdeps/i386/fpu/s_frexp.S: Likewise.
1573 * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1574 * sysdeps/i386/fpu/s_asinh.S: Likewise.
1575 * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1576 * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1577 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1578 * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
1579 * sysdeps/i386/i686/strtok.S: Likewise.
1580 * sysdeps/i386/i386-mcount.S: Likewise.
1581 * sysdeps/i386/strtok.S: Likewise.
1582 * sysdeps/x86_64/fpu/e_expl.S: Likewise.
1583 * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
1584 * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1585 * sysdeps/x86_64/fpu/e_logl.S: Likewise.
1586 * sysdeps/x86_64/fpu/e_expf.S: Likewise.
1587 * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
1588 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1589 * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
1590 * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
1591 * sysdeps/x86_64/_mcount.S: Likewise.
1592 * sysdeps/x86_64/strtok.S: Likewise.
1593 * sysdeps/sh/_mcount.S: Likewise.
1594
15952012-08-01 Roland McGrath <roland@hack.frob.com>
1596
1597 * libio/iofopen.c: Include <fcntl.h>.
1598 [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
1599 (_IO_fopen64, fopen64): Define as aliases.
1600 * libio/iofopen64.c: Include <fcntl.h>.
1601 [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
1602 Conditionalize body on this.
1603 * sysdeps/wordsize-64/iofopen.c: File removed.
1604 * sysdeps/wordsize-64/iofopen64.c: File removed.
1605
16062012-08-01 Marek Polacek <polacek@redhat.com>
1607
1608 * libc/Makeconfig: Use elf in place of binfmt-subdir.
1609 Use dlfcn directly instead of a variable.
1610 (binfmt-subdir): Do not define.
1611 (dlfcn): Likewise.
1612
16132012-08-01 Joseph Myers <joseph@codesourcery.com>
1614
1615 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
1616 Remove all definitions.
1617 * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
1618 <kernel-features.h>.
1619 [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1620 (miss_F_GETOWN_EX): Remove all definitions.
1621 [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
1622 macro definition.
1623 [!__ASSUME_FCNTL64]: Remove conditional code.
1624 [__ASSUME_FCNTL64]: Make code unconditional.
1625 * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
1626 <kernel-features.h>.
1627 [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1628 (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
1629 (lockf64) [__NR_fcntl64]: Make code unconditional.
1630 (lockf64) [__ASSUME_FCNTL64]: Likewise.
1631
1632 * sysdeps/unix/sysv/linux/kernel-features.h
1633 (__ASSUME_VFORK_SYSCALL): Remove all definitions.
1634 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
1635 Make code unconditional.
1636 (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1637 (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1638 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
1639 [__NR_vfork]: Make code unconditional.
1640 (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1641 (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1642 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
1643 [__NR_vfork]: Make code unconditional.
1644 (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1645 (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1646
16472012-08-01 Roland McGrath <roland@hack.frob.com>
1648
1649 * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
1650 (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
1651
1652 * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1653 Define mkstemp64 as an alias.
1654 * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1655 Define mkstemps64 as an alias.
1656 * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1657 Define mkostemp64 as an alias.
1658 * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1659 Define mkostemps64 as an alias.
1660 * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
1661 Conditionalize body on this.
1662 * misc/mkostemp64.c: Likewise.
1663 * misc/mkostemps64.c: Likewise.
1664 * misc/mkstemps64.c: Likewise.
1665 * sysdeps/wordsize-64/mkstemp64.c: File removed.
1666 * sysdeps/wordsize-64/mkostemp64.c: File removed.
1667 * sysdeps/wordsize-64/mkostemp.c: File removed.
1668 * sysdeps/wordsize-64/mkstemp.c: File removed.
1669 * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
1670 * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
1671 * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
1672 * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
1673
1674 [BZ #14138]
1675 * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
1676 * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
1677 * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
1678 * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
1679
1680 * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
1681 compat_symbol macros from <shlib-compat.h> rather than the underlying
1682 default_symbol_version and symbol_version macros, so that DEFAULT
1683 lines in shlib-versions are respected.
1684 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
1685
16862012-08-01 Florian Weimer <fweimer@redhat.com>
1687
1688 * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
1689 Declare with warn_unused_result.
1690 (setgid, setregid, setegid, setresgid): Likewise.
1691 * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
1692 Likewise.
1693 * WUR-REPORT: Remove set*id functions.
1694
16952012-07-31 Pino Toscano <toscano.pino@tiscali.it>
1696
1697 * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
1698
16992012-07-31 Roland McGrath <roland@hack.frob.com>
1700
1701 * include/sys/socket.h (__libc_accept, __libc_accept4):
1702 Add attribute_hidden.
1703 * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
1704
1705 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
1706 use of PTR_MANGLE.
1707 * inet/getnetgrent_r.c (setup): Likewise.
1708
1709 * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
1710
17112012-07-31 David S. Miller <davem@davemloft.net>
1712
1713 * sysdeps/sparc/fpu/libm-test-ulps: Update.
1714
17152012-07-31 Joseph Myers <joseph@codesourcery.com>
1716
1717 [BZ #13629]
1718 * math/s_clog.c (__clog): Use __log1p if larger part has absolute
1719 value between 1.0 and 2.0 and smaller part has absolute value less
1720 than 1.0.
1721 * math/s_clog10.c (__clog10): Likewise.
1722 * math/s_clog10f.c (__clog10f): Likewise.
1723 * math/s_clog10l.c (__clog10l): Likewise.
1724 * math/s_clogf.c (__clogf): Likewise.
1725 * math/s_clogl.c (__clogl): Likewise.
1726 * math/libm-test.inc (clog_test): Add more tests.
1727 (clog10_test): Likewise.
1728 * sysdeps/i386/fpu/libm-test-ulps: Update.
1729 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1730
17312012-07-31 Florian Weimer <fweimer@redhat.com>
1732
1733 * stdlib/tst-secure-getenv.c: Use printf for error reporting.
1734 Exit with zero in case no suitable GID is found, and write a
1735 message to standard error.
1736
17372012-07-30 Roland McGrath <roland@hack.frob.com>
1738
1739 * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
1740 rather than to 1.
1741 (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
1742 (MAXPATHLEN): Removed.
1743 (NOGROUP, NODEV): New macros.
1744 (setbit, clrbit, isset, isclr): New macros.
1745 (howmany, roundup, powerof2): New macros.
1746 (DEV_BSIZE): New macro.
1747
1748 * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
1749 * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
1750
1751 * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
1752 definition on [!__NO_LONG_DOUBLE_MATH].
1753
1754 * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
1755 PTR_MANGLE and PTR_DEMANGLE.
1756
1757 * socket/accept4.c (accept4): Rename to __libc_accept4.
1758 Define accept4 as a weak alias.
1759
1760 * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
1761 on [_DIRENT_HAVE_D_TYPE].
1762 * io/ftw.c (ftw_dir): Likewise.
1763
1764 * io/xmknod.c (__xmknod): Don't check PATH for being null.
1765
1766 * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
1767
1768 * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
1769 Use the BSD numbers rather than the arbitrary ones we had.
1770 (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
1771 (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
1772 (SIGXCPU, SIGXFSZ): New macros.
1773 (_NSIG): Now 32.
1774
1775 * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
1776 initializer on [_LIBC_REENTRANT].
1777
1778 * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
1779 definitions inside [_POSIX_MAPPED_FILES].
1780
1781 * posix/regex.c: Include <sys/param.h> for MIN/MAX.
1782
1783 * dirent/opendir.c: Include <fcntl.h>.
1784
1785 * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
1786 (__libc_getspecific): Likewise.
1787 (__libc_key_create): Likewise.
1788
1789 * stdio-common/tmpfile64.c: Include <fcntl.h> first.
1790 [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
1791 * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
1792 (tmpfile64): Define as alias.
1793 * sysdeps/wordsize-64/tmpfile.c: File removed.
1794 * sysdeps/wordsize-64/tmpfile64.c: File removed.
1795 * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
1796 * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
1797
1798 * stdio-common/vfscanf.c: Include <stdbool.h>.
1799 * nss/makedb.c: Likewise.
1800 * stdio-common/_i18n_number.h: Likewise.
1801 * argp/argp-help.c: Likewise.
1802 * posix/wordexp.c: Likewise.
1803 * sysdeps/posix/spawni.c: Likewise.
1804 * nss/nss_files/files-initgroups.c: Likewise.
1805 * stdio-common/reg-modifier.c: Include <stdlib.h>.
1806 * nss/nss_files/files-initgroups.c: Likewise.
1807 * nss/nss_db/db-netgrp.c: Likewise.
1808 * nss/nss_db/db-initgroups.c: Likewise.
1809 * io/fchmodat.c: Include <sys/stat.h>.
1810
1811 * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
1812 __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
1813
1814 * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
1815 [HAVE_MMAP].
1816
1817 * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
1818 Add multiple inclusion protection.
1819
18202012-07-27 David S. Miller <davem@davemloft.net>
1821
1822 * sysdeps/sparc/fpu/libm-test-ulps: Update.
1823
18242012-07-27 Gary Benson <gbenson@redhat.com>
1825
1826 [BZ #14298]
1827 * elf/rtld.c: Include <stap-probe.h>.
1828 (dl_main): Added static probes "init_start" and "init_complete".
1829 * elf/dl-load.c: Include <stap-probe.h>.
1830 (lose): Take new parameter "nsid".
1831 Added static probe "map_failed".
1832 (_dl_map_object_from_fd): Pass namespace id to lose.
1833 Added static probe "map_start".
1834 (open_verify): Pass namespace id to lose.
1835 * elf/dl-open.c: Include <stap-probe.h>.
1836 (dl_open_worker) Added static probes "map_complete", "reloc_start"
1837 and "reloc_complete".
1838 * elf/dl-close.c: Include <stap-probe.h>.
1839 (_dl_close_worker): Added static probes "unmap_start" and
1840 "unmap_complete".
1841 * elf/rtld-debugger-interface.txt: New file documenting the above.
1842
18432012-07-26 Roland McGrath <roland@hack.frob.com>
1844
1845 * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
1846 rather than a string variable.
1847 * sunrpc/rpc_main.c (h_output): Likewise.
1848 * sunrpc/rpc_svcout.c (write_real_program): Likewise.
1849
18502012-07-26 Pino Toscano <toscano.pino@tiscali.it>
1851
1852 * inet/check_native.c: New file.
1853
18542012-07-26 Joseph Myers <joseph@codesourcery.com>
1855
1856 [BZ #13629]
1857 * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
1858 if larger part has absolute value 1.0.
1859 * math/s_clog10.c (__clog10): Likewise.
1860 * math/s_clog10f.c (__clog10f): Likewise.
1861 * math/s_clog10l.c (__clog10l): Likewise.
1862 * math/s_clogf.c (__clogf): Likewise.
1863 * math/s_clogl.c (__clogl): Likewise.
1864 * math/libm-test.inc (clog_test): Add more tests.
1865 (clog10_test): Likewise.
1866 * sysdeps/i386/fpu/libm-test-ulps: Update.
1867 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1868
1869 * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
1870 (pltexit): Likewise.
1871 (La_regs): Likewise.
1872 (La_retval): Likewise.
1873 (int_retval): Likewise.
1874 Update #error for removed macros to refer only to definitions in
1875 tst-audit.h.
1876 * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
1877 macro.
1878 (pltexit): Likewise.
1879 (La_regs): Likewise.
1880 (La_retval): Likewise.
1881 (int_retval): Likewise.
1882 * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
1883 macro.
1884 (pltexit): Likewise.
1885 (La_regs): Likewise.
1886 (La_retval): Likewise.
1887 (int_retval): Likewise.
1888 * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
1889 macro.
1890 (pltexit): Likewise.
1891 (La_regs): Likewise.
1892 (La_retval): Likewise.
1893 (int_retval): Likewise.
1894 * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
1895 macro.
1896 (pltexit): Likewise.
1897 (La_regs): Likewise.
1898 (La_retval): Likewise.
1899 (int_retval): Likewise.
1900 * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
1901 macro.
1902 (pltexit): Likewise.
1903 (La_regs): Likewise.
1904 (La_retval): Likewise.
1905 (int_retval): Likewise.
1906 * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
1907 macro.
1908 (pltexit): Likewise.
1909 (La_regs): Likewise.
1910 (La_retval): Likewise.
1911 (int_retval): Likewise.
1912 * sysdeps/generic/tst-audit.h: Update comment to refer only to
1913 macro definitions in tst-audit.h.
1914 * sysdeps/i386/tst-audit.h: New file.
1915 * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
1916 * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
1917 * sysdeps/s390/s390-32/tst-audit.h: Likewise.
1918 * sysdeps/s390/s390-64/tst-audit.h: Likewise.
1919 * sysdeps/sh/tst-audit.h: Likewise.
1920 * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
1921 * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
1922 * sysdeps/x86_64/tst-audit.h: Likewise.
1923
19242012-07-26 Andreas Jaeger <aj@suse.de>
1925
1926 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
1927 ptrace.
1928
1929 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
1930 new value PTRACE_EVENT_SECCOMP from Linux 3.5.
1931 (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
1932 PTRACE_O_MASK.
1933 * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
1934 * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
1935 * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
1936
1937 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
1938 value.
1939
1940 * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
1941 _sigsys.
1942 (si_call_addr, si_syscall, si_arch): Define new macro.
1943 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
1944 _sigsys.
1945 (si_call_addr, si_syscall, si_arch): Define new marcro.
1946 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
1947 _sigsys.
1948 (si_call_addr, si_syscall, si_arch): Define new macro.
1949 * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
1950 _sigsys.
1951 (si_call_addr, si_syscall, si_arch): Define new macro.
1952
19532012-07-25 Joseph Myers <joseph@codesourcery.com>
1954
1955 [BZ #13717]
1956 * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1957 Change to 2.4.21 where previously 2.4.1.
1958 * sysdeps/unix/sysv/linux/configure: Regenerated.
1959 * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
1960 __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
1961 Linux kernel version.
1962 (__ASSUME_STD_AUXV): Remove.
1963 [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
1964 kernel version.
1965 [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
1966 (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
1967 (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
1968 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
1969 (__ASSUME_NETLINK_SUPPORT): Likewise.
1970 * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
1971 (__no_netlink_support): Remove conditional definition.
1972 * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
1973 Remove.
1974 (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1975 [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
1976 * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
1977 (if_nameindex_ioctl): Remove.
1978 (if_nameindex_netlink): Do not handle __no_netlink_support.
1979 (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1980 code.
1981 * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
1982 Remove conditional code.
1983 (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1984 code.
1985 (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
1986 unconditional.
1987 [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1988 [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
1989 * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
1990 Remove.
1991 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
1992 [!__ASSUME_STD_AUXV]: Remove conditional code.
1993 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
1994 [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
1995 [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
1996 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
1997 [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
1998 (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
1999 code.
2000 [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2001 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2002 [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2003 (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2004 conditional code.
2005 [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2006 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2007 (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2008 code.
2009 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2010 (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2011 conditional code.
2012 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2013 (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2014 code unconditional.
2015 (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2016 conditional code.
2017 (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2018 unconditional.
2019 (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2020 conditional code.
2021 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2022 (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2023 unconditional.
2024 (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2025 conditional code.
2026 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2027 (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2028 code unconditional.
2029 (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2030 conditional code.
2031 (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2032 unconditional.
2033 (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2034 conditional code.
2035 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2036 (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2037 code unconditional.
2038 (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2039 conditional code.
2040 (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2041 unconditional.
2042 (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2043 conditional code.
2044
20452012-07-25 Andreas Schwab <schwab@linux-m68k.org>
2046
2047 * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
2048 * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
2049 * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2050 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
2051 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2052 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2053 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2054 * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2055 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2056 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2057 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2058 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2059 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
2060 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2061 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2062 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2063 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2064 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
2065 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
2066 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
2067 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2068 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2069 * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2070
20712012-07-25 Florian Weimer <fweimer@redhat.com>
2072
2073 * Versions.def: Add GLIBC_2.17.
2074 * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
2075 * include/stdlib.h: Rename __secure_getenv to secure_getenv.
2076 Introduce __libc_secure_getenv.
2077 * stdlib/Versions (2.17): Add secure_getenv
2078 (GLIBC_PRIVATE): Add __libc_secure_getenv.
2079 * stdlib/secure-getenv.c: Rename __secure_getenv to
2080 __libc_secure_getenv. Add secure_getenv alias. Add compatibility
2081 symbol __secure_getenv for GLIBC_2.0.
2082 * stdlib/tst-secure-getenv.c: New.
2083 * stdlib/Makefile (tests): Add testcase.
2084 * manual/startup.texi (Environment Access): Document
2085 secure_getenv.
2086 * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
2087 __libc_secure_getenv.
2088 * inet/ruserpass.c (ruserpass): Likewise.
2089 * malloc/mtrace.c (mtrace): Likewise.
2090 * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
2091 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2092 * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
2093 * sysdeps/posix/tempname.c: Likewise. Evaluate
2094 HAVE_SECURE_GETENV.
2095 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
2096 __secure_getenv to __libc_secure_getenv.
2097 * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
2098 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2099 Likewise.
2100 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2101 Likewise.
2102 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2103 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2104 * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2105 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2106 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2107 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2108 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2109
21102012-07-25 Joseph Myers <joseph@codesourcery.com>
2111
2112 * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
2113 (struct La_i86_retval): Likewise.
2114 (struct La_x86_64_regs): Likewise.
2115 (struct La_x86_64_retval): Likewise.
2116 (struct La_x32_regs): Likewise.
2117 (struct La_x32_retval): Likewise.
2118 (struct La_ppc32_regs): Likewise.
2119 (struct La_ppc32_retval): Likewise.
2120 (struct La_ppc64_regs): Likewise.
2121 (struct La_ppc64_retval): Likewise.
2122 (struct La_sh_regs): Likewise.
2123 (struct La_sh_retval): Likewise.
2124 (struct La_s390_32_regs): Likewise.
2125 (struct La_s390_32_retval): Likewise.
2126 (struct La_s390_64_regs): Likewise.
2127 (struct La_s390_64_retval): Likewise.
2128 (struct La_sparc32_regs): Likewise.
2129 (struct La_sparc32_retval): Likewise.
2130 (struct La_sparc64_regs): Likewise.
2131 (struct La_sparc64_retval): Likewise.
2132 (struct audit_ifaces): Remove architecture-specific pltenter and
2133 pltexit members.
2134 * sysdeps/i386/ldsodefs.h: New file.
2135 * sysdeps/powerpc/ldsodefs.h: Likewise.
2136 * sysdeps/s390/ldsodefs.h: Likewise.
2137 * sysdeps/sh/ldsodefs.h: Likewise.
2138 * sysdeps/sparc/ldsodefs.h: Likewise.
2139 * sysdeps/x86_64/ldsodefs.h: Likewise.
2140
21412012-07-25 Marek Polacek <polacek@redhat.com>
2142
2143 [BZ #6808]
2144 * math/libm-test.inc (yn_test): Add another test.
2145 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
2146 to ERANGE when the result is +-Inf.
2147 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2148 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2149 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
2150 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
2151
21522012-07-24 Joseph Myers <joseph@codesourcery.com>
2153
2154 * conform/data/time.h-data (NULL): Use macro-constant. Require
2155 equal to 0.
2156 (CLOCKS_PER_SEC): Use macro instead of constant. Specify type as
2157 clock_t.
2158 [ISO11] (TIME_UTC): Use macro-int-constant. Require value > 0.
2159
21602012-07-23 Thomas Schwinge <thomas@codesourcery.com>
2161
2162 * configure.in <sysdeps resolving>: Correct printing
2163 Implies_before.
2164 * configure: Regenerate.
2165
21662012-07-22 Thomas Schwinge <thomas@codesourcery.com>
2167
2168 * math/w_ilogb.c: Include <limits.h>.
2169 * math/w_ilogbl.c: Likewise.
2170
21712012-07-20 Joseph Myers <joseph@codesourcery.com>
2172
2173 * manual/lang.texi (__va_copy): Document primarily as ISO C99
2174 va_copy. Document allowing for unavailable va_copy only as
2175 pre-C99 compatibility.
2176 * manual/string.texi (Copying and Concatenation): Use va_copy
2177 instead of __va_copy in concat example.
2178
21792012-07-20 Pino Toscano <toscano.pino@tiscali.it>
2180
2181 * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2182 (__sendto): Use create_address_port. Initialize APORT and deallocate
2183 it if not null.
2184
2185 * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2186 with O_NOLINK passed to __file_name_lookup.
2187
2188 * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2189 with O_NOLINK passed to __file_name_lookup.
2190
2191 * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2192 negative N or less than NGIDS.
2193
2194 * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2195 type to string_t. Set ERANGE as errno and return it if NAME is not big
2196 enough. Use memcpy instead of strncpy.
2197
21982012-07-20 Joseph Myers <joseph@codesourcery.com>
2199
2200 * elf/Makefile (check-data): Remove.
2201 (localplt.data): New vpath directive.
2202 ($(objpfx)check-localplt.out): Use localplt.data from vpath
2203 instead of $(check-data).
2204 * scripts/data/localplt-generic.data: Move to ...
2205 * sysdeps/generic/localplt.data: ... here.
2206 * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2207 * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2208 * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2209 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2210 ... here.
2211 * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2212 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2213 ... here.
2214 * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2215 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2216 ... here.
2217 * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2218 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2219 ... here.
2220 * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2221 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2222 ... here.
2223 * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2224 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2225 ... here.
2226
22272012-07-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
2228
2229 * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2230 PPC32 and PPC64 files.
2231 * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2232 * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2233
22342012-07-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2235
2236 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2237 __makecontext_ret to ...
2238 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2239 ... here and call exit if uc_link is NULL. New file.
2240 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2241 __makecontext_ret.S.
2242 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2243 __makecontext_ret to ...
2244 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2245 ... here and call exit if uc_link is NULL. New file.
2246 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2247 __makecontext_ret.S.
2248
22492012-07-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2250
2251 * elf/elf.h (R_390_IRELATIVE): New definition.
2252 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2253 resolver function for IFUNC symbols. Support R_390_IRELATIVE.
2254 (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2255 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2256 (elf_machine_lazy_rel): Likewise.
2257 * sysdeps/s390/dl-irel.h: New file.
2258 * sysdeps/s390/s390-64/memcpy.S: New asm code.
2259 * sysdeps/s390/s390-64/memset.S: New asm code.
2260 * sysdeps/s390/s390-64/memcmp.S: New asm code.
2261 * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2262 * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2263 * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2264 * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2265 * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2266 * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2267 * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2268 * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2269 * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2270 * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2271 * sysdeps/s390/s390-32/memcpy.S: New asm code.
2272 * sysdeps/s390/s390-32/memset.S: New asm code.
2273 * sysdeps/s390/s390-32/memcmp.S: New asm code.
2274
22752012-07-17 Marek Polacek <polacek@redhat.com>
2276
2277 [BZ #14349]
2278 * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2279 * sysdeps/s390/s390-64/configure.in: Likewise.
2280 * sysdeps/sparc/configure.in: Likewise.
2281 * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2282 * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2283 * sysdeps/i386/configure.in: Likewise.
2284 * sysdeps/x86_64/configure.in: Likewise.
2285 * sysdeps/sh/configure.in: Likewise.
2286 * sysdeps/s390/s390-32/configure: Regenerated.
2287 * sysdeps/s390/s390-64/configure: Likewise.
2288 * sysdeps/x86_64/configure: Likewise.
2289 * sysdeps/sh/configure: Likewise.
2290 * sysdeps/powerpc/powerpc64/configure: Likewise.
2291 * sysdeps/powerpc/powerpc32/configure: Likewise.
2292 * sysdeps/sparc/configure: Likwise.
2293 * sysdeps/i386/configure: Likewise.
2294
2295 * elf/dl-open.c: Comment fixes.
2296
22972012-07-17 Joseph Myers <joseph@codesourcery.com>
2298
2299 * Makefile [CXX] (check-data): Remove.
2300 [CXX] (c++-types.data): New vpath directive.
2301 [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2302 vpath. Do not allow for C++ type data being missing.
2303 * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2304 ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2305 * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2306 ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2307 * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2308 * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2309 * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2310 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2311 ... here.
2312 * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2313 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2314 ... here.
2315 * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2316 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2317 ... here.
2318 * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2319 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2320 ... here.
2321 * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2322 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2323 ... here.
2324 * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2325 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2326 ... here.
2327 * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2328 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2329 ... here.
2330 * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2331 * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2332
2333 * elf/tls-macros.h (TLS_LE): Move architecture-specific
2334 definitions to architecture-specific files.
2335 (TLS_IE): Likewise.
2336 (TLS_LD): Likewise.
2337 (TLS_GD): Likewise.
2338 * sysdeps/i386/tls-macros.h: New file.
2339 * sysdeps/powerpc/tls-macros.h: Likewise.
2340 * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2341 * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2342 * sysdeps/sh/tls-macros.h: Likewise.
2343 * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2344 * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2345 * sysdeps/x86_64/tls-macros.h: Likewise.
2346
23472012-07-17 Thomas Schwinge <thomas@codesourcery.com>
2348
2349 * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2350 zero value for regular exit case.
2351
2352 * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2353 (__start_context): Preserve zero value for regular exit case.
2354
23552012-07-17 Thomas Schwinge <thomas@codesourcery.com>
2356 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2357
2358 * manual/setjmp.texi (setcontext): Clarify normal process
2359 termination when uc_link is the null pointer.
2360 * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2361 exit call.
2362
23632012-07-16 Andreas Schwab <schwab@linux-m68k.org>
2364
2365 * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2366 preprocessor. Test for each exception mask separately.
2367
23682012-07-16 Andreas Jaeger <aj@suse.de>
2369
2370 * po/ru.po: Update from translation team.
2371
23722012-07-15 Joseph Myers <joseph@codesourcery.com>
2373
2374 * conform/data/string.h-data (NULL): Use macro-constant. Require
2375 equal to 0.
2376 [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2377 (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2378 (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2379 (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2380 [ISO || ISO99 || ISO11] (*_t): Do not allow.
2381
23822012-07-13 Andreas Jaeger <aj@suse.de>
2383
2384 * po/fr.po: Update from translation team.
2385
23862012-07-12 Marek Polacek <polacek@redhat.com>
2387
2388 [BZ #14173]
2389 * math/libm-test.inc (yn_test): Add test for BZ #14173.
2390 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2391 loop condition.
2392
23932012-07-12 Joseph Myers <joseph@codesourcery.com>
2394
2395 [BZ #13717]
2396 * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2397 Change to 2.4.1 where previously 2.4.0.
2398 * sysdeps/unix/sysv/linux/configure: Regenerated.
2399 * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2400 (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2401 version.
2402 [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2403 (__ASSUME_AT_CLKTCK): Remove.
2404 (__ASSUME_AT_PAGESIZE): Likewise.
2405 (__ASSUME_AT_XID): Likewise.
2406 (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2407 [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2408 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2409 unconditionally.
2410 (HAVE_AUX_PAGESIZE): Likewise.
2411 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2412 [__ASSUME_AT_CLKTCK]: Make code unconditional.
2413 [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2414
24152012-07-12 Jeroen van Bemmel <jvb127@gmail.com>
2416
2417 [BZ #14307]
2418 * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2419 the temporary buffer used to invoke __gethostbyname2_r,
2420 __gethostbyaddr_r and gethostbyname4_r to make room for struct
2421 host_data / struct gaih_addrtuple.
2422 * resolv/nss_dns/dns-host.c (global scope): Move definition of
2423 implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2424 header file nss/nsswitch.h.
2425 * nss/nsswitch.h (global scope): Add definition of implementation
2426 constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2427 resolv/nss_dns/dns-host.c).
2428
24292012-07-11 Andreas Jaeger <aj@suse.de>
2430
2431 * po/fr.po: Update from translation team.
2432
2433 * po/sv.po: Update from translation team
2434 * po/fr.po: Another update from translation team.
2435
24362012-07-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
2437
2438 * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2439 for subnormals or multiply small sinh result by itself.
2440 * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2441 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2442
24432012-07-11 David S. Miller <davem@davemloft.net>
2444
2445 * sysdeps/sparc/fpu/libm-test-ulps: Update.
2446
24472012-07-10 Andreas Schwab <schwab@linux-m68k.org>
2448
2449 [BZ #14347]
2450 * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2451 (INTERNAL_MARK): Shift it here.
2452
24532012-07-10 Marek Polacek <polacek@redhat.com>
2454
2455 [BZ #14151]
2456 * configure.in (libc_cv_asm_global_directive): Remove test. Replace
2457 libc_cv_asm_global_directive with .globl.
2458 * configure: Regenerated.
2459 * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2460 with .globl.
2461 * sysdeps/i386/configure: Regenerated.
2462 * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2463 with .globl.
2464 * sysdeps/x86_64/configure: Regenerated.
2465 * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2466 * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2467 * elf/tst-unique2mod2.c: Likewise.
2468 * elf/tst-unique2mod1.c: Likewise.
2469 * elf/tst-unique1mod2.c: Likewise.
2470 * elf/tst-unique1mod1.c: Likewise.
2471 * sysdeps/s390/s390-32/sysdep.h: Likewise.
2472 * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2473 * sysdeps/s390/s390-64/sysdep.h: Likewise.
2474 * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2475 * sysdeps/mach/sysdep.h: Likewise.
2476 * sysdeps/i386/sysdep.h: Likewise.
2477 * sysdeps/i386/i386-mcount.S: Likewise.
2478 * sysdeps/x86_64/_mcount.S: Likewise.
2479 * sysdeps/x86_64/sysdep.h: Likewise.
2480 * sysdeps/sh/_mcount.S: Likewise.
2481 * sysdeps/sh/sysdep.h: Likewise.
2482 * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2483 * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2484 * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2485 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2486 * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2487 * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2488 * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2489 * locale/localeinfo.h: Likewise.
2490 (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2491 (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2492
24932012-07-09 Roland McGrath <roland@hack.frob.com>
2494
2495 [BZ #14336]
2496 * manual/charset.texi (Extended Char Intro): Word use fix, "operating
2497 system".
2498 * manual/message.texi (The Uniforum approach): Likewise.
2499 * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
2500 (glibc iconv Implementation): Likewise.
2501
25022012-07-09 Joseph Myers <joseph@codesourcery.com>
2503
2504 [BZ #14337]
2505 * math/s_clog.c (__clog): Avoid scaling a value down where that
2506 could result in underflow.
2507 * math/s_clog10.c (__clog10): Likewise.
2508 * math/s_clog10f.c (__clog10f): Likewise.
2509 * math/s_clog10l.c (__clog10l): Likewise.
2510 * math/s_clogf.c (__clogf): Likewise.
2511 * math/s_clogl.c (__clogl): Likewise.
2512 * math/libm-test.inc (clog_test): Add more tests.
2513 (clog10_test): Likewise.
2514 * sysdeps/i386/fpu/libm-test-ulps: Update.
2515 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2516
25172012-07-06 Andreas Schwab <schwab@linux-m68k.org>
2518
2519 [BZ #14283]
2520 * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
2521 by 7 not 8 to examine high bit of fractional part.
2522
2523 [BZ #14042]
2524 * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
2525 for call to __mcount_internal.
2526 * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
2527 (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
2528 * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
2529
25302012-07-06 Joseph Myers <joseph@codesourcery.com>
2531
2532 [BZ #14154]
2533 * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
2534 approximation for values within 0x1p-13f of an odd multiple of
2535 pi/4.
2536 * math/libm-test.inc (tan_test): Do not allow spurious underflow
2537 exception. Add more tests.
2538 * sysdeps/i386/fpu/libm-test-ulps: Update.
2539
2540 [BZ #6778]
2541 * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
2542 inputs and return -1 for them. Do not check for +Inf in case not
2543 reachable for +Inf.
2544 * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
2545 * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
2546 (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2547 and return -1 for them. Do not check for +Inf in case not
2548 reachable for +Inf.
2549 * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
2550 define.
2551 (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2552 and return -1 for them. Do not check for +Inf in case not
2553 reachable for +Inf.
2554 * math/libm-test.inc (expm1_test): Add more tests. Do not allow
2555 spurious underflow.
2556 * sysdeps/i386/fpu/libm-test-ulps: Update.
2557 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2558
25592012-07-06 Mike Frysinger <vapier@gentoo.org>
2560
2561 * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
2562
25632012-07-05 Joseph Myers <joseph@codesourcery.com>
2564
2565 [BZ #14157]
2566 [BZ #14331]
2567 * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
2568 could result in spurious underflow. Scale down values above
2569 DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
2570 * math/s_csqrtf.c (__csqrtf): Likewise.
2571 * math/s_csqrtl.c (__csqrtl): Likewise.
2572 * math/libm-test.inc (csqrt_test): Add more tests. Do not allow
2573 spurious underflow.
2574 * sysdeps/i386/fpu/libm-test-ulps: Update.
2575 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2576
25772012-07-04 Andreas Schwab <schwab@linux-m68k.org>
2578
2579 * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
2580 xopen-msg.sed.
2581 * catgets/xopen-msg.awk: New file.
2582 * catgets/xopen-msg.sed: Removed.
2583
2584 * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
2585 po2text.sed.
2586 * intl/po2test.awk: New file.
2587 * intl/po2test.sed: Removed.
2588
25892012-07-04 Joseph Myers <joseph@codesourcery.com>
2590
2591 [BZ #14328]
2592 * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
2593 or multiply small sinh result by itself.
2594 * math/s_ctanf.c (__ctanf): Likewise.
2595 * math/s_ctanh.c (__ctanh): Likewise.
2596 * math/s_ctanhf.c (__ctanhf): Likewise.
2597 * math/s_ctanhl.c (__ctanhl): Likewise.
2598 * math/s_ctanl.c (__ctanl): Likewise.
2599 * math/libm-test.inc (ctan_test_tonearest): New function.
2600 (ctan_test_towardzero): Likewise.
2601 (ctan_test_downward): Likewise.
2602 (ctan_test_upward): Likewise.
2603 (ctanh_test_tonearest): Likewise.
2604 (ctanh_test_towardzero): Likewise.
2605 (ctanh_test_downward): Likewise.
2606 (ctanh_test_upward): Likewise.
2607 (main): Call these new functions.
2608 * sysdeps/i386/fpu/libm-test-ulps: Update.
2609 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2610
26112012-07-03 Mike Frysinger <vapier@gentoo.org>
2612
2613 * .gitignore: Delete /ports entry.
2614
26152012-07-03 Andreas Jaeger <aj@suse.de>
2616
2617 * po/bg.po: Update from translation team.
2618 * po/cs.po: Likewise.
2619 * po/de.po: Likewise.
2620 * po/hr.po: Likewise.
2621 * po/nl.pl: Likewise.
2622 * po/pl.po: Likewise.
2623 * po/vi.po: Likewise.
2624
26252012-07-03 Joseph Myers <joseph@codesourcery.com>
2626
2627 * Makeconfig [!+link] (+link-before-libc): New variable.
2628 [!+link] (+link-after-libc): Likewise.
2629 [!+link] (+link-tests): Likewise.
2630 [!+link] (+link): Define in terms of $(+link-before-libc) and
2631 $(+link-after-libc).
2632 [!+link-static] (+link-static-before-libc): New variable.
2633 [!+link-static] (+link-static-after-libc): Likewise.
2634 [!+link-static] (+link-static-tests): Likewise.
2635 [!+link-static] (+link-static): Define in terms of
2636 $(+link-static-before-libc) and $(+link-static-after-libc).
2637 [build-shared] (link-libc-before-gnulib): New variable.
2638 [build-shared] (link-libc-tests): Likewise.
2639 [build-shared] (link-libc): Define in terms of
2640 $(link-libc-before-gnulib).
2641 [!build-shared] (link-libc-tests): New variable.
2642 (link-libc-static-tests): New variable.
2643 [!gnulib] (gnulib-arch): New variable.
2644 [!gnulib] (gnulib-tests): Likewise.
2645 [!gnulib] (static-gnulib-arch): Likewise.
2646 [!gnulib] (static-gnulib-tests): Likewise.
2647 [!gnulib] (gnulib): Use $(gnulib-arch). Do not use $(libgcc_eh).
2648 Define with "=" instead of ":=".
2649 [!gnulib] (static-gnulib): Use $(static-gnulib-arch). Do not use
2650 -lgcc_eh $(libunwind). Define with "=" instead of ":=".
2651 * Rules (binaries-all-notests): New variable.
2652 (binaries-all-tests): Likewise.
2653 (binaries-static-notests): Likewise.
2654 (binaries-static-tests): Likewise.
2655 (binaries-all): Define using $(binaries-all-notests) and
2656 $(binaries-all-tests).
2657 (binaries-static): Define using $(binaries-static-notests) and
2658 $(binaries-static-tests).
2659 (binaries-shared-tests): New variable.
2660 (binaries-shared-notests): Likewise.
2661 (binaries-shared): Remove variable.
2662 ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
2663 ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
2664 ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
2665 ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
2666 ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
2667 ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
2668 * elf/Makefile (sln-modules): New variable.
2669 (extra-objs): Add $(sln-modules:=.o).
2670 (ldconfig-modules): Add static-stubs.
2671 ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
2672 * elf/static-stubs.c: New file.
2673
2674 [BZ #14283]
2675 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
2676 by 7 not 8 to examine high bit of fractional part. Use volatile
2677 variables when splitting into final array of floats if
2678 __FLT_EVAL_METHOD__ != 0.
2679 * math/libm-test.inc (cos_test): Add another test.
2680 (sin_test): Likewise.
2681 * sysdeps/i386/fpu/libm-test-ulps: Update.
2682
2683 [BZ #14273]
2684 * math/libm-test.inc (cosh_test): Add more tests.
2685
2686 * version.h (RELEASE): Set to "development".
2687 (VERSION): Set to "2.16.90".
2688
26892012-06-30 Carlos O'Donell <carlos_odonell@mentor.com>
2690
2691 * NEWS: Update copyright. Remove last-updated date.
2692 Mention math library bug fixes and timezone data changes.
2693 * README: Mention GNU/Hurd, x32, and HPPA support status.
2694
26952012-06-28 Thomas Schwinge <thomas@codesourcery.com>
2696
2697 * manual/contrib.texi (Contributors): Sort alphabetically by last name.
2698
26992012-06-27 Andreas Jaeger <aj@suse.de>
2700
2701 * manual/contrib.texi (Contributors): Add Samuel Thibault.
2702
27032012-06-25 Andreas Jaeger <aj@suse.de>
2704
2705 * sysdeps/s390/fpu/libm-test-ulps: Update.
2706
27072012-06-23 Andreas Schwab <schwab@linux-m68k.org>
2708 Thomas Schwinge <thomas@codesourcery.com>
2709
2710 * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
2711 * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
2712 * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
2713 fanotify_mark.
2714
27152012-06-23 Thomas Schwinge <thomas@codesourcery.com>
2716
2717 * sysdeps/mach/start.c: Remove file.
2718 * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
2719 * sysdeps/i386/init-first.c: Fix comment regarding start.S.
2720 * sysdeps/sh/init-first.c: Likewise.
2721
2722 * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
2723 registers for frame unwinding purposes, add CFI directives.
2724 * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2725 * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
2726 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2727 Likewise.
2728
2729 * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
2730 __fortify_fail returning.
2731 * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2732
2733 * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
2734 sysdeps/sh/____longjmp_chk.S.
2735 * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
2736 on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
2737 * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
2738 (gen-as-const-headers): Append sigaltstack-offsets.sym.
2739
2740 * sysdeps/sh/abort-instr.h: New file.
2741 * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
2742 process in case exit returns.
2743
2744 * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
2745 initialize the GOT register before use.
2746
2747 * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
2748 calculation of ARGC > 4.
2749
2750 * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
2751 meaningful names to some local labels.
2752
27532012-06-22 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2754 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2755
2756 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
2757 (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
2758 (__arch_compare_and_exchange_val_16_acq): Likewise.
2759 (__arch_compare_and_exchange_val_32_acq): Likewise.
2760 (atomic_exchange_and_add): Fix gUSA sequence.
2761 (atomic_add): Likewise.
2762 (atomic_add_negative): Likewise.
2763 (atomic_add_zero): Likewise.
2764 (atomic_bit_test_set): Likewise.
2765
27662012-06-22 Andreas Schwab <schwab@redhat.com>
2767
2768 [BZ #13579]
2769 * include/link.h (struct link_map): Add l_free_initfini.
2770 * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
2771 l_initfini.
2772 * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
2773 * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
2774 * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
2775 set.
2776
27772012-06-22 Carlos O'Donell <carlos_odonell@mentor.com>
2778
2779 * configure.in: Use AC_LANG_SOURCE.
2780 * configure: Regenerate.
2781
27822012-06-22 Roland McGrath <roland@hack.frob.com>
2783
2784 * configure.in (libc_cv_localstatedir): New substituted variable.
2785 * configure: Regenerated.
2786 * config.make.in (localstatedir): New variable, substituted from
2787 libc_cv_localstatedir.
2788 * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
2789 * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
2790 ${prefix}/var to /var when we change ${prefix}/etc to /etc.
2791 * sysdeps/gnu/configure: Regenerated.
2792
27932012-06-21 Jeff Law <law@redhat.com>
2794
2795 [BZ #14277]
2796 * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
2797 free. Simplify list management for _LIBC case.
2798
27992012-06-21 Joseph Myers <joseph@codesourcery.com>
2800
2801 [BZ #14273]
2802 * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
2803 Clear sign bit of 64-bit integer value before comparing against
2804 overflow value.
2805
2806 * sysdeps/mach/configure: Regenerated.
2807
28082012-06-21 H.J. Lu <hongjiu.lu@intel.com>
2809
2810 [BZ #14278]
2811 * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
2812
28132012-06-21 Jeff Law <law@redhat.com>
2814
2815 [BZ #13882]
2816 * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection. Use
2817 uint16_t for elements in the "seen" array to avoid char overflows.
2818 * elf/dl-fini.c (_dl_sort_fini): Likewise.
2819 * elf/dl-open.c (dl_open_worker): Likewise.
2820
28212012-06-21 Carlos O'Donell <carlos_odonell@mentor.com>
2822
2823 * scripts/list-sources.sh: Scan PORTS for translations.
2824 * po/libc.pot: Regenerated.
2825
28262012-06-21 Andreas Jaeger <aj@suse.de>
2827
2828 [BZ #12194]
2829 * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
2830 warning.
2831 * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
2832 * bits/byteswap-16.h (__bswap_16): Likewise.
2833 * bits/byteswap.h (__bswap_constant_16): Likewise.
2834
28352012-06-18 H.J. Lu <hongjiu.lu@intel.com>
2836
2837 [BZ #14117]
2838 * sysdeps/i386/fpu_control.h: Removed.
2839 * sysdeps/x86_64/fpu_control.h: Moved to ...
2840 * sysdeps/x86/fpu_control.h: Here.
2841
2842 * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
2843 (_FPU_SETCW): Likewise.
2844
28452012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2846
2847 [BZ #14117]
2848 * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
2849 * sysdeps/x86/fpu/bits/mathinline.h: This.
2850 * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
2851
2852 [BZ #14050]
2853 [BZ #14117]
2854 * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
2855 functions if __x86_64__ is defined.
2856
28572012-06-15 Chung-Lin Tang <cltang@codesourcery.com>
2858
2859 * string/endian.h: Add !__ASSEMBLER__ condition for including
2860 conversion interfaces.
2861
28622012-06-15 Joseph Myers <joseph@codesourcery.com>
2863
2864 [BZ #14241]
2865 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
2866 of ABS(x) in calculating zero to negative powers other than odd
2867 integers.
2868 * math/libm-test.inc (pow_test): Add more tests.
2869
28702012-06-15 Andreas Jaeger <aj@suse.de>
2871
2872 * manual/contrib.texi (Contributors): Update entry of Liubov
2873 Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
2874 Machado Filho.
2875
28762012-06-15 Cyril Hrubis <metan@ucw.cz>
2877
2878 * string/string.h: Add __wur to GNU version of strerror_r.
2879
28802012-06-14 H.J. Lu <hongjiu.lu@intel.com>
2881
2882 [BZ #14229]
2883 * string/Makefile (tests): Add tst-strtok_r.
2884 * string/tst-strtok_r.c: New file.
2885 * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
2886 RAX_LP/RDX_LP on SAVE_PTR.
2887
28882012-06-14 Roland McGrath <roland@hack.frob.com>
2889
2890 * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
2891
28922012-06-14 Joseph Myers <joseph@codesourcery.com>
2893
2894 * libm_test.inc (csqrt_test): Allow more spurious underflow
2895 exceptions.
2896 (j0_test): Likewise.
2897 (j1_test): Likewise.
2898 (y0_test): Likewise.
2899 (y1_test): Likewise.
2900
29012012-06-13 Carlos O'Donell <carlos_odonell@mentor.com>
2902
2903 * po/Makefile (libc.pot): Use UTF-8 charset.
2904
29052012-06-13 Paul Pluzhnikov <ppluzhnikov@google.com>
2906
2907 [BZ #14210]
2908 Suppress sign-conversion warning from FD_SET.
2909 See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
2910 * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
2911 not unsigned long int.
2912 * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
2913
29142012-06-12 H.J. Lu <hongjiu.lu@intel.com>
2915
2916 [BZ #14050]
2917 [BZ #14117]
2918 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
2919 __extern_always_inline instead of __extern_inline.
2920 (__signbitf): Support __SSE2_MATH__ and C++ namespace.
2921 (__signbit): Likewise.
2922 (__signbitl): Support C++ namespace.
2923 (lrintf): New inline function.
2924 (lrint): Likewise.
2925 (llrintf): Likewise.
2926 (llrint): Likewise.
2927 (fmaxf): Likewise.
2928 (fmax): Likewise.
2929 (fminf): Likewise.
2930 (fmin): Likewise.
2931 (rint): Likewise.
2932 (rintf): Likewise.
2933 (ceil): Likewise.
2934 (ceilf): Likewise.
2935 (floor): Likewise.
2936 (floorf): Likewise.
2937 (nearbyint): Likewise.
2938 (nearbyintf): Likewise.
2939
29402012-06-12 Thomas Schwinge <thomas@codesourcery.com>
2941
2942 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
2943 non-default versions.
2944
29452012-06-11 Roland McGrath <roland@hack.frob.com>
2946
2947 [BZ #14218]
2948 * manual/argp.texi (Argp): Reword argp_parse description slightly.
2949
29502012-06-09 Thomas Schwinge <thomas@codesourcery.com>
2951
2952 * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
2953 (FE_UPWARD, FE_DOWNWARD): Don't define.
2954 * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
2955 * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
2956
2957 * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
2958 reading it.
2959 * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
2960 * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
2961
29622012-06-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2963
2964 * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
2965 * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
2966 * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
2967 * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
2968
29692012-06-06 H.J. Lu <hongjiu.lu@intel.com>
2970
2971 [BZ #14117]
2972 * sysdeps/i386/fpu/bits/fenv.h: Removed.
2973 * sysdeps/i386/fpu/Implies: New file.
2974 * sysdeps/x86_64/fpu/Implies: Likewise.
2975 * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
2976 * sysdeps/x86/fpu/bits/fenv.h: This.
2977
2978 * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
2979 __SSE_MATH__.
2980
29812012-06-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2982
2983 [BZ #14134]
2984 * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
2985 character 0xffff that matches the last element of the
2986 conversion table.
2987
29882012-06-05 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
2989
2990 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
2991 fmodl commit.
2992
29932012-06-05 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
2994
2995 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
2996 values higher than 25.6283.
2997
29982012-06-04 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
2999
3000 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3001 subnormal exponent extraction and add some __builtin_expect.
3002 * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3003 Fix for subnormal mantissa calculation.
3004
30052012-06-04 Mike Frysinger <vapier@gentoo.org>
3006
3007 * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3008 cpu2 is -1 and errno is not ENOSYS.
3009
30102012-06-04 H.J. Lu <hongjiu.lu@intel.com>
3011
3012 [BZ #14117]
3013 * sysdeps/i386/i486/bits/string.h: Renamed to ...
3014 * sysdeps/x86/bits/string.h: This.
3015 * sysdeps/x86_64/bits/string.h: Removed.
3016
3017 * sysdeps/i386/i486/bits/string.h: Define inline functions only
3018 if not compiling for x86-64, but compiling for >= i486.
3019
3020 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3021 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3022
3023 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3024 New macro from Linux kernel 3.4.0.
3025 (FP_XSTATE_MAGIC2): Likewise.
3026 (FP_XSTATE_MAGIC2_SIZE): Likewise.
3027 (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3028 (struct _fpx_sw_bytes): New struct.
3029 (struct _xsave_hdr): Likewise.
3030 (struct _ymmh_state): Likewise.
3031 (struct _xstate): Likewise.
3032
3033 * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3034 * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3035 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3036 * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3037 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3038 * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3039
3040 * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3041 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3042 * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3043 * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
3044 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
3045 * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
3046
30472012-06-04 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
3048
3049 [BZ #13743]
3050 * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
3051 * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
3052 (sysdep_headers): Include sys/platform/ppc.h.
3053 * sysdeps/powerpc/test-gettimebase.c: Test for
3054 __ppc_get_timebase() to catch future ISA opcode/insn changes.
3055 * manual/Makefile (appendices): Include platform.texi.
3056 * manual/contrib.texi (Contributors): Update @node pointers.
3057 * manual/maint.texi (Maintenance): Likewise.
3058 (Platform): New node.
3059 * manual/platform.texi: New file. Document the new features.
3060
30612012-06-04 Siddhesh Poyarekar <siddhesh@redhat.com>
3062 Jakub Jelinek <jakub@redhat.com>
3063
3064 [BZ #14188]
3065 * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
3066 where __builtin_expect is unavailable.
3067
30682012-06-03 David S. Miller <davem@davemloft.net>
3069
3070 * stdlib/longlong.h: Updated from GCC.
3071
30722012-06-02 Andreas Schwab <schwab@linux-m68k.org>
3073
3074 [BZ #14042]
3075 * sysdeps/powerpc/powerpc32/mcount.c: New file.
3076 * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
3077 __mcount_internal.
3078 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3079 (GLIBC_2.16): Likewise.
3080
30812012-06-01 H.J. Lu <hongjiu.lu@intel.com>
3082
3083 * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
3084
30852012-06-01 Joseph Myers <joseph@codesourcery.com>
3086
3087 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
3088 (default-abi): New variable.
3089 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
3090 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
3091 variable.
3092 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
3093 Likewise.
3094 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
3095 Likewise.
3096 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
3097 Likewise.
3098
3099 * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3100 definition. Document in comment.
3101
31022012-06-01 David S. Miller <davem@davemloft.net>
3103
3104 * stdlib/longlong.h: Updated from GCC.
3105
31062012-06-01 H.J. Lu <hongjiu.lu@intel.com>
3107
3108 [BZ #14117]
3109 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3110 Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
3111 sys/debugreg.h sys/io.h here.
3112 * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
3113 sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
3114 sys/io.h.
3115 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
3116 Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
3117 * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
3118 * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
3119 * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
3120 * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
3121
3122 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
3123 Define only if __x86_64__ is defined.
3124
31252012-06-01 Joseph Myers <joseph@codesourcery.com>
3126
3127 [BZ #14048]
3128 * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
3129 Use int64_t for variable i.
3130 * math/libm-test.inc (fmod_test): Add more tests.
3131
3132 * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
3133 z computation is not scheduled after fetestexcept.
3134 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
3135 Use math_force_eval instead of asm to ensure calculation scheduled
3136 before exception test.
3137 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
3138 Ensure a1 + u.d computation is not scheduled after fetestexcept.
3139
31402012-06-01 Aurelien Jarno <aurelien@aurel32.net>
3141
3142 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
3143 computation is not scheduled after fetestexcept.
3144
31452012-06-01 H.J. Lu <hongjiu.lu@intel.com>
3146
3147 [BZ #14117]
3148 * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
3149 * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
3150
31512012-06-01 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
3152
3153 * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
3154 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3155
31562012-05-31 H.J. Lu <hongjiu.lu@intel.com>
3157
3158 [BZ #14117]
3159 * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
3160 <bits/wordsize.h>.
3161 (__WCHAR_MIN): Support __WORDSIZE == 64.
3162 (__WCHAR_MAX): Likewise.
3163
3164 * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
3165 * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
3166
3167 [BZ #14183]
3168 * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
3169 Defined with __SWORD_TYPE if __x86_64__ isn't defined.
3170
3171 [BZ #14117]
3172 * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3173 * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3174
3175 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3176 * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3177
3178 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3179 Defined to 1 if __x86_64__ isn't defined.
3180 (_STAT_VER_LINUX_OLD): New.
3181 (st_atime): Remove duplicate.
3182 (st_mtime): Likewise.
3183 (st_ctime): Likewise.
3184
31852012-05-31 David S. Miller <davem@davemloft.net>
3186
3187 * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3188 entries.
3189
31902012-06-01 Andreas Schwab <schwab@linux-m68k.org>
3191
3192 * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3193 gen-libm-test.pl.
3194
3195 [BZ #14132]
3196 * elf/dl-reloc.c: Include <_itoa.h>.
3197 (_dl_reloc_bad_type): Remove use of INTUSE.
3198 * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3199 * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3200 * stdio-common/psiginfo.c (psiginfo): Likewise.
3201 * stdio-common/psignal.c (psignal): Likewise.
3202 * string/strsignal.c (strsignal): Likewise.
3203 * include/signal.h (_sys_siglist): Declare hidden proto.
3204 * stdio-common/itoa-digits.c: Include <_itoa.h>. Replace
3205 INTVARDEF with libc_hidden_data_def.
3206 * stdio-common/itoa-udigits.c: Likewise.
3207 * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3208 (_itoa_lower_digits_internal): Remove declaration.
3209 (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3210 * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3211 (_sys_sigabbrev_internal): Remove aliases.
3212 (_sys_siglist): Define hidden alias.
3213
32142012-05-31 Markus Trippelsdorf <markus@trippelsdorf.de>
3215
3216 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3217 bits/sysctl.h.
3218
32192012-05-31 H.J. Lu <hongjiu.lu@intel.com>
3220
3221 [BZ #14117]
3222 * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3223 * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3224
3225 * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3226 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3227 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3228 * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3229 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3230 * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3231
3232 * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3233 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3234 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3235
3236 * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3237 with __addr.
3238 (insw): Likewise.
3239 (insl): Likewise.
3240 (outsb): Likewise.
3241 (outsw): Likewise.
3242 (outsl): Likewise.
3243
3244 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3245 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3246 * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3247
3248 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3249 * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3250 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3251 * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3252 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3253 * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3254
3255 * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3256 * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3257
3258 * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3259 * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3260
3261 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3262 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3263 * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3264
3265 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3266 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3267 to ...
3268 * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3269
3270 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3271 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3272 * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3273
3274 * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3275 for x86-64.
3276 * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3277
32782012-05-31 Joseph Myers <joseph@codesourcery.com>
3279
3280 * math/math.h (M_El): Use two more decimal places.
3281 (M_LOG2El): Likewise.
3282 (M_LOG10El): Likewise.
3283 (M_LN2l): Likewise.
3284 (M_LN10l): Likewise.
3285 (M_PIl): Likewise.
3286 (M_PI_2l): Likewise.
3287 (M_PI_4l): Likewise.
3288 (M_1_PIl): Likewise.
3289 (M_2_PIl): Likewise.
3290 (M_2_SQRTPIl): Likewise.
3291 (M_SQRT2l): Likewise.
3292 (M_SQRT1_2l): Likewise.
3293
32942012-05-31 David S. Miller <davem@davemloft.net>
3295
3296 * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3297 values between float registers.
3298 * sysdeps/sparc/sparc64/memset.S: Likewise.
3299 * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3300
33012012-05-31 Mike Frysinger <vapier@gentoo.org>
3302
3303 * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3304 -D_FORTIFY_SOURCE=1.
3305 (CPPFLAGS-tst-longjmp_chk.c): Define.
3306 (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3307 (CPPFLAGS-tst-longjmp_chk2.c): Define.
3308 * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3309 CFLAGS-tst-wchar-h.c.
3310
33112012-05-31 Marek Polacek <polacek@redhat.com>
3312
3313 [BZ #14132]
3314 * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3315 __endmntent_internal): Remove declaration.
3316 (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3317 (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3318 * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3319
33202012-05-30 David S. Miller <davem@davemloft.net>
3321
3322 * sysdeps/sparc/sparc32/soft-fp/q_util.c
3323 (___Q_simulate_exceptions): Use real FP ops rather than writing
3324 into the %fsr.
3325 * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3326 Likewise.
3327
33282012-05-30 H.J. Lu <hongjiu.lu@intel.com>
3329
3330 [BZ #14117]
3331 * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3332 * sysdeps/x86/bits/xtitypes.h: This.
3333
3334 * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3335 * sysdeps/x86/bits/wordsize.h: This.
3336
3337 * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3338 * sysdeps/x86/bits/huge_vall.h: This.
3339
3340 * sysdeps/i386/bits/select.h: Removed.
3341 * sysdeps/x86_64/bits/select.h: Renamed to ...
3342 * sysdeps/x86/bits/select.h: This.
3343
3344 * sysdeps/i386/bits/setjmp.h: Removed.
3345 * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3346 * sysdeps/x86/bits/setjmp.h: This.
3347
3348 * sysdeps/i386/bits/mathdef.h: Removed.
3349 * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3350 * sysdeps/x86/bits/mathdef.h: This.
3351
33522012-05-30 Andreas Schwab <schwab@linux-m68k.org>
3353
3354 [BZ #14132]
3355 * include/sys/socket.h (__connect_internal)
3356 (__libc_sa_len_internal): Remove declaration.
3357 (__connect, __libc_sa_len): Declare hidden_proto.
3358 (SA_LEN): Remove use of INTUSE.
3359 * socket/connect.c: Add libc_hidden_def.
3360 * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3361 * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3362 * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3363 alias.
3364 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3365 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3366 * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3367 of adding _internal alias.
3368
33692012-05-30 H.J. Lu <hongjiu.lu@intel.com>
3370
3371 [BZ #14117]
3372 * sysdeps/i386/bits/link.h: Removed.
3373 * sysdeps/i386/bits/linkmap.h: Likewise.
3374 * sysdeps/x86_64/bits/link.h: Renamed to ...
3375 * sysdeps/x86/bits/link.h: This.
3376 * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3377 * sysdeps/x86/bits/linkmap.h: This.
3378
3379 * sysdeps/i386/bits/endian.h: Removed.
3380 * sysdeps/x86_64/bits/endian.h: Renamed to ...
3381 * sysdeps/x86/bits/endian.h: This.
3382
3383 * sysdeps/i386/bits/byteswap.h: Removed.
3384 * sysdeps/i386/bits/byteswap-16.h: Likewise.
3385 * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3386 * sysdeps/x86/bits/byteswap.h: This.
3387 * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3388 * sysdeps/x86/bits/byteswap-16.h: This.
3389 * sysdeps/i386/Implies: Add x86.
3390 * sysdeps/x86_64/Implies: Likewise.
3391
33922012-05-30 David S. Miller <davem@davemloft.net>
3393
3394 * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3395 (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3396 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3397 (FP_TRAPPING_EXCEPTIONS): Define.
3398 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3399 (FP_TRAPPING_EXCEPTIONS): Define.
3400 * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3401 subnormals only when inexact has been signalled or underflow
3402 exceptions are enabled.
3403 (_FP_PACK_CANONICAL): Likewise.
3404
34052012-05-30 H.J. Lu <hongjiu.lu@intel.com>
3406
3407 [BZ #14183]
3408 * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3409 Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3410
34112012-05-30 Richard Henderson <rth@twiddle.net>
3412
3413 * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3414 with #ifndef NOT_IN_libc.
3415
3416 * scripts/abilist.awk: Accept 8 fields. Handle Alpha functions
3417 marked to avoid plt entry.
3418
34192012-05-30 H.J. Lu <hongjiu.lu@intel.com>
3420
3421 [BZ #14112]
3422 * Makeconfig (default-abi): New macro.
3423 (abi-includes): Likewise.
3424 ($(common-objpfx)soversions.mk): Remove WORDSIZE check. Use
3425 $(abi-$(default-abi)-lib-soname) for soname if defined.
3426 ($(common-objpfx)gnu/lib-names.stmp): Generate from
3427 abi-variants.
3428 * Makefile (installed-stubs): Likewise.
3429 * include/stubs-biarch.h: Removed.
3430 * scripts/lib-names.awk: Only handle one library at a time.
3431 * scripts/soversions.awk: Remove WORDSIZE support.
3432 * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3433 entries.
3434 * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3435 Removed.
3436 (syscall-list-default-condition): Likewise.
3437 (syscall-list-default-condition): Likewise.
3438 (syscall-list-includes): Likewise.
3439 ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3440 syscall-list-* with abi-*. Handle undefined abi-variants.
3441 * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3442 * sysdeps/unix/sysv/linux/i386/Implies: New file.
3443 * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3444 * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3445 * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3446 * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3447 Removed.
3448 (syscall-list-32-options): Likewise.
3449 (syscall-list-32-condition): Likewise.
3450 (syscall-list-64-options): Likewise.
3451 (syscall-list-64-condition): Likewise.
3452 * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3453 macro.
3454 * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3455 Renamed to ...
3456 (abi-*): This.
3457 (abi-64-ld-soname): New macro.
3458 * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3459 * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3460 Renamed to ...
3461 (abi-*): This.
3462 * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3463 * sysdeps/x86_64/x32/shlib-versions: Likewise.
3464
34652012-05-30 Joseph Myers <joseph@codesourcery.com>
3466
3467 * sysdeps/unix/sysv/linux/kernel-features.h
3468 (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3469 * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3470 include <kernel-features.h>.
3471 [!__NR_ftruncate64]: Remove conditional code.
3472 [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3473 [__NR_ftruncate64]: Make code unconditional.
3474 [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3475 * sysdeps/unix/sysv/linux/truncate64.c: Do not
3476 include <kernel-features.h>.
3477 [!__NR_ftruncate64]: Remove conditional code.
3478 [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3479 [__NR_ftruncate64]: Make code unconditional.
3480 [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3481 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3482 include <kernel-features.h>.
3483 [!__NR_ftruncate64]: Remove conditional code.
3484 [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3485 [__NR_ftruncate64]: Make code unconditional.
3486 [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3487 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3488 include <kernel-features.h>.
3489 [!__NR_ftruncate64]: Remove conditional code.
3490 [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3491 [__NR_ftruncate64]: Make code unconditional.
3492 [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3493
3494 * configure.in (libc_cv_fpie): Weaken to a compile test using
3495 LIBC_TRY_CC_OPTION.
3496 * configure: Regenerated.
3497
34982012-05-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3499
3500 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
3501 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
3502 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
3503 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3504 Refreshed.
3505 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
3506 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
3507 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
3508 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
3509 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
3510 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3511 Refreshed.
3512
35132012-05-27 David S. Miller <davem@davemloft.net>
3514
3515 * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
3516 (___Q_zero): New.
3517 (__Q_simulate_exceptions): Return void. Change to simulate
3518 exceptions by writing into the %fsr.
3519 * sysdeps/sparc/sparc64/soft-fp/qp_util.c
3520 (__Qp_handle_exceptions): Likewise.
3521 (numbers): Delete.
3522 * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
3523 __Qp_handle_exceptions.
3524 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
3525 __Qp_handle_exceptions.
3526 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3527 as unused and give dummy FP_RND_NEAREST initializer.
3528 (FP_INHIBIT_RESULTS): Define.
3529 (___Q_simulate_exceptions): Update declaration.
3530 (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
3531 formatting.
3532 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3533 as unused and give dummy FP_RND_NEAREST initializer.
3534 (__Qp_handle_exceptions): Update declaration.
3535 (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
3536 formatting.
3537
35382012-05-27 Thomas Schwinge <thomas@codesourcery.com>
3539
3540 * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
3541 the temporary FPU control word.
3542 * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3543 * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
3544 * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
3545 * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3546 * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3547 * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
3548 * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
3549 * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3550 * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
3551 * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
3552 * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3553
35542012-05-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3555
3556 * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
3557 fields.
3558
35592012-05-27 Chung-Lin Tang <cltang@codesourcery.com>
3560
3561 * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
3562 * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
3563 * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
3564 * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
3565 Likewise.
3566 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
3567 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
3568 Likewise.
3569
35702012-05-27 Ulrich Drepper <drepper@gmail.com>
3571
3572 * po/h.po: Update from translation team.
3573
35742012-05-26 Andreas Schwab <schwab@linux-m68k.org>
3575
3576 * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
3577
3578 * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
3579 handling of denormals.
3580 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3581 * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
3582 * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3583 * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3584 * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3585 * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
3586 * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
3587 Likewise.
3588
35892012-05-26 Marek Polacek <polacek@redhat.com>
3590
3591 [BZ #14152]
3592 * math/libm-test.inc (fma_test): Don't always expect underflow
3593 exception.
3594
35952012-05-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3596
3597 [BZ #12416]
3598 * elf/tst-execstack.c: Include stackinfo.h.
3599 (do_test): Adjust test case to ensure that pthread_getattr_np
3600 behaviour remains the same after marking stack executable.
3601
36022012-05-25 Joseph Myers <joseph@codesourcery.com>
3603
3604 * sysdeps/unix/sysv/linux/kernel-features.h
3605 (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
3606 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
3607 kernel-features.h.
3608 [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3609 [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3610 * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
3611 kernel-features.h.
3612 [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3613 [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3614
36152012-05-25 H.J. Lu <hongjiu.lu@intel.com>
3616
3617 * configure.in: Define the default includes to being none.
3618 * configure: Regenerated.
3619
36202012-05-25 Roland McGrath <roland@hack.frob.com>
3621
3622 * sysdeps/x86_64/__longjmp.S: Add a static probe here.
3623 * sysdeps/x86_64/setjmp.S: Likewise.
3624 * sysdeps/i386/bsd-setjmp.S: Likewise.
3625 * sysdeps/i386/bsd-_setjmp.S: Likewise.
3626 * sysdeps/i386/setjmp.S: Likewise.
3627 * sysdeps/i386/__longjmp.S: Likewise.
3628 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3629 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
3630
3631 * include/stap-probe.h: New file.
3632 * configure.in: Handle --enable-systemtap.
3633 * configure: Regenerated.
3634 * config.h.in (USE_STAP_PROBE): New #undef.
3635 * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
3636 * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
3637 * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
3638
36392012-05-25 Joseph Myers <joseph@codesourcery.com>
3640
3641 [BZ #13717]
3642 * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
3643 to 2.4.0 where earlier.
3644 * sysdeps/unix/sysv/linux/configure: Regenerated.
3645 * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
3646 <kernel-features.h>.
3647 [__ASSUME_32BITUIDS]: Make code unconditional.
3648 [!__ASSUME_32BITUIDS]: Remove conditional code.
3649 * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
3650 <kernel-features.h>.
3651 [__ASSUME_32BITUIDS]: Make code unconditional.
3652 [!__ASSUME_32BITUIDS]: Remove conditional code.
3653 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
3654 [__ASSUME_32BITUIDS]: Make code unconditional.
3655 (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
3656 * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
3657 <kernel-features.h>.
3658 [__ASSUME_32BITUIDS]: Make code unconditional.
3659 [!__ASSUME_32BITUIDS]: Remove conditional code.
3660 * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
3661 <kernel-features.h>.
3662 [__ASSUME_32BITUIDS]: Make code unconditional.
3663 [!__ASSUME_32BITUIDS]: Remove conditional code.
3664 * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
3665 <kernel-features.h>.
3666 [__ASSUME_32BITUIDS]: Make code unconditional.
3667 [!__ASSUME_32BITUIDS]: Remove conditional code.
3668 * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
3669 <kernel-features.h>.
3670 [__ASSUME_32BITUIDS]: Make code unconditional.
3671 [!__ASSUME_32BITUIDS]: Remove conditional code.
3672 * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
3673 <kernel-features.h>.
3674 [__ASSUME_32BITUIDS]: Make code unconditional.
3675 [!__ASSUME_32BITUIDS]: Remove conditional code.
3676 * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
3677 <kernel-features.h>.
3678 [__ASSUME_32BITUIDS]: Make code unconditional.
3679 [!__ASSUME_32BITUIDS]: Remove conditional code.
3680 * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
3681 <kernel-features.h>.
3682 [__ASSUME_32BITUIDS]: Make code unconditional.
3683 [!__ASSUME_32BITUIDS]: Remove conditional code.
3684 * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
3685 <kernel-features.h>.
3686 [__ASSUME_32BITUIDS]: Make code unconditional.
3687 [!__ASSUME_32BITUIDS]: Remove conditional code.
3688 * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
3689 <kernel-features.h>.
3690 [__ASSUME_32BITUIDS]: Make code unconditional.
3691 [!__ASSUME_32BITUIDS]: Remove conditional code.
3692 * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
3693 <kernel-features.h>.
3694 [__ASSUME_32BITUIDS]: Make code unconditional.
3695 [!__ASSUME_32BITUIDS]: Remove conditional code.
3696 * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
3697 <kernel-features.h>.
3698 [__NR_setresgid] (__setresgid): Do not declare.
3699 [__ASSUME_32BITUIDS]: Make code unconditional.
3700 [!__ASSUME_32BITUIDS]: Remove conditional code.
3701 * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
3702 <kernel-features.h>.
3703 [__NR_setresuid] (__setresuid): Do not declare.
3704 [__ASSUME_32BITUIDS]: Make code unconditional.
3705 [!__ASSUME_32BITUIDS]: Remove conditional code.
3706 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
3707 <kernel-features.h>.
3708 [__ASSUME_32BITUIDS]: Make code unconditional.
3709 [!__ASSUME_32BITUIDS]: Remove conditional code.
3710 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
3711 <kernel-features.h>.
3712 [__ASSUME_32BITUIDS]: Make code unconditional.
3713 [!__ASSUME_32BITUIDS]: Remove conditional code.
3714 * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
3715 <kernel-features.h>.
3716 [__ASSUME_32BITUIDS]: Make code unconditional.
3717 [!__ASSUME_32BITUIDS]: Remove conditional code.
3718 * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
3719 <kernel-features.h>.
3720 [__ASSUME_32BITUIDS]: Make code unconditional.
3721 [!__ASSUME_32BITUIDS]: Remove conditional code.
3722 * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
3723 <kernel-features.h>.
3724 [__ASSUME_32BITUIDS]: Make code unconditional.
3725 [!__ASSUME_32BITUIDS]: Remove conditional code.
3726 * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
3727 <kernel-features.h>.
3728 [__ASSUME_32BITUIDS]: Make code unconditional.
3729 [!__ASSUME_32BITUIDS]: Remove conditional code.
3730 * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
3731 <kernel-features.h>.
3732 [__ASSUME_32BITUIDS]: Make code unconditional.
3733 [!__ASSUME_32BITUIDS]: Remove conditional code.
3734 * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
3735 <kernel-features.h>.
3736 [__ASSUME_32BITUIDS]: Make code unconditional.
3737 [!__ASSUME_32BITUIDS]: Remove conditional code.
3738 * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
3739 <kernel-features.h>.
3740 [__ASSUME_32BITUIDS]: Make code unconditional.
3741 [!__ASSUME_32BITUIDS]: Remove conditional code.
3742 * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
3743 <kernel-features.h>.
3744 [__ASSUME_32BITUIDS]: Make code unconditional.
3745 [!__ASSUME_32BITUIDS]: Remove conditional code.
3746 * sysdeps/unix/sysv/linux/kernel-features.h
3747 (__ASSUME_SETRESUID_SYSCALL): Remove.
3748 (__ASSUME_SETRESGID_SYSCALL): Likewise.
3749 (__ASSUME_32BITUIDS): Likewise.
3750 (__ASSUME_LDT_WORKS): Likewise.
3751 (__ASSUME_O_DIRECTORY): Likewise.
3752 (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
3753 architecture but not kernel version.
3754 (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
3755 (__ASSUME_MMAP2_SYSCALL): Likewise.
3756 (__ASSUME_STAT64_SYSCALL): Likewise.
3757 (__ASSUME_IPC64): Likewise.
3758 * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
3759 <kernel-features.h>.
3760 [__ASSUME_32BITUIDS]: Make code unconditional.
3761 [!__ASSUME_32BITUIDS]: Remove conditional code.
3762 * sysdeps/unix/sysv/linux/opendir.c: Do not include
3763 <kernel-features.h>.
3764 [__ASSUME_O_DIRECTORY]: Make code unconditional.
3765 * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
3766 132096]: Remove conditional code.
3767 [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
3768 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
3769 <kernel-features.h>.
3770 [__ASSUME_32BITUIDS]: Make code unconditional.
3771 [!__ASSUME_32BITUIDS]: Remove conditional code.
3772 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
3773 <kernel-features.h>.
3774 [__ASSUME_32BITUIDS]: Make code unconditional.
3775 [!__ASSUME_32BITUIDS]: Remove conditional code.
3776 * sysdeps/unix/sysv/linux/setegid.c: Do not include
3777 <kernel-features.h>.
3778 [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
3779 unconditional.
3780 (__setresgid): Do not declare.
3781 [__ASSUME_32BITUIDS]: Make code unconditional.
3782 [!__ASSUME_32BITUIDS]: Remove conditional code.
3783 * sysdeps/unix/sysv/linux/seteuid.c: Do not include
3784 <kernel-features.h>.
3785 [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
3786 unconditional.
3787 (__setresuid): Do not declare.
3788 [__ASSUME_32BITUIDS]: Make code unconditional.
3789 [!__ASSUME_32BITUIDS]: Remove conditional code.
3790 * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
3791 <kernel-features.h>.
3792 [__ASSUME_32BITUIDS]: Make code unconditional.
3793 [!__ASSUME_32BITUIDS]: Remove conditional code.
3794 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
3795 <kernel-features.h>.
3796 [__ASSUME_32BITUIDS]: Make code unconditional.
3797 [!__ASSUME_32BITUIDS]: Remove conditional code.
3798
37992012-05-25 Richard Henderson <rth@twiddle.net>
3800
3801 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
3802 dl_hwcap to ifunc resolver.
3803 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
3804 elf_ifunc_invoke.
3805 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
3806 dl_hwcap to ifunc resolver.
3807 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
3808
38092012-05-24 Joseph Myers <joseph@codesourcery.com>
3810
3811 [BZ #14153]
3812 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
3813 for |x| <= 2**-26, not 2**-57.
3814 * math/libm-test.inc (acos_test): Do not allow spurious underflow
3815 exception.
3816
38172012-05-24 Jeff Law <law@redhat.com>
3818
3819 * stdio-common/Makefile (tests): Add bug25.
3820 * stdio-common/bug25.c: New test.
3821
38222012-05-24 H.J. Lu <hongjiu.lu@intel.com>
3823
3824 [BZ #13576]
3825 * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
3826 multiple of MALLOC_ALIGNMENT in size.
3827 (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
3828
38292012-05-24 Joseph Myers <joseph@codesourcery.com>
3830
3831 * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
3832 Require >= 256.
3833 (FILENAME_MAX): Use macro-int-constant.
3834 (FOPEN_MAX): Use macro-int-constant. Require >= 8.
3835 (_IOFBF): Use macro-int-constant.
3836 (_IOLBF): Likewise.
3837 (_IONBF): Likewise.
3838 (SEEK_CUR): Likewise.
3839 (SEEK_END): Likewise.
3840 (SEEK_SET): Likewise.
3841 (TMP_MAX): Likewise.
3842 (EOF): Use macro-int-constant. Require < 0.
3843 (NULL): Use macro-constant. Require == 0.
3844 (stdin): Require type to be FILE *.
3845 (stdout): Likewise.
3846 (stderr): Likewise.
3847 * conform/data/stdlib.h-data (EXIT_FAILURE): Use
3848 macro-int-constant.
3849 (EXIT_SUCCESS): Likewise.
3850 (NULL): Use macro-constant. Require == 0.
3851 (RAND_MAX): Use macro-int-constant.
3852 [ISO99 || ISO11] (lldiv_t): Require also for these standards.
3853 [C99-based standards] (strtof): Require function.
3854 [C99-based standards] (strtold): Likewise.
3855 [C99-based standards] (strtoll): Likewise.
3856 [C99-based standards] (strtoull): Likewise.
3857 [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3858 [ISO || ISO99 || ISO11] (limits.h): Likewise.
3859 [ISO || ISO99 || ISO11] (math.h): Likewise.
3860 [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
3861 (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3862 [ISO || ISO99 || ISO11] (*_t): Do not allow.
3863
38642012-05-24 Andreas Schwab <schwab@linux-m68k.org>
3865
3866 [BZ #14132]
3867 * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
3868 * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
3869 * intl/dgettext.c (DCGETTEXT): Likewise.
3870 * intl/gettext.c (DCGETTEXT): Likewise.
3871 * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
3872 * posix/regex_internal.h (gettext): Likewise.
3873 * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
3874 Remove declaration.
3875 * include/argz.h (__argz_count_internal)
3876 (__argz_stringify_internal): Remove declaration.
3877 (__argz_count, __argz_stringify): Declare hidden proto.
3878 * intl/dcgettext.c: Remove use of INTDEF.
3879 * string/argz-count.c: Replace INTDEF with libc_hidden_def.
3880 * string/argz-stringify.c: Likewise.
3881 * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3882 (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3883 Declare hidden proto.
3884 * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3885 (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3886 Declare hidden proto.
3887 * include/stdio.h (__asprintf_internal): Don't declare.
3888 (__asprintf): Don't define as macro. Declare hidden proto.
3889 * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
3890 (__fsetlocking): Declare hidden proto.
3891 * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
3892 (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
3893 hidden proto.
3894 (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
3895 (_IO_setlinebuf): Remove use of INTUSE.
3896 (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
3897 (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
3898 (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
3899 Remove declaration.
3900 * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
3901 (_IO_do_flush): Remove use of INTUSE.
3902 (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
3903 (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
3904 (_IO_adjust_column, _IO_least_wmarker)
3905 (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
3906 (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
3907 (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
3908 (_IO_default_doallocate, _IO_wdefault_doallocate)
3909 (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
3910 (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
3911 (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
3912 (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
3913 (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
3914 (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
3915 (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
3916 (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
3917 (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
3918 (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
3919 (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
3920 (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
3921 (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
3922 proto.
3923 (_IO_flush_all_internal, _IO_adjust_column_internal)
3924 (_IO_default_uflow_internal, _IO_default_finish_internal)
3925 (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
3926 (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
3927 (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
3928 (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
3929 (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
3930 (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
3931 (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
3932 (_IO_file_xsgetn_internal, _IO_file_stat_internal)
3933 (_IO_file_close_internal, _IO_file_close_it_internal)
3934 (_IO_file_underflow_internal, _IO_file_overflow_internal)
3935 (_IO_file_init_internal, _IO_file_attach_internal)
3936 (_IO_file_fopen_internal, _IO_file_read_internal)
3937 (_IO_file_sync_internal, _IO_file_seek_internal)
3938 (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
3939 (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
3940 (_IO_str_underflow_internal, _IO_str_overflow_internal)
3941 (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
3942 (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
3943 (_IO_list_all_internal, _IO_link_in_internal)
3944 (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
3945 (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
3946 (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
3947 (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
3948 (_IO_do_write_internal, _IO_padn_internal)
3949 (_IO_getline_info_internal, _IO_getline_internal)
3950 (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
3951 (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
3952 (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
3953 (_IO_vfscanf_internal, _IO_vfprintf_internal)
3954 (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
3955 (_IO_init_internal, _IO_un_link_internal): Don't declare.
3956 * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
3957 with libc_hidden_ver, remove use of INTUSE.
3958 * libio/genops.c: Likewise.
3959 * libio/freopen.c: Likewise.
3960 * libio/freopen64.c: Likewise.
3961 * libio/iofclose.c: Likewise.
3962 * libio/iofdopen.c: Likewise.
3963 * libio/iofflush.c: Likewise.
3964 * libio/iofflush_u.c: Likewise.
3965 * libio/iofgets.c: Likewise.
3966 * libio/iofgets_u.c: Likewise.
3967 * libio/iofopen.c: Likewise.
3968 * libio/iofopncook.c: Likewise.
3969 * libio/iofread.c: Likewise.
3970 * libio/iofread_u.c: Likewise.
3971 * libio/ioftell.c: Likewise.
3972 * libio/iofwrite.c: Likewise.
3973 * libio/iogetline.c: Likewise.
3974 * libio/iogets.c: Likewise.
3975 * libio/iogetwline.c: Likewise.
3976 * libio/iopadn.c: Likewise.
3977 * libio/iopopen.c: Likewise.
3978 * libio/ioseekoff.c: Likewise.
3979 * libio/ioseekpos.c: Likewise.
3980 * libio/iosetbuffer.c: Likewise.
3981 * libio/iosetvbuf.c: Likewise.
3982 * libio/ioungetc.c: Likewise.
3983 * libio/ioungetwc.c: Likewise.
3984 * libio/iovdprintf.c: Likewise.
3985 * libio/iovsprintf.c: Likewise.
3986 * libio/iovsscanf.c: Likewise.
3987 * libio/memstream.c: Likewise.
3988 * libio/obprintf.c: Likewise.
3989 * libio/oldfileops.c: Likewise.
3990 * libio/oldiofclose.c: Likewise.
3991 * libio/oldiofdopen.c: Likewise.
3992 * libio/oldiofopen.c: Likewise.
3993 * libio/oldiopopen.c: Likewise.
3994 * libio/oldstdfiles.c: Likewise.
3995 * libio/putc.c: Likewise.
3996 * libio/setbuf.c: Likewise.
3997 * libio/setlinebuf.c: Likewise.
3998 * libio/stdfiles.c: Likewise.
3999 * libio/strops.c: Likewise.
4000 * libio/vasprintf.c: Likewise.
4001 * libio/vscanf.c: Likewise.
4002 * libio/vsnprintf.c: Likewise.
4003 * libio/vswprintf.c: Likewise.
4004 * libio/wfiledoalloc.c: Likewise.
4005 * libio/wfileops.c: Likewise.
4006 * libio/wgenops.c: Likewise.
4007 * libio/wmemstream.c: Likewise.
4008 * libio/wstrops.c: Likewise.
4009 * libio/__fpurge.c: Likewise.
4010 * libio/__fsetlocking.c: Likewise.
4011 * assert/assert.c: Likewise.
4012 * debug/fgets_chk.c: Likewise.
4013 * debug/fgets_u_chk.c: Likewise.
4014 * debug/fread_chk.c: Likewise.
4015 * debug/fread_u_chk.c: Likewise.
4016 * debug/gets_chk.c: Likewise.
4017 * debug/obprintf_chk.c: Likewise.
4018 * debug/vasprintf_chk.c: Likewise.
4019 * debug/vdprintf_chk.c: Likewise.
4020 * debug/vsnprintf_chk.c: Likewise.
4021 * debug/vsprintf_chk.c: Likewise.
4022 * malloc/mtrace.c: Likewise.
4023 * misc/error.c: Likewise.
4024 * misc/syslog.c: Likewise.
4025 * stdio-common/asprintf.c: Likewise.
4026 * stdio-common/fxprintf.c: Likewise.
4027 * stdio-common/getw.c: Likewise.
4028 * stdio-common/isoc99_fscanf.c: Likewise.
4029 * stdio-common/isoc99_scanf.c: Likewise.
4030 * stdio-common/isoc99_vfscanf.c: Likewise.
4031 * stdio-common/isoc99_vscanf.c: Likewise.
4032 * stdio-common/isoc99_vsscanf.c: Likewise.
4033 * stdio-common/printf-prs.c: Likewise.
4034 * stdio-common/printf_fp.c: Likewise.
4035 * stdio-common/printf_fphex.c: Likewise.
4036 * stdio-common/printf_size.c: Likewise.
4037 * stdio-common/putw.c: Likewise.
4038 * stdio-common/scanf.c: Likewise.
4039 * stdio-common/sprintf.c: Likewise.
4040 * stdio-common/tmpfile.c: Likewise.
4041 * stdio-common/vfprintf.c: Likewise.
4042 * stdio-common/vfscanf.c: Likewise.
4043 * stdlib/strfmon_l.c: Likewise.
4044 * sunrpc/openchild.c: Likewise.
4045 * sunrpc/xdr_stdio.c: Likewise.
4046 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
4047 * sysdeps/mach/hurd/tmpfile.c: Likewise.
4048
40492012-05-24 Roland McGrath <roland@hack.frob.com>
4050
4051 * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4052
4053 * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
4054 in the third column, to generate for the shared library an IFUNC
4055 that uses _dl_vdso_vsym.
4056 * Makerules (COMPILE.c, compile-stdin.c): New variables.
4057 * Makeconfig (object-suffixes-noshared): New variable.
4058
4059 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
4060 (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
4061 (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
4062 (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
4063
4064 [BZ #14132]
4065 * include/sys/time.h (__gettimeofday): Remove macro.
4066 (__gettimeofday, gettimeofday): Add libc_hidden_proto.
4067 * time/gettimeofday.c (__gettimeofday): Remove #undef.
4068 Remove INTDEF.
4069 (__gettimeofday): Add libc_hidden_def.
4070 (gettimeofday): Add libc_hidden_weak.
4071 * sysdeps/mach/gettimeofday.c: Likewise.
4072 * sysdeps/posix/gettimeofday.c: Likewise.
4073 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
4074 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
4075 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
4076 (__gettimeofday_internal): Remove strong_alias.
4077 (__gettimeofday): Add libc_hidden_def.
4078 (gettimeofday): Add libc_hidden_weak.
4079 * sysdeps/unix/syscalls.list (gettimeofday):
4080 Remove __gettimeofday_internal alias.
4081
40822012-05-24 Daniel Jacobowitz <drow@false.org>
4083 H.J. Lu <hongjiu.lu@intel.com>
4084
4085 [BZ #12495]
4086 * malloc/malloc.c (SMALLBIN_CORRECTION): New.
4087 (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
4088 (largebin_index_32_big): New.
4089 (largebin_index): Use it for 16-byte alignment.
4090 (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ. Don't update
4091 correction with front_misalign.
4092
40932012-05-24 H.J. Lu <hongjiu.lu@intel.com>
4094
4095 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
4096 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4097 Likewise.
4098 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4099 Likewise.
4100 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4101 Likewise.
4102 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4103 Likewise.
4104 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4105 Likewise.
4106 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4107 Likewise.
4108 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4109 Likewise.
4110 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
4111 Likewise.
4112 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
4113 Likewise.
4114 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
4115 Likewise.
4116 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4117 Likewise.
4118 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
4119 Likewise.
4120
4121 * scripts/data/c++-types-x32-linux-gnu.data: New file.
4122 * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
4123
41242012-05-24 Joseph Myers <joseph@codesourcery.com>
4125
4126 [BZ #10846]
4127 [BZ #14036]
4128 * math/libm-test.inc (exp_test): Add test from bug 14036.
4129 (pow_test): Add test from bug 10846.
4130
4131 * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
4132 and other flags.
4133 (special_function): Do not include flags in test name.
4134 (parse_args): Likewise.
4135 * sysdeps/i386/fpu/libm-test-ulps: Update.
4136 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4137 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4138 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4139 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4140
4141 * math/gen-libm-test.pl (%beautify): Add entries for underflow
4142 exceptions.
4143 * math/libm-test.inc ("Philosophy"): Update comment about
4144 exception testing.
4145 (UNDERFLOW_EXCEPTION): New macro.
4146 (UNDERFLOW_EXCEPTION_OK): Likewise.
4147 (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4148 (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4149 (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4150 (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4151 (INVALID_EXCEPTION_OK): Update value.
4152 (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4153 (OVERFLOW_EXCEPTION_OK): Likewise.
4154 (IGNORE_ZERO_INF_SIGN): Likewise.
4155 (test_exceptions): Handle underflow exceptions.
4156 (acos_test): Update for underflow exception expectations.
4157 (cexp_test): Likewise.
4158 (clog_test): Likewise.
4159 (clog10_test): Likewise.
4160 (csqrt_test): Likewise.
4161 (ctan_test): Likewise.
4162 (ctanh_test): Likewise.
4163 (exp_test): Likewise.
4164 (exp10_test): Likewise.
4165 (exp2_test): Likewise.
4166 (expm1_test): Likewise.
4167 (fma_test): Likewise.
4168 (j0_test): Likewise.
4169 (jn_test): Likewise.
4170 (nexttoward_test): Likewise.
4171 (pow_test): Likewise.
4172 (scalbn_test): Likewise.
4173 (scalbln_test): Likewise.
4174 (tan_test): Likewise.
4175 (y1_test): Likewise.
4176 * sysdeps/i386/fpu/libm-test-ulps: Update.
4177 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4178
41792012-05-23 David S. Miller <davem@davemloft.net>
4180
4181 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4182 (__libc_sigaction): Remove unused local variables.
4183
41842012-05-23 H.J. Lu <hongjiu.lu@intel.com>
4185
4186 * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4187
41882012-05-23 Paul Eggert <eggert@cs.ucla.edu>
4189
4190 mktime: avoid signed integer overflow
4191 * time/mktime.c (__mktime_internal): Do not mishandle the case
4192 where diff == INT_MIN.
4193
4194 mktime: simplify computation of average
4195 * time/mktime.c (ranged_convert): Use new time_t_avg function
4196 instead of rolling our own (probably-slower) code.
4197
4198 mktime: do not assume signed right shift propagates sign bit
4199 * time/mktime.c (isdst_differ): New static function.
4200 (__mktime_internal): No need to normalize tm_isdst now.
4201 (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4202 tm_isdst values.
4203
4204 mktime: merge another wrapv change from gnulib
4205 * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4206 from some compilers.
4207
4208 mktime: remove incorrect attempt at unusual arithmetics
4209 * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4210 The code didn't really work on such machines anyway.
4211 (TYPE_MINIMUM): Assume two's complement.
4212 (twos_complement_arithmetic): Verify that long_int and time_t
4213 are two's complement (or unsigned, in the latter case).
4214
4215 mktime: check signed shifts on long_int and time_t, too
4216 * time/mktime.c (SHR): Check that shifts work as desired
4217 on the types long_int and time_t too, as SHR is used on
4218 such types.
4219
4220 mktime: do not assume 'long' is wide enough
4221 * time/mktime.c (verify): Move decl up.
4222 (long_int): New type.
4223 (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4224 to remove assumption in the code that 'long' is wide enough to
4225 store year values. This assumption is not true on x32 and on
4226 some non-glibc platforms.
4227
4228 mktime: merge wrapv change from gnulib
4229 * time/mktime.c (WRAPV): New macro.
4230 (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4231 (guess_time_tm, __mktime_internal): Do not assume that signed
4232 integer overflow wraps around; modern compilers generate code
4233 where this assumption is no longer valid.
4234
42352012-05-23 H.J. Lu <hongjiu.lu@intel.com>
4236
4237 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4238 Replace "jmp L(pseudo_end)" with "ret".
4239 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4240 Likewise.
4241
42422012-05-23 Andreas Jaeger <aj@suse.de>
4243
4244 * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4245 * sysdeps/unix/sysv/linux/poll.c: Remove file.
4246
42472012-05-23 Andreas Jaeger <aj@suse.de>
4248 Maximilian Attems <max@stro.at>
4249
4250 * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4251 New macros.
4252
42532012-05-23 H.J. Lu <hongjiu.lu@intel.com>
4254
4255 * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4256 code so that pseudo_end is just ret and the stack pointer is
4257 correct also for static library in error case.
4258
42592012-05-23 Joseph Myers <joseph@codesourcery.com>
4260
4261 * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4262 move to syscalls.list.
4263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4264 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4265 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4266 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4267
4268 * manual/install.texi (Running make install): Do not mention Linux
4269 kernel version for which pt_chown is not needed.
4270 (Linux): Do not mention problems with nscd with 2.0 kernels.
4271 * INSTALL: Regenerated.
4272
42732012-05-23 Andreas Jaeger <aj@suse.de>
4274
4275 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4276 (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4277 macro.
4278 * sysdeps/unix/sysv/linux/s390/bits/mman.h
4279 (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4280 * sysdeps/unix/sysv/linux/sh/bits/mman.h
4281 (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4282 * sysdeps/unix/sysv/linux/i386/bits/mman.h
4283 (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4284 * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4285 (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4286 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4287 (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4288 * sysdeps/unix/sysv/linux/bits/in.h
4289 (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4290
42912012-05-22 Roland McGrath <roland@hack.frob.com>
4292
4293 * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4294 (PREPARE_VERSION): Just use assert instead, it will be elided
4295 under [NDEBUG] anyway.
4296
42972012-05-22 H.J. Lu <hongjiu.lu@intel.com>
4298
4299 * sysdeps/unix/sysv/linux/Makefile: Include
4300 $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4301 (sysdep_routines): Remove sysctl.
4302 * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4303 * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4304 * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4305 * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4306 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4307
43082012-05-22 Andreas Jaeger <aj@suse.de>
4309
4310 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4311 that pseudo_end is just ret and the stack pointer is correct also
4312 for static library in error case.
4313
43142012-05-22 Paul Pluzhnikov <ppluzhnikov@google.com>
4315
4316 [BZ #14122]
4317 * nss/nsswitch.c (defconfig_entries): New variable.
4318 (__nss_database_lookup): Don't leak defconfig entries.
4319 (nss_parse_service_list): Don't leak on error paths.
4320 (free_database_entries): New function.
4321 (free_defconfig): New function.
4322 (free_mem): Move common code to free_database_entries.
4323
43242012-05-22 H.J. Lu <hongjiu.lu@intel.com>
4325
4326 * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4327 Add arch_prctl.
4328 * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4329
4330 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4331 (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4332 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4333 New macro.
4334 (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4335 (INTERNAL_SYSCALL_TYPES): Likewise.
4336 (LOAD_ARGS_TYPES_[1-6]): Likewise.
4337 (LOAD_REGS_TYPES_[1-6]): Likewise.
4338 (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4339 (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4340
43412012-05-22 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
4342
4343 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4344 copysignl for GLIBC_2_0.
4345 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4346 finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4347 * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4348 logbl for GLIBC_2_0.
4349 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4350 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4351
43522012-05-22 H.J. Lu <hongjiu.lu@intel.com>
4353
4354 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4355 <bits/wordsize.h>. Check __x86_64__ instead of __WORDSIZE.
4356
4357 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4358 Use "neg %eax".
4359
4360 * time/mktime.c: Update copyright years.
4361
43622012-05-22 Paul Eggert <eggert@cs.ucla.edu>
4363
4364 mktime: merge comment-quoting-style change from gnulib
4365 * time/mktime.c: Quote 'like this' in comments.
4366 The GNU coding standards suggest that we no longer quote `like this',
4367 as "`" and "'" are typically rendered asymmetrically nowadays.
4368 The typical gnulib style is to quote 'like this' when quoting
4369 code, and "like this" when quoting English.
4370
4371 * time/mktime.c (compile-command): Add "-I.".
4372
4373 mktime: merge mktime-internal.h change from gnulib
4374 * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4375
4376 mktime: merge time_r change from gnulib
4377 * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4378
4379 mktime: merge DEBUG change from gnulib
4380 * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4381 case system <time.h> has a #define.
4382
4383 mktime: merge <sys/types.h> change from gnulib
4384 * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4385 since <time.t> is now guaranteed to define time_t.
4386
4387 mktime: merge HAVE_CONFIG_H change from gnulib
4388 * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4389
43902012-05-22 H.J. Lu <hongjiu.lu@intel.com>
4391
4392 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4393 Use "neg %eax".
4394
4395 * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4396 __rlim_t cast.
4397 (struct rusage): Use anonymous union to pad each field to
4398 __syscall_slong_t.
4399
44002012-05-21 David S. Miller <davem@davemloft.net>
4401
4402 * Makefules (o-iterator): Remove .s cases.
4403 (compile-command.s): Delete.
4404 (COMPILE.s): Delete.
4405 * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4406
44072012-05-21 Joseph Myers <joseph@codesourcery.com>
4408
4409 * configure.in (libc_cv_predef_stack_protector): Only consider
4410 "foobar" and "__stack_chk_fail" lines in libc_undefs.
4411 * configure: Regenerated.
4412
44132012-05-21 H.J. Lu <hongjiu.lu@intel.com>
4414
4415 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4416 New macro. Use R*LP on int and pointer.
4417 (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4418 * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4419 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4420 * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4421
4422 * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4423 [__WORDSIZE_TIME64_COMPAT32] instead of
4424 [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4425 (struct utmp): Likewise.
4426 * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4427 * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4428 Renamed to ...
4429 (__WORDSIZE_TIME64_COMPAT32): This.
4430 * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4431 * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4432 * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4433 * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4434 * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4435 (__WORDSIZE_TIME64_COMPAT32): New macro.
4436
44372012-05-21 Andreas Jaeger <aj@suse.de>
4438
4439 * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4440 only if [SHARED]. Add prototype for __wcschr_ia32.
4441
44422012-05-21 Roland McGrath <roland@hack.frob.com>
4443
4444 * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4445 of %rbp unmolested in the jmp_buf while mangling the low bits.
4446 * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4447 unmolested high bits of %rbp while demangling the low bits.
4448 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4449
44502012-05-21 Andreas Jaeger <aj@suse.de>
4451
4452 * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4453 * sunrpc/svc_simple.c: Use it for registerrpc.
4454 * sunrpc/xcrypt.c: Use it for passwd2des.
4455
4456 * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4457
44582012-05-21 H.J. Lu <hongjiu.lu@intel.com>
4459
4460 * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4461 Don't define if [__SYSCALL_WORDSIZE != 32].
4462 * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4463 New macro.
4464
44652012-05-21 Bruno Haible <bruno@clisp.org>
4466 Andreas Jaeger <aj@suse.de>
4467
4468 [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4469 * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4470 inptr and inend for must_buffer_ch.
4471 * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4472 * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4473 * stdio-common/Makefile (tests): Remove bug15.
4474 (bug15-ENV): Remove macro.
4475 * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4476 anymore.
4477
44782012-05-19 Andreas Jaeger <aj@suse.de>
4479 Roland McGrath <roland@hack.frob.com>
4480
4481 * manual/contrib.texi: Completely rewritten. It contains now an
4482 alphabetical list of contributors and their contributions.
4483
44842012-05-21 Richard Henderson <rth@twiddle.net>
4485
4486 * misc/getauxval.c (__getauxval): Use unsigned long int.
4487 * misc/sys/auxv.h: Include <sys/cdefs.h>.
4488 (getauxval): Use unsigned long int.
4489
44902012-05-21 H.J. Lu <hongjiu.lu@intel.com>
4491
4492 * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4493
44942012-05-21 Roland McGrath <roland@hack.frob.com>
4495
4496 * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
4497 (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
4498 __alignof__ (long double).
4499
45002012-05-21 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
4501
4502 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4503
45042012-05-20 Richard Henderson <rth@twiddle.net>
4505
4506 * misc/getauxval.c: New file.
4507 * misc/sys/auxv.h: New file.
4508 * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
4509 (routines): Add getauxval.
4510 * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
4511 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
4512 * elf/dl-sysdep.c (_dl_auxv): Remove.
4513 (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
4514 * elf/dl-support.c (_dl_auxv): New variable.
4515 (_dl_aux_init): Initialize it.
4516 * manual/startup.texi (Auxiliary Vector): New node.
4517 * sysdeps/generic/bits/hwcap.h: New file.
4518 * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
4519 * sysdeps/powerpc/sysdep.h: ... here. Include it.
4520 * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
4521 * sysdeps/sparc/sysdep.h: ... here. Include it.
4522 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
4523 * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
4524 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4525 Update.
4526 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
4527 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
4528 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
4529 * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
4530 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4531 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4532 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
4533 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
4534
45352012-05-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
4536
4537 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4538
45392012-05-19 David S. Miller <davem@davemloft.net>
4540
4541 * sysdeps/sparc/fpu/libm-test-ulps: Update.
4542
45432012-05-19 Joseph Myers <joseph@codesourcery.com>
4544
4545 [BZ #14123]
4546 * math/s_ccosh.c: Include <float.h>
4547 (__ccosh): Avoid internal overflow calculating sinh and cosh
4548 values before multiplying by sin and cos values.
4549 * math/s_ccoshf.c: Likewise.
4550 * math/s_ccoshl.c: Likewise.
4551 * math/s_csin.c: Likewise.
4552 * math/s_csinf.c: Likewise.
4553 * math/s_csinl.c: Likewise.
4554 * math/s_csinh.c: Likewise.
4555 * math/s_csinhf.c: Likewise.
4556 * math/s_csinhl.c: Likewise.
4557 * math/libm-test.inc (ccos_test): Add more tests.
4558 (ccosh_test): Likewise.
4559 (csin_test): Likewise.
4560 (csinh_test): Likewise.
4561 * sysdeps/i386/fpu/libm-test-ulps: Update.
4562 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4563
45642012-05-19 H.J. Lu <hongjiu.lu@intel.com>
4565
4566 * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
4567 * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
4568
4569 * sysdeps/x86_64/x32/_itoa.h: Add comment.
4570
45712012-05-19 Joseph Myers <joseph@codesourcery.com>
4572
4573 * sysdeps/powerpc/soft-fp/Makefile: Remove file.
4574 * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
4575 * sysdeps/powerpc/soft-fp/Versions: Likewise.
4576 * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
4577 * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
4578 * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
4579 * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
4580 * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
4581 * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
4582 * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
4583 * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
4584 * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
4585 * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
4586 * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
4587 * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
4588 * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
4589 * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
4590 * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
4591 * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
4592 * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
4593 * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
4594 * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
4595 * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
4596 * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
4597 * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
4598 * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
4599 * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
4600 * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
4601 * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
4602 * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
4603 * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
4604
46052012-05-18 Andreas Jaeger <aj@suse.de>
4606
4607 * csu/.gitignore: Delete.
4608
46092012-05-18 H.J. Lu <hongjiu.lu@intel.com>
4610
4611 * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
4612 (timex): Use __syscall_slong_t.
4613
46142012-05-18 Andreas Jaeger <aj@suse.de>
4615 Carlos O'Donell <carlos_odonell@mentor.com>
4616
4617 * manual/install.texi (Configuring and compiling): Update
4618 description about files modified in the source directory.
4619 * INSTALL: Regenerated.
4620
46212012-05-18 H.J. Lu <hongjiu.lu@intel.com>
4622
4623 * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
4624 value. Use "or" to set return value to -1.
4625 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
4626 negate return value.
4627
46282012-05-18 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
4629
4630 * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
4631 CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
4632 failure if the compiler has Graphite support disabled.
4633 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
4634 Likewise.
4635 * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
4636 CFLAGS-memmove.c): Likewise.
4637 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
4638 Likewise.
4639
46402012-05-18 H.J. Lu <hongjiu.lu@intel.com>
4641
4642 * sysdeps/x86_64/x32/_itoa.h: New file.
4643
4644 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
4645 getdents system call only if kernel and user dirents have the
4646 same d_ino and d_off.
4647
4648 * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4649 LLONG_MAX != LONG_MAX.
4650 (_itoa_word): Use _ITOA_WORD_TYPE on value.
4651 (_fitoa_word): Likewise.
4652
4653 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
4654 years.
4655 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
4656 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
4657 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
4658
4659 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
4660 include <bits/wordsize.h>. Check __x86_64__ instead of
4661 __WORDSIZE.
4662 (sigcontext): Use "__uint64_t" instead of "unsigned long int"
4663 if __x86_64__ is defined. Use anonymous union on fpstate.
4664
4665 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
4666 anonymous union.
4667
46682012-05-18 Andreas Schwab <schwab@linux-m68k.org>
4669
4670 * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
4671 INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
4672 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
4673 Refer to _rtld_local_ro instead of _rtld_global_ro.
4674 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
4675 Likewise.
4676 * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
4677 Likewise.
4678 * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
4679 Likewise.
4680 * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
4681 * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
4682 of _rtld_global, and rtld_progname instead of _dl_argv[0].
4683
4684 * sysdeps/powerpc/powerpc32/dl-machine.c
4685 (__elf_machine_runtime_setup) [PROF]: Don't reference
4686 _dl_prof_resolve.
4687
46882012-05-18 Andreas Jaeger <aj@suse.de>
4689
4690 * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
4691 function only available for GCCs before 3.4 since GCC 3.4
4692 introduced a builtin.
4693 (lrint): Likewise.
4694 (llrintf): Likewise.
4695 (llrint): Likewise.
4696 (fmaxf): Likewise.
4697 (fmax): Likewise.
4698 (fminf): Likewise.
4699 (fmin): Likewise.
4700 (rint): Likewise.
4701 (rintf): Likewise.
4702 (nearbyint): Likewise.
4703 (nearbyintf): Likewise.
4704 (ceil): Likewise.
4705 (ceilf): Likewise.
4706 (floor): Likewise.
4707 (floorf): Likewise.
4708
47092012-05-17 H.J. Lu <hongjiu.lu@intel.com>
4710
4711 * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
4712 on both fields and cast pointer to __syscall_ulong_t.
4713
4714 * bits/types.h (__fsword_t): New type.
4715 * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
4716 sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
4717 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4718 (__FSWORD_T_TYPE): Likewise.
4719 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4720 (__FSWORD_T_TYPE): Likewise.
4721 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4722 (__FSWORD_T_TYPE): Likewise.
4723 * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
4724 (__FSWORD_T_TYPE): Likewise.
4725 * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
4726 __SWORD_TYPE with __fsword_t.
4727 (statfs64): Likewise.
4728
47292012-05-17 David S. Miller <davem@davemloft.net>
4730
4731 * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
4732
47332012-05-17 Andreas Jaeger <aj@suse.de>
4734
4735 * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
4736 warning.
4737
47382012-05-17 H.J. Lu <hongjiu.lu@intel.com>
4739
4740 * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
4741
47422012-05-17 Andreas Jaeger <aj@suse.de>
4743
4744 * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
4745 when it is used.
4746
47472012-05-17 Chris Metcalf <cmetcalf@tilera.com>
4748
4749 * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
4750
47512012-05-17 H.J. Lu <hongjiu.lu@intel.com>
4752
4753 * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
4754 * sysdeps/x86_64/tst-mallocalign1.c: New file.
4755
47562012-05-17 Andreas Jaeger <aj@suse.de>
4757 Carlos O'Donell <carlos_odonell@mentor.com>
4758
4759 [BZ #14059]
4760 * sysdeps/x86_64/multiarch/init-arch.h
4761 (bit_YMM_Usable): Rename to...
4762 (bit_AVX_Usable): ... this.
4763 (bit_FMA4_Usable): New macro.
4764 (bit_XMM_state): New macro.
4765 (bit_YMM_state): New macro.
4766 [__ASSEMBLER__] (index_YMM_Usable): Rename to...
4767 [__ASSEMBLER__] (index_AVX_Usable): ... this.
4768 [__ASSEMBLER__] (index_FMA4_Usable): New macro.
4769 (CPUID_OSXSAVE): New macro.
4770 (CPUID_AVX): New macro.
4771 (CPUID_FMA4): New macro.
4772 (index_YMM_Usable): Rename to...
4773 (index_AVX_Usable): ... this.
4774 (HAS_AVX): Use HAS_ARCH_FEATURE.
4775 (HAS_FMA4): Likewise.
4776 (HAS_YMM_USABLE): Remove.
4777 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4778 Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
4779 are present.
4780 * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
4781 * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
4782 * sysdeps/x86_64/multiarch/Makefile: Likewise.
4783 * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
4784 * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
4785
47862012-05-17 Chris Metcalf <cmetcalf@tilera.com>
4787
4788 * math/libm-test.c: Support platforms without multiple rounding modes.
4789 * math/bug-nextafter.c: Support platforms without FP exceptions.
4790 * math/bug-nexttoward.c: Likewise.
4791 * math/test-fenv.c: Likewise.
4792 * math/test-misc.c: Likewise.
4793 * stdlib/bug-getcontext.c: Likewise.
4794
47952012-05-17 Andreas Jaeger <aj@suse.de>
4796
4797 * manual/examples/search.c (critter_cmp): Change signature to
4798 avoid warnings.
4799 * manual/string.texi (Collation Functions): Likewise.
4800
48012012-05-16 H.J. Lu <hongjiu.lu@intel.com>
4802
4803 * bits/types.h: Fold copyright years.
4804 * bits/typesizes.h: Likewise.
4805 * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
4806 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
4807 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
4808 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
4809 * time/time.h: Likewise.
4810
48112012-05-16 Paul Pluzhnikov <ppluzhnikov@google.com>
4812
4813 [BZ #208]
4814 * malloc.c (int_mallinfo): Add parameter to accumulate statistics
4815 in instead of returning them. Return void.
4816 (__libc_mallinfo): Accumulate over all arenas.
4817 (__malloc_stats): Adjust for change in int_mallinfo interface.
4818
48192012-05-16 Roland McGrath <roland@hack.frob.com>
4820
4821 [BZ #10375]
4822 * configure.in (NM): Add AC_CHECK_TOOL for it.
4823 (libc_extra_cflags): New substituted variable.
4824 Check for -fstack-protector being used implicitly.
4825 * configure: Regenerated.
4826 * config.make.in (config-extra-cflags): New variable,
4827 gets @libc_extra_cflags@.
4828 * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
4829
4830 [BZ #10375]
4831 * configure.in: Check for _FORTIFY_SOURCE being predefined.
4832 (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
4833 * configure: Regenerated.
4834 * config.make.in (CPPUNDEFS): New substituted variable.
4835 * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
4836 * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
4837 * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
4838
48392012-05-16 H.J. Lu <hongjiu.lu@intel.com>
4840
4841 * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
4842 (mq_attr): Use __syscall_slong_t.
4843
48442012-05-16 H.J. Lu <hongjiu.lu@intel.com>
4845
4846 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
4847 Check __x86_64__ instead of __WORDSIZE.
4848 (_STAT_VER_LINUX): Likewise.
4849 (stat): Check __x86_64__ instead of __WORDSIZE. Use
4850 __syscall_ulong_t and __syscall_slong_t.
4851 (stat64): Likewise.
4852
48532012-05-16 H.J. Lu <hongjiu.lu@intel.com>
4854
4855 * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
4856
48572012-05-16 H.J. Lu <hongjiu.lu@intel.com>
4858
4859 * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
4860
48612012-05-16 H.J. Lu <hongjiu.lu@intel.com>
4862
4863 * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
4864 __syscall_ulong_t.
4865
4866 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
4867 include <bits/wordsize.h>. Check __x86_64__ instead of
4868 __WORDSIZE.
4869 (greg_t): Use "__extension__ long long int" if __x86_64__ is
4870 defined.
4871 (mcontext_t): Replace "unsigned long" with "unsigned long long".
4872
4873 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
4874 include <bits/wordsize.h>. Check __x86_64__ instead of
4875 __WORDSIZE.
4876 (user_regs_struct): Use "__extension__ unsigned long long"
4877 instead of "unsigned long" if __x86_64__ is defined.
4878 (user): Likewise. Pad after pointer field if __ILP32__ is
4879 defined.
4880
48812012-05-16 Joseph Myers <joseph@codesourcery.com>
4882
4883 * configure.in (makeinfo): Require version 4.5 or later. Allow
4884 versions 5 to 9.
4885 * configure: Regenerated.
4886 * manual/install.texi (texinfo): Increase version requirement to
4887 4.5 or later.
4888 * INSTALL: Regenerated.
4889
4890 * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
4891
48922012-05-16 H.J. Lu <hongjiu.lu@intel.com>
4893
4894 * sysdeps/x86_64/x32/gmp-mparam.h: New file.
4895
4896 * sysdeps/x86_64/x32/ffs.c: New file.
4897
4898 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
4899 __syscall_ulong_t.
4900 (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
4901 defined. Use __syscall_ulong_t.
4902 (shminfo): Use __syscall_ulong_t.
4903 (shm_info): Likewise.
4904
4905 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
4906 __syscall_ulong_t.
4907
4908 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
4909 <bits/wordsize.h>.
4910 (msgqnum_t): Use __syscall_ulong_t.
4911 (msglen_t): Likewise.
4912 (msqid_ds): Check __x86_64__ instead of __WORDSIZE. Use
4913 __syscall_ulong_t.
4914
4915 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
4916 <bits/wordsize.h>. Check __x86_64__ instead of __WORDSIZE.
4917
4918 * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
4919
4920 * sysdeps/x86_64/x32/divdi3.c: New dummy file.
4921 * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
4922
4923 * sysvipc/sys/msg.h (msgbuf): Replace long int with
4924 __syscall_slong_t.
4925
4926 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
4927 include <bits/wordsize.h>. Check __x86_64__ instead of
4928 __WORDSIZE.
4929
4930 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
4931 "unsigned long long int" if __x86_64__ is defined.
4932 (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
4933
4934 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
4935 <bits/wordsize.h>. Check __x86_64__ instead of __WORDSIZE.
4936 (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
4937
4938 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
4939 <stdint.h>.
4940 (GET_PC): Cast to uintptr_t first.
4941 (GET_FRAME): Likewise.
4942 (GET_STACK): Likewise.
4943
4944 * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
4945 * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
4946 * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
4947 * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
4948 * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
4949 * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
4950 * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
4951 * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
4952 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
4953 * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
4954 * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
4955 * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
4956 * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4957 * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
4958 * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
4959 * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
4960 * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
4961 * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
4962 * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
4963 * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
4964 * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
4965 * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
4966 * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
4967 * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
4968 * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
4969 * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
4970 * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
4971 * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
4972 * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
4973
49742012-05-16 Andreas Schwab <schwab@linux-m68k.org>
4975
4976 * Makerules (+depfiles): Also collect depfiles from .oS in
4977 $(extra-objs).
4978 * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
4979 .oS, $(libnldbl-routines)).
4980
4981 * Makerules (native-compile-mkdep-flags): Define.
4982 * sunrpc/Makefile (extra-objs): Add $(addprefix
4983 cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
4984 ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
4985 of $(compile-mkdep-flags). Depend on $(before-compile) instead of
4986 calling $(make-target-directory).
4987
49882012-05-15 H.J. Lu <hongjiu.lu@intel.com>
4989
4990 * bits/types.h (__snseconds_t): Removed.
4991 * time/time.h (struct timespec): Replace __snseconds_t with
4992 __syscall_slong_t.
4993 * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
4994 * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
4995 Likewise.
4996 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4997 (__SNSECONDS_T_TYPE): Likewise.
4998 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4999 (__SNSECONDS_T_TYPE): Likewise.
5000 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5001 (__SNSECONDS_T_TYPE): Likewise.
5002
50032012-05-15 H.J. Lu <hongjiu.lu@intel.com>
5004
5005 * sysdeps/mach/hurd/bits/typesizes.h
5006 (__SYSCALL_SLONG_TYPE): New macro.
5007 (__SYSCALL_ULONG_TYPE): Likewise.
5008
50092012-05-15 H.J. Lu <hongjiu.lu@intel.com>
5010
5011 * bits/types.h (__syscall_slong_t): New type.
5012 (__syscall_ulong_t): Likewise.
5013
5014 * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5015 (__SYSCALL_ULONG_TYPE): Likewise.
5016 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5017 (__SYSCALL_SLONG_TYPE): Likewise.
5018 (__SYSCALL_ULONG_TYPE): Likewise.
5019 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5020 (__SYSCALL_SLONG_TYPE): Likewise.
5021 (__SYSCALL_ULONG_TYPE): Likewise.
5022 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5023 (__SYSCALL_SLONG_TYPE): Likewise.
5024 (__SYSCALL_ULONG_TYPE): Likewise.
5025
50262012-05-15 H.J. Lu <hongjiu.lu@intel.com>
5027
5028 * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5029 Add sigaltstack-offsets.sym.
5030 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5031 <sigaltstack-offsets.h>.
5032 (CALL_FAIL): Use RSP_LP to operate on stack. Use RDI_LP on
5033 longjmp_msg pointer.
5034 (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC. Use
5035 R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5036 signal stack.
5037 * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5038
50392012-05-15 Joseph Myers <joseph@codesourcery.com>
5040
5041 * elf/stackguard-macros.h: Remove file.
5042 * sysdeps/generic/stackguard-macros.h: New file.
5043 * sysdeps/i386/stackguard-macros.h: Likewise.
5044 * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5045 * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5046 * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5047 * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5048 * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5049 * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5050 * sysdeps/x86_64/stackguard-macros.h: Likewise.
5051 * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
5052 <elf/stackguard-macros.h>.
5053
5054 [BZ #14109]
5055 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
5056 __aligned__ in attribute.
5057 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
5058 (gregset_t): Likewise.
5059
50602012-05-15 H.J. Lu <hongjiu.lu@intel.com>
5061
5062 * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
5063 * sysdeps/x86_64/64/Implies-after: Here. New file.
5064 * sysdeps/x86_64/x32/Implies-after: New file.
5065
50662012-05-15 H.J. Lu <hongjiu.lu@intel.com>
5067
5068 * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
5069 and access return value for _dl_profile_fixup. Use R10_LP to
5070 load frame size.
5071
50722012-05-15 H.J. Lu <hongjiu.lu@intel.com>
5073
5074 * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
5075
50762012-05-15 H.J. Lu <hongjiu.lu@intel.com>
5077
5078 * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
5079 * sysdeps/x86_64/x32/sysdep.h: New file.
5080
50812012-05-15 H.J. Lu <hongjiu.lu@intel.com>
5082
5083 * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
5084 * sysdeps/x86_64/setjmp.S: Likewise.
5085
50862012-05-15 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
5087
5088 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
5089 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
5090 * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
5091 * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
5092 remove unused global constant.
5093
50942012-05-15 Chris Metcalf <cmetcalf@tilera.com>
5095
5096 * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
5097 include of <not-cancel.h>.
5098
50992012-05-15 Roland McGrath <roland@hack.frob.com>
5100
5101 * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5102
51032012-05-15 Jeff Law <law@redhat.com>
5104 Andreas Jaeger <aj@suse.de>
5105
5106 [BZ #13594]
5107 * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5108 out from...
5109 * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5110 * nscd/nscd-client.h: Add __nscd_acquire_maplock.
5111 * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
5112 code changing __hst_map_handle.map.
5113
51142012-05-15 Roland McGrath <roland@hack.frob.com>
5115
5116 * configure.in (sysnames): Look for Implies-before and Implies-after
5117 files.
5118 * configure: Regenerated.
5119
51202012-05-15 H.J. Lu <hongjiu.lu@intel.com>
5121
5122 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
5123 8-byte data alignment with LP_SIZE alignment.
5124
51252012-05-15 H.J. Lu <hongjiu.lu@intel.com>
5126
5127 * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
5128 into R10_LP.
5129
51302012-05-15 H.J. Lu <hongjiu.lu@intel.com>
5131
5132 * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
5133
51342012-05-15 H.J. Lu <hongjiu.lu@intel.com>
5135
5136 * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
5137 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
5138 * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
5139 Likewise.
5140 * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5141
51422012-05-15 H.J. Lu <hongjiu.lu@intel.com>
5143
5144 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
5145 (stackinfo_sub_sp): Likewise.
5146
51472012-05-15 H.J. Lu <hongjiu.lu@intel.com>
5148
5149 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
5150 RAX_LP.
5151
51522012-05-15 H.J. Lu <hongjiu.lu@intel.com>
5153
5154 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
5155 into R*_LP.
5156
51572012-05-15 H.J. Lu <hongjiu.lu@intel.com>
5158
5159 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
5160 sizes into R*_LP.
5161
51622012-05-15 H.J. Lu <hongjiu.lu@intel.com>
5163
5164 * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
5165
51662012-05-15 H.J. Lu <hongjiu.lu@intel.com>
5167
5168 * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
5169 into R11_LP and load __x86_64_shared_cache_size_half into
5170 R8_LP.
5171
51722012-05-15 H.J. Lu <hongjiu.lu@intel.com>
5173
5174 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5175 R8_LP.
5176
51772012-05-15 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
5178
5179 * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5180 logb for POWER7.
5181 * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5182 logbf for POWER7.
5183 * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5184 logbl for POWER7.
5185 * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5186 powerpc32/power7/fpu/s_logb.c via #include.
5187 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5188 powerpc32/power7/fpu/s_logbf.c via #include.
5189 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5190 powerpc32/power7/fpu/s_logbl.c via #include.
5191
51922012-05-15 Joseph Myers <joseph@codesourcery.com>
5193
5194 * README.libm: Remove file.
5195
51962012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5197
5198 * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5199 count for x32. Use R*_LP and omit operand-size suffix.
5200
52012012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5202
5203 * shlib-versions: Move x86_64-.*-linux.* entries to ...
5204 * sysdeps/x86_64/64/shlib-versions: Here. New file.
5205 * sysdeps/x86_64/x32/shlib-versions: New file.
5206
52072012-05-14 Roland McGrath <roland@hack.frob.com>
5208
5209 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5210 * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5211 Use _dl_fatal_printf instead.
5212
52132012-05-14 Joseph Myers <joseph@codesourcery.com>
5214
5215 * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5216 set if not set by the user. Do not allow for being unset.
5217 * sysdeps/unix/sysv/linux/configure: Regenerated.
5218
52192012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5220
5221 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5222 the `q' suffix from lea and replace .quad with ASM_ADDR.
5223
52242012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5225
5226 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5227 the `q' suffix from xor/rol instructions. Use $2*LP_SIZE+1
5228 instead of $17.
5229 (PTR_DEMANGLE): Likewise.
5230
52312012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5232
5233 * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5234 (LP_OP): Likewise.
5235 (ASM_ADDR): Likewise.
5236 (RAX_LP): Likewise.
5237 (RBP_LP): Likewise.
5238 (RBX_LP): Likewise.
5239 (RCX_LP): Likewise.
5240 (RDI_LP): Likewise.
5241 (RSI_LP): Likewise.
5242 (RSP_LP): Likewise.
5243 (R8_LP): Likewise.
5244 (R9_LP): Likewise.
5245 (R10_LP): Likewise.
5246 (R10_LP): Likewise.
5247 (R11_LP): Likewise.
5248 (R12_LP): Likewise.
5249 (R13_LP): Likewise.
5250 (R14_LP): Likewise.
5251 (R15_LP): Likewise.
5252
52532012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5254
5255 * sysdeps/x86_64/x32/dl-machine.h: New file.
5256
52572012-05-14 Andreas Jaeger <aj@suse.de>
5258
5259 * manual/Makefile (subdir): Remove export of subdir.
5260 (all): Remove target.
5261 (.PHONY): Remove all from list.
5262 (mkinstalldirs): Remove.
5263 (.PHONY): Remove installdirs from list.
5264 ($(inst_infodir)/libc.info): Use make-target-directory.
5265 (installdirs): Remove.
5266 (subdir_%): Remove.
5267 (glibc-targets): Remove.
5268 (lib): Remove.
5269 (stubs): Remove.
5270 ($(objpfx)stubs ../po/manual.pot): Remove.
5271 ($(objpfx)stamp%): Remove.
5272 (make-target-directory): Remove.
5273 (subdir_install): Remove.
5274 (routines): Remove.
5275 (aux): Remove.
5276 (sources): Remove.
5277 (objects): Remove.
5278 (headers): Remove.
5279
5280 [BZ #13750]
5281 * manual/.gitignore: Remove, it's not needed anymore.
5282 * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5283 all files in it.
5284 * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5285 directory.
5286 (texis): Renamed to $(objpfx)texis.
5287 (texis-path): New, contains path to generated files.
5288 (chapters.%): Use texis-path for complete path, add extra argument
5289 libc-texinfo.sh.
5290 (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5291 (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5292 (summary,texi, stamp-summary): Use complete path of
5293 files. Generate files in build dir.
5294 (dir-add.texi): Build in build dir.
5295 (libm-err.texi,stamp-libm-err): Likewise.
5296 (version.texi, stamp-version): Likewise.
5297 (.%c.texi): Likewise.
5298 (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5299 (mostlyclean): Remove target.
5300 (realclean): Remove target.
5301 (generated): Add new variable with contents from mostlyclean and
5302 realclean, remove entries duplicated in common-mostlyclean, add
5303 stamp-libm-err and stamp-version.
5304 (generated-dirs): Add libc directory.
5305 ($(inst_infodir)/libc.info): Install files from build dir.
5306
5307 * manual/install.texi (Configuring and compiling): Adjust since
5308 the info files are not part of the tar ball anymore.
5309
53102012-05-14 Andreas Jaeger <aj@suse.de>
5311
5312 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5313 variable.
5314
53152012-05-14 Joseph Myers <joseph@codesourcery.com>
5316
5317 [BZ #13717]
5318 * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5319 to 2.2.0 where earlier.
5320 * sysdeps/unix/sysv/linux/configure: Regenerated.
5321 * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5322 Remove conditional code.
5323 [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5324 * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5325 Remove conditional code.
5326 [!__NR_lchown]: Likewise.
5327 [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5328 [__NR_lchown]: Likewise.
5329 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5330 comment referencing __ASSUME_LCHOWN_SYSCALL.
5331 * sysdeps/unix/sysv/linux/i386/sigaction.c
5332 [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5333 [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5334 * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5335 Remove conditional code.
5336 [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5337 (__protocol_available): Remove #if 0 code.
5338 * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5339 conditional code.
5340 [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5341 * sysdeps/unix/sysv/linux/kernel-features.h
5342 (__ASSUME_GETCWD_SYSCALL): Don't define.
5343 (__ASSUME_REALTIME_SIGNALS): Likewise.
5344 (__ASSUME_PREAD_SYSCALL): Likewise.
5345 (__ASSUME_PWRITE_SYSCALL): Likewise.
5346 (__ASSUME_POLL_SYSCALL): Likewise.
5347 (__ASSUME_LCHOWN_SYSCALL): Likewise.
5348 (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5349 non-SPARC.
5350 (__ASSUME_SIOCGIFNAME): Don't define.
5351 (__ASSUME_MSG_NOSIGNAL): Likewise.
5352 (__ASSUME_SENDFILE): Define unconditionally.
5353 (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5354 * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5355 conditional code.
5356 [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5357 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5358 [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5359 (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5360 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5361 [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5362 (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5363 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5364 [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5365 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5366 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5367 [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5368 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5369 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5370 [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5371 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5372 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5373 [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5374 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5375 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5376 [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5377 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5378 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5379 [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5380 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5381 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5382 [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5383 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5384 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5385 [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5386 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5387 * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5388 Remove conditional code.
5389 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5390 * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5391 Remove conditional code.
5392 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5393 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5394 [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5395 * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5396 Remove conditional code.
5397 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5398 * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5399 Remove conditional code.
5400 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5401 * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5402 Remove conditional code.
5403 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5404 * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5405 Remove conditional code.
5406 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5407 * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5408 Remove conditional code.
5409 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5410 * sysdeps/unix/sysv/linux/sh/pwrite64.c
5411 [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5412 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5413 * sysdeps/unix/sysv/linux/sigaction.c
5414 [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5415 [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5416 * sysdeps/unix/sysv/linux/sigpending.c
5417 [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5418 [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5419 * sysdeps/unix/sysv/linux/sigprocmask.c
5420 [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5421 [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5422 * sysdeps/unix/sysv/linux/sigsuspend.c
5423 [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5424 [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5425 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5426 (__libc_missing_rt_sigs): Remove.
5427 (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5428 (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5429 * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5430 Remove conditional code.
5431 [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5432 * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5433 return 1.
5434 * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5435 [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5436 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5437 [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5438
54392012-05-14 Andreas Jaeger <aj@suse.de>
5440
5441 * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5442 it's not used in glibc.
5443 (__coshm1): Likewise.
5444 (__acosh1p): Likewise.
5445 (__sgn): Likewise.
5446
5447 * manual/string.texi (Copying and Concatenation): Add missing
5448 variable in concat example.
5449 Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5450
54512012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5452
5453 [BZ #14103]
5454 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5455 __builtin_clzl with __builtin_clzll.
5456
54572012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5458
5459 [BZ #14104]
5460 * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5461 libc_freeres_ptr.
5462
54632012-05-14 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
5464
5465 * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5466 * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5467 * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5468 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5469
54702012-05-14 Mike Frysinger <vapier@gentoo.org>
5471
5472 * NEWS: Update ia64 info.
5473
54742012-05-12 Andreas Schwab <schwab@linux-m68k.org>
5475
5476 * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5477 used as bcopy.
5478
54792012-05-12 Thomas Schwinge <thomas@codesourcery.com>
5480
5481 * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5482 * sysdeps/unix/syscalls.list (dup3): Likewise.
5483 * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5484 * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5485
54862012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5487
5488 * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5489 "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5490
54912012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5492
5493 * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5494 thread pointer.
5495 (TLS_IE): Use mov/add instead of movq/addq to load thread
5496 pointer.
5497 (TLS_GD_PREFIX): New.
5498 (TLS_GD): Use it.
5499
55002012-05-11 David S. Miller <davem@davemloft.net>
5501
5502 * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
5503 * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
5504 (_FPU_SETCW): Likewise.
5505
55062012-05-10 H.J. Lu <hongjiu.lu@intel.com>
5507
5508 * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
5509 is 32-byte aligned.
5510
55112012-05-11 Andreas Schwab <schwab@linux-m68k.org>
5512
5513 [BZ #11837]
5514 * iconvdata/gb18030.c: Update tables.
5515 (BODY for FROM_LOOP): Update. Handle two-byte encoded non-BMP
5516 characters specially.
5517 (BODY for TO_LOOP): Add encoding of missing ranges.
5518
55192012-05-11 Thomas Schwinge <thomas@codesourcery.com>
5520
5521 [BZ #13673]
5522 * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
5523 * sysdeps/mach/hurd/dup3.c: Likewise.
5524 * sysdeps/mach/hurd/readlinkat.c: Likewise.
5525 * sysdeps/powerpc/memmove.c:: Likewise.
5526
55272012-05-10 H.J. Lu <hongjiu.lu@intel.com>
5528
5529 * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
5530 R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
5531
55322012-05-10 H.J. Lu <hongjiu.lu@intel.com>
5533
5534 * elf/elf.h (R_X86_64_RELATIVE64): New.
5535 (R_X86_64_NUM): Updated.
5536 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5537 R_X86_64_RELATIVE64. Always use Elf64_Addr with R_X86_64_64.
5538 (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
5539 * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
5540 tst-quad1pie tst-quad2pie
5541 (modules-names): Add tst-quadmod1 tst-quadmod2.
5542 ($(objpfx)tst-quad1): New dependency.
5543 ($(objpfx)tst-quad2): Likewise.
5544 ($(objpfx)tst-quad1pie): Likewise.
5545 ($(objpfx)tst-quad2pie): Likewise.
5546 * sysdeps/x86_64/tst-quad1.c: New file.
5547 * sysdeps/x86_64/tst-quad1pie.c: New file.
5548 * sysdeps/x86_64/tst-quad2.c: Likewise.
5549 * sysdeps/x86_64/tst-quad2pie.c: Likewise.
5550 * sysdeps/x86_64/tst-quadmod1.S: Likewise.
5551 * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
5552 * sysdeps/x86_64/tst-quadmod2.S: Likewise.
5553 * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
5554
55552012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5556
5557 * io/fcntl.h (mode_t, off_t, pid_t): Define types.
5558 (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
5559 * streams/stropts.h (t_scalar_t): Define type.
5560
5561 * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
5562 (_PATH_PRESERVE): Set to "/var/lib".
5563 (_PATH_RWHODIR): Set to "/var/spool/rwho".
5564
5565 * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
5566 instead of int.
5567
5568 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
5569 if __dir_mkfile succeeded.
5570
5571 * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
5572 checking for _hurd_dtablesize. Unlock it right after having
5573 finished _hurd_dtable allocation.
5574
55752012-05-10 Thomas Schwinge <thomas@schwinge.name>
5576
5577 * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
5578 * sysdeps/mach/hurd/configure: Regenerated.
5579 * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
5580 special-casing to...
5581 * sysdeps/gnu/configure.in: ... this new file.
5582 * sysdeps/unix/sysv/linux/configure: Regenerated.
5583 * sysdeps/gnu/configure: New generated file.
5584
5585 * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
5586 for Linux: use nsec instead of usec, as well as:
5587 [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
5588 members of type struct timespec.
5589 [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
5590 New macros.
5591 (struct stat64): Likewise.
5592 (_STATBUF_ST_NSEC): New macro.
5593 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
5594
5595 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
5596 __strtoul_internal rather than strtoul.
5597
55982012-05-10 Pino Toscano <toscano.pino@tiscali.it>
5599
5600 * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
5601 and reject them.
5602
56032012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5604
5605 * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
5606 which preserves existing values.
5607 * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
5608
56092012-05-10 Pino Toscano <toscano.pino@tiscali.it>
5610
5611 * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
5612 TIMEOUT values. Return EINVAL for NFDS values either negative or
5613 greater than FD_SETSIZE.
5614
56152012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5616
5617 * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
5618 allocated, call __vm_protect to finish enabling the existing space, and
5619 pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
5620 allocate the remainder.
5621
56222012-05-10 Pino Toscano <toscano.pino@tiscali.it>
5623
5624 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
5625 address port. Set ADDR_LEN to 0 when not filling ADDRARG.
5626
56272012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5628
5629 * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
5630 sysdeps/mach/hurd/readlink.c.
5631
5632 * posix/tst-sysconf.c (posix_options): Only use
5633 _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
5634 _POSIX_SYNCHRONIZED_IO when they are defined
5635 * sysdeps/mach/hurd/bits/posix_opt.h:
5636 (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
5637 (_XOPEN_REALTIME): Undefine macro.
5638 (_XOPEN_REALTIME_THREADS): Undefine macro.
5639 (_XOPEN_SHM): Undefine macro.
5640 [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
5641 macro to -1.
5642 [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
5643 macro to -1.
5644 (_POSIX_ASYNC_IO): Undefine macro.
5645 (_POSIX_PRIORITIZED_IO): Undefine macro.
5646 (_POSIX_SPIN_LOCKS): Define macro to -1.
5647
5648 * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
5649 SA_NODEFER, SA_RESETHAND.
5650 * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
5651 O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
5652 F_DUPFD_CLOEXEC.
5653
56542012-05-10 Thomas Schwinge <thomas@schwinge.name>
5655
5656 * elf/Makefile (pldd-modules): Define unconditionally.
5657
56582012-05-10 Thomas Schwinge <thomas@schwinge.name>
5659
5660 * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
5661
56622012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5663
5664 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
5665 Return ENOENT when name is empty.
5666 * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
5667
56682012-05-10 Thomas Schwinge <thomas@schwinge.name>
5669
5670 * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
5671
5672 * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
5673
56742012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5675
5676 Fix mlock in all cases except non-readable pages.
5677 * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
5678 instead of VM_PROT_ALL as parameter to __vm_wire function.
5679
5680 * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
5681 (__mkdir): When path is `/', just fail with EEXIST.
5682 * sysdeps/mach/hurd/mkdirat.c: Likewise.
5683
56842012-05-10 Thomas Schwinge <thomas@schwinge.name>
5685
5686 * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
5687 <sys/uio.h> (for writev).
5688 * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
5689 and <sys/param.h> (for MIN).
5690
56912012-05-10 Pino Toscano <toscano.pino@tiscali.it>
5692
5693 * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
5694 REQUESTED_TIME. Properly set the remaining time and return EINTR
5695 if interrupted.
5696
56972012-05-10 Thomas Schwinge <thomas@schwinge.name>
5698
5699 * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
5700 Depend on against $(link-rpcuserlibs).
5701
57022012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5703
5704 * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
5705 (__libc_stack_end): Do not use attribute_relro.
5706 * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
5707 * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
5708 to libthread-provided value.
5709 * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
5710 attribute_relro.
5711
57122012-05-10 Thomas Schwinge <thomas@schwinge.name>
5713
5714 [BZ #3748]
5715 * bits/libc-lock.h (__libc_once_get): New macro.
5716 * sysdeps/mach/bits/libc-lock.h: Likewise.
5717 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
5718 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
5719 instead of using implementation details.
5720
5721 * libio/fileops.c: Unconditionally include <kernel-features.h>.
5722 * libio/freopen.c: Likewise.
5723 * libio/freopen64.c: Likewise.
5724 * misc/syslog.c: Likewise.
5725 * nscd/connections.c: Likewise.
5726 * nscd/netgroupcache.c: Likewise.
5727 * sysdeps/posix/getcwd.c: Likewise.
5728
57292012-05-10 Roland McGrath <roland@hack.frob.com>
5730
5731 * math/w_ilogbf.c: Add #include <limits.h>.
5732
57332012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5734
5735 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
5736 path instead of returning without unlocking.
5737
5738 * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
5739 immediate-write ioctls.
5740 * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
5741
57422012-05-10 Thomas Schwinge <thomas@schwinge.name>
5743
5744 * sysdeps/mach/hurd/i386/init-first.c (init): Use
5745 __builtin_frame_address instead of making assumptions about the
5746 location of the return address relative to DATA. Force early load of
5747 the return address.
5748 (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
5749 __builtin_frame_address.
5750
5751 dup3 for GNU Hurd.
5752 * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
5753 * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c. Evolve it to
5754 implement dup3 and do some further code clean-ups.
5755 * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
5756 * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
5757
57582012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5759
5760 * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
5761
5762 * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
5763 HURD_CRITICAL_END around holding _hurd_dtable_lock.
5764 * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
5765 * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
5766 HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
5767 d->port.lock.
5768
5769 * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
5770 instead of setjmp/longjmp to restore the signal mask. Call sigsetjmp
5771 when handler == SIG_ERR, not when handler != SIG_ERR.
5772
57732012-05-10 Thomas Schwinge <thomas@schwinge.name>
5774
5775 * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
5776 (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
5777 definitions.
5778
5779 accept4 for GNU Hurd.
5780 * include/sys/socket.h (__libc_accept4): New prototype.
5781 * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c. Evolve it
5782 to implement __libc_accept4.
5783 * sysdeps/mach/hurd/accept.c (accept): Reimplement using
5784 __libc_accept4.
5785 * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
5786
5787 * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
5788 * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
5789 * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
5790 signal-defines.sym.
5791
57922012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5793
5794 * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
5795
57962012-05-10 Thomas Schwinge <thomas@schwinge.name>
5797
5798 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
5799 assertion on O_CLOEXEC flag.
5800 * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
5801 * hurd/intern-fd.c: Likewise.
5802 * hurd/port2fd.c: Likewise.
5803
58042012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5805
5806 [BZ #3906]
5807 * bits/in.h (IPV6_PKTINFO): Define new macro.
5808 (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
5809
58102012-05-09 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
5811
5812 [BZ #13954]
5813 [BZ #13955]
5814 [BZ #13956]
5815 * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
5816 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5817 * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
5818 * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5819 * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5820 * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5821 * math/libm-test.inc (logb_test) : Additional logb tests.
5822
58232012-05-09 Andreas Schwab <schwab@linux-m68k.org>
5824 Andreas Jaeger <aj@suse.de>
5825
5826 * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
5827 * configure: Regenerated.
5828 * config.h.in (LINK_OBSOLETE_RPC): New macro.
5829 * config.make.in (link-obsolete-rpc): New substituted variable.
5830 * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
5831 libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
5832 * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5833 (shared-only-routines): Don't set it under [link-obsolete-rpc],
5834 so that libc.a contains the symbols.
5835 * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5836 * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
5837 * sunrpc/auth_none.c: Likewise.
5838 * sunrpc/auth_unix.c: Likewise.
5839 * sunrpc/authdes_prot.c: Likewise.
5840 * sunrpc/authuxprot.c: Likewise.
5841 * sunrpc/clnt_gen.c: Likewise.
5842 * sunrpc/clnt_perr.c: Likewise.
5843 * sunrpc/clnt_raw.c: Likewise.
5844 * sunrpc/clnt_simp.c: Likewise.
5845 * sunrpc/clnt_tcp.c: Likewise.
5846 * sunrpc/clnt_udp.c: Likewise.
5847 * sunrpc/clnt_unix.c: Likewise.
5848 * sunrpc/des_crypt.c: Likewise.
5849 * sunrpc/des_soft.c: Likewise.
5850 * sunrpc/get_myaddr.c: Likewise.
5851 * sunrpc/key_call.c: Likewise.
5852 * sunrpc/key_prot.c: Likewise.
5853 * sunrpc/netname.c: Likewise.
5854 * sunrpc/pm_getmaps.c: Likewise.
5855 * sunrpc/pm_getport.c: Likewise.
5856 * sunrpc/pmap_clnt.c: Likewise.
5857 * sunrpc/pmap_prot.c: Likewise.
5858 * sunrpc/pmap_prot2.c: Likewise.
5859 * sunrpc/pmap_rmt.c: Likewise.
5860 * sunrpc/publickey.c: Likewise.
5861 * sunrpc/rpc_cmsg.c: Likewise.
5862 * sunrpc/rpc_common.c: Likewise.
5863 * sunrpc/rpc_dtable.c: Likewise.
5864 * sunrpc/rpc_prot.c: Likewise.
5865 * sunrpc/rpc_thread.c: Likewise.
5866 * sunrpc/rtime.c: Likewise.
5867 * sunrpc/svc.c: Likewise.
5868 * sunrpc/svc_auth.c: Likewise.
5869 * sunrpc/svc_raw.c: Likewise.
5870 * sunrpc/svc_run.c: Likewise.
5871 * sunrpc/svc_tcp.c: Likewise.
5872 * sunrpc/svc_udp.c: Likewise.
5873 * sunrpc/svc_unix.c: Likewise.
5874 * sunrpc/svcauth_des.c: Likewise.
5875 * sunrpc/xcrypt.c: Likewise.
5876 * sunrpc/xdr.c: Likewise.
5877 * sunrpc/xdr_array.c: Likewise.
5878 * sunrpc/xdr_float.c: Likewise.
5879 * sunrpc/xdr_intXX_t.c: Likewise.
5880 * sunrpc/xdr_mem.c: Likewise.
5881 * sunrpc/xdr_rec.c: Likewise.
5882 * sunrpc/xdr_ref.c: Likewise.
5883 * sunrpc/xdr_sizeof.c: Likewise.
5884 * sunrpc/xdr_stdio.c: Likewise.
5885
58862012-05-10 Roland McGrath <roland@hack.frob.com>
5887
5888 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
5889 change. Update copyright years.
5890
58912012-05-10 Joseph Myers <joseph@codesourcery.com>
5892
5893 * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
5894
58952012-05-10 Maxim Kuvyrkov <maxim@codesourcery.com>
5896 Joseph Myers <joseph@codesourcery.com>
5897 Paul Pluzhnikov <ppluzhnikov@google.com>
5898
5899 [BZ #14012]
5900 * sunrpc/Makefile [cross-compiling] (headers): Enable additions
5901 requiring rpcgen.
5902 [cross-compiling] (extra-libs): Likewise.
5903 [cross-compiling] (extra-libs-others): Likewise.
5904 [cross-compiling] (librpcsvc-routines): Likewise.
5905 [cross-compiling] (librpcsvc-inhibit-o): Likewise.
5906 [cross-compiling] (omit-deps): Likewise.
5907 (sunrpc-CPPFLAGS): New variable.
5908 (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
5909 (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
5910 (cross-rpcgen-objs): New variable.
5911 (extra-objs): Append $(cross-rpcgen-objs).
5912 ($(cross-rpcgen-objs)): New rule.
5913 ($(objpfx)cross-rpcgen): Likewise.
5914 (rpcgen-cmd): Define to use $(built-program-file). Expand
5915 comment.
5916 ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
5917 ($(objpfx)x%.stmp): Likewise.
5918 * sunrpc/proto.h [IS_IN_build] (_): Define.
5919 [IS_IN_build] (_libc_intl_domainname): Likewise.
5920
59212012-05-10 H.J. Lu <hongjiu.lu@intel.com>
5922
5923 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
5924 Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
5925 and R_X86_64_TPOFF64.
5926
59272012-05-10 Joseph Myers <joseph@codesourcery.com>
5928
5929 * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
5930 sysdeps/unix/sysv/syscalls.list.
5931 (stime): Likewise.
5932 (utime): Likewise.
5933 * sysdeps/unix/sysv/syscalls.list: Remove file.
5934
59352012-05-10 Paul Eggert <eggert@cs.ucla.edu>
5936
5937 [BZ #3440]
5938 * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
5939 (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
5940 (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
5941 (__LC_IDENTIFICATION): Make these macros useful in #if
5942 expressions, as required by C99.
5943
59442012-05-10 Andreas Schwab <schwab@linux-m68k.org>
5945
5946 * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
5947 $(addsuffix .os,$(rpc-compat-routines)). Move include ../Rules
5948 after this.
5949
59502012-05-09 H.J. Lu <hongjiu.lu@intel.com>
5951
5952 * stdlib/longlong.h: Updated from GCC.
5953
59542012-05-09 Andreas Jaeger <aj@suse.de>
5955
5956 * nscd/nscd.c (run_modes): Make named enum, reorder so that
5957 default is first entry.
5958 (run_mode): Set type.
5959 (main): Remove informal message about syslog.
5960 (options): Fix typo.
5961
5962 [BZ #14053]
5963 * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
5964 to asm.
5965 (lrint): Likewise.
5966 (llrintf): Likewise.
5967 (llrint): Likewise.
5968 (rint): Likewise.
5969 (rintf): Likewise.
5970 (nearbyint): Likewise.
5971 (nearbyintf): Likewise.
5972
59732012-05-09 Andreas Jaeger <aj@suse.de>
5974 Pedro Alves <palves@redhat.com>
5975
5976 * nscd/nscd.c (run_mode): Use enum.
5977 (main): Cleanup coding style issue.
5978
59792012-05-09 Alexandre Oliva <aoliva@redhat.com>
5980 Andreas Jaeger <aj@suse.de>
5981
5982 * nscd/nscd.c (go_background): Replaced with...
5983 (run_mode): ... this.
5984 (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
5985 (options): Add -F --foreground.
5986 (main): Implement it.
5987 (parse_opt): Parse it.
5988
59892012-05-09 Andreas Jaeger <aj@suse.de>
5990
5991 [BZ #14083]
5992 * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
5993 !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
5994 -Wconversion warning.
5995 (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
5996 Likewise.
5997
59982012-05-09 Joseph Myers <joseph@codesourcery.com>
5999
6000 * conform/data/locale.h-data (NULL): Use macro-constant. Require
6001 == 0.
6002 (LC_ALL): Use macro-int-constant.
6003 (LC_COLLATE): Likewise.
6004 (LC_CTYPE): Likewise.
6005 (LC_MESSAGES): Likewise.
6006 (LC_MONETARY): Likewise.
6007 (LC_NUMERIC): Likewise.
6008 (LC_TIME): Likewise.
6009 [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6010 (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6011 [ISO || ISO99 || ISO11] (*_t): Do not allow.
6012 * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6013 Specify type.
6014 [C99-based standards] (float_t): Expect type.
6015 [C99-based standards] (double_t): Expect type.
6016 [C99-based standards] (HUGE_VALF): Use macro-constant. Specify
6017 type.
6018 [C99-based standards] (HUGE_VALL): Likewise.
6019 [C99-based standards] (INFINITY): Likewise.
6020 [C99-based standards] (NAN): Likewise.
6021 [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6022 [C99-based standards] (FP_NAN): Likewise.
6023 [C99-based standards] (FP_NORMAL): Likewise.
6024 [C99-based standards] (FP_SUBNORMAL): Likewise.
6025 [C99-based standards] (FP_ZERO): Likewise.
6026 [C99-based standards] (FP_FAST_FMA): Use
6027 optional-macro-int-constant. Specify type. Require == 1.
6028 [C99-based standards] (FP_FAST_FMAF): Likewise.
6029 [C99-based standards] (FP_FAST_FMAL): Likewise.
6030 [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6031 [C99-based standards] (FP_ILOGBNAN): Likewise.
6032 [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6033 Specify type.
6034 [C99-based standards] (MATH_ERREXCEPT): Likewise.
6035 [C99-based standards] (math_errhandling): Specify type.
6036 [ISO99 || ISO11] (signgam): Do not allow.
6037 [non-C99-based standards] (copysignf): Do not allow.
6038 [non-C99-based standards] (exp2f): Likewise.
6039 [non-C99-based standards] (log2f): Likewise.
6040 [non-C99-based standards] (modff): Allow.
6041 [non-C99-based standards] (erff): Do not allow.
6042 [non-C99-based standards] (erfcf): Likewise.
6043 [non-C99-based standards] (gammaf): Likewise.
6044 [non-C99-based standards] (hypotf): Likewise.
6045 [non-C99-based standards] (j0f): Likewise.
6046 [non-C99-based standards] (j1f): Likewise.
6047 [non-C99-based standards] (jnf): Likewise.
6048 [non-C99-based standards] (lgammaf): Likewise.
6049 [non-C99-based standards] (tgammaf): Likewise.
6050 [non-C99-based standards] (y0f): Likewise.
6051 [non-C99-based standards] (y1f): Likewise.
6052 [non-C99-based standards] (ynf): Likewise.
6053 [non-C99-based standards] (isnanf): Likewise.
6054 [non-C99-based standards] (acoshf): Likewise.
6055 [non-C99-based standards] (asinhf): Likewise.
6056 [non-C99-based standards] (atanhf): Likewise.
6057 [non-C99-based standards] (cbrtf): Likewise.
6058 [non-C99-based standards] (expm1f): Likewise.
6059 [non-C99-based standards] (ilogbf): Likewise.
6060 [non-C99-based standards] (log1pf): Likewise.
6061 [non-C99-based standards] (logbf): Likewise.
6062 [non-C99-based standards] (nextafterf): Likewise.
6063 [non-C99-based standards] (remainderf): Likewise.
6064 [non-C99-based standards] (rintf): Likewise.
6065 [non-C99-based standards] (scalbf): Likewise.
6066 [non-C99-based standards] (copysignl): Likewise.
6067 [non-C99-based standards] (exp2l): Likewise.
6068 [non-C99-based standards] (log2l): Likewise.
6069 [non-C99-based standards] (modfl): Allow.
6070 [non-C99-based standards] (erfl): Do not allow.
6071 [non-C99-based standards] (erfcl): Likewise.
6072 [non-C99-based standards] (gammal): Likewise.
6073 [non-C99-based standards] (hypotl): Likewise.
6074 [non-C99-based standards] (j0l): Likewise.
6075 [non-C99-based standards] (j1l): Likewise.
6076 [non-C99-based standards] (jnl): Likewise.
6077 [non-C99-based standards] (lgammal): Likewise.
6078 [non-C99-based standards] (tgammal): Likewise.
6079 [non-C99-based standards] (y0l): Likewise.
6080 [non-C99-based standards] (y1l): Likewise.
6081 [non-C99-based standards] (ynl): Likewise.
6082 [non-C99-based standards] (isnanl): Likewise.
6083 [non-C99-based standards] (acoshl): Likewise.
6084 [non-C99-based standards] (asinhl): Likewise.
6085 [non-C99-based standards] (atanhl): Likewise.
6086 [non-C99-based standards] (cbrtl): Likewise.
6087 [non-C99-based standards] (expm1l): Likewise.
6088 [non-C99-based standards] (ilogbl): Likewise.
6089 [non-C99-based standards] (log1pl): Likewise.
6090 [non-C99-based standards] (logbl): Likewise.
6091 [non-C99-based standards] (nextafterl): Likewise.
6092 [non-C99-based standards] (remainderl): Likewise.
6093 [non-C99-based standards] (rintl): Likewise.
6094 [non-C99-based standards] (scalbl): Likewise.
6095 [ISO || ISO99 || ISO11] (*_t): Do not allow.
6096 [non-C99-based standards] (FP_*): Do not allow.
6097 [C99-based standards] (FP_*): Change to
6098 FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6099 * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6100 allow.
6101 * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6102 (SIG_ERR): Likewise.
6103 [X/Open-based standards] (SIG_HOLD): Likewise.
6104 (SIG_IGN): Likewise.
6105 (SIGABRT): Use macro-int-constant. Specify type. Require
6106 positive value.
6107 (SIGFPE): Likewise.
6108 (SIGILL): Likewise.
6109 (SIGINT): Likewise.
6110 (SIGSEGV): Likewise.
6111 (SIGTER): Likewise.
6112 [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
6113 [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
6114 [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
6115 [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
6116 [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
6117 [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
6118 [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
6119 [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
6120 [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
6121 [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
6122 [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
6123 [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
6124 [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
6125 [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
6126 [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
6127 [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
6128 [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
6129 [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
6130 [X/Open-based standards] (SIGTRAP): Likewise.
6131 [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
6132 [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
6133 [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
6134 [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
6135 * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6136 allow.
6137
61382012-05-08 Ian Wienand <ianw@vmware.com>
6139
6140 [BZ #14080]
6141 * time/tzset.c (__tzset_parse_tz): Update default rules for
6142 daylight time changes in the Energy Policy Act of 2005.
6143
61442012-05-09 Andreas Jaeger <aj@suse.de>
6145
6146 [BZ #13983]
6147 * elf/ldconfig.c (parse_conf): Change string to make clear that
6148 ldconfig only issued a warning if ld.so.conf does not exist.
6149
61502012-05-08 David S. Miller <davem@davemloft.net>
6151
6152 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
6153 movxtod instead of popping the value on the stack.
6154
6155 * sysdeps/sparc/fpu/libm-test-ulps: Update.
6156
61572012-05-08 Carlos O'Donell <carlos_odonell@mentor.com>
6158
6159 * config.h.in: Add HAVE_ARM_PCS_VFP.
6160
61612012-05-08 Roland Mc Grath <roland@hack.frob.com>
6162
6163 [BZ #13979]
6164 * include/features.h: Warn if user requests __FORTIFY_SOURCE
6165 checking but the checks are disabled for any reason.
6166
61672012-05-08 H.J. Lu <hongjiu.lu@intel.com>
6168
6169 * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
6170 and ELF64_R_TYPE with ELFW(R_TYPE).
6171
61722012-05-08 Joseph Myers <joseph@codesourcery.com>
6173
6174 * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6175 (ulimit): Likewise.
6176
6177 * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6178 (settimeofday): Likewise.
6179
61802012-05-08 Mike Frysinger <vapier@gentoo.org>
6181
6182 * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1. Add
6183 a struct th_u2 inside the union, and move tu_block/tu_code into
6184 a new th_u3 union of tu_block/tu_code inside of that. Move
6185 th_data[1] into the th_u2 as tu_data[0]. Change tu_stuff[1] to
6186 tu_stuff[0]. Add a new tu_padding[4] to keep sizeof() the same.
6187 (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6188 (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6189 (th_stuff): Change to th_u1.tu_stuff.
6190 (th_data): Define.
6191 (th_msg): Change to th_u1.th_u2.tu_data.
6192
61932012-05-07 David S. Miller <davem@davemloft.net>
6194
6195 * sysdeps/sparc/fpu/libm-test-ulps: Update.
6196
6197 [BZ #14074]
6198 * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6199 (SETUP_PIC_REG): Use it.
6200 (SETUP_PIC_REG_LEAF): Use it.
6201
62022012-05-07 Joseph Myers <joseph@codesourcery.com>
6203
6204 [BZ #13885]
6205 [BZ #13923]
6206 * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6207 USE_AS_EXPM1L.
6208 (EXPL_FINITE): Likewise.
6209 (FLDLOG): Likewise.
6210 (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6211 * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6212 e_expl.S.
6213 * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6214 USE_AS_EXPM1L.
6215 (EXPL_FINITE): Likewise.
6216 (FLDLOG): Likewise.
6217 (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6218 * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6219 e_expl.S.
6220 * math/libm-test.inc (expm1_test): Add more tests. Do not disable
6221 test of -max_value argument for long double.
6222 * sysdeps/i386/fpu/libm-test-ulps: Update.
6223 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6224
62252012-05-06 David S. Miller <davem@davemloft.net>
6226
6227 * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6228 quad soft-float symbols whose references which are compiler
6229 generated.
6230 * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6231
62322012-05-06 Joseph Myers <joseph@codesourcery.com>
6233
6234 [BZ #13884]
6235 [BZ #13914]
6236 * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6237 USE_AS_EXP10L.
6238 (EXPL_FINITE): Likewise.
6239 (FLDLOG): Likewise.
6240 (c0): Likewise.
6241 (c1): Likewise.
6242 (__ieee754_expl): Change to IEEE754_EXPL. Use FLDLOG macro.
6243 Adjust comments for base varying.
6244 (__expl_finite): Change alias to EXPL_FINITE.
6245 * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6246 e_expl.S.
6247 * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6248 * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6249 * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6250 * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6251 * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6252 USE_AS_EXP10L.
6253 (EXPL_FINITE): Likewise.
6254 (FLDLOG): Likewise.
6255 (c0): Likewise.
6256 (c1): Likewise.
6257 (__ieee754_expl): Change to IEEE754_EXPL. Use FLDLOG macro.
6258 Adjust comments for base varying.
6259 (__expl_finite): Change alias to EXPL_FINITE.
6260 * math/libm-test.inc (exp10_test): Add more tests. Do not disable
6261 tests for bugs.
6262 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6263
6264 [BZ #14064]
6265 * math/libm-test.inc (check_float_internal): Correct ulp
6266 calculation for subnormal expected results.
6267
62682012-05-06 Andreas Jaeger <aj@suse.de>
6269
6270 * Makeconfig (+math-flags): New, set to -frounding-math.
6271 (+cflags): Add +math-flags so that all of glibc gets compiled with
6272 it.
6273
6274 * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6275
62762012-05-05 Joseph Myers <joseph@codesourcery.com>
6277
6278 * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6279 Disable one test.
6280
6281 [BZ #13787]
6282 [BZ #13922]
6283 [BZ #14036]
6284 * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6285 (__ieee754_expl): Allow for and saturate large arguments.
6286 * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6287 (u_threshold): Likewise.
6288 (__exp): Call __ieee754_exp before checking for overflow and
6289 underflow.
6290 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6291 (u_threshold): Likewise.
6292 (__expf): Call __ieee754_expf before checking for overflow and
6293 underflow.
6294 * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6295 (u_threshold): Likewise.
6296 (__expl): Call __ieee754_expl before checking for overflow and
6297 underflow.
6298 * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6299 (__ieee754_expl): Allow for and saturate large arguments.
6300 * math/libm-test.inc (exp_test): Add another test. Do not allow
6301 missing overflow exception on overflow.
6302 (expm1_test): Do not allow missing overflow exception on overflow.
6303
6304 * sysdeps/i386/fpu/e_expl.c: Move to ...
6305 * sysdeps/i386/fpu/e_expl.S: ... here. Write directly in assembly
6306 rather than using inline asm.
6307 * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6308 * sysdeps/x86_64/fpu/e_expl.S: Copy from
6309 sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6310
6311 * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6312 (nice): Likewise.
6313 (poll): Likewise.
6314 (signal): Likewise.
6315 (time): Likewise.
6316 (times): Likewise.
6317
63182012-05-04 Joseph Myers <joseph@codesourcery.com>
6319
6320 * sysdeps/unix/syscalls.list (adjtime): Add entry from
6321 sysdeps/unix/common/syscalls.list.
6322 (fchmod): Likewise.
6323 (fchown): Likewise.
6324 (ftruncate): Likewise.
6325 (getrusage): Likewise.
6326 (gettimeofday): Likewise.
6327 (setpgid): Likewise.
6328 (setregid): Likewise.
6329 (setreuid): Likewise.
6330 (sigaction): Likewise.
6331 (truncate): Likewise.
6332 (vhangup): Likewise.
6333 * sysdeps/unix/common/syscalls.list: Remove file.
6334 * sysdeps/unix/bsd/Implies: Don't include unix/common.
6335 * sysdeps/unix/sysv/linux/Implies: Likewise.
6336
63372012-05-04 H.J. Lu <hongjiu.lu@intel.com>
6338
6339 * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6340 * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6341 * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6342 Moved to ...
6343 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6344 Here.
6345 * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6346 to ...
6347 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6348 * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6349 to ...
6350 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6351 * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6352 to ...
6353 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6354 * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6355 to ...
6356 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6357 * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6358 to ...
6359 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6360 * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6361 to ...
6362 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6363 * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6364 to ...
6365 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6366 Here.
6367 * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6368 to ...
6369 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6370 Here.
6371 * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6372 to ...
6373 * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6374 * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6375 Moved to ...
6376 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6377 Here.
6378 * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6379 to ...
6380 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6381
63822012-05-04 Joseph Myers <joseph@codesourcery.com>
6383
6384 * sysdeps/unix/common/bits/dirent.h: Remove file.
6385 * sysdeps/unix/common/bits/fcntl.h: Likewise.
6386
6387 * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6388 * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6389 * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6390 * sysdeps/unix/bsd/isatty.c: Likewise.
6391 * sysdeps/unix/bsd/tcdrain.c: Likewise.
6392 * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6393 * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6394
63952012-05-04 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
6396
6397 [BZ #13563]
6398 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6399 long double comparison inaccuracies.
6400 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6401 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6402
64032012-05-04 Andreas Schwab <schwab@linux-m68k.org>
6404
6405 * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6406 * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6407
64082012-05-04 Joseph Myers <joseph@codesourcery.com>
6409
6410 [BZ #14049]
6411 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6412 nonzero digits before rounding a hex value.
6413 * stdlib/tst-strtod.c (tests): Add another test.
6414
64152012-05-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6416
6417 * sysdeps/s390/fpu/libm-test-ulps: Update.
6418
64192012-05-03 Andreas Jaeger <aj@suse.de>
6420
6421 * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6422 does not get optimized out.
6423 (malloc_opt_barrier): New.
6424
64252012-05-03 Andreas Jaeger <aj@suse.de>
6426 Roland McGrath <roland@hack.frob.com>
6427
6428 * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6429 intermediate file deletion.
6430 (generated): Add .symlist files.
6431
64322012-05-03 Joseph Myers <joseph@codesourcery.com>
6433
6434 [BZ #13775]
6435 * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6436 Redirect under this condition.
6437 [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6438 [__USE_GNU] (__dprintf_chk): Not under this condition.
6439 [__USE_GNU] (__vdprintf_chk): Likewise.
6440 * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6441 under this condition.
6442 [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6443 [__USE_XOPEN2K8] (dprintf): Define under this condition.
6444 [__USE_XOPEN2K8] (vdprintf): Likewise.
6445 [__USE_GNU] (__dprintf_chk): Not under this condition.
6446 [__USE_GNU] (__vdprintf_chk): Likewise.
6447 [__USE_GNU] (dprintf): Likewise.
6448 [__USE_GNU] (vdprintf): Likewise.
6449
64502012-05-03 Roland McGrath <roland@hack.frob.com>
6451
6452 * elf/Makefile (common-generated): Set this instead of generated for
6453 .dyn, .phdr, .jmprel files. Remove $(common-objpfx) from the
6454 $(all-built-dso)-derived lists.
6455
64562012-05-03 Andreas Jaeger <aj@suse.de>
6457
6458 * sysdeps/i386/fpu/libm-test-ulps: Update.
6459
6460 * FAQ: Removed.
6461 * FAQ.in: Likewise.
6462 * scripts/gen-FAQ.pl: Likewise.
6463 * manual/install.texi (Installation): Point to online location of
6464 FAQ.
6465 * Makefile (files-for-dist): Remove FAQ.
6466 (FAQ): Remove.
6467
64682012-05-02 Allan McRae <allan@archlinux.org>
6469
6470 * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6471 (LDFLAGS-reldepmod5.so): Likewise.
6472 (LDFLAGS-reldep6mod1.so): Likewise.
6473 (LDFLAGS-reldep6mod4.so): Likewise.
6474 (LDFLAGS-reldep8mod3.so): Likewise.
6475 (LDFLAGS-unload4mod1.so): Likewise.
6476 (LDFLAGS-unload4mod2.so): Likewise.
6477 (LDFLAGS-tst-initorder): Likewise.
6478 (LDFLAGS-tst-initordera2.so): Likewise.
6479 (LDFLAGS-tst-initordera3.so): Likewise.
6480 (LDFLAGS-tst-initordera4.so): Likewise.
6481 (LDFLAGS-tst-initorderb2.so): Likewise.
6482 (LDFLAGS-noload): Likewise.
6483 (LDFLAGS-next): Likewise.
6484 (LDFLAGS-order2mod1.so): Likewise.
6485 (LDFLAGS-order2mod2.so): Likewise.
6486 (LDFLAGS-tst-initorder2): Likewise.
6487 (LDFLAGS-tst-initorder2a.so): Likewise.
6488 (LDFLAGS-tst-initorder2b.so): Likewise.
6489 (LDFLAGS-tst-initorder2c.so): Likewise.
6490 * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6491
64922012-05-02 David S. Miller <davem@davemloft.net>
6493
6494 * sysdeps/sparc/fpu/libm-test-ulps: Update.
6495
64962012-05-02 Paul Pluzhnikov <ppluzhnikov@google.com>
6497
6498 [BZ #14055]
6499 * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
6500
65012012-05-02 Andreas Jaeger <aj@suse.de>
6502
6503 * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
6504 since we manipulate rounding mode.
6505 (CPPFLAGS-test-idouble.c): Likewise.
6506 (CPPFLAGS-test-ifloat.c): Likewise.
6507 (CFLAGS-test-ldouble.c): Likewise.
6508 (CFLAGS-test-double.c): Likewise.
6509 (CFLAGS-test-float.c): Likewise.
6510 (CFLAGS-test-misc.c): Likewise.
6511 (CFLAGS-test-test-fenv.c): Likewise.
6512
65132012-05-02 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
6514
6515 [BZ #2550]
6516 [BZ #2570]
6517 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
6518 comparisons to determine direction to adjust input.
6519
65202012-05-01 Roland McGrath <roland@hack.frob.com>
6521
6522 * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
6523 output to the target.
6524
6525 * scripts/localplt.awk: New file.
6526 * elf/Makefile ($(objpfx)check-localplt): Target removed.
6527 (check-localplt-CFLAGS): Variable removed.
6528 ($(all-built-dso:=.jmprel)): New static pattern rule.
6529 (generated): Add those targets.
6530 (localplt-built-dso): New variable.
6531 ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
6532
6533 * elf/check-localplt.c: File removed.
6534
6535 * scripts/check-execstack.awk: New file.
6536 * elf/Makefile ($(objpfx)check-execstack): Target removed.
6537 (check-execstack-CFLAGS): Variable removed.
6538 ($(objpfx)check-execstack.h): Target removed.
6539 ($(objpfx)execstack-default): New target.
6540 (generated): Add that instead of check-execstack.h.
6541 ($(all-built-dso:=.phdr)): New static pattern rule.
6542 (generated): Add those targets.
6543 * elf/check-execstack.c: File removed.
6544
6545 * scripts/check-textrel.awk: New file.
6546 * elf/Makefile ($(objpfx)check-textrel): Target removed.
6547 (check-textrel-CFLAGS): Variable removed.
6548 (all-built-dso): Use := to define.o
6549 ($(all-built-dso:=.dyn)): New static pattern rule.
6550 (generated): Add those targets.
6551 ($(objpfx)check-textrel.out): Use the script on the .dyn files.
6552 * config.make.in (READELF): New substituted variable.
6553 * elf/check-textrel.c: File removed.
6554
65552012-05-01 Joseph Myers <joseph@codesourcery.com>
6556
6557 * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6558 allow.
6559 * conform/data/ctype.h-data [C99-based standards] (isblank):
6560 Expect function.
6561 (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
6562 (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
6563 [ISO || ISO99 || ISO11] (*_t): Do not allow.
6564 * conform/data/errno.h-data (EDOM): Use macro-int-constant.
6565 Specify type. Require positive value.
6566 (EILSEQ): Likewise.
6567 (ERANGE): Likewise.
6568 [ISO || POSIX] (EILSEQ): Do not expect.
6569 [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
6570 Specify type. Require positive value.
6571 [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
6572 [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
6573 [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
6574 [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
6575 [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
6576 [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
6577 [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
6578 [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
6579 [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
6580 [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
6581 [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
6582 [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
6583 [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
6584 [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
6585 [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
6586 [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
6587 [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
6588 [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
6589 [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
6590 [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
6591 [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
6592 [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
6593 [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
6594 [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
6595 [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
6596 [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
6597 [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
6598 [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
6599 [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
6600 [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
6601 [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
6602 [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
6603 [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
6604 [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
6605 [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
6606 [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
6607 [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
6608 [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
6609 [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
6610 [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
6611 [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
6612 [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
6613 [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
6614 [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
6615 [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
6616 [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
6617 [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
6618 [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
6619 [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
6620 [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
6621 [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
6622 [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
6623 [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
6624 [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
6625 [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
6626 [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
6627 [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
6628 [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
6629 [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
6630 [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
6631 [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
6632 [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
6633 [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
6634 [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
6635 [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
6636 [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
6637 [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
6638 [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
6639 [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
6640 [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
6641 [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
6642 [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
6643 [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
6644 [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
6645 [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
6646 [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
6647 * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
6648 Require >= 2.
6649 (FLT_ROUNDS): Expect as macro, not constant.
6650 (FLT_MANT_DIG): Use macro-int-constant.
6651 (DBL_MANT_DIG): Likewise.
6652 (LDBL_MANT_DIG): Likewise.
6653 (FLT_DIG): Likewise.
6654 (DBL_DIG): Likewise.
6655 (LDBL_DIG): Likewise.
6656 (FLT_MIN_EXP): Use macro-int-constant. Require < 0.
6657 (DBL_MIN_EXP): Likewise.
6658 (LDBL_MIN_EXP): Likewise.
6659 (FLT_MAX_EXP): Use macro-int-constant.
6660 (DBL_MAX_EXP): Likewise.
6661 (LDBL_MAX_EXP): Likewise.
6662 (FLT_MAX_10_EXP): Likewise.
6663 (DBL_MAX_10_EXP): Likewise.
6664 (LDBL_MAX_10_EXP): Likewise.
6665 (FLT_MAX): Use macro-constant.
6666 (DBL_MAX): Likewise.
6667 (LDBL_MAX): Likewise.
6668 (FLT_EPSILON): Use macro-constant. Give upper bound.
6669 (DBL_EPSILON): Likewise.
6670 (LDBL_EPSILON): Likewise.
6671 (FLT_MIN): Likewise.
6672 (DBL_MIN): Likewise.
6673 (LDBL_MIN): Likewise.
6674 [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
6675 [C99-based standards] (FLT_EVAL_METHOD): Likewise.
6676 [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
6677 [ISO11] (FLT_HAS_SUBNORM): Likewise.
6678 [ISO11] (LDBL_HAS_SUBNORM): Likewise.
6679 [ISO11] (DBL_DECIMAL_DIG): Likewise.
6680 [ISO11] (FLT_DECIMAL_DIG): Likewise.
6681 [ISO11] (LDBL_DECIMAL_DIG): Likewise.
6682 [ISO11] (DBL_TRUE_MIN): Use macro-constant.
6683 [ISO11] (FLT_TRUE_MIN): Likewise.
6684 [ISO11] (LDBL_TRUE_MIN): Likewise.
6685 [ISO || ISO99 || ISO11] (*_t): Do not allow.
6686 * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
6687 (SCHAR_MIN): Use macro-int-constant. Specify type.
6688 (SCHAR_MAX): Likewise.
6689 (UCHAR_MAX): Likewise.
6690 (CHAR_MIN): Likewise.
6691 (CHAR_MAX): Likewise.
6692 (MB_LEN_MAX): Use macro-int-constant.
6693 (SHRT_MIN): Use macro-int-constant. Specify type.
6694 (SHRT_MAX): Likewise.
6695 (USHRT_MAX): Likewise.
6696 (INT_MAX): Likewise.
6697 (INT_MIN): Use macro-int-constant. Specify type. Make upper
6698 bound negative.
6699 (UINT_MAX): Use macro-int-constant. Specify type. Suffix lower
6700 bound with "U".
6701 (LONG_MAX): Use macro-int-constant. Specify type. Suffix lower
6702 bound with "L".
6703 (LONG_MIN): Use macro-int-constant. Specify type. Make upper
6704 bound negative. Suffix upper bound with "L".
6705 (ULONG_MAX): Use macro-int-constant. Specify type. Suffix lower
6706 bound with "UL".
6707 [C99-based standards] (LLONG_MIN): Use macro-int-constant.
6708 Specify type.
6709 [C99-based standards] (LLONG_MAX): Likewise.
6710 [C99-based standards] (ULLONG_MAX): Likewise.
6711 * conform/data/stddef.h-data (NULL): Use macro-constant. Require
6712 == 0.
6713 [ISO11] (max_align_t): Require type.
6714 [ISO || ISO99 || ISO11] (*_t): Do not allow.
6715
6716 * conform/conformtest.pl ($CFLAGS_namespace): Define separately
6717 from $CFLAGS, without defining away __attribute__ calls.
6718 (checknamespace): Use $CFLAGS_namespace.
6719
6720 * conform/conformtest.pl (@keywords): Only include C99 keywords
6721 for standards based on C99 or C11.
6722
6723 * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
6724 Disable tests.
6725 * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
6726 UNIX98]: Likewise.
6727
6728 * conform/conformtest.pl: Handle "macro-int-constant" and test for
6729 usability of symbols in #if.
6730
6731 * conform/conformtest.pl: If macro or constant types start
6732 "promoted:", expect the symbol to be of the following type
6733 promoted by the integer promotions.
6734
6735 * conform/conformtest.pl: Parse all "constant" and "macro" lines
6736 in one place. Also handle "macro-constant".
6737
6738 * conform/conformtest.pl: Only accept expected macro values with
6739 "==". Parse all "macro" lines in one place.
6740 * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
6741
6742 * conform/conformtest.pl: Handle braced types on "constant" lines
6743 instead of handling "typed-constant".
6744 * conform/data/signal.h-data: Use "constant" instead of
6745 "typed-constant".
6746
6747 * conform/conformtest.pl: Handle "optional-" at start of lines in
6748 one place rather than duplicating several cases. Handle each
6749 format of "macro" line with initial "optional-".
6750
6751 * conform/conformtest.pl: Only accept expected constant or
6752 optional-constant values with "==". Parse all "constant" lines in
6753 one place. Parse all "optional-constant" lines in one place.
6754 * conform/data/cpio.h-data: Use "==" form on "constant" lines.
6755 * conform/data/fmtmsg.h-data: Likewise.
6756 * conform/data/netinet/in.h-data: Likewise.
6757 * conform/data/tar.h-data: Likewise.
6758 * conform/data/limits.h-data: Use "==" form on "constant" and
6759 "optional-constant" lines.
6760
6761 * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
6762 Use -std=c99 for XOPEN2K.
6763 (@knownproblems): Remove.
6764 (newtoken): Don't check %isknown.
6765
6766 * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
6767 Do not expect macro.
6768 [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
6769 [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
6770 [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
6771 [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
6772 [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
6773 [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
6774 [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
6775 [XPG3 || XPG4 || UNIX98] (isless): Likewise.
6776 [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
6777 [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
6778 [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
6779 [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
6780 [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
6781 [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
6782 [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
6783 [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
6784 [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
6785 [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
6786 [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
6787 [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
6788 [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
6789 [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
6790 [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
6791 [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
6792 [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
6793 [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
6794 [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
6795 [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
6796 [XPG3 || XPG4 || UNIX98] (log2): Likewise.
6797 [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
6798 [XPG3] (acosh): Likewise.
6799 [XPG3] (asinh): Likewise.
6800 [XPG3] (atanh): Likewise.
6801 [XPG3] (cbrt): Likewise.
6802 [XPG3] (expm1): Likewise.
6803 [XPG3] (ilogb): Likewise.
6804 [XPG3] (log1p): Likewise.
6805 [XPG3] (logb): Likewise.
6806 [XPG3] (nextafter): Likewise.
6807 [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
6808 [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
6809 [XPG3] (remainder): Likewise.
6810 [XPG3] (rint): Likewise.
6811 [XPG3 || XPG4 || UNIX98] (round): Likewise.
6812 [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
6813 [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
6814 [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
6815 [XPG3 || XPG4 || UNIX98] (lround): Likewise.
6816 [XPG3 || XPG4 || UNIX98] (llround): Likewise.
6817 [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
6818 [UNIX98 || XOPEN2K] (scalb): Expect.
6819 [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
6820 [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
6821 [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
6822 [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
6823 [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
6824 [XPG3 || XPG4 || UNIX98] (fma): Likewise.
6825 [XPG3 || XPG4 || UNIX98] (nan): Likewise.
6826 [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
6827 [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
6828 [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
6829 [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
6830 [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
6831 [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
6832 [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
6833 [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
6834 [XPG3 || XPG4 || UNIX98] (expf): Likewise.
6835 [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
6836 [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
6837 [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
6838 [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
6839 [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
6840 [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
6841 [XPG3 || XPG4 || UNIX98] (logf): Likewise.
6842 [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
6843 [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
6844 [XPG3 || XPG4 || UNIX98] (modff): Likewise.
6845 [XPG3 || XPG4 || UNIX98] (powf): Likewise.
6846 [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
6847 [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
6848 [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
6849 [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
6850 [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
6851 [XPG3 || XPG4 || UNIX98] (erff): Likewise.
6852 [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
6853 [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
6854 [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
6855 [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
6856 [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
6857 [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
6858 [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
6859 [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
6860 [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
6861 [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
6862 [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
6863 [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
6864 [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
6865 [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
6866 [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
6867 [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
6868 [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
6869 [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
6870 [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
6871 [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
6872 [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
6873 [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
6874 [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
6875 [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
6876 [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
6877 [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
6878 [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
6879 [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
6880 [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
6881 [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
6882 [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
6883 [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
6884 [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
6885 [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
6886 [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
6887 [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
6888 [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
6889 [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
6890 [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
6891 [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
6892 [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
6893 [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
6894 [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
6895 [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
6896 [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
6897 [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
6898 [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
6899 [XPG3 || XPG4 || UNIX98] (expl): Likewise.
6900 [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
6901 [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
6902 [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
6903 [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
6904 [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
6905 [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
6906 [XPG3 || XPG4 || UNIX98] (logl): Likewise.
6907 [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
6908 [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
6909 [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
6910 [XPG3 || XPG4 || UNIX98] (powl): Likewise.
6911 [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
6912 [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
6913 [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
6914 [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
6915 [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
6916 [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
6917 [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
6918 [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
6919 [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
6920 [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
6921 [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
6922 [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
6923 [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
6924 [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
6925 [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
6926 [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
6927 [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
6928 [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
6929 [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
6930 [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
6931 [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
6932 [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
6933 [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
6934 [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
6935 [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
6936 [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
6937 [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
6938 [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
6939 [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
6940 [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
6941 [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
6942 [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
6943 [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
6944 [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
6945 [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
6946 [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
6947 [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
6948 [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
6949 [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
6950 [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
6951 [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
6952 [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
6953 [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
6954 [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
6955 [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
6956
6957 * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
6958 _XOPEN_SOURCE_EXTENDED for XPG4.
6959
6960 * conform/conformtest.pl: Handle "symbol" lines for allow-header.
6961
6962 * Makeconfig (localtime): Remove variable.
6963 (inst_localtime-file): Likewise.
6964
69652012-05-01 Andreas Schwab <schwab@linux-m68k.org>
6966
6967 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
6968 Update.
6969 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6970 Update.
6971 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
6972 Update.
6973 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
6974 Update.
6975 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
6976 Update.
6977 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
6978 Update.
6979 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
6980 Update.
6981 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
6982 Update.
6983 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6984 Update.
6985
69862012-05-01 Joseph Myers <joseph@codesourcery.com>
6987
6988 [BZ #2550]
6989 [BZ #2570]
6990 * math/s_nexttowardf.c (__nexttowardf): Use floating-point
6991 comparisons to determine direction to adjust input.
6992 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
6993 * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
6994 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
6995 Likewise.
6996 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
6997 Likewise.
6998 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
6999 Likewise.
7000 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7001 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7002 Likewise.
7003 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7004 Likewise.
7005 * math/libm-test.inc (nexttoward_test): Add more tests.
7006
70072012-05-01 Andreas Schwab <schwab@linux-m68k.org>
7008
7009 [BZ #14040]
7010 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7011 in version GLIBC_2.1, not GLIBC_2.0.
7012 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7013 Likewise.
7014
70152012-04-30 Joseph Myers <joseph@codesourcery.com>
7016
7017 [BZ #13942]
7018 * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7019 (1 - x) * (1 + x).
7020 * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7021 * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7022 * math/libm-test.inc (acos_test): Add more tests.
7023 (asin_test): Likewise.
7024 * sysdeps/i386/fpu/libm-test-ulps: Update.
7025 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7026
7027 [BZ #14034]
7028 * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7029 of square root.
7030 * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7031 * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7032 * math/libm-test.inc (acos_test_tonearest): New function.
7033 (acos_test_towardzero): Likewise.
7034 (acos_test_downward): Likewise.
7035 (acos_test_upward): Likewise.
7036 (asin_test_tonearest): Likewise.
7037 (asin_test_towardzero): Likewise.
7038 (asin_test_downward): Likewise.
7039 (asin_test_upward): Likewise.
7040 (main): Call the new functions.
7041 * sysdeps/i386/fpu/libm-test-ulps: Update.
7042 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7043
7044 [BZ #13884]
7045 [BZ #13924]
7046 * math/e_exp10.c: Include <float.h>.
7047 (__ieee754_exp10): Handle underflow here rather than multiplying
7048 large negative argument by M_LN10.
7049 * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
7050 of __ieee754_expf.
7051 * math/e_exp10l.c: Include <float.h>.
7052 (__ieee754_exp10l): Handle underflow here rather than multiplying
7053 large negative argument by M_LN10l.
7054 * math/libm-test.inc (exp10_test): Add another test. Do not allow
7055 spurious overflow exception on underflow.
7056
70572012-04-29 Marek Polacek <polacek@redhat.com>
7058
7059 * misc/sys/cdefs.h (__attribute_artificial__): New macro.
7060 (__fortify_function): New macro.
7061 (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
7062 * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
7063 __extern_always_inline.
7064 * libio/bits/stdio2.h: Likewise.
7065 * libio/bits/stdio.h: Likewise.
7066 * string/string.h: Likewise.
7067 * string/bits/string3.h: Likewise.
7068 * include/stdio.h: Likewise.
7069 * stdlib/bits/stdlib.h: Likewise.
7070 * stdlib/stdlib.h: Likewise.
7071 * rt/bits/mqueue2.h: Likewise.
7072 * rt/mqueue.h: Likewise.
7073 * posix/bits/unistd.h: Likewise.
7074 * posix/unistd.h: Likewise.
7075 * io/bits/poll2.h: Likewise.
7076 * io/bits/fcntl2.h: Likewise.
7077 * io/fcntl.h: Likewise.
7078 * io/sys/poll.h: Likewise.
7079 * misc/bits/syslog.h: Likewise.
7080 * misc/bits/syslog-ldbl.h: Likewise.
7081 * misc/sys/syslog.h: Likewise.
7082 * socket/bits/socket2.h: Likewise.
7083 * socket/sys/socket.h: Likewise.
7084 * debug/tst-chk1.c: Likewise.
7085 * wcsmbs/bits/wchar2.h: Likewise.
7086 * wcsmbs/bits/wchar-ldbl.h: Likewise.
7087 * wcsmbs/wchar.h: Likewise.
7088
70892012-04-29 Andreas Jaeger <aj@suse.de>
7090
7091 * Makerules (tests): Remove enable-check-abi protection.
7092 (check-abi-warn): Remove.
7093 (check-abi-%): Remove check-abi-warn usage.
7094
7095 * configure.in: Remove check-abi configure option.
7096 * configure: Regenerated.
7097 * config.make.in (enable-check-abi): Remove.
7098
70992012-04-28 Andreas Schwab <schwab@linux-m68k.org>
7100
7101 [BZ #14033]
7102 * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7103 double functions to double *_finite functions.
7104
7105 [BZ #13941]
7106 * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7107 (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7108 LDBL_MIN_EXP.
7109 * stdio-common/Makefile (tests): Add tst-sprintf3.
7110 * stdio-common/tst-sprintf3.c: New file.
7111
7112 * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
7113 ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
7114
71152012-04-28 Joseph Myers <joseph@codesourcery.com>
7116
7117 * conform/conformtest.pl: Remove duplicate typed-constant
7118 handling.
7119
71202012-04-28 David S. Miller <davem@davemloft.net>
7121
7122 * Makerules (%.abilist): Add vpath on sysdep_dirs.
7123 (check-abi-%): Remove AWK script prerequisite and explicit
7124 abilist directory.
7125 (check-abi): Rewrite to just diff the symlist with the abilist.
7126 (config-tls, config-abi-config): Delete, no longer used.
7127 (update-abi-%): Remove AWK script and explicit abilist directory.
7128 (update-abi): Rewrite to simply compare and conditionally copy the
7129 symlist and the sysdep abilist file. Remove update-abi-config
7130 checks.
7131 * abilist/ld.abilist: Remove.
7132 * abilist/libBrokenLocale.abilist: Remove.
7133 * abilist/libanl.abilist: Remove.
7134 * abilist/libcrypt.abilist: Remove.
7135 * abilist/libdl.abilist: Remove.
7136 * abilist/librt.abilist: Remove.
7137 * abilist/libthread_db.abilist: Remove.
7138 * abilist/libutil.abilist: Remove.
7139 * scripts/extract-abilist.awk: Remove.
7140 * scripts/merge-abilist.awk: Remove.
7141 * sysdeps/generic/libcidn.abilist: New file.
7142 * sysdeps/generic/libnss_compat.abilist: New file.
7143 * sysdeps/generic/libnss_db.abilist: New file.
7144 * sysdeps/generic/libnss_dns.abilist: New file.
7145 * sysdeps/generic/libnss_files.abilist: New file.
7146 * sysdeps/generic/libnss_hesiod.abilist: New file.
7147 * sysdeps/generic/libnss_nis.abilist: New file.
7148 * sysdeps/generic/libnss_nisplus.abilist: New file.
7149 * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
7150 * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
7151 * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
7152 file.
7153 * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
7154 * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
7155 * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
7156 * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
7157 * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
7158 * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
7159 * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
7160 * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
7161 * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
7162 file.
7163 * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
7164 * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
7165 * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
7166 * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
7167 file.
7168 * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
7169 * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
7170 * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
7171 * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
7172 * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7173 * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7174 file.
7175 * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7176 * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7177 * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7178 file.
7179 * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7180 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7181 New file.
7182 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7183 New file.
7184 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7185 New file.
7186 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7187 New file.
7188 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7189 New file.
7190 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7191 New file.
7192 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7193 New file.
7194 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7195 New file.
7196 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7197 New file.
7198 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7199 New file.
7200 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7201 New file.
7202 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7203 New file.
7204 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7205 New file.
7206 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7207 file.
7208 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7209 New file.
7210 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7211 New file.
7212 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7213 file.
7214 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7215 New file.
7216 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7217 New file.
7218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7219 file.
7220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7221 New file.
7222 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7223 New file.
7224 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7225 New file.
7226 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7227 New file.
7228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7229 New file.
7230 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7231 New file.
7232 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7233 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7234 file.
7235 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7236 New file.
7237 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7238 file.
7239 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7240 file.
7241 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7242 file.
7243 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7244 file.
7245 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7246 file.
7247 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7248 New file.
7249 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7250 file.
7251 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7252 file.
7253 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7254 New file.
7255 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7256 file.
7257 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7258 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7259 file.
7260 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7261 New file.
7262 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7263 file.
7264 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7265 file.
7266 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7267 file.
7268 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7269 file.
7270 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7271 file.
7272 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7273 New file.
7274 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7275 file.
7276 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7277 file.
7278 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7279 New file.
7280 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7281 file.
7282 * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7283 * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7284 * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7285 file.
7286 * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7287 * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7288 * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7289 * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7290 * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7291 * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7292 * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7293 * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7294 * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7295 * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7296 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7297 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7298 file.
7299 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7300 New file.
7301 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7302 file.
7303 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7304 file.
7305 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7306 file.
7307 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7308 file.
7309 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7310 file.
7311 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7312 New file.
7313 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7314 New file.
7315 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7316 file.
7317 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7318 New file.
7319 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7320 file.
7321 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7322 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7323 file.
7324 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7325 New file.
7326 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7327 file.
7328 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7329 file.
7330 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7331 file.
7332 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7333 file.
7334 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7335 file.
7336 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7337 New file.
7338 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7339 New file.
7340 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7341 file.
7342 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7343 New file.
7344 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7345 file.
7346
73472012-04-28 Joseph Myers <joseph@codesourcery.com>
7348
7349 * conform/conformtest.pl: Fix typo in handling typed-constant from
7350 allow-header.
7351
73522012-04-27 Joseph Myers <joseph@codesourcery.com>
7353
7354 * README: Cut down references to pre-2.6 Linux kernels and
7355 Linuxthreads. Update lists of configurations in libc and ports
7356 and sort alphabetically. Say "or newer" with Linux kernel version
7357 requirements.
7358
7359 * config.h.in [IS_IN_build]: Allow compiling without optimization.
7360
73612012-04-27 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
7362
7363 [BZ #887]
7364 * math/libm-test.inc (logb_test_downward): New test to expose
7365 erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7366 rounding mode.
7367
73682012-04-27 Joseph Myers <joseph@codesourcery.com>
7369
7370 [BZ #14027]
7371 * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7372 to be done.
7373 * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7374 * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7375
73762012-04-26 Joseph Myers <joseph@codesourcery.com>
7377
7378 * sysdeps/unix/i386/brk.S: Remove file.
7379 * sysdeps/unix/i386/dl-brk.S: Likewise.
7380 * sysdeps/unix/i386/pipe.S: Likewise.
7381 * sysdeps/unix/i386/sigreturn.S: Likewise.
7382 * sysdeps/unix/i386/syscall.S: Likewise.
7383 * sysdeps/unix/i386/vfork.S: Likewise.
7384 * sysdeps/unix/i386/wait.S: Likewise.
7385
7386 * sysdeps/unix/common/tcsendbrk.c: Move to ...
7387 * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7388
7389 * configure.in (arm*-none*): Do not allow without
7390 --enable-hacker-mode.
7391 (netbsd*): Remove case setting base_os.
7392 (386bsd*): Likewise.
7393 (freebsd*): Likewise.
7394 (bsdi*): Likewise.
7395 (osf*): Likewise.
7396 (sunos*): Likewise.
7397 (ultrix*): Likewise.
7398 (newsos*): Likewise.
7399 (dynix*): Likewise.
7400 (*bsd*): Likewise.
7401 (sysv*): Likewise.
7402 (isc*): Likewise.
7403 (esix*): Likewise.
7404 (sco*): Likewise.
7405 (minix*): Likewise.
7406 (irix4*): Likewise.
7407 (irix6*): Likewise.
7408 (solaris[2-9]*): Likewise.
7409 (none): Likewise.
7410 * configure: Regenerated.
7411
74122012-04-26 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
7413
7414 [BZ #11521]
7415 * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7416 overflow or cancellation in calculating denominator.
7417 * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7418 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7419 down expression to avoid unexpected rounding in newer GCCs.
7420 * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7421
74222012-04-26 David S. Miller <davem@davemloft.net>
7423
7424 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7425 long-double compat symbols.
7426 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7427 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7428 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7429 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7430 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7431 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7432 * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7433 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7434 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7435 * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7436 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7437 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7438 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7439
74402012-04-25 David S. Miller <davem@davemloft.net>
7441
7442 * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7443 HWCAP_* values only after the memory barriers have been defined.
7444 (atomic_full_barrier): Define.
7445 (atomic_read_barrier): Define.
7446 (atomic_write_barrier): Define.
7447
74482012-04-26 Siddhesh Poyarekar <siddhesh@redhat.com>
7449
7450 * shlib-versions: Add libgcc_s version information.
7451 * sysdeps/generic/libgcc_s.h: Remove.
7452 * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7453 libgcc_s.h.
7454 * sysdeps/gnu/unwind-resume.c: Likewise.
7455 * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7456
74572012-04-25 David S. Miller <davem@davemloft.net>
7458
7459 * sysdeps/unix/sparc/brk.S: Delete.
7460 * sysdeps/unix/sparc/dl-brk.S: Delete.
7461 * sysdeps/unix/sparc/pipe.S: Delete.
7462 * sysdeps/unix/sparc/sysdep.S: Delete.
7463 * sysdeps/unix/sparc/sysdep.h: Delete.
7464 * sysdeps/unix/sparc/vfork.S: Delete.
7465 * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7466 SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7467 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7468 ret_ERRVAL, r0, r1, MOVE): Define.
7469 (JUMPTARGET): Remove.
7470 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7471 sysdeps/unix/sparc/sysdep.h
7472 (ENTRY, END): Remove.
7473 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7474
74752012-04-25 Joseph Myers <joseph@codesourcery.com>
7476
7477 * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7478 (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7479 -DIS_IN_build.
7480
7481 * timezone/README: Update upstream location and email address for
7482 tzcode and tzdata.
7483 * timezone/zdump.c: Update from tzcode 2012b.
7484 * timezone/zic.c: Likewise.
7485
7486 * configure.in (libc_cv_as_needed): Remove test.
7487 * configure: Regenerated.
7488 * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7489 conditional definition.
7490 [$(have-as-needed) != yes] (no-as-needed): Likewise.
7491 [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7492 * config.make.in (have-as-needed): Remove variable.
7493
74942012-04-25 Siddhesh Poyarekar <siddhesh@redhat.com>
7495 Paul Pluzhnikov <ppluzhnikov@google.com>
7496
7497 * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
7498 strings correctly.
7499
75002012-04-25 Chung-Lin Tang <cltang@codesourcery.com>
7501
7502 * sysdeps/sh/memcpy.S: Remove include of endian.h, change
7503 preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
7504 * sysdeps/sh/strlen.S: Likewise.
7505
75062012-04-24 Joseph Myers <joseph@codesourcery.com>
7507
7508 * sysdeps/unix/fork.S: Remove file.
7509 * sysdeps/unix/i386/fork.S: Likewise.
7510 * sysdeps/unix/sparc/fork.S: Likewise.
7511
7512 * sysdeps/unix/system.c: Remove file.
7513 * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
7514
7515 * sysdeps/unix/getegid.S: Remove file.
7516 * sysdeps/unix/geteuid.S: Likewise.
7517
75182012-04-24 Roland McGrath <roland@hack.frob.com>
7519
7520 * scripts/check-localplt.awk: New file.
7521 * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
7522 of diff.
7523 * scripts/data/localplt-generic.data: Add a comment.
7524
7525 * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
7526 NODE when __dir_mkfile failed.
7527 * sysdeps/mach/hurd/symlinkat.c: Likewise.
7528 Reported by Ludovic Courtès <ludo@gnu.org>.
7529
75302012-04-24 Andreas Jaeger <aj@suse.de>
7531
7532 * Makerules (common-clean): Also remove gen-as-const-headers
7533 files.
7534
75352012-04-24 Joseph Myers <joseph@codesourcery.com>
7536
7537 * Makerules (native-compile): Do not change working directory for
7538 build. Use $(OUTPUT_OPTION) in command.
7539 (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
7540
75412012-04-24 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
7542
7543 [BZ #13886]
7544 * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
7545 sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
7546 * math/libm-test.inc (floor_test): Add more tests.
7547 * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
7548
75492012-04-24 Joseph Myers <joseph@codesourcery.com>
7550
7551 * sysdeps/unix/getdents.c: Remove file.
7552 * sysdeps/unix/sysv/getdents.c: Likewise.
7553 * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
7554
7555 * sysdeps/unix/syscalls.list (madvise): Add syscall from
7556 sysdeps/unix/mman/syscalls.list.
7557 (mmap): Likewise.
7558 (mprotect): Likewise.
7559 (msync): Likewise.
7560 (munmap): Likewise.
7561 * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
7562 * sysdeps/unix/mman/syscalls.list: Remove.
7563 * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
7564
7565 * configure.in (libc_cv_libgcc_s_suffix): Remove test.
7566 (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
7567 * configure: Regenerated.
7568 * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
7569 $(libgcc_s_suffix).
7570 * config.make.in (libgcc_s_suffix): Remove variable.
7571
75722012-04-23 Joseph Myers <joseph@codesourcery.com>
7573
7574 * sysdeps/unix/sysv/gethostname.c: Move to ...
7575 * sysdeps/posix/gethostname.c: ... here.
7576
7577 * sysdeps/unix/execve.S: Remove file.
7578
7579 * sysdeps/unix/_exit.S: Remove file.
7580
75812012-04-23 Andreas Jaeger <aj@suse.de>
7582
7583 [BZ #13739]
7584 * manual/Makefile: Remove make dist support, there's no
7585 need for a stand-alone documentation tar ball.
7586 (TEXI2DVI): Define always, it's not in Makeconfig.
7587 (dist): Removed.
7588 (tar-it): Removed.
7589 (edition): Removed.
7590 (glibc-doc-$(edition).tar): Removed
7591 (%.Z): Removed.
7592 (%.gz): Removed.
7593 (%.uu): Removed.
7594 (ETAGS): Remove, it's in Makeconfig.
7595 (move-if-change): Remove, it's in Makeconfig.
7596
75972013-04-23 Paul Eggert <eggert@cs.ucla.edu>
7598
7599 [BZ #13970]
7600 * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
7601 (strtod, strtof, strtold, strtol, strtoul, strtoq)
7602 (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
7603 (strtod_l, strtof_l, strtold_l): Remove __wur.
7604 It is not necessarily an error to ignore strtol's return value.
7605 One can reliably look at the stored endptr to decide whether
7606 the number had valid syntax.
7607
76082012-04-21 Andreas Jaeger <aj@suse.de>
7609
7610 [BZ #13739]
7611 * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
7612
76132012-04-21 Joseph Myers <joseph@codesourcery.com>
7614
7615 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
7616 * sysdeps/unix/sysv/Versions: Remove file.
7617
76182012-04-21 Markus Trippelsdorf <markus@trippelsdorf.de>
7619
7620 [BZ #13927]
7621 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7622
76232012-04-21 Nick Alcock <nick.alcock@oracle.com>
7624
7625 [BZ #7064]
7626 * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
7627 version from __vm86.
7628
76292012-04-20 Joseph Myers <joseph@codesourcery.com>
7630
7631 * sysdeps/unix/common/lxstat.c: Remove file.
7632 * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
7633
7634 * sysdeps/unix/sysv/Makefile: Remove file.
7635
7636 * sysdeps/unix/sysv/direct.h: Remove file.
7637
7638 * sysdeps/unix/sysv/bits/dirent.h: Remove file.
7639 * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
7640 * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
7641 * sysdeps/unix/sysv/bits/signum.h: Likewise.
7642 * sysdeps/unix/sysv/bits/stat.h: Likewise.
7643 * sysdeps/unix/sysv/bits/utmp.h: Likewise.
7644 * sysdeps/unix/sysv/bits/utsname.h: Likewise.
7645
7646 * sysdeps/unix/sysv/setrlimit.c: Remove file.
7647
7648 * sysdeps/unix/xmknod.c: Remove file.
7649 * sysdeps/unix/syscalls.list (sys_mknod): Remove.
7650
7651 * sysdeps/unix/sysv/settimeofday.c: Remove file.
7652
7653 * sysdeps/unix/sysv/i386/time.S: Remove file.
7654
7655 * sysdeps/unix/fxstat.c: Remove file.
7656 * sysdeps/unix/xstat.c: Likewise.
7657 * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
7658
7659 * sysdeps/unix/sysv/sigaction.c: Remove file.
7660
7661 * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
7662 (sysdep_headers): Remove variable.
7663 [termio.h not in sysdep_headers] (generated): Likewise.
7664 [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
7665 * sysdeps/unix/sysv/sysv_termio.h: Remove file.
7666 * sysdeps/unix/sysv/tcdrain.c: Likewise.
7667 * sysdeps/unix/sysv/tcflow.c: Likewise.
7668 * sysdeps/unix/sysv/tcflush.c: Likewise.
7669 * sysdeps/unix/sysv/tcgetattr.c: Likewise.
7670 * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
7671 * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
7672 * sysdeps/unix/sysv/tcsetattr.c: Likewise.
7673 * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
7674
7675 * sysdeps/unix/siglist.c: Remove file.
7676
7677 * sysdeps/unix/getppid.S: Remove file.
7678
7679 * sysdeps/unix/mkdir.c: Remove file.
7680 * sysdeps/unix/rmdir.c: Likewise.
7681
76822012-04-19 Andreas Schwab <schwab@linux-m68k.org>
7683
7684 * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
7685 ERR_MAX value.
7686 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
7687 errlist-compat value.
7688
76892012-04-18 David S. Miller <davem@davemloft.net>
7690
7691 * sysdeps/generic/memcopy.h (reg_char): Delete.
7692 * debug/strcat_chk.c: Use char, not reg_char.
7693 * debug/strcpy_chk.c: Likewise.
7694 * debug/strncat_chk.c: Likewise.
7695 * debug/strncpy_chk.c: Likewise.
7696 * string/memchr.c: Likewise.
7697 * string/memrchr.c: Likewise.
7698 * string/rawmemchr.c: Likewise.
7699 * string/strcat.c: Likewise.
7700 * string/strchr.c: Likewise.
7701 * string/strchrnul.c: Likewise.
7702 * string/strcmp.c: Likewise.
7703 * string/strcpy.c: Likewise.
7704 * string/strncat.c: Likewise.
7705 * string/strncmp.c: Likewise.
7706 * string/strncpy.c: Likewise.
7707
77082012-04-18 Will Schmidt <will_schmidt@vnet.ibm.com>
7709
7710 * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
7711 __builtin_memcopy is called when src and dest ranges are known to not
7712 overlap.
7713
77142012-04-18 Will Schmidt <will_schmidt@vnet.ibm.com>
7715
7716 * sysdeps/powerpc/powerpc64/power6/wordcopy.c
7717 (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
7718 fwd_align_merge macro call.
7719 (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
7720 bwd_align_merge macro call.
7721 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7722
77232012-04-18 Will Schmidt <will_schmidt@vnet.ibm.com>
7724
7725 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
7726 bwd_align_merge macros.
7727 (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
7728 (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
7729 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7730
77312012-04-18 David S. Miller <davem@davemloft.net>
7732
7733 * sysdeps/sparc/sparc64/memcopy.h: Delete.
7734
77352012-04-18 Andreas Jaeger <aj@suse.de>
7736
7737 [BZ# 6794]
7738 * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
7739 * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
7740 Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7741
7742 * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
7743 * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
7744 Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7745
7746 * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
7747 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
7748 Adjust for changed ldbl-128 files.
7749
7750 * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
7751 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
7752 Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7753
77542012-04-17 David S. Miller <davem@davemloft.net>
7755
7756 * sysdeps/sparc/sparc32/memcopy.h: Delete.
7757
77582012-04-17 Andreas Schwab <schwab@linux-m68k.org>
7759
7760 * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
7761 * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
7762 * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
7763 * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
7764 * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
7765 * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
7766
77672012-04-17 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
7768
7769 [BZ #6794]
7770 * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
7771 * math/libm-test.inc: Add ilogb errno and exception tests.
7772 * math/w_ilogb.c: New file: ilogb wrapper.
7773 * math/w_ilogbf.c: New file: ilogbf wrapper.
7774 * math/w_ilogbl.c: New file: ilogbl wrapper.
7775 * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
7776 * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
7777 * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
7778 exception being thrown with 0.0 as argument.
7779 * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
7780 * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
7781 exception being thrown with 0.0 as argument.
7782 * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
7783 * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7784 exception being thrown with 0.0 as argument.
7785 * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
7786 * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7787 exception being thrown with 0.0 as argument.
7788 * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
7789 * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
7790 * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
7791 * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
7792 * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
7793 * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
7794 * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
7795 * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
7796 * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
7797
77982012-04-17 Petr Baudis <pasky@ucw.cz>
7799
7800 * include/sys/uio.h: Change __vector to __iovec to avoid clash
7801 with altivec.
7802
78032012-04-16 Marek Polacek <polacek@redhat.com>
7804
7805 * elf/pldd-xx.c: Rename static_assert to pldd_assert.
7806
78072012-04-16 Marek Polacek <polacek@redhat.com>
7808
7809 * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
7810 operands of fdivp instruction.
7811
78122012-04-13 H.J. Lu <hongjiu.lu@intel.com>
7813
7814 * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
7815 * elf/tst-auditmod3b.c: Likewise.
7816 * elf/tst-auditmod4b.c: Likewise.
7817 * elf/tst-auditmod5b.c: Likewise.
7818 * elf/tst-auditmod6b.c: Likewise.
7819 * elf/tst-auditmod6c.c: Likewise.
7820 * elf/tst-auditmod7b.c: Likewise.
7821 * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
7822 * sysdeps/x86_64/preconfigure.in: Likewise.
7823 * sysdeps/x86_64/preconfigure: Regenerated.
7824
78252012-04-13 H.J. Lu <hongjiu.lu@intel.com>
7826
7827 * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
7828 __ILP32__.
7829
78302012-04-13 Antoine Balestrat <merkil33@gmail.com>
7831
7832 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7833 (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
7834
78352012-04-13 Chris Leonard <cjlhomeaddress@gmail.com>
7836
7837 [BZ #13973]
7838 * locale/iso-639.def: Fix gl language name. Spotted by
7839 Yaron Shahrabani.
7840
78412012-04-12 Roland McGrath <roland@hack.frob.com>
7842
7843 [BZ #2074]
7844 * libio/libio.h (__io_write_fn): Update comment.
7845
78462012-04-12 Petr Baudis <pasky@ucw.cz>
7847
7848 [BZ #2074]
7849 * stdio.texi (Hook Functions): The user provided writer function
7850 is not allowed to return -1.
7851
78522012-04-11 David S. Miller <davem@davemloft.net>
7853
7854 * sysdeps/sparc/fpu/libm-test-ulps: Update.
7855
78562012-04-11 Mike Frysinger <vapier@gentoo.org>
7857
7858 * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
7859 Add a leading slash to rtkaio.
7860
78612012-04-11 Jim Meyering <meyering@redhat.com>
7862
7863 [BZ #11959]
7864 * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
7865 It is not necessarily an error to ignore fwrite's return
7866 value. One can reliably use ferror to test for errors after
7867 the fact.
7868
78692012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7870
7871 * bits/types.h (__snseconds_t): New type.
7872 * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
7873
7874 * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
7875 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7876 (__SNSECONDS_T_TYPE): Likewise.
7877 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7878 (__SNSECONDS_T_TYPE): Likewise.
7879 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7880 (__SNSECONDS_T_TYPE): Likewise.
7881
78822012-04-10 Andreas Jaeger <aj@suse.de>
7883
7884 [BZ #2636]
7885 * manual/time.texi (Processor Time): Return type of times is
7886 elapsed real time since an arbitrary point in the past.
7887 (CPU Time): Move CLK_TCK from here...
7888 (Processor Time): ...to here. Correct description.
7889 * manual/conf.texi (Constants for Sysconf): Correct description of
7890 _SC_CLK_TCK.
7891
78922012-04-10 David S. Miller <davem@davemloft.net>
7893
7894 [BZ #13967]
7895 * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
7896 where the is a gap between DT_REL(A) and DT_JMPREL.
7897
78982012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7899
7900 * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
7901 (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7902 (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7903
79042012-04-10 Siddhesh Poyarekar <siddhesh@redhat.com>
7905
7906 * elf/dl-support.c (_dl_inhibit_cache): New variable.
7907 * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
7908 (dl_main): Handle --inhibit-cache.
7909 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
7910 _dl_inhibit_cache.
7911 * elf/dl-load.c (_dl_map_object): Use it.
7912 * elf/Makefile: Define SYSCONFDIR when building rtld.c.
7913
79142012-04-09 Joseph Myers <joseph@codesourcery.com>
7915
7916 [BZ #13872]
7917 * sysdeps/i386/fpu/e_powl.S (p78): New object.
7918 (__ieee754_powl): Saturate large exponents rather than testing for
7919 overflow of y*log2(x).
7920 * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7921 * math/libm-test.inc (pow_test): Do not permit spurious overflow
7922 exceptions.
7923
7924 [BZ #11521]
7925 * math/s_ctan.c: Include <float.h>.
7926 (__ctan): Avoid internal overflow or cancellation in calculating
7927 denominator.
7928 * math/s_ctanf.c: Likewise.
7929 * math/s_ctanl.c: Likewise.
7930 * math/s_ctanh.c: Likewise.
7931 * math/s_ctanhf.c: Likewise.
7932 * math/s_ctanhl.c: Likewise.
7933 * math/libm-test.inc (ctan_test): Add more tests.
7934 (ctanh_test): Likewise.
7935 * sysdeps/i386/fpu/libm-test-ulps: Update.
7936 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7937
79382012-04-09 Andreas Jaeger <aj@suse.de>
7939
7940 [BZ #6894]
7941 * manual/filesys.texi (Directory Entries): Mention that d_namlen
7942 is an optional BSD extension.
7943
7944 [BZ #10254]
7945 * manual/stdio.texi (Opening Streams): Document additional fopen
7946 parameters.
7947
79482012-04-09 Roland McGrath <roland@hack.frob.com>
7949
7950 * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
7951 %eax without telling the compiler.
7952
79532012-04-09 Carlos O'Donell <carlos_odonell@mentor.com>
7954
7955 [BZ # 13963]
7956 * manual/install.texi: Use sourceware.org.
7957
79582012-04-09 Joseph Myers <joseph@codesourcery.com>
7959
7960 [BZ #13873]
7961 * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
7962 (__ieee754_pow): Generate overflow and underflow using huge*huge
7963 and tiny*tiny rather than just returning constant infinity or zero
7964 for large exponents.
7965 * math/libm-test.inc (pow_test): Require overflow exceptions for
7966 applicable cases of large exponents.
7967
7968 [BZ #706]
7969 * sysdeps/i386/fpu/e_pow.S (p10): New object.
7970 (__ieee754_pow): Use iterative multiplication algorithm only for
7971 integer exponents with absolute value below 1024. Check for odd
7972 integer exponents when using algorithm for real exponents.
7973 * math/libm-test.inc (pow_test): Add more tests.
7974 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7975
79762012-04-08 Joseph Myers <joseph@codesourcery.com>
7977
7978 [BZ #13705]
7979 * math/libm-test.inc (exp_test): Do not allow overflow exception
7980 on underflow test.
7981
79822012-04-08 Aurelien Jarno <aurelien@aurel32.net>
7983
7984 [BZ #13705]
7985 * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
7986 instead of __kernel_standard_f.
7987
79882012-04-08 Mike Frysinger <vapier@gentoo.org>
7989
7990 * sysdeps/i386/i686/memset_chk.S: Update copyright year.
7991 * sysdeps/x86_64/memset_chk.S: Likewise.
7992
79932012-04-08 Andreas Jaeger <aj@suse.de>
7994
7995 [BZ #10153]
7996 * manual/startup.texi (Environment Access): Describe return value
7997 for putenv and setenv.
7998
7999 [BZ #6895]
8000 * manual/filesys.texi (Directory Entries): Add description for
8001 DT_LNK.
8002
8003 [BZ #6890]
8004 * manual/filesys.texi (Directory Entries): Clarify that it's file
8005 system not operating system in the description of DT_UNKNOWN.
8006
8007 [BZ #6578]
8008 * manual/syslog.texi (closelog): Fix reference, it's openlog.
8009
80102012-04-08 Stephen Compall <s11@member.fsf.org>
8011
8012 [BZ #6649]
8013 * manual/llio.texi (Opening and Closing Files): Add cross
8014 reference to explain mode argument.
8015
80162012-04-07 Mike Frysinger <vapier@gentoo.org>
8017
8018 * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8019 * sysdeps/x86_64/memset_chk.S: Likewise.
8020
80212012-04-07 David S. Miller <davem@davemloft.net>
8022
8023 * elf/elf.h (R_SPARC_WDISP10): Define.
8024 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8025 R_SPARC_SIZE32.
8026 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8027 R_SPARC_SIZE64 and R_SPARC_H34.
8028
80292012-04-07 Carlos O'Donell <carlos_odonell@mentor.com>
8030
8031 * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8032 conditions and remove no longer applicable assertion.
8033
80342012-04-06 H.J. Lu <hongjiu.lu@intel.com>
8035
8036 * bits/byteswap.h: Include <features.h>.
8037 (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8038 (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8039
80402012-04-06 H.J. Lu <hongjiu.lu@intel.com>
8041
8042 * bits/byteswap.h (__bswap_16): Removed.
8043 Include <bits/byteswap-16.h> to get __bswap_16.
8044 * sysdeps/i386/bits/byteswap.h: Likewise.
8045 * sysdeps/s390/bits/byteswap.h: Likewise.
8046 * sysdeps/x86_64/bits/byteswap.h: Likewise.
8047 * bits/byteswap-16.h: New file.
8048 * sysdeps/i386/bits/byteswap-16.h: Likewise.
8049 * sysdeps/s390/bits/byteswap-16.h: Likewise.
8050 * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
8051 * string/Makefile (headers): Add bits/byteswap-16.h.
8052
80532012-04-06 Paul Pluzhnikov <ppluzhnikov@google.com>
8054
8055 [BZ #13895]
8056 * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
8057 extra indirection.
8058 * nss/Makefile (tests-static, tests): Add tst-nss-static.
8059 * nss/tst-nss-static.c: New.
8060
80612012-04-06 Robert Millan <rmh@gnu.org>
8062
8063 [BZ #6486]
8064 * manual/llio.texi (File Position Primitive): lseek
8065 refers to WHENCE when it really means OFFSET.
8066
80672012-04-06 Andreas Jaeger <aj@suse.de>
8068
8069 * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
8070 strncmp declarations.
8071
8072 * abilist/libc.abilist: Add __poll and __ppoll.
8073
80742012-04-05 David S. Miller <davem@davemloft.net>
8075
8076 * scripts/check-local-headers.sh: Accept a host triplet in the
8077 path matched by the exclude regexp.
8078
8079 * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
8080 definition.
8081 * sysdeps/powerpc/powerpc32/dl-machine.h
8082 (ELF_MACHINE_PLTREL_OVERLAP): Delete.
8083 * sysdeps/s390/s390-32/dl-machine.h
8084 (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8085 * sysdeps/sparc/sparc32/dl-machine.h
8086 (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8087 * sysdeps/sparc/sparc64/dl-machine.h
8088 (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8089
8090 * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
8091 lazy binding.
8092 * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
8093 undefined symbol errors.
8094
8095 * elf/rtld.c (dl_main): Skip VDSO when checking for unused
8096 DT_NEEDED entries.
8097
80982012-04-05 Michael Matz <matz@suse.de>
8099
8100 [BZ #13592]
8101 * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8102
81032012-04-05 Andreas Jaeger <aj@suse.de>
8104
8105 [BZ #13908]
8106 * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8107 comment.
8108
81092012-04-05 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
8110
8111 * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
8112 which ROUND is no valid rounding mode.
8113
81142012-04-05 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
8115
8116 * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
8117 read again.
8118 * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
8119
81202012-04-05 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
8121
8122 * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
8123 an exception using FPU order intentionally.
8124
81252012-04-05 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
8126
8127 * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
8128 * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
8129 * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
8130 * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
8131
81322012-04-05 Simon Josefsson <simon@josefsson.org>
8133
8134 [BZ #12340]
8135 * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
8136 EINVAL when BUFLEN is too smal.
8137
81382012-04-05 Thomas Schwinge <thomas@codesourcery.com>
8139
8140 [BZ #13553]
8141 * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
8142 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8143
81442012-04-03 Andreas Jaeger <aj@suse.de>
8145
8146 [BZ #13938]
8147 * manual/setjmp.texi (System V contexts): Fix sentence.
8148
8149 [BZ #13926]
8150 * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
8151 New macro for this case.
8152 [!__GNUC__] (__bswap_64): New inline function for this case.
8153 * sysdeps/x86_64/bits/byteswap.h: Likewise.
8154 * bits/byteswap.h: Likewise.
8155 * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
8156 ull, guard with __GLIBC_HAVE_LONG_LONG.
8157
8158 * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
8159 __GLIBC_HAVE_LONG_LONG.
8160
8161 * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
8162 Include <features.h> for __GLIBC_HAVE_LONG_LONG.
8163
81642012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8165
8166 [BZ #13691]
8167 * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
8168 inptr and inend, rather than using last_ch.
8169
81702012-04-02 David S. Miller <davem@davemloft.net>
8171
8172 With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8173 * stdio-common/printf-parse.h (read_int): Change return type to
8174 'int', return -1 on INT_MAX overflow.
8175 * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8176 against overflow of INT_MAX. Set errno to EOVERFLOW when 'done'
8177 overflows INT_MAX. Check for overflow of in-format-string precision
8178 values properly. Use EOVERFLOW rather than ERANGE throughout. Use
8179 SIZE_MAX not INT_MAX for integer overflow test.
8180 * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8181 skip the construct in the format string but do not record anything.
8182 * stdio-common/bug22.c: Adjust to test both width/prevision
8183 INT_MAX overflow as well as total length INT_MAX overflow. Check
8184 explicitly for proper errno values.
8185
81862012-04-02 Thomas Schwinge <thomas@codesourcery.com>
8187
8188 * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8189 CHAR_MAX.
8190 * string/test-strcmp.c [! WIDE]: Likewise.
8191 * time/tst-mktime2.c: Likewise for INT_MAX.
8192 * string/test-string.h: #include <sys/param.h> for MIN.
8193
8194 * csu/init-first.c (__libc_init_first): Call __ctype_init.
8195 * sysdeps/i386/init-first.c (init): Likewise.
8196 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8197 * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8198 * sysdeps/sh/init-first.c (init): Likewise.
8199
82002012-04-01 Ulrich Drepper <drepper@gmail.com>
8201
8202 * po/ru.po: Update from translation team.
8203 * po/vi.po: Likewise.
8204
82052012-03-31 Siddhesh Poyarekar <siddhesh@redhat.com>
8206
8207 * resolv/nss_dns/dns-host.c: Merge copyright years.
8208
82092012-03-22 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
8210
8211 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8212 Optimize memcpy with prefetch if
8213 DATA_CACHE_SIZE_HALF <= len < SHARED_CACHE_SIZE_HALF and
8214 src, dst pointers have unequal 16 byte alignments.
8215
82162012-03-30 Siddhesh Poyarekar <siddhesh@redhat.com>
8217
8218 [BZ #13928]
8219 * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8220 from a CNAME entry and return the minimum ttl for the query.
8221 (gaih_getanswer_slice): Likewise.
8222
82232012-03-30 Jeff Law <law@redhat.com>
8224
8225 * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8226 due to long keys.
8227 * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8228 * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8229
8230 * resolv/nss_dns/dns-host.c: Update copyright year.
8231
82322012-03-30 Ulrich Drepper <drepper@gmail.com>
8233
8234 * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8235 requests to save a system call. Fix check that all bytes are sent.
8236
8237 * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8238 comments for sendmmsg.
8239
82402012-03-30 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8241
8242 [BZ #13691]
8243 * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8244 with only 1 character between 0x0041 and 0x01b0.
8245 * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8246 * wcsmbs/tst-mbsnrtowcs.c: New file.
8247
82482012-03-29 David S. Miller <davem@davemloft.net>
8249
8250 * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8251 small copies by hand.
8252
82532012-03-28 Siddhesh Poyarekar <siddhesh@redhat.com>
8254
8255 [BZ #13761]
8256 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8257 _nss_compat_initgroups_dyn): Fall back to malloc/free
8258 for large group memberships.
8259
82602012-03-28 David S. Miller <davem@davemloft.net>
8261
8262 * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8263 that branches into memcpy.
8264 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8265 * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8266 * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8267 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8268 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8269 bits.
8270 * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8271 implementation too.
8272 * sysdeps/sparc/mempcpy.S: New file.
8273
8274 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8275 the IFUNC routine in the libc case.
8276 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8277
8278 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8279 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8280 * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8281 * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8282 * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8283 * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8284 * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8285 * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8286
8287 * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8288 loop to 256 bytes instead of 64 bytes and fix test signedness.
8289
8290 * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8291 * sysdeps/sparc/sparc32/Makefile: rather than here...
8292 * sysdeps/sparc/sparc64/Makefile: and here.
8293
82942012-03-28 Ulrich Drepper <drepper@gmail.com>
8295
8296 * malloc/mallocbug.c: Avoid warnings about unused variables.
8297
82982012-02-22 Siddhesh Poyarekar <siddhesh@redhat.com>
8299
8300 [BZ #13760]
8301 * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8302 in the right place. Discard and retry query if response is
8303 larger than input buffer size.
8304
83052012-03-28 Joseph Myers <joseph@codesourcery.com>
8306
8307 [BZ #369]
8308 [BZ #2678]
8309 [BZ #3866]
8310 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8311 x for large integer exponent.
8312 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8313 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise. Adjust
8314 sign of result as needed afterwards.
8315 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8316 * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8317 result for underflowing pow the same as for overflow.
8318 (__kernel_standard_l): Handle powl overflow and underflow here
8319 rather than calling __kernel_standard.
8320 * math/libm-test.inc (pow_test): Add more tests.
8321
8322 [BZ #3868]
8323 [BZ #13879]
8324 [BZ #13910]
8325 [BZ #13911]
8326 [BZ #13912]
8327 [BZ #13913]
8328 [BZ #13915]
8329 [BZ #13916]
8330 [BZ #13917]
8331 [BZ #13918]
8332 [BZ #13919]
8333 [BZ #13920]
8334 [BZ #13921]
8335 * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8336 * sysdeps/ieee754/k_standard.c: Include <float.h>.
8337 (__kernel_standard_l): New function.
8338 * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8339 __kernel_standard.
8340 * math/w_acosl.c (__acosl): Likewise.
8341 * math/w_asinl.c (__asinl): Likewise.
8342 * math/w_atan2l.c (__atan2l): Likewise.
8343 * math/w_atanhl.c (__atanhl): Likewise.
8344 * math/w_coshl.c (__coshl): Likewise.
8345 * math/w_exp10l.c (__exp10l): Likewise.
8346 * math/w_exp2l.c (__exp2l): Likewise.
8347 * math/w_fmodl.c (__fmodl): Likewise.
8348 * math/w_hypotl.c (__hypotl): Likewise.
8349 * math/w_j0l.c (__j0l, __y0l): Likewise.
8350 * math/w_j1l.c (__j1l, __y1l): Likewise.
8351 * math/w_jnl.c (__jnl, __ynl): Likewise.
8352 * math/w_lgammal.c (__lgammal): Likewise.
8353 * math/w_log10l.c (__log10l): Likewise.
8354 * math/w_log2l.c (__log2l): Likewise.
8355 * math/w_logl.c (__logl): Likewise.
8356 * math/w_powl.c (__powl): Likewise.
8357 * math/w_remainderl.c (__remainderl): Likewise.
8358 * math/w_scalbl.c (sysv_scalbl): Likewise.
8359 * math/w_sinhl.c (__sinhl): Likewise.
8360 * math/w_sqrtl.c (__sqrtl): Likewise.
8361 * math/w_tgammal.c (__tgammal): Likewise.
8362 * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8363 * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8364 * math/libm-test.inc (acos_test): Add more tests.
8365 (acosh_test): Likewise.
8366 (asin_test): Likewise.
8367 (atanh_test): Likewise.
8368 (exp_test): Likewise.
8369 (exp10_test): Likewise.
8370 (exp2_test): Likewise.
8371 (expm1_test): Likewise.
8372 (lgamma_test): Likewise.
8373 (log_test): Likewise.
8374 (log10_test): Likewise.
8375 (log1p_test): Likewise.
8376 (log2_test): Likewise.
8377 (pow_test): Do not allow some spurious overflow exceptions.
8378 (sqrt_test): Add more tests.
8379 (tgamma_test): Likewise.
8380 (y0_test): Likewise.
8381 (y1_test): Likewise.
8382 (yn_test): Likewise.
8383
83842012-03-27 Anton Blanchard <anton@samba.org>
8385
8386 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8387 MAP_HUGETLB.
8388 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8389 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8390 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8391
83922012-03-27 David S. Miller <davem@davemloft.net>
8393
8394 * conform/Makefile: Run run-conformtest.sh using $(BASH).
8395
8396 * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8397 have-as-vis3 check.
8398
83992012-03-27 Andreas Jaeger <aj@suse.de>
8400
8401 * sysdeps/x86_64/elf/configure.in: Moved to ...
8402 * sysdeps/x86_64/configure.in: ... here.
8403 * sysdeps/x86_64/elf/start.S: Moved to ...
8404 * sysdeps/x86_64/start.S: ... here.
8405 * sysdeps/x86_64/elf/configure: Delete.
8406
8407 * sysdeps/x86_64/configure.in: Merge contents from
8408 sysdeps/i386/configure.in (without i686 check).
8409
8410 * sysdeps/i386/elf/Versions: Merge into ...
8411 * sysdeps/i386/Versions: ... this.
8412 * sysdeps/i386/elf/Versions: Delete file.
8413 * sysdeps/i386/elf/start.S: Moved to ...
8414 * sysdeps/i386/start.S: ...here.
8415 * sysdeps/i386/elf/configure.in: Merge into...
8416 * sysdeps/i386/configure.in: ...here.
8417 * sysdeps/i386/elf/configure.in: Delete file.
8418 * sysdeps/i386/elf/configure: Delete file.
8419
8420 * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8421 * debug/backtracesyms.c: ... here.
8422 * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8423 * debug/backtracesymsfd.c: ... here.
8424 * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8425 * sysdeps/generic/ifunc-sel.h: ... here.
8426
8427 * sysdeps/unix/i386/start.c: Delete file.
8428 * sysdeps/unix/sparc/start.c: Delete file.
8429 * sysdeps/unix/start.c: Delete file.
8430
8431 * sysdeps/sh/elf/configure.in: Moved to ...
8432 * sysdeps/sh/configure.in: ... here.
8433 * sysdeps/sh/elf/start.S: Moved to ...
8434 * sysdeps/sh/start.S: ... here.
8435 * sysdeps/sh/elf/configure: Delete file.
8436
8437 * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8438 * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8439 * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8440 * sysdeps/powerpc/powerpc64/entry.h: ... here.
8441 * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8442 * sysdeps/powerpc/powerpc64/start.S: here.
8443 * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8444 * sysdeps/powerpc/powerpc64/Makefile: ... this.
8445 * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8446 * sysdeps/powerpc/powerpc64/configure.in: ... this.
8447 * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8448
8449 * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8450 * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8451 * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8452 * sysdeps/powerpc/powerpc32/start.S: ... here.
8453 * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8454 * sysdeps/powerpc/powerpc32/configure.in: ... this.
8455 * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8456
8457 * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8458 * sysdeps/powerpc/ifunc-sel.h: ... here.
8459 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8460 * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8461
8462 * sysdeps/sparc/elf/configure.in: Moved to ...
8463 * sysdeps/sparc/configure.in: ... here.
8464 * sysdeps/sparc/elf/configure: Delete file.
8465 * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8466 * sysdeps/sparc/sparc32/start.S: ... here.
8467 * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8468 * sysdeps/sparc/sparc64/start.S: ... here.
8469 * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8470 * sysdeps/sparc/sparc32/Makefile: ... this.
8471 * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8472 * sysdeps/sparc/sparc64/Makefile: ... this.
8473
8474 * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8475 * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
8476 * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
8477 * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
8478 * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
8479 * sysdeps/s390/s390-32/setjmp.S: ... here.
8480 * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8481 * sysdeps/s390/s390-32/configure.in: ... here.
8482 * sysdeps/s390/s390-32/elf/configure: Delete file.
8483 * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8484 * sysdeps/s390/s390-32/start.S: ... here.
8485
8486 * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8487 * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
8488 * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
8489 * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
8490 * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
8491 * sysdeps/s390/s390-64/setjmp.S: ... here.
8492 * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8493 * sysdeps/s390/s390-64/configure.in: ... here
8494 * sysdeps/s390/s390-64/elf/configure: Delete file.
8495 * sysdeps/s390/s390-64/elf/start.S: Moved to ...
8496 * sysdeps/s390/s390-64/start.S: ... here.
8497 * sysdeps/s390/s390-64/elf/configure: Delete.
8498
8499 * configure.in: Remove support for elf directories in sysdeps.
8500
8501 * configure: Regenerated.
8502 * sysdeps/i386/configure: Regenerated.
8503 * sysdeps/powerpc/powerpc32/configure: Regenerated.
8504 * sysdeps/powerpc/powerpc64/configure: Regenerated.
8505 * sysdeps/s390/s390-32/configure: Regenerated.
8506 * sysdeps/s390/s390-64/configure: Regenerated.
8507 * sysdeps/sh/configure: Regenerated.
8508 * sysdeps/sparc/configure: Regenerated.
8509 * sysdeps/x86_64/configure: Regenerated.
8510
85112012-03-26 Andreas Schwab <schwab@linux-m68k.org>
8512
8513 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8514
8515 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
8516 denormal result into account.
8517
85182012-03-25 Roland McGrath <roland@hack.frob.com>
8519
8520 * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
8521 Reported by Allan McRae <allan@archlinux.org>.
8522
85232012-03-23 Jeff Law <law@redhat.com>
8524
8525 * nss/getnssent.c (__nss_getent): Fix typo.
8526
85272012-03-23 David S. Miller <davem@davemloft.net>
8528
8529 * sysdeps/sparc/fpu/libm-test-ulps: Update.
8530
85312012-03-23 H.J. Lu <hongjiu.lu@intel.com>
8532
8533 * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
8534 to pad to uint64_t for each field.
8535 (dl_tls_index): Replace unsigned long with uint64_t.
8536
85372012-03-23 Daniel Jacobowitz <dmj@google.com>
8538 Paul Pluzhnikov <ppluzhnikov@google.com>
8539
8540 [BZ #6528]
8541 * grp/Makefile (otherlibs): Don't set it.
8542 * inet/Makefile (otherlibs): Likewise.
8543 * login/Makefile (otherlibs): Likewise.
8544 * nscd/Makefile (otherlibs): Likewise.
8545 * posix/Makefile (otherlibs): Likewise.
8546 * pwd/Makefile (otherlibs): Likewise.
8547 * rt/Makefile (otherlibs): Likewise.
8548 * sunrpc/Makefile (otherlibs): Likewise.
8549 * nss/Makefile (otherlibs): Likewise.
8550 Add libnss_files to routines and static-only-routines.
8551 ($(objpfx)getent): Remove rule.
8552 * resolv/Makefile: Add libnss_dns and libresolv to routines and
8553 static-only-routines.
8554
85552012-03-22 Joseph Myers <joseph@codesourcery.com>
8556
8557 [BZ #13892]
8558 * math/s_cexp.c: Include <float.h>.
8559 (__cexp): Handle exp result overflowing not necessarily
8560 overflowing both real and imaginary parts of result.
8561 * math/s_cexpf.c: Likewise.
8562 * math/s_cexpl.c: Likewise.
8563 * math/libm-test.inc (cexp_test): Add more tests.
8564 * sysdeps/i386/fpu/libm-test-ulps: Update.
8565 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8566
85672012-03-22 H.J. Lu <hongjiu.lu@intel.com>
8568
8569 * include/link.h (ELFW): New macro.
8570 * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
8571 Replace ELF64_R_TYPE with ELFW(R_TYPE).
8572
85732012-03-22 H.J. Lu <hongjiu.lu@intel.com>
8574
8575 * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
8576 with uint64_t.
8577
85782012-03-22 H.J. Lu <hongjiu.lu@intel.com>
8579
8580 * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
8581 declaration.
8582 (struct La_x32_retval): Likewise.
8583
85842012-03-22 H.J. Lu <hongjiu.lu@intel.com>
8585
8586 * sysdeps/x86_64/preconfigure.in: New file.
8587 * sysdeps/x86_64/preconfigure: New generated file.
8588
85892012-03-22 Joseph Myers <joseph@codesourcery.com>
8590
8591 [BZ #13824]
8592 * math/e_exp2l.c: Include <float.h>.
8593 (__ieee754_exp2l): Handle overflow and underflow cases
8594 separately. Only pass fractional part of argument to
8595 __ieee754_expl.
8596 * math/libm-test.inc (exp2_test): Add more tests.
8597
8598 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
8599 negating x to take absolute value.
8600 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
8601 Likewise.
8602 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
8603 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
8604 Likewise.
8605 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
8606 computing low part if x was negated.
8607 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
8608
86092012-03-21 H.J. Lu <hongjiu.lu@intel.com>
8610
8611 * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
8612 la_x32_gnu_pltexit.
8613 (pltexit): Cast int_retval to ptrdiff_t.
8614 * elf/tst-auditmod3b.c: Likewise.
8615 * elf/tst-auditmod4b.c: Likewise.
8616 * elf/tst-auditmod5b.c: Likewise.
8617 * elf/tst-auditmod6b.c: Likewise.
8618 * elf/tst-auditmod6c.c: Likewise.
8619 * elf/tst-auditmod7b.c: Likewise.
8620
8621 * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
8622 and x32_gnu_pltexit.
8623
8624 * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
8625 __ELF_NATIVE_CLASS.
8626 (La_x32_regs): New macro.
8627 (La_x32_retval): Likewise.
8628 (la_x32_gnu_pltenter): New function prototype.
8629 (la_x32_gnu_pltexit): Likewise.
8630
86312012-03-21 Andreas Schwab <schwab@linux-m68k.org>
8632
8633 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
8634 exponent.
8635
8636 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8637
8638 * configure.in (libc_cv_cc_nofma): Check for option to disable
8639 generation of FMA instructions.
8640 * configure: Regenerate.
8641 * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
8642 * sysdeps/ieee754/dbl-64/Makefile: New file.
8643 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8644 Remove brandred-fma4.
8645 (CFLAGS-brandred-fma4.c): Remove.
8646 * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
8647 * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
8648 define.
8649 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
8650 define.
8651
86522012-03-21 H.J. Lu <hongjiu.lu@intel.com>
8653
8654 * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
8655 LLONG_MAX != LONG_MAX.
8656 (_itoa_word): Use _ITOA_WORD_TYPE on value.
8657 (_fitoa_word): Likewise.
8658 * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
8659 LLONG_MAX != LONG_MAX.
8660 * stdio-common/_itowa.h: Include <_itoa.h>.
8661 (_itowa_word): Use _ITOA_WORD_TYPE on value.
8662 (_itowa): New macro. Defined only if _ITOA_NEEDED is false.
8663 * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro. Defined
8664 only if not defined.
8665 (_ITOA_WORD_TYPE): Likewise.
8666 (_itoa_word): Use _ITOA_WORD_TYPE on value.
8667 Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
8668
86692012-03-21 David S. Miller <davem@davemloft.net>
8670
8671 * sysdeps/sparc/fpu/libm-test-ulps: Update.
8672
86732012-03-21 H.J. Lu <hongjiu.lu@intel.com>
8674
8675 * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
8676 of x86_64 when setting libc_cv_slibdir, libdir and
8677 libc_cv_localedir.
8678 * sysdeps/unix/sysv/linux/configure: Regenerated.
8679
86802012-03-21 Joseph Myers <joseph@codesourcery.com>
8681
8682 * manual/lang.texi (Old Varargs): Remove section.
8683 (How Variadic): Update menu.
8684 (va_start): Do not mention varargs.h.
8685
86862012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8687 Joseph Myers <joseph@codesourcery.com>
8688
8689 * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
8690 link test.
8691 * configure: Regenerated.
8692
86932012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8694
8695 * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
8696 * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
8697 conformtest.pl
8698
86992012-03-21 Joseph Myers <joseph@codesourcery.com>
8700
8701 * NOTES: Remove.
8702 * Makefile (files-for-dist): Remove NOTES.
8703 (NOTES): Remove rule.
8704 * README: Don't refer to NOTES.
8705 * manual/creature.texi: Don't include macros.texi.
8706 * manual/intro.texi (creature.texi): Remove comment referring to
8707 NOTES.
8708
8709 * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
8710 * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
8711 * configure: Regenerated.
8712 * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
8713 LIBC_TRY_CC_OPTION.
8714 (libc_cv_as_i686): Likewise.
8715 (libc_cv_cc_avx): Likewise.
8716 (libc_cv_cc_sse2avx): Likewise.
8717 (libc_cv_cc_fma4): Likewise.
8718 (libc_cv_cc_novzeroupper): Likewise.
8719 * sysdeps/i386/configure: Regenerated.
8720
8721 [BZ #13883]
8722 * sysdeps/i386/fpu/s_cexp.S: Remove.
8723 * sysdeps/i386/fpu/s_cexpf.S: Likewise.
8724 * sysdeps/i386/fpu/s_cexpl.S: Likewise.
8725 * math/libm-test.inc (cexp_test): Add more tests.
8726 * sysdeps/i386/fpu/libm-test-ulps: Update.
8727 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8728
87292012-03-21 Allan McRae <allan@archlinux.org>
8730
8731 * timezone/Makefile: Do not install iso3166.tab and zone.tab
8732
87332012-03-21 Joseph Myers <joseph@codesourcery.com>
8734
8735 [BZ #13871]
8736 * math/w_exp2.c: Do not include <float.h>.
8737 (o_threshold, u_threshold): Remove.
8738 (__exp2): Calculate result before checking finiteness and calling
8739 __kernel_standard.
8740 * math/w_exp2f.c: Likewise.
8741 * math/w_exp2l.c: Likewise.
8742 * math/libm-test.inc (exp2_test): Require overflow exception for
8743 1e6 input.
8744
8745 [BZ #3866]
8746 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
8747 range of signed 64-bit integers before using fistpll. Remove
8748 checks for whether integers fit in mantissa bits.
8749 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
8750 the range of signed 32-bit integers before using fistpl. Remove
8751 checks for whether integers fit in mantissa bits.
8752 * sysdeps/i386/fpu/e_powl.S (p64): New object.
8753 (__ieee754_powl): Test for y outside the range of signed 64-bit
8754 integers before using fistpll. Reduce 64-bit values to 63-bit
8755 ones as needed.
8756 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
8757 divide-by-zero is raised for zero to large negative powers.
8758 * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
8759 (__ieee754_powl): Test for y outside the range of signed 64-bit
8760 integers before using fistpll. Reduce 64-bit values to 63-bit
8761 ones as needed.
8762 * math/libm-test.inc (pow_test): Add more tests.
8763
87642012-03-20 H.J. Lu <hongjiu.lu@intel.com>
8765
8766 * debug/backtracesymsfd.c: Include <_itoa.h> instead of
8767 <stdio-common/_itoa.h>.
8768 * debug/segfault.c: Likewise.
8769 * elf/dl-cache.c: Likewise.
8770 * elf/dl-minimal.c: Likewise.
8771 * elf/dl-misc.c: Likewise.
8772 * elf/dl-sysdep.c: Likewise.
8773 * elf/dl-version.c: Likewise.
8774 * elf/rtld.c: Likewise.
8775 * hurd/hurdsock.c: Likewise.
8776 * hurd/lookup-retry.c: Likewise.
8777 * malloc/malloc.c: Likewise.
8778 * malloc/mtrace.c: Likewise.
8779 * nscd/nscd_getgr_r.c: Likewise.
8780 * nscd/nscd_getpw_r.c: Likewise.
8781 * nscd/nscd_getserv_r.c: Likewise.
8782 * posix/getopt_init.c: Likewise.
8783 * posix/wordexp.c: Likewise.
8784 * stdio-common/_itoa.c: Likewise.
8785 * stdio-common/printf_fphex.c: Likewise.
8786 * stdio-common/vfprintf.c: Likewise.
8787 * string/_strerror.c: Likewise.
8788 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
8789 * sysdeps/i386/i686/hp-timing.h: Likewise.
8790 * sysdeps/mach/_strerror.c: Likewise.
8791 * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
8792 * sysdeps/mach/hurd/sethostid.c: Likewise.
8793 * sysdeps/mach/hurd/xmknodat.c: Likewise.
8794 * sysdeps/mach/xpg-strerror.c: Likewise.
8795 * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
8796 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
8797 * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
8798 * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
8799 * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
8800 * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
8801 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
8802 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
8803 * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
8804 * sysdeps/unix/sysv/linux/futimes.c: Likewise.
8805 * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
8806 * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
8807 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
8808 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
8809 * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
8810 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
8811 * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
8812 * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
8813 * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
8814 * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
8815 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
8816
8817 * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
8818
8819 * stdio-common/_itoa.h: Moved to ...
8820 * sysdeps/generic/_itoa.h: Here.
8821
8822 * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
8823
8824 * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
8825 instead of "_itoa.h" and "_itowa.h".
8826 * stdio-common/vfprintf.: Likewise.
8827
88282012-03-20 H.J. Lu <hongjiu.lu@intel.com>
8829
8830 * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
8831 <bits/wordsize.h>.
8832 (__signbitf): Check __x86_64__ instead of __WORDSIZE.
8833 (__signbit): Likwise.
8834 (llrintf): Likwise.
8835 (llrint): Likwise.
8836
88372012-03-20 H.J. Lu <hongjiu.lu@intel.com>
8838
8839 * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
8840 __WORDSIZE != 64.
8841
88422012-03-20 Joseph Myers <joseph@codesourcery.com>
8843
8844 * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
8845 OVERFLOW_EXCEPTION_OK.
8846 * math/libm-test.inc ("Philosophy"): Update comment about
8847 exception testing.
8848 (OVERFLOW_EXCEPTION): Define.
8849 (OVERFLOW_EXCEPTION_OK): Likewise.
8850 (INVALID_EXCEPTION_OK): Renumber.
8851 (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
8852 (IGNORE_ZERO_INF_SIGN): Likewise.
8853 (test_exceptions): Handle FE_OVERFLOW.
8854 (exp10_test): Expect overflow exceptions.
8855 (exp2_test): Likewise.
8856 (expm1_test): Likewise.
8857 (nextafter_test): Likewise.
8858 (pow_test): Likewise.
8859 (scalbn_test): Likewise.
8860 (scalbln_test): Likewise.
8861
88622012-03-19 H.J. Lu <hongjiu.lu@intel.com>
8863
8864 * sysdeps/x86_64/bits/atomic.h
8865 (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
8866 64bit integer.
8867 (atomic_exchange_acq): Likewise.
8868 (__arch_exchange_and_add_body): Likewise.
8869 (__arch_add_body): Likewise.
8870 (atomic_add_negative): Likewise.
8871 (atomic_add_zero): Likewise.
8872
88732012-03-19 H.J. Lu <hongjiu.lu@intel.com>
8874
8875 * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
8876 (fenv_t): Check __x86_64__ instead of __WORDSIZE.
8877
88782012-03-19 H.J. Lu <hongjiu.lu@intel.com>
8879
8880 * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
8881 Check __x86_64__ instead of __WORDSIZE.
8882
88832012-03-19 H.J. Lu <hongjiu.lu@intel.com>
8884
8885 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
8886
88872012-03-19 David S. Miller <davem@davemloft.net>
8888
8889 * sysdeps/sparc/fpu/libm-test-ulps: Update.
8890
8891 * sysdeps/sparc/fpu/fenv_private.h: New file.
8892 * sysdeps/sparc/fpu/math_private.h: Use it.
8893 (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
8894 Remove.
8895 (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
8896 (libc_feholdexcept_setroundl): Remove.
8897 (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
8898 Remove.
8899 (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
8900 (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
8901
89022012-03-19 H.J. Lu <hongjiu.lu@intel.com>
8903
8904 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
8905 int64_t instead of long int.
8906 (INSERT_WORDS64): Likwise.
8907
89082012-03-19 H.J. Lu <hongjiu.lu@intel.com>
8909
8910 * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
8911 _Unwind_GetCFA return to _Unwind_Ptr first.
8912
89132012-03-19 Joseph Myers <joseph@codesourcery.com>
8914
8915 [BZ #13629]
8916 * math/s_clog.c: Include <float.h>.
8917 (__clog): Scale large or subnormal inputs.
8918 * math/s_clogf.c: Likewise.
8919 * math/s_clogl.c: Likewise.
8920 * math/s_clog10.c: Include <float.h>.
8921 (M_LOG10_2): Define.
8922 (__clog10): Scale large or subnormal inputs.
8923 * math/s_clog10f.c: Likewise.
8924 * math/s_clog10l.c: Likewise.
8925 * math/libm-test.inc (clog_test): Add more tests.
8926 (clog10_test): Likewise.
8927 * sysdeps/i386/fpu/libm-test-ulps: Update.
8928 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8929
8930 [BZ #11451]
8931 * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
8932 x and y.
8933 * math/libm-test.inc (atan2_test): Add another test.
8934
8935 * Makerules (common-objdir-compile): Remove.
8936 * sysdeps/unix/Makefile (config-generated): Do not add
8937 $(unix-generated) to variable.
8938 [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
8939 [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
8940 Remove rule.
8941 [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
8942 Likewise.
8943 [generic bits/local_lim.h] (before-compile): Do not append to
8944 variable.
8945 [generic bits/local_lim.h] (common-generated): Likewise.
8946 [generic sys/param.h] (before-compile): Do not append to variable.
8947 [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
8948 [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
8949 [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
8950 [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
8951 include.
8952 [generic sys/param.h] (sys/param.h-includes): Remove variable.
8953 [generic sys/param.h] (sys/param.h-includes): Remove rule.
8954 [generic sys/param.h] ($(addprefix
8955 $(common-objpfx),$(sys/param.h-includes))): Likewise.
8956 [generic sys/param.h] (common-generated): Do not append to
8957 variable.
8958 [generic sys/param.h] (sysdep_headers): Likewise.
8959 [generic bits/errno.h] (before-compile): Do not append to
8960 variable.
8961 [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
8962 rule.
8963 [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
8964 [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
8965 [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
8966 [generic bits/errno.h] (common-generated): Do not append to
8967 variable.
8968 [generic bits/ioctls.h] (before-compile): Do not append to
8969 variable.
8970 [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
8971 rule.
8972 [generic bits/ioctls.h] (ioctl-includes): Remove variable.
8973 [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
8974 [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
8975 rule.
8976 [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
8977 [generic bits/ioctls.h] (bits_termios.h): Remove variable.
8978 [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
8979 [generic bits/ioctls.h] (common-generated): Do not append to
8980 variable.
8981 [generic sys/syscall.h] (syscall.h): Remove variable.
8982 [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
8983 rule.
8984 [generic sys/syscall.h] (before-compile): Do not append to
8985 variable.
8986 [generic sys/syscall.h] (common-generated): Likewise.
8987 * sysdeps/unix/errnos-tmpl.c: Remove file.
8988 * sysdeps/unix/errnos.awk: Likewise.
8989 * sysdeps/unix/ioctls-tmpl.c: Likewise.
8990 * sysdeps/unix/ioctls.awk: Likewise.
8991 * sysdeps/unix/mk-local_lim.c: Likewise.
8992 * sysdeps/unix/snarf-ioctls: Likewise.
8993
89942012-03-19 Richard Henderson <rth@twiddle.net>
8995
8996 * sysdeps/i386/fpu/fenv_private.h: New file.
8997 * sysdeps/i386/fpu/math_private.h: Use it.
8998 (math_opt_barrier, math_force_eval): Remove.
8999 (libc_feholdexcept_setround_53bit): Remove.
9000 (libc_feupdateenv_53bit): Remove.
9001 * sysdeps/x86_64/fpu/math_private.h: Likewise.
9002 (math_opt_barrier, math_force_eval): Remove.
9003 (libc_feholdexcept): Remove.
9004 (libc_feholdexcept_setround): Remove.
9005 (libc_fetestexcept, libc_fesetenv): Remove.
9006 (libc_feupdateenv_test): Remove.
9007 (libc_feupdateenv, libc_feholdsetround): Remove.
9008 (libc_feresetround): Remove.
9009
9010 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9011 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9012
9013 * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9014 (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9015 (libc_feupdateenv_testl): New.
9016 * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9017 (libc_feupdateenv_testf): New.
9018 (libc_feupdateenv): Use libc_feupdateenv_test.
9019 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9020 * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9021
9022 * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9023 (libc_feholdsetroundf, libc_feholdsetroundl): New.
9024 (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9025 (libc_feresetround_noex): New.
9026 (libc_feresetround_noexf): New.
9027 (libc_feresetround_noexl): New.
9028 (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9029 (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9030 (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9031 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9032 SET_RESTORE_ROUND.
9033 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9034 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9035 (__cos): Likewise.
9036 * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9037 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9038 SET_RESTORE_ROUND_NOEX.
9039 * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9040 SET_RESTORE_ROUND_NOEXF.
9041 * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9042 * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9043 (libc_feholdsetroundf): New.
9044 (libc_feresetround, libc_feresetroundf): New.
9045
9046 * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
9047 (libc_feholdexcept_setround_53bit): Convert from macro to function.
9048 (libc_feupdateenv_53bit): Likewise. Don't force _FPU_EXTENDED.
9049
9050 * sysdeps/generic/math_private.h: Include <fenv.h>.
9051 (default_libc_feholdexcept): New.
9052 (default_libc_feholdexcept_setround): New.
9053 (default_libc_fesetenv, default_libc_feupdateenv): New.
9054 (libc_feholdexcept): Only define if undefined.
9055 (libc_feholdexceptf, libc_feholdexceptl): Likewise.
9056 (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
9057 (libc_feholdexcept_setroundl): Likewise.
9058 (libc_feholdexcept_setround_53bit): Likewise.
9059 (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
9060 (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
9061 (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
9062 (libc_feupdateenv_53bit): Likewise.
9063 * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
9064 (libc_feholdexcept): Convert from macro to inline function.
9065 (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
9066 (libc_fesetenv, libc_feupdateenv): Likewise.
9067
9068 * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
9069 not previously defined.
9070 (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
9071 (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
9072 (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
9073 * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
9074 * sysdeps/ieee754/flt-32/math_private.h: New file.
9075 * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
9076 math_private.h below SET_FLOAT_WORD.
9077 (__isnan, __isinf_ns, __finite): Remove.
9078 (__isnanf, __isinf_nsf, __finitef): Remove.
9079
90802012-03-18 Andreas Schwab <schwab@linux-m68k.org>
9081
9082 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9083
90842012-03-17 David S. Miller <davem@davemloft.net>
9085
9086 [BZ #6471]
9087 * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
9088 for 2.16.
9089
90902012-03-16 David S. Miller <davem@davemloft.net>
9091
9092 * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
9093 warnings.
9094
9095 [BZ #6471]
9096 * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
9097 properly.
9098 * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9099 * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9100 sysdep_routines when subdir is sysvipc.
9101 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9102 __getshmlba helper.
9103
9104 * sysdeps/sparc/fpu/libm-test/ulps: Update.
9105
91062012-03-16 H.J. Lu <hongjiu.lu@intel.com>
9107
9108 * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9109 [__LP64__].
9110
91112012-03-16 H.J. Lu <hongjiu.lu@intel.com>
9112
9113 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
9114 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
9115 (__lround): Renamed to ...
9116 (__llround): This. Replace long int with long long int.
9117 Define lround functions as aliases of llround functions.
9118 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
9119
91202012-03-16 H.J. Lu <hongjiu.lu@intel.com>
9121
9122 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
9123 Use greg_t on sp. Use unsigned int on idx_uc_link. Cast
9124 adresses to uintptr_t. Replace "long int" and "unsigned long
9125 int" with "greg_t" on va_arg.
9126
91272012-03-16 H.J. Lu <hongjiu.lu@intel.com>
9128
9129 * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
9130 * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
9131
9132 * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
9133 Move e_machine check before EI_CLASS check. Handle x32
9134 libraries. Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
9135 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
9136 SKIP_EM_IA_64 and include
9137 <sysdeps/unix/sysv/linux/i386/readelflib.c>.
9138
9139 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
9140 Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
9141 (add_system_dir): New macro.
9142
9143 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
9144 (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
9145
91462012-03-16 Joseph Myers <joseph@codesourcery.com>
9147
9148 [BZ #2551]
9149 [BZ #2552]
9150 [BZ #2553]
9151 [BZ #2554]
9152 [BZ #2562]
9153 [BZ #2563]
9154 [BZ #2565]
9155 [BZ #2566]
9156 [BZ #2576]
9157 * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
9158 (y0): Likewise.
9159 * math/w_j0f.c (j0f): Likewise.
9160 (y0f): Likewise.
9161 * math/w_j0l.c (__j0l): Likewise.
9162 (__y0l): Likewise.
9163 * math/w_j1.c (j1): Likewise.
9164 (y1): Likewise.
9165 * math/w_j1f.c (j1f): Likewise.
9166 (y1f): Likewise.
9167 * math/w_j1l.c (__j1l): Likewise.
9168 (__y1l): Likewise.
9169 * math/w_jn.c (jn): Likewise.
9170 (yn): Likewise.
9171 * math/w_jnf.c (jnf): Likewise.
9172 (ynf): Likewise.
9173 * math/w_jnl.c (__jnl): Likewise.
9174 (__ynl): Likewise.
9175 * math/libm-test.inc (j0_test): Add more tests.
9176 (j1_test): Likewise.
9177 (jn_test): Likewise. Add trailing semicolon to existing test.
9178 (y0_test): Likewise.
9179 (y1_test): Likewise.
9180 * sysdeps/i386/fpu/libm-test-ulps: Update.
9181 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9182
9183 [BZ #13851]
9184 [BZ #13854]
9185 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9186 libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9187 * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9188 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9189 (__tanl): Set errno for infinite argument.
9190 * sysdeps/i386/fpu/mptan.c: Remove.
9191 * sysdeps/i386/fpu/s_tan.S: Likewise.
9192 * sysdeps/i386/fpu/s_tanl.S: Likewise.
9193 * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9194 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9195 * math/libm-test.inc (tan_test): Add more tests and enable more
9196 tests for double and long double.
9197 * sysdeps/i386/fpu/libm-test-ulps: Update.
9198 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9199
92002012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9201
9202 * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9203 (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9204
92052012-03-16 Roland McGrath <roland@hack.frob.com>
9206
9207 * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9208 * configure.in: Use it for both main tree and add-ons.
9209 * configure: Regenerated.
9210
92112012-03-16 H.J. Lu <hongjiu.lu@intel.com>
9212
9213 * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9214
92152012-03-16 Joseph Myers <joseph@codesourcery.com>
9216
9217 * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9218 in comment.
9219
9220 [BZ #13851]
9221 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9222 * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9223 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9224 * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9225 * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9226 infinite argument.
9227 * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9228 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9229 != 0 for prec == 2.
9230 * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9231 * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9232 * sysdeps/i386/fpu/s_cosl.S: Likewise.
9233 * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9234 * sysdeps/i386/fpu/s_sinl.S: Likewise.
9235 * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9236 * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9237 * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9238 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9239 * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9240 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9241 * math/libm-test.inc (cos_test): Add more tests and enable more
9242 tests for long double.
9243 (sin_test): Likewise.
9244 (sincos_test): Likewise.
9245 * sysdeps/i386/fpu/libm-test-ulps: Update.
9246 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9247
92482012-03-16 David S. Miller <davem@davemloft.net>
9249
9250 * sysdeps/sparc/fpu/math_private.h: New file.
9251
92522012-03-15 David S. Miller <davem@davemloft.net>
9253
9254 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9255 file.
9256 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9257 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9258 file.
9259 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9260 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9261 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9262 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9263 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9264 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9265 sysdep routines.
9266 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9267
9268 * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9269 * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9270
9271 * sysdeps/sparc/sparc-ifunc.h: New file.
9272 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9273 sparc-ifunc.h
9274 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9275 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9276 Likewise.
9277 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9278 Likewise.
9279 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9280 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9281 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9282 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9283 Likewise.
9284 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9285 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9286 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9287 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9288 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9289 Likewise.
9290 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9291 Likewise.
9292 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9293 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9294 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9295 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9296 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9297 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9298 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9299 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9300 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9301 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9302 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9303 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9304 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9305 * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9306 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9307 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9308 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9309 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9310 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9311 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9312 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9313 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9314 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9315 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9316
93172012-03-15 Andreas Schwab <schwab@linux-m68k.org>
9318
9319 * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9320 scaling.
9321 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9322
93232012-03-15 Andreas Jaeger <aj@suse.de>
9324
9325 [BZ #13852]
9326 * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9327 ieee754/flt-32 implementation for sin, cos and sincos.
9328 * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9329 * sysdeps/i386/fpu/s_cosf.S: Likewise.
9330 * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9331 * sysdeps/i386/fpu/s_sinf.S: Likewise.
9332 * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9333 ieee754/flt-32 implementation for tan.
9334
9335 * math/libm-test.inc (cos_test): Enable some large input tests for
9336 float as well
9337 (sin_test): Likewise.
9338 (sincos_test): Likewise.
9339 (tan_test): Add tests for large input.
9340
9341 * sysdeps/i386/fpu/libm-test-ulps: Update.
9342
93432012-03-15 Andreas Jaeger <aj@suse.de>
9344
9345 [BZ #13658]
9346 * math/libm-test.inc (cos_test): Add more test cases.
9347 (sin_test): Likewise.
9348 (sincos_test): Likewise.
9349
93502012-03-15 Andreas Jaeger <aj@suse.de>
9351
9352 [BZ #13837]
9353 * math/libm-test.inc (cos_test): Add a test case for large input
9354 value.
9355 (sin_test): Likewise.
9356 (sincos_test): Likewise.
9357
93582012-03-15 Andreas Jaeger <aj@suse.de>,
9359 Joseph Myers <joseph@codesourcery.com>
9360
9361 [BZ #13658]
9362 * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9363 x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9364 * sysdeps/i386/fpu/branred.c: Likewise.
9365 * sysdeps/i386/fpu/dosincos.c: Likewise.
9366 * sysdeps/i386/fpu/mpa.c: Likewise.
9367 * sysdeps/i386/fpu/s_cos.S: Likewise.
9368 * sysdeps/i386/fpu/s_sin.S: Likewise.
9369 * sysdeps/i386/fpu/s_sincos.S: Likewise.
9370 * sysdeps/i386/fpu/sincos32.c: Likewise.
9371
9372 * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9373 Define.
9374 (libc_feupdateenv_53bit): Define.
9375 * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9376 Define.
9377 (libc_feupdateenv_53bit): Define.
9378
9379 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9380 53 bit (without extend i386 double precision).
9381
9382 * math/libm-test.inc (sincos_test): Add tests for large input.
9383 (sin): Likewise.
9384 (cos): Likewise.
9385
9386 * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9387
93882012-03-15 Andreas Schwab <schwab@linux-m68k.org>
9389
9390 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9391
93922012-03-15 David S. Miller <davem@davemloft.net>
9393
9394 * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9395 * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9396 * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9397 * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9398 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9399 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9400 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9401 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9402 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9403 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9404 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9405 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9406 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9407 * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9408 * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9409 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9410 file.
9411 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9412 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9413 file.
9414 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9415 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9416 file.
9417 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9418 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9419 file.
9420 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9421 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9422 fmin/fmax sysdep routines.
9423 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9424
94252012-03-14 David S. Miller <davem@davemloft.net>
9426
9427 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9428 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9429 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9430 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9431 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9432 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9433 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9434 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9435 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9436 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9437 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9438 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9439 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9440 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9441 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9442 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9443 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9444 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9445 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9446 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9447 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9448 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9449 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9450 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9451 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9452 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9453 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9454 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9455 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9456 routines.
9457 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9458 file.
9459 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9460 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9461 file.
9462 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9463 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9464 file.
9465 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9466 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9467 file.
9468 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9469 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9470 file.
9471 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9472 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9473 file.
9474 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9475 file.
9476 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9477 file.
9478 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9479 file.
9480 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9481 New file.
9482 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9483 file.
9484 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9485 file.
9486 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9487 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9488 file.
9489 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9490 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9491 file.
9492 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9493 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9494 file.
9495 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
9496 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
9497 VIS3 routines.
9498
9499 * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9500 New file.
9501
9502 * sysdeps/sparc/fpu/libm-test-ulps: Update.
9503
9504 * sysdeps/sparc/configure.in: New file.
9505 * sysdeps/sparc/configure: Generate.
9506 * configure.in (libc_cv_sparc_as_vis3): Substitute.
9507 * configure: Regenerate.
9508 * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
9509 * config.make.in (have-as-vis3): New.
9510 * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
9511 available use -Av9d instead of -Av9a.
9512 * sysdeps/sparc/sparc64/Makefile: Likewise.
9513 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
9514 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
9515 New file.
9516 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
9517 file.
9518 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
9519 New file.
9520 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
9521 file.
9522 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
9523 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
9524 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
9525 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
9526 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
9527
9528 * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
9529 fzeros/fnegs to load 0x80000000 into a float register instead of
9530 using the stack.
9531 * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
9532
95332012-03-14 Joseph Myers <joseph@codesourcery.com>
9534
9535 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9536 bits/syscall.h.
9537 ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
9538 ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
9539 ($(inst_includedir)/bits/syscall.h): Remove rule.
9540 ($(objpfx)bits/syscall.d): Include instead of
9541 $(objpfx)syscall-list.d.
9542 (generated): Change syscall-list.h and syscall-list.d to
9543 bits/syscall.h and bits/syscall.d.
9544
95452012-03-14 Roland McGrath <roland@hack.frob.com>
9546
9547 [BZ #13846]
9548 * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
9549
95502012-03-14 Joseph Myers <joseph@codesourcery.com>
9551
9552 [BZ #13841]
9553 * math/s_csqrt.c: Include <float.h>.
9554 (__csqrt): Scale large or subnormal inputs.
9555 * math/s_csqrtf.c: Likewise.
9556 * math/s_csqrtl.c: Likewise.
9557 * math/libm-test.inc (csqrt_test): Add more tests.
9558 * sysdeps/i386/fpu/libm-test-ulps: Update.
9559 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9560
9561 [BZ #13840]
9562 * math/libm-test.inc (hypot_test): Add more tests.
9563
95642012-03-13 David S. Miller <davem@davemloft.net>
9565
9566 [BZ #13840]
9567 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
9568 double-precision for the calculation instead of scaling.
9569
95702012-03-13 Joseph Myers <joseph@codesourcery.com>
9571
9572 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
9573 manipulate bits before adding and subtracting TWO52[sx].
9574 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
9575 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9576 Likewise.
9577 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
9578
95792012-03-13 David S. Miller <davem@davemloft.net>
9580
9581 * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
9582 * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
9583 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
9584 rtld-global-offsets.h
9585 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9586
9587 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
9588 large parameters.
9589
9590 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
9591
9592 * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
9593 'err' in the ifdef scope in which it is actually used.
9594
9595 * nss/nss_db/db-init.c: Include string.h
9596
95972012-03-12 David S. Miller <davem@davemloft.net>
9598
9599 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9600 masking out of the most significant byte of random value used.
9601 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9602 Fix coding style in previous change.
9603
9604 * sysdeps/unix/sysv/linux/kernel-features.h
9605 (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
9606 (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
9607 expression.
9608 (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
9609 later.
9610
96112012-03-11 David S. Miller <davem@davemloft.net>
9612
9613 * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
9614 (__makecontext): Fix signedness of pointer casts setting up 'sp'.
9615 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
9616 for 'resultvar' otherwise things get truncated on 64-bit.
9617
9618 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9619 Fix masking out of the most significant byte of random value used.
9620
9621 * sysdeps/sparc/fpu/libm-test-ulps: Update.
9622
96232012-03-10 Andreas Schwab <schwab@linux-m68k.org>
9624
9625 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9626
96272012-03-09 David S. Miller <davem@davemloft.net>
9628
9629 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
9630 variables with appropriate CPP guards.
9631 * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
9632 frame pointer, not the stack pointer. Correct layout comments. Fix test
9633 on resulting framesize and the management of the outregs buffer for pltexit.
9634 Preserve floating point return values across _dl_call_pltexit call.
9635 * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
9636 framesize and the management of the outregs buffer for pltexit.
9637 Preserve floating point return values across _dl_call_pltexit
9638 call.
9639 * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
9640 la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
9641 (print_exit): Fix format string for return register value.
9642
96432012-03-10 Joseph Myers <joseph@codesourcery.com>
9644
9645 * sunrpc/Makefile (others): Add rpcgen.
9646 ($(objpfx)rpcgen): Remove special build rule and dependency on
9647 libc.
9648 * sunrpc/rpcgen.c: New file.
9649
96502012-03-09 Paul Eggert <eggert@cs.ucla.edu>
9651
9652 [BZ #13673]
9653 * posix/bug-regex33.c: Replace FSF snail mail address with URL.
9654 * stdio-common/bug-vfprintf-nargs.c: Likewise.
9655 * sysdeps/i386/crti.S: Likewise.
9656 * sysdeps/i386/crtn.S: Likewise.
9657 * sysdeps/powerpc/powerpc32/crti.S: Likewise.
9658 * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
9659 * sysdeps/powerpc/powerpc64/crti.S: Likewise.
9660 * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
9661 * sysdeps/sh/crti.S: Likewise.
9662 * sysdeps/sh/crtn.S: Likewise.
9663 * sysdeps/x86_64/fpu/e_expf.S: Likewise.
9664
9665 [BZ #13673]
9666 * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
9667 with URL.
9668 * locale/programs/locfile-kw.gperf: Likewise.
9669 * locale/programs/charmap-kw.h: Regenerated.
9670 * locale/programs/locfile-kw.h: Likewise.
9671
9672 [BZ #13673]
9673 * intl/plural.y: Replace FSF snail mail address with URL.
9674 * intl/plural.c: Regenerated.
9675
96762012-03-09 Richard Henderson <rth@twiddle.net>
9677
9678 * include/math_private.h: Remove file.
9679 * math/math_private.h: Move file ...
9680 * sysdeps/generic/math_private.h: ... here.
9681
9682 * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
9683 * sysdeps/powerpc/fpu/math_private.h: Likewise.
9684 * sysdeps/x86_64/fpu/math_private.h: Likewise.
9685
9686 * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
9687 and <math_private.h>.
9688 * sysdeps/i386/fpu/s_isinfl.c: Likewise.
9689 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
9690 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
9691 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
9692 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
9693 * sysdeps/ieee754/dbl-64/branred.c: Likewise.
9694 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9695 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9696 * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
9697 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9698 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9699 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9700 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9701 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9702 * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
9703 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
9704 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9705 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9706 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9707 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9708 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9709 * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
9710 * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
9711 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9712 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9713 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9714 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9715 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9716 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9717 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
9718 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
9719 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9720 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
9721 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9722 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9723 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
9724 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
9725 * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
9726 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
9727 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9728 * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
9729 * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
9730 * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
9731 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
9732 * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
9733 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
9734 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9735 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9736 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
9737 * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
9738 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9739 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9740 * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
9741 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9742 * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
9743 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9744 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9745 * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
9746 * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
9747 * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
9748 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9749 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9750 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9751 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
9752 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9753 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
9754 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
9755 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
9756 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
9757 * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
9758 * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
9759 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9760 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9761 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9762 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
9763 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
9764 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
9765 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9766 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
9767 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9768 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
9769 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9770 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
9771 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9772 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9773 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
9774 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
9775 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9776 * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
9777 * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9778 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9779 * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
9780 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9781 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
9782 * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
9783 * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
9784 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9785 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9786 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9787 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
9788 * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
9789 * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
9790 * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
9791 * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
9792 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9793 * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
9794 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
9795 * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
9796 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9797 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9798 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9799 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
9800 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
9801 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
9802 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
9803 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9804 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9805 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
9806 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
9807 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
9808 * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
9809 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
9810 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9811 * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
9812 * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
9813 * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
9814 * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
9815 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
9816 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
9817 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9818 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9819 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
9820 * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
9821 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9822 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9823 * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
9824 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9825 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
9826 * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
9827 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9828 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9829 * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
9830 * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
9831 * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
9832 * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
9833 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
9834 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
9835 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
9836 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9837 * sysdeps/ieee754/k_standard.c: Likewise.
9838 * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
9839 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
9840 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9841 * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
9842 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
9843 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
9844 * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
9845 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
9846 * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
9847 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9848 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9849 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
9850 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9851 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
9852 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
9853 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
9854 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
9855 * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
9856 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
9857 * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
9858 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
9859 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
9860 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
9861 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
9862 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
9863 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
9864 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9865 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9866 * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
9867 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
9868 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
9869 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
9870 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
9871 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9872 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
9873 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
9874 * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
9875 * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
9876 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
9877 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
9878 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9879 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9880 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
9881 * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
9882 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9883 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9884 * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
9885 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9886 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
9887 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
9888 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
9889 * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
9890 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9891 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
9892 * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
9893 * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
9894 * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
9895 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
9896 * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
9897 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
9898 * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
9899 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9900 * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
9901 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
9902 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9903 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9904 * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
9905 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
9906 * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
9907 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
9908 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
9909 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9910 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
9911 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
9912 * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
9913 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
9914 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
9915 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
9916 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9917 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
9918 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
9919 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
9920 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
9921 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
9922 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
9923 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9924 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
9925 * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
9926 * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
9927 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
9928 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
9929 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
9930 * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
9931 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
9932 * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
9933 * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
9934 * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
9935 * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
9936 * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
9937 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
9938 * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
9939 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
9940 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
9941 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
9942 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
9943 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
9944 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
9945 * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
9946 * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
9947 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
9948 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
9949 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
9950 * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
9951 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9952 * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
9953 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9954 * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
9955 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9956 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9957 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
9958 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9959 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
9960 * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
9961 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
9962 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9963 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
9964 * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9965 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9966 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
9967 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
9968 * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
9969 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
9970 * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
9971 * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
9972 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
9973 * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
9974 * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
9975 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
9976 * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
9977 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9978 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9979 * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
9980 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9981 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9982 * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
9983 * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
9984 * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
9985 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
9986 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
9987 * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
9988 * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
9989 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9990 * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
9991 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
9992 * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
9993 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
9994 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
9995 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
9996 * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
9997 * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
9998 * sysdeps/ieee754/s_lib_version.c: Likewise.
9999 * sysdeps/ieee754/s_matherr.c: Likewise.
10000 * sysdeps/ieee754/s_signgam.c: Likewise.
10001 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10002 * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10003 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10004 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10005 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10006 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10007 * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10008 * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10009 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10010 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10011 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10012 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10013 * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10014 * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10015 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10016 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10017 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10018 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10019 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10020 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10021 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10022
100232012-03-09 Joseph Myers <joseph@codesourcery.com>
10024
10025 * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10026 * sunrpc/rpc_main.c: Likewise.
10027 * sunrpc/rpc_svcout.c: Likewise.
10028
100292012-03-09 David S. Miller <davem@davemloft.net>
10030
10031 * include/math_private.h: New file.
10032
100332012-03-09 Joseph Myers <joseph@codesourcery.com>
10034
10035 * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10036 * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10037 * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10038 from <bits/socket_type.h>.
10039 (enum __socket_type): Don't define here.
10040 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10041 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10042 bits/socket_type.h.
10043
10044 [BZ #13566]
10045 * libio/stdio.h (gets): Always declare for C++ up to C++11 without
10046 checking __USE_GNU.
10047
10048 * Makerules ($(inst_includedir)/%.h): New rule.
10049 * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
10050 (install-others): Remove variable setting.
10051 ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
10052
100532012-03-08 Richard Henderson <rth@twiddle.net>
10054
10055 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
10056 from macro to inline function; merge with the
10057 !__LIBC_INTERNAL_MATH_INLINES version.
10058 (__ieee754_sqrtf): Likewise.
10059
10060 * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
10061 to inline function.
10062 (__rintf, __floor, __floorf): Likewise.
10063
10064 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
10065 macro to inline function.
10066 (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
10067
10068 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
10069 not <math/math_private.h>.
10070
100712012-03-08 David S. Miller <davem@davemloft.net>
10072
10073 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
10074 copyright year.
10075 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10076
100772012-03-08 Thomas Schwinge <thomas@codesourcery.com>
10078
10079 * resolv/gai_misc.c (handle_requests): Fix struct timespec
10080 normalization.
10081 * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
10082 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
10083
100842012-03-08 Ulrich Drepper <drepper@gmail.com>
10085
10086 * stdio-common/tst-fphex.c: Various cleanups. The macros cannot
10087 be defined individually, they must be defined as a block. Define
10088 S for printing a string instead of hidint the different by using a
10089 macro for adding the 'l'.
10090 * stdio-common/tst-fphex-wide.c: Adjust.
10091
100922012-03-07 Marek Polacek <polacek@redhat.com>
10093
10094 * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
10095
100962012-03-08 Marek Polacek <polacek@redhat.com>
10097
10098 [BZ #13806]
10099 * stdio-common/Makefile (tests): Add tst-fphex-wide.
10100 * stdio-common/tst-fphex.c: Define a few macros to make the
10101 test reusable. Use them.
10102 * stdio-common/tst-fphex-wide.c: New file.
10103
101042012-03-08 Joseph Myers <joseph@codesourcery.com>
10105
10106 [BZ #6911]
10107 * manual/macros.texi (gnusystems): New macro.
10108 (nongnusystems): Likewise.
10109 (gnulinuxhurdsystems): Likewise.
10110 (gnuhurdsystems): Likewise..
10111 (gnulinuxsystems): Likewise.
10112 * manual/charset.texi: Use new macros or @theglibc{} to refer to
10113 variants of the GNU system, not "GNU system".
10114 * manual/conf.texi: Likewise.
10115 * manual/errno.texi: Likewise. Update example of errno macro
10116 expansion.
10117 * manual/filesys.texi: Likewise.
10118 (getumask): Document as specific to GNU/Hurd.
10119 * manual/install.texi: Likewise. Reword some references to
10120 GNU/Linux.
10121 * manual/intro.texi: Likewise.
10122 * manual/io.texi: Likewise.
10123 (File Name Portability): Detail which constraints are inapplicable
10124 to all GNU systems and which are only inapplicable to GNU/Hurd.
10125 * manual/job.texi: Likewise.
10126 * manual/llio.texi: Likewise.
10127 (O_NOCTTY): Document as present on GNU/Linux.
10128 * manual/maint.texi: Likewise.
10129 * manual/memory.texi: Likewise.
10130 * manual/pattern.texi: Likewise.
10131 * manual/pipe.texi: Likewise.
10132 * manual/process.texi: Likewise.
10133 * manual/resource.texi: Likewise.
10134 (RUSAGE_CHILDREN): Remove statement about specifying a particular
10135 child on GNU/Hurd.
10136 * manual/setjmp.texi: Likewise.
10137 * manual/signal.texi: Likewise.
10138 * manual/startup.texi: Likewise.
10139 * manual/stdio.texi: Likewise.
10140 * manual/terminal.texi: Likewise.
10141 (ONLCR): Document as POSIX.
10142 (OXTABS): Document availability on GNU/Linux as XTABS.
10143 (ONOEOT): Document availability separately from other bits.
10144 (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
10145 * manual/time.texi: Likewise.
10146 * manual/users.texi: Likewise.
10147 * INSTALL: Regenerated.
10148 * sysdeps/gnu/errlist.c: Regenerated.
10149
10150 * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
10151 * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
10152 (libc_cv_ctors_header): Likewise. Use asm ("") instead of calling
10153 puts.
10154 * configure: Regenerated.
10155
101562012-03-07 Joseph Myers <joseph@codesourcery.com>
10157
10158 * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
10159 default includes instead of AC_HEADER_CHECK.
10160 * sysdeps/i386/configure: Regenerated.
10161
10162 [BZ #10716]
10163 * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
10164 * math/s_cacoshf.c (__cacoshf): Likewise.
10165 * math/s_cacoshl.c (__cacoshl): Likewise.
10166 * math/s_casinh.c (__casinh): Set signs of result from argument.
10167 * math/s_casinhf.c (__casinhf): Likewise.
10168 * math/s_casinhl.c (__casinhl): Likewise.
10169 * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
10170 (casinh_test): Add more tests.
10171 * sysdeps/i386/fpu/libm-test-ulps: Update.
10172 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10173
101742012-03-07 Ulrich Drepper <drepper@gmail.com>
10175
10176 * po/zh_TW.po: Update from translation team.
10177
10178 * login/Makefile (distribute): Remove variable.
10179 * catgets/Makefile: Likewise.
10180 * mach/Makefile: Likewise.
10181 * malloc/Makefile: Likewise.
10182 * misc/Makefile: Likewise.
10183 * iconv/Makefile: Likewise.
10184 * nscd/Makefile: Likewise.
10185 * hurd/Makefile: Likewise.
10186 * manual/Makefile: Likewise.
10187 * locale/Makefile: Likewise.
10188 * intl/Makefile: Likewise.
10189 * conform/Makefile: Likewise.
10190 * nss/Makefile: Likewise.
10191 * time/Makefile: Likewise.
10192 * soft-fp/Makefile: Likewise.
10193 * dirent/Makefile: Likewise.
10194 * gmon/Makefile: Likewise.
10195 * po/Makefile: Likewise.
10196 * rt/Makefile: Likewise.
10197 * socket/Makefile: Likewise.
10198 * math/Makefile: Likewise.
10199 * signal/Makefile: Likewise.
10200 * debug/Makefile: Likewise.
10201 * elf/Makefile: Likewise.
10202 * timezone/Makefile: Likewise.
10203 * stdlib/Makefile: Likewise.
10204 * iconvdata/Makefile: Likewise.
10205 * sunrpc/Makefile: Likewise.
10206 * io/Makefile: Likewise.
10207 * argp/Makefile: Likewise.
10208 * inet/Makefile: Likewise.
10209 * hesiod/Makefile: Likewise.
10210 * grp/Makefile: Likewise.
10211 * csu/Makefile: Likewise.
10212 * wctype/Makefile: Likewise.
10213 * crypt/Makefile: Likewise.
10214 * libio/Makefile: Likewise.
10215 * string/Makefile: Likewise.
10216 * nis/Makefile: Likewise.
10217 * resolv/Makefile: Likewise.
10218 * stdio-common/Makefile: Likewise.
10219 * wcsmbs/Makefile: Likewise.
10220 * dlfcn/Makefile: Likewise.
10221 * posix/Makefile: Likewise.
10222
10223 [BZ #6959]
10224 * timezone/Makefile: Don't install timezone files, just the programs
10225 and scripts.
10226
102272012-03-06 Ulrich Drepper <drepper@gmail.com>
10228
10229 * nss/databases.def: Add missing gshadow entry.
10230
10231 * stdio-common/vfprintf.c: Fix formatting. Missing copyright update.
10232
102332012-03-06 Marek Polacek <polacek@redhat.com>
10234
10235 [BZ #13726]
10236 * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10237 * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10238 * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10239 * stdio-common/tst-long-dbl-fphex.c: New file.
10240
102412012-03-06 David S. Miller <davem@davemloft.net>
10242
10243 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10244 (set_obp_int): New function.
10245 (get_obp_int): New function.
10246 (__get_clockfreq_via_dev_openprom): Likewise.
10247 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10248 Avoid unused variable warnings on 'val' and use builtin_expect.
10249 (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10250 __builtin_expect.
10251 (INLINE_CLONE_SYSCALL): Likewise.
10252
102532012-03-05 David S. Miller <davem@davemloft.net>
10254
10255 * sysdeps/sparc/fpu/libm-test-ulps: Update.
10256
102572012-03-05 Andreas Schwab <schwab@linux-m68k.org>
10258
10259 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10260
10261 * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10262 only for |x| >= 40.
10263 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10264
102652012-03-05 H.J. Lu <hongjiu.lu@intel.com>
10266
10267 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10268 Replace gettimeofday with __vdso_gettimeofday.
10269
10270 * sysdeps/unix/sysv/linux/x86_64/init-first.c
10271 (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10272 __vdso_clock_gettime and __vdso_getcpu.
10273
10274 * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10275 time with __vdso_time.
10276
102772012-03-05 Joseph Myers <joseph@codesourcery.com>
10278
10279 * manual/lang.texi (size_t): Note types to which size_t may be
10280 equivalent with the GNU C Library, but do not describe when
10281 differences between them are significant.
10282
102832012-03-05 Andreas Jaeger <aj@suse.de>
10284
10285 * sysdeps/i386/fpu/libm-test-ulps: Update.
10286
102872012-03-05 Joseph Myers <joseph@codesourcery.com>
10288
10289 [BZ #3976]
10290 * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10291 (__ieee754_pow): Save and restore rounding mode and use
10292 round-to-nearest for main computations.
10293 * math/libm-test.inc (pow_test_tonearest): New function.
10294 (pow_test_towardzero): Likewise.
10295 (pow_test_downward): Likewise.
10296 (pow_test_upward): Likewise.
10297 (main): Call the new functions.
10298 * sysdeps/i386/fpu/libm-test-ulps: Update.
10299 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10300
10301 [BZ #3976]
10302 * math/libm-test.inc (cosh_test_tonearest): New function.
10303 (cosh_test_towardzero): Likewise.
10304 (cosh_test_downward): Likewise.
10305 (cosh_test_upward): Likewise.
10306 (sinh_test_tonearest): Likewise.
10307 (sinh_test_towardzero): Likewise.
10308 (sinh_test_downward): Likewise.
10309 (sinh_test_upward): Likewise.
10310 (main): Call the new functions.
10311 * sysdeps/i386/fpu/libm-test-ulps: Update.
10312 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10313
103142012-03-05 Tom de Vries <tom@codesourcery.com>
10315
10316 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10317 default stack guard is set in last bytes.
10318 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10319
103202012-03-05 Kees Cook <keescook@chromium.org>
10321
10322 * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10323
10324 [BZ #13656]
10325 * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10326 possibly allocate from heap instead of stack.
10327 * stdio-common/bug-vfprintf-nargs.c: New file.
10328 * stdio-common/Makefile (tests): Add nargs overflow test.
10329
103302012-03-03 Andreas Schwab <schwab@linux-m68k.org>
10331
10332 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10333
103342012-03-03 Marek Polacek <polacek@redhat.com>
10335
10336 * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10337 * math/math_private.h: Likewise.
10338 * stdlib/tst-strtod.c: Likewise.
10339 * sysdeps/i386/i486/bits/atomic.h: Likewise.
10340 * sysdeps/x86_64/bits/atomic.h: Likewise.
10341
103422012-03-02 David S. Miller <davem@davemloft.net>
10343
10344 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10345 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10346 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10347 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10348 * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10349 * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10350 * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10351 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10352
103532012-03-02 Roland McGrath <roland@hack.frob.com>
10354
10355 [BZ #13792]
10356 * manual/examples/README: New file, says the example source files
10357 can be used under GPL>=2.
10358 * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10359 line containing just "*/".
10360 * manual/examples/add.c: Add copyright header (GPL>=2).
10361 * manual/examples/argp-ex1.c: Likewise.
10362 * manual/examples/argp-ex2.c: Likewise.
10363 * manual/examples/argp-ex3.c: Likewise.
10364 * manual/examples/argp-ex4.c: Likewise.
10365 * manual/examples/atexit.c: Likewise.
10366 * manual/examples/db.c: Likewise.
10367 * manual/examples/dir.c: Likewise.
10368 * manual/examples/dir2.c: Likewise.
10369 * manual/examples/execinfo.c: Likewise.
10370 * manual/examples/filecli.c: Likewise.
10371 * manual/examples/filesrv.c: Likewise.
10372 * manual/examples/fmtmsgexpl.c: Likewise.
10373 * manual/examples/genpass.c: Likewise.
10374 * manual/examples/inetcli.c: Likewise.
10375 * manual/examples/inetsrv.c: Likewise.
10376 * manual/examples/isockad.c: Likewise.
10377 * manual/examples/longopt.c: Likewise.
10378 * manual/examples/memopen.c: Likewise.
10379 * manual/examples/memstrm.c: Likewise.
10380 * manual/examples/mkfsock.c: Likewise.
10381 * manual/examples/mkisock.c: Likewise.
10382 * manual/examples/mygetpass.c: Likewise.
10383 * manual/examples/pipe.c: Likewise.
10384 * manual/examples/popen.c: Likewise.
10385 * manual/examples/rprintf.c: Likewise.
10386 * manual/examples/search.c: Likewise.
10387 * manual/examples/select.c: Likewise.
10388 * manual/examples/setjmp.c: Likewise.
10389 * manual/examples/sigh1.c: Likewise.
10390 * manual/examples/sigusr.c: Likewise.
10391 * manual/examples/stpcpy.c: Likewise.
10392 * manual/examples/strdupa.c: Likewise.
10393 * manual/examples/strftim.c: Likewise.
10394 * manual/examples/strncat.c: Likewise.
10395 * manual/examples/subopt.c: Likewise.
10396 * manual/examples/swapcontext.c: Likewise.
10397 * manual/examples/termios.c: Likewise.
10398 * manual/examples/testopt.c: Likewise.
10399 * manual/examples/testpass.c: Likewise.
10400 * manual/examples/timeval_subtract.c: Likewise.
10401
10402 [BZ #13792]
10403 * manual/time.texi (Elapsed Time): Move timeval_subtract example
10404 function to ...
10405 * manual/timeval_subtract.c.texi: ... here, new file.
10406
104072012-03-02 David S. Miller <davem@davemloft.net>
10408
10409 * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10410
104112012-03-02 Joseph Myers <joseph@codesourcery.com>
10412
10413 [BZ #3976]
10414 * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10415 (__sin): Save and restore rounding mode and use round-to-nearest
10416 for all computations.
10417 (__cos): Save and restore rounding mode and use round-to-nearest
10418 for all computations.
10419 * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10420 <fenv.h>.
10421 (tan): Save and restore rounding mode and use round-to-nearest for
10422 all computations.
10423 * math/libm-test.inc (cos_test_tonearest): New function.
10424 (cos_test_towardzero): Likewise.
10425 (cos_test_downward): Likewise.
10426 (cos_test_upward): Likewise.
10427 (sin_test_tonearest): Likewise.
10428 (sin_test_towardzero): Likewise.
10429 (sin_test_downward): Likewise.
10430 (sin_test_upward): Likewise.
10431 (tan_test_tonearest): Likewise.
10432 (tan_test_towardzero): Likewise.
10433 (tan_test_downward): Likewise.
10434 (tan_test_upward): Likewise.
10435 (main): Call the new functions.
10436 * sysdeps/i386/fpu/libm-test-ulps: Update.
10437 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10438
10439 [BZ #10135]
10440 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10441 small n, then large n, before computing and testing k+n.
10442 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10443 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10444 Likewise.
10445 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10446 Likewise.
10447 * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10448 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10449 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10450 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10451 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10452 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10453 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10454 * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10455 * math/libm-test.inc (scalbn_test): Add more tests.
10456 (scalbln_test): Likewise.
10457
10458 * manual/filesys.texi (mode_t): Describe constraints on size and
10459 signedness, not exact equivalence to a particular type.
10460 (ino_t): Likewise.
10461 (ino64_t): Likewise.
10462 (dev_t): Likewise.
10463 (nlink_t): Likewise.
10464 (blkcnt_t): Likewise.
10465 (blkcnt64_t): Likewise.
10466 * manual/llio.texi (off_t): Likewise.
10467
10468 [BZ #3976]
10469 * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10470 (__ieee754_exp): Save and restore rounding mode and use
10471 round-to-nearest for all computations.
10472 * math/libm-test.inc (exp_test_tonearest): New function.
10473 (exp_test_towardzero): Likewise.
10474 (exp_test_downward): Likewise.
10475 (exp_test_upward): Likewise.
10476 (main): Call the new functions.
10477 * sysdeps/i386/fpu/libm-test-ulps: Update.
10478 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10479
104802012-03-01 Chris Demetriou <cgd@google.com>
10481
10482 * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10483 have predictable order.
10484
104852012-03-01 David S. Miller <davem@davemloft.net>
10486
10487 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10488
10489 * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10490 * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10491 * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10492 * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10493
10494 * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
10495 * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
10496 * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
10497 * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
10498 * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
10499 * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
10500 * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
10501 * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
10502 * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
10503
10504 * sysdeps/sparc/fpu/libm-test-ulps: Update.
10505
10506 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
10507 * sysdeps/sparc/fpu/libm-test-ulps: to here.
10508 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
10509
10510 * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
10511 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10512 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10513 * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
10514 * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
10515 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
10516 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
10517 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10518 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10519 * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
10520 * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
10521 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10522 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10523 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10524 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10525 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10526 * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
10527 * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
10528 * sysdeps/sparc/elf/configure: Regenerated.
10529
105302012-03-01 Joseph Myers <joseph@codesourcery.com>
10531
10532 * configure.in (AS, LD): Require binutils 2.20 or later.
10533 * configure: Regenerated.
10534 * manual/install.texi (Tools for Compilation): Give binutils 2.20
10535 as required minimum version.
10536 * INSTALL: Regenerated.
10537
10538 [BZ #2541]
10539 [BZ #4108]
10540 * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
10541 before squaring exponent.
10542 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
10543 bottom long double and 27 bits of top long double before squaring
10544 exponent.
10545 * math/libm-test.inc (erfc_test): Add more tests.
10546 * sysdeps/i386/fpu/libm-test-ulps: Update.
10547 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10548 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10549
105502012-03-01 Kai Tietz <ktietz@redhat.com>
10551
10552 * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
10553 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
10554 containing bit-fields.
10555 * soft-fp/extended.h (_FP_UNION_E): Likewise.
10556 * soft-fp/single.h (_FP_UNION_S): Likewise.
10557 * soft-fp/double.h (_FP_UNION_D): Likewise.
10558
105592012-02-29 Joseph Myers <joseph@codesourcery.com>
10560
10561 [BZ #13786]
10562 * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
10563 not include ../strcmp.S.
10564 [USE_AS_STRNCASECMP_L]: Likewise.
10565 * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
10566 (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
10567 * sysdeps/i386/i686/multiarch/strncase_l-c.c
10568 (__strncasecmp_l_ia32): Define as alias to
10569 __strncasecmp_l_nonascii.
10570
10571 [BZ #5794]
10572 * math/libm-test.inc (expm1_test): Add test for bug 5794.
10573 * sysdeps/i386/fpu/libm-test-ulps: Update.
10574 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10575
10576 * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
10577 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10578
105792012-02-29 Jeff Law <law@redhat.com>
10580
10581 * resolv/res_query.c (__libc_res_nquerydomain): Avoid
10582 out of bounds read.
10583
105842012-02-29 Marek Polacek <polacek@redhat.com>
10585
10586 [BZ #13706]
10587 * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
10588 * elf/Makefile: Add rules to run tst-unused-dep.out.
10589
105902012-02-28 David S. Miller <davem@davemloft.net>
10591
10592 * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
10593 * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
10594 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
10595 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
10596 * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
10597 * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
10598
105992012-02-29 Joseph Myers <joseph@codesourcery.com>
10600
10601 * math/libm-test.inc (llround_test): Move one test from
10602 lround_test. Use TEST_f_L in moved test.
10603 (lround_test): Move misplaced test to llround_test. Add testcase
10604 from bug 2561.
10605
106062012-02-28 Ulrich Drepper <drepper@gmail.com>
10607
10608 * sysdeps/x86_64/fpu/e_expf.S: New file.
10609 Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
10610
106112012-02-28 Stanislav Brabec <sbrabec@suse.cz>
10612
10613 [BZ #13637]
10614 * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
10615 of remain_len that may cause incomplete multi-byte character and
10616 false match.
10617 * posix/bug-regex33.c: New file.
10618 * posix/Makefile (tests): Add bug-regex33.
10619
106202012-02-28 Joseph Myers <joseph@codesourcery.com>
10621
10622 * manual/macros.texi: New file.
10623 * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
10624 * manual/libc.texinfo: Include macros.texi.
10625 * manual/creatute.texi: Likewise.
10626 * manual/install.texi: Likewise.
10627 * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
10628 @glibcadj{} in references to the GNU C Library.
10629 * manual/charset.texi: Likewise.
10630 * manual/conf.texi: Likewise.
10631 * manual/contrib.texi: Likewise. Consistently use "GNU C Library"
10632 when not using those macros.
10633 * manual/creature.texi: Likewise.
10634 * manual/crypt.texi: Likewise.
10635 * manual/errno.texi: Likewise.
10636 * manual/filesys.texi: Likewise.
10637 * manual/header.texi: Likewise.
10638 * manual/install.texi: Likewise.
10639 * manual/intro.texi: Likewise.
10640 * manual/io.texi: Likewise.
10641 * manual/job.texi: Likewise.
10642 * manual/lang.texi: Likewise.
10643 * manual/libc.texiinfo: Likewise.
10644 * manual/llio.texi: Likewise.
10645 * manual/locale.texi: Likewise.
10646 * manual/maint.texi: Likewise.
10647 * manual/math.texi: Likewise.
10648 * manual/memory.texi: Likewise.
10649 * manual/message.texi: Likewise.
10650 * manual/nss.texi: Likewise.
10651 * manual/pattern.texi: Likewise.
10652 * manual/process.texi: Likewise.
10653 * manual/resource.texi: Likewise.
10654 * manual/search.texi: Likewise.
10655 * manual/setjmp.texi: Likewise.
10656 * manual/signal.texi: Likewise.
10657 * manual/socket.texi: Likewise.
10658 * manual/startup.texi: Likewise.
10659 * manual/stdio.texi: Likewise.
10660 * manual/string.texi: Likewise.
10661 * manual/sysinfo.texi: Likewise.
10662 * manual/syslog.texi: Likewise.
10663 * manual/terminal.texi: Likewise.
10664 * manual/time.texi: Likewise.
10665 * manual/users.texi: Likewise.
10666 * INSTALL: Regenerated.
10667 * NOTES: Regenerated.
10668 * sysdeps/gnu/errlist.c: Regenerated.
10669
106702012-02-28 Andreas Schwab <schwab@linux-m68k.org>
10671
10672 * include/dirent.h: Include <dirstream.h> before
10673 <dirent/dirent.h>.
10674
106752012-02-28 David S. Miller <davem@davemloft.net>
10676
10677 * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
10678 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
10679 * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
10680 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
10681
106822012-02-27 David S. Miller <davem@davemloft.net>
10683
10684 * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
10685 * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
10686 * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
10687 * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
10688
10689 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
10690 frame pointer instead of stack pointer relative arg slot.
10691 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10692 * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10693 * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10694
106952012-02-27 Carlos O'Donell <carlos_odonell@mentor.com>
10696
10697 [BZ #3992]
10698 * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
10699
107002012-02-27 David S. Miller <davem@davemloft.net>
10701
10702 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
10703 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10704 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10705 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
10706 * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10707 * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10708 * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
10709 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
10710
107112012-02-27 Joseph Myers <joseph@codesourcery.com>
10712
10713 * configure.in (CC): Restrict allowed GCC versions to 4.3 and
10714 later. Allow versions 5-9.
10715 * configure: Regenerated.
10716 * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
10717 required minimum version and 4.6 as recommended version. Do not
10718 mention bugs in GCC 2.7 and 2.8.
10719 * INSTALL: Regenerated.
10720
107212012-02-27 David S. Miller <davem@davemloft.net>
10722
10723 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
10724 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
10725 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
10726 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
10727 * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
10728 * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
10729 * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
10730 * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
10731
10732 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
10733 manipulate bits before adding and subtracting TWO112[sx].
10734 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10735
107362012-02-27 Roland McGrath <roland@hack.frob.com>
10737
10738 [BZ #13775]
10739 * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
10740 [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
10741 * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
10742 being in POSIX, because they are in 1003.1-2008.
10743
10744 * rt/tst-aio.c: Include <fcntl.h>.
10745 * rt/tst-aio7.c: Likewise.
10746 * rt/tst-aio64.c: Likewise.
10747
10748 * stdio-common/tst-fmemopen.c (main): Remove spurious const.
10749
107502012-02-27 Joseph Myers <joseph@codesourcery.com>
10751
10752 * manual/install.texi (--with-headers): Describe headers as
10753 interface headers, not private headers.
10754 (Specific advice for GNU/Linux systems): Describe use of headers
10755 from "make headers_install", not private headers from older
10756 kernels.
10757 * INSTALL: Regenerated.
10758 * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
10759 Change to 2.6.19.
10760 * sysdeps/unix/sysv/linux/configure: Regenerated.
10761
10762 * manual/llio.texi (fclean): Remove documentation.
10763
10764 * manual/Makefile (libc-texi-generated): New variable. Include
10765 version.texi.
10766 (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
10767 $(libc-texi-generated), not duplicated list of files.
10768 (version.texi, stamp-version): New rules.
10769 (realclean): Remove $(libc-texi-generated), not individual files
10770 from that list. Do not remove dir-add.texinfo.
10771 * manual/libc.texinfo: Comment out uses of edition numbers and
10772 references to printed manual. Remove last-updated dates.
10773 (EDITION): Comment out.
10774 (ISBN): Likewise.
10775 (VERSION, UPDATED): Remove.
10776 (version.texi): Include.
10777
107782012-02-27 Andreas Schwab <schwab@linux-m68k.org>
10779
10780 * sysdeps/posix/spawni.c: Include <signal.h>.
10781 * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
10782 * sysdeps/pthread/aio_fsync.c: Likewise.
10783
107842012-02-26 Ulrich Drepper <drepper@gmail.com>
10785
10786 * conform/Makefile (tests): Run only when not cross-compiling and
10787 when fast-check is not defined.
10788
10789 * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
10790 * conform/data/limits.h-data: Fixes for POSIX2008.
10791 * conform/run-conformtest.sh: Run all tests.
10792 * include/arpa/inet.h: Changes to allow conformtest.pl to use the
10793 headers.
10794 * include/bits/dlfcn.h: Likewise.
10795 * include/langinfo.h: Likewise.
10796 * include/monetary.h: Likewise.
10797 * include/sys/poll.h: Likewise.
10798
10799 * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
10800 for __USE_GNU.
10801 * posix/spawn.h: Define __need_sigset_t.
10802 * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
10803 * posix/unistd.h: Declare ctermid only for XPG before XPG6.
10804 * rt/aio.h: Don't include fcntl.h and signal.h. Use bits/siginfo.h
10805 to get sigevent_t only.
10806 * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
10807 only for __USE_GNU.
10808 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10809 * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
10810 process_vm_writev only for __USE_GNU.
10811 * termios/termios.h: Declare tcgetsid also for POSIX2008.
10812
10813 * conform/Makefile: For now ignore errors from run-conformtest.
10814 * conform/conformtest.pl: Simplify code. Add -ansi to CFLAGS for
10815 POSIX to avoid namespace pollution. Don't prepend headers.
10816 * conform/data/aio.h-data: Fixes for POSIX testing.
10817 * conform/data/fcntl.h-data: Likewise.
10818 * conform/data/glob.h-data: Likewise.
10819 * conform/data/grp.h-data: Likewise.
10820 * conform/data/pthread.h-data: Likewise.
10821 * conform/data/pwd.h-data: Likewise.
10822 * conform/data/signal.h-data: Likewise.
10823 * conform/data/spawn.h-data: Likewise.
10824 * conform/data/stdio.h-data: Likewise.
10825 * conform/data/stdlib.h-data: Likewise.
10826 * conform/data/stropts.h-data: Likewise.
10827 * conform/data/sys/mman.h-data: Likewise.
10828 * conform/data/sys/stat.h-data: Likewise.
10829 * conform/data/sys/types.h-data: Likewise.
10830 * conform/data/sys/wait.h-data: Likewise.
10831 * conform/data/time.h-data: Likewise.
10832 * conform/data/unistd.h-data: Likewise.
10833 * conform/data/utime.h-data: Likewise.
10834
10835 * io/sys/stat.h: fchmod was always in POSIX.
10836 * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
10837 * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
10838 * rt/aio.h: Define __need_timespec before including <time.h>.
10839 * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
10840 struct. Add forward declaration of pthread_attr_t and use it in
10841 sigevent.
10842 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
10843 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
10844 * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
10845 always remove CLK_TCK definition.
10846
108472012-02-26 Andreas Schwab <schwab@linux-m68k.org>
10848
10849 * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
10850
108512012-02-25 Ulrich Drepper <drepper@gmail.com>
10852
10853 * conform/run-conformtest.sh: New file.
10854 * conform/Makefile: Run run-conformtest for tests.
10855 * conform/conformtest.pl: Many bug fixes. Add ISO C99, ISO C11
10856 support.
10857
10858 * conform/data/uchar.h-data: New file.
10859 * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
10860 * conform/data/arpa/inet.h-data: Likewise.
10861 * conform/data/assert.h-data: Likewise.
10862 * conform/data/complex.h-data: Likewise.
10863 * conform/data/cpio.h-data: Likewise.
10864 * conform/data/ctype.h-data: Likewise.
10865 * conform/data/dirent.h-data: Likewise.
10866 * conform/data/dlfcn.h-data: Likewise.
10867 * conform/data/errno.h-data: Likewise.
10868 * conform/data/fcntl.h-data: Likewise.
10869 * conform/data/float.h-data: Likewise.
10870 * conform/data/fmtmsg.h-data: Likewise.
10871 * conform/data/fnmatch.h-data: Likewise.
10872 * conform/data/ftw.h-data: Likewise.
10873 * conform/data/glob.h-data: Likewise.
10874 * conform/data/grp.h-data: Likewise.
10875 * conform/data/iconv.h-data: Likewise.
10876 * conform/data/inttypes.h-data: Likewise.
10877 * conform/data/langinfo.h-data: Likewise.
10878 * conform/data/libgen.h-data: Likewise.
10879 * conform/data/limits.h-data: Likewise.
10880 * conform/data/locale.h-data: Likewise.
10881 * conform/data/math.h-data: Likewise.
10882 * conform/data/monetary.h-data: Likewise.
10883 * conform/data/mqueue.h-data: Likewise.
10884 * conform/data/ndbm.h-data: Likewise.
10885 * conform/data/net/if.h-data: Likewise.
10886 * conform/data/netdb.h-data: Likewise.
10887 * conform/data/netinet/in.h-data: Likewise.
10888 * conform/data/nl_types.h-data: Likewise.
10889 * conform/data/poll.h-data: Likewise.
10890 * conform/data/pthread.h-data: Likewise.
10891 * conform/data/pwd.h-data: Likewise.
10892 * conform/data/regex.h-data: Likewise.
10893 * conform/data/sched.h-data: Likewise.
10894 * conform/data/search.h-data: Likewise.
10895 * conform/data/semaphore.h-data: Likewise.
10896 * conform/data/setjmp.h-data: Likewise.
10897 * conform/data/signal.h-data: Likewise.
10898 * conform/data/spawn.h-data: Likewise.
10899 * conform/data/stdarg.h-data: Likewise.
10900 * conform/data/stdio.h-data: Likewise.
10901 * conform/data/stdlib.h-data: Likewise.
10902 * conform/data/string.h-data: Likewise.
10903 * conform/data/strings.h-data: Likewise.
10904 * conform/data/stropts.h-data: Likewise.
10905 * conform/data/sys/ipc.h-data: Likewise.
10906 * conform/data/sys/mman.h-data: Likewise.
10907 * conform/data/sys/msg.h-data: Likewise.
10908 * conform/data/sys/resource.h-data: Likewise.
10909 * conform/data/sys/select.h-data: Likewise.
10910 * conform/data/sys/sem.h-data: Likewise.
10911 * conform/data/sys/shm.h-data: Likewise.
10912 * conform/data/sys/socket.h-data: Likewise.
10913 * conform/data/sys/stat.h-data: Likewise.
10914 * conform/data/sys/statvfs.h-data: Likewise.
10915 * conform/data/sys/time.h-data: Likewise.
10916 * conform/data/sys/timeb.h-data: Likewise.
10917 * conform/data/sys/times.h-data: Likewise.
10918 * conform/data/sys/types.h-data: Likewise.
10919 * conform/data/sys/uio.h-data: Likewise.
10920 * conform/data/sys/un.h-data: Likewise.
10921 * conform/data/sys/utsname.h-data: Likewise.
10922 * conform/data/sys/wait.h-data: Likewise.
10923 * conform/data/syslog.h-data: Likewise.
10924 * conform/data/tar.h-data: Likewise.
10925 * conform/data/termios.h-data: Likewise.
10926 * conform/data/utime.h-data: Likewise.
10927 * conform/data/utmpx.h-data: Likewise.
10928 * conform/data/varargs.h-data: Likewise.
10929 * conform/data/wchar.h-data: Likewise.
10930 * conform/data/wctype.h-data: Likewise.
10931 * conform/data/wordexp.h-data: Likewise.
10932
10933 * include/stropts.h: New file.
10934 * include/uchar.h: New file.
10935 * include/aio.h: Changes to allow conformtest.pl to use the headers.
10936 * include/assert.h: Likewise.
10937 * include/ctype.h: Likewise.
10938 * include/dirent.h: Likewise.
10939 * include/dlfcn.h: Likewise.
10940 * include/fcntl.h: Likewise.
10941 * include/fnmatch.h: Likewise.
10942 * include/glob.h: Likewise.
10943 * include/grp.h: Likewise.
10944 * include/libio.h: Likewise.
10945 * include/locale.h: Likewise.
10946 * include/math.h: Likewise.
10947 * include/net/if.h: Likewise.
10948 * include/netdb.h: Likewise.
10949 * include/netinet/in.h: Likewise.
10950 * include/pthread.h: Likewise.
10951 * include/pwd.h: Likewise.
10952 * include/regex.h: Likewise.
10953 * include/sched.h: Likewise.
10954 * include/search.h: Likewise.
10955 * include/setjmp.h: Likewise.
10956 * include/signal.h: Likewise.
10957 * include/stdio.h: Likewise.
10958 * include/stdlib.h: Likewise.
10959 * include/string.h: Likewise.
10960 * include/sys/cdefs.h: Likewise.
10961 * include/sys/mman.h: Likewise.
10962 * include/sys/msg.h: Likewise.
10963 * include/sys/resource.h: Likewise.
10964 * include/sys/select.h: Likewise.
10965 * include/sys/socket.h: Likewise.
10966 * include/sys/stat.h: Likewise.
10967 * include/sys/statvfs.h: Likewise.
10968 * include/sys/time.h: Likewise.
10969 * include/sys/times.h: Likewise.
10970 * include/sys/uio.h: Likewise.
10971 * include/sys/utsname.h: Likewise.
10972 * include/sys/wait.h: Likewise.
10973 * include/termios.h: Likewise.
10974 * include/time.h: Likewise.
10975 * include/ulimit.h: Likewise.
10976 * include/unistd.h: Likewise.
10977 * include/utime.h: Likewise.
10978 * include/wchar.h: Likewise.
10979 * include/wctype.h: Likewise.
10980 * include/wordexp.h: Likewise.
10981
10982 * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
10983
10984 * time/time.h: TIME_UTC must be a macro.
10985 Make timespec_get available for ISO C11 only as well.
10986
109872012-02-24 Ulrich Drepper <drepper@gmail.com>
10988
10989 * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
10990 Reported by Peng Haitao <penght@cn.fujitsu.com>.
10991
109922012-02-24 Joseph Myers <joseph@codesourcery.com>
10993
10994 * configure.in: Use -o not -a in test for unsupported multi-arch.
10995
109962012-02-24 Joseph Myers <joseph@codesourcery.com>
10997
10998 * manual/texinfo.tex: Update to version 2012-01-19.16.
10999
110002012-02-24 Joseph Myers <joseph@codesourcery.com>
11001
11002 * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11003
110042012-02-24 Roland McGrath <roland@hack.frob.com>
11005
11006 [BZ #13738]
11007 * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11008 * manual/fdl-1.3.texi: New file.
11009 * manual/fdl-1.1.texi: File removed.
11010
11011 [BZ #13738]
11012 * manual/libc.texinfo (FDL_VERSION): New @set.
11013 Use it for mention of FDL in cover text.
11014 (Documentation License): Use it in @include file name.
11015
110162012-02-22 Joseph Myers <joseph@codesourcery.com>
11017 Roland McGrath <roland@hack.frob.com>
11018
11019 [BZ #5461]
11020 * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11021 not LONG_LONG_MAX and LONG_LONG_MIN.
11022 * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11023 LLONG_MIN. Refer to LONG_LONG_MIN only as older GCC-specific
11024 name.
11025 (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11026
110272012-02-22 Joseph Myers <joseph@codesourcery.com>
11028
11029 [BZ #2547]
11030 [BZ #11365]
11031 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11032 manipulate bits before adding and subtracting TWO23[sx].
11033 * math/libm-test.inc (nearbyint_test): Add more tests.
11034
110352012-02-22 Joseph Myers <joseph@codesourcery.com>
11036
11037 [BZ #2548]
11038 * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11039 bits before adding and subtracting TWO23[sx].
11040 * math/libm-test.inc (rint_test): Add more tests.
11041 (rint_test_tonearest): Likewise.
11042 (rint_test_towardzero): Likewise.
11043 (rint_test_downward): Likewise.
11044 (rint_test_upward: Likewise.
11045
110462012-02-22 Joseph Myers <joseph@codesourcery.com>
11047
11048 [BZ #10110]
11049 * include/stdc-predef.h: New file. Extracted from features.h.
11050 * include/features.h: Include stdc-predef.h.
11051 * Makefile (headers): Add stdc-predef.h.
11052 * CONFORMANCE (Compiler limitations): Update.
11053
110542012-02-22 Joseph Myers <joseph@codesourcery.com>
11055
11056 * manual/libc.texinfo (VERSION, UPDATED): Revert.
11057
110582012-02-21 David S. Miller <davem@davemloft.net>
11059
11060 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
11061 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11062
110632012-02-20 David S. Miller <davem@davemloft.net>
11064
11065 * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
11066 using a normal save/restore sequence, rather than allocating a
11067 dummy stack frame just to store a frame pointer and restore.
11068 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11069
110702012-02-21 Joseph Myers <joseph@codesourcery.com>
11071
11072 * manual/install.texi: Fix stray word in line-wrapped comment.
11073
110742012-02-20 David S. Miller <davem@davemloft.net>
11075
11076 * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
11077 both binutils and gcc support GOTDATA.
11078
11079 * sysdeps/unix/sparc/sysdep.h: Document why we don't use
11080 "rd %pc" in the PIC register setup sequences.
11081
11082 * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
11083 * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
11084 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11085 * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11086 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11087 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11088 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11089 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11090 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
11091 (SYSCALL_ERROR_HANDLER): Likewise.
11092 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11093 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11094 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
11095 (SYSCALL_ERROR_HANDLER): Likewise.
11096
11097 * config.h.in (HAVE_BINUTILS_GOTDATA): New.
11098 (HAVE_GCC_GOTDATA): New.
11099 * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11100 relocation support in both binutils and gcc.
11101 * sysdeps/sparc/elf/configure: Regenerate.
11102
11103 * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11104 * sysdeps/sparc/sparc32/elf/configure: Delete.
11105 * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11106 * sysdeps/sparc/sparc64/elf/configure: Delete.
11107 * sysdeps/sparc/elf/configure.in: New file.
11108 * sysdeps/sparc/elf/configure: Generate.
11109
11110 * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
11111 * sysdeps/sparc/sparc32/elf/configure: Regenerate.
11112 * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11113 * sysdeps/sparc/sparc64/elf/configure: Regenerate.
11114 * config.h.in (BROKEN_SPARC_WDISP22): Remove.
11115
111162012-02-21 Joseph Myers <joseph@codesourcery.com>
11117
11118 * manual/install.texi: Do not mention specific glibc version
11119 numbers.
11120 * manual/libc.texinfo (VERSION, UPDATED): Update.
11121 (@copying): Use @copyright{} and range of years.
11122
111232012-02-21 Joseph Myers <joseph@codesourcery.com>
11124
11125 [BZ #13695]
11126 * csu/Makefile (distribute): Remove initfini.c and defs.awk.
11127 [crti.S not in sysdirs] (generated): Do not append.
11128 [crti.S not in sysdirs] (omit-deps): Likewise.
11129 [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
11130 [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
11131 [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
11132 [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
11133 [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
11134 Likewise.
11135 [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
11136 [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
11137 [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
11138 * csu/defs.awk: Remove file.
11139 * sysdeps/generic/initfini.c: Likewise.
11140 * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
11141 variable.
11142 * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
11143 Likewise.
11144
111452012-02-20 Joseph Myers <joseph@codesourcery.com>
11146
11147 * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
11148 * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
11149 * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
11150 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
11151 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11152 * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
11153 <bits/epoll.h>.
11154 (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
11155 (__EPOLL_PACKED): Define to empty if not defined by
11156 <bits/epoll.h>.
11157 (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
11158 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11159 bits/epoll.h.
11160
111612012-02-20 Joseph Myers <joseph@codesourcery.com>
11162
11163 * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
11164 * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
11165 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
11166 * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
11167 <bits/timerfd.h>.
11168 (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
11169 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11170 bits/timerfd.h.
11171
111722012-02-20 Joseph Myers <joseph@codesourcery.com>
11173
11174 * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11175 in C locale.
11176 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11177 * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11178 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11179 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11180
111812012-02-20 Aurelien Jarno <aurelien@aurel32.net>
11182
11183 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11184 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11185
111862012-02-19 Andreas Schwab <schwab@linux-m68k.org>
11187
11188 * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11189 * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11190 defined.
11191 * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11192 Likewise.
11193 * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11194 entry for 2.16.
11195
111962012-02-19 Aurelien Jarno <aurelien@aurel32.net>
11197
11198 * math/w_acos.c: Use non-signaling floating-point comparisons.
11199 * math/w_acosf.c: Likewise.
11200 * math/w_acosh.c: Likewise.
11201 * math/w_acoshf.c: Likewise.
11202 * math/w_acoshl.c: Likewise.
11203 * math/w_acosl.c: Likewise.
11204 * math/w_asin.c: Likewise.
11205 * math/w_asinf.c: Likewise.
11206 * math/w_asinl.c: Likewise.
11207 * math/w_atanh.c: Likewise.
11208 * math/w_atanhf.c: Likewise.
11209 * math/w_atanhl.c: Likewise.
11210 * math/w_exp2.c: Likewise.
11211 * math/w_exp2f.c: Likewise.
11212 * math/w_exp2l.c: Likewise.
11213 * math/w_j0.c: Likewise.
11214 * math/w_j0f.c: Likewise.
11215 * math/w_j0l.c: Likewise.
11216 * math/w_j1.c: Likewise.
11217 * math/w_j1f.c: Likewise.
11218 * math/w_j1l.c: Likewise.
11219 * math/w_jn.c: Likewise.
11220 * math/w_jnf.c: Likewise.
11221 * math/w_log.c: Likewise.
11222 * math/w_log10.c: Likewise.
11223 * math/w_log10f.c: Likewise.
11224 * math/w_log10l.c: Likewise.
11225 * math/w_log2.c: Likewise.
11226 * math/w_log2f.c: Likewise.
11227 * math/w_log2l.c: Likewise.
11228 * math/w_logf.c: Likewise.
11229 * math/w_logl.c: Likewise.
11230 * math/w_sqrt.c: Likewise.
11231 * math/w_sqrtf.c: Likewise.
11232 * math/w_sqrtl.c: Likewise.
11233 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11234 * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11235 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11236 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11237 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11238
112392012-02-19 Joseph Myers <joseph@codesourcery.com>
11240
11241 [BZ #9739]
11242 * manual/string.texi (strnlen): Use correct parameter name in
11243 equivalent expression.
11244
112452012-02-19 Joseph Myers <joseph@codesourcery.com>
11246
11247 [BZ #11174]
11248 * manual/users.texi (seteuid): Consistently use neweuid for
11249 argument name.
11250
112512012-02-19 Joseph Myers <joseph@codesourcery.com>
11252
11253 [BZ #13704]
11254 * manual/nss.texi (Services in the NSS configuration): Correct
11255 list of services in example configuration file.
11256
112572012-02-19 Nick Bowler <nbowler@draconx.ca>
11258
11259 [BZ #11322]
11260 * manual/arith.texi: Remove statements about negative zero
11261 behaving identically to zero.
11262
112632012-02-18 Joseph Myers <joseph@codesourcery.com>
11264
11265 [BZ #5993]
11266 * manual/install.texi: Do not document upgrading from libc5.
11267
112682012-02-18 Joseph Myers <joseph@codesourcery.com>
11269
11270 [BZ #4596]
11271 * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11272
112732012-02-18 David S. Miller <davem@davemloft.net>
11274
11275 * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11276 (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11277 %o7 across the call.
11278 (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11279 instead.
11280 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11281 SETUP_PIC_REG_LEAF.
11282 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11283 * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11284 * sysdeps/sparc/crtn.S: Likewise.
11285
112862012-02-17 Ulrich Drepper <drepper@gmail.com>
11287
11288 * aout/Makefile: Remove.
11289
112902012-02-18 Rafe Kettler <rafe.kettler@gmail.com>
11291
11292 [BZ #13058]
11293 * manual/examples/argp-ex1.c (main): Format definition in GNU
11294 style.
11295 * manual/examples/argp-ex2.c (main): Likewise.
11296 * manual/examples/argp-ex3.c (main): Likewise.
11297 * manual/examples/argp-ex4.c (main): Likewise.
11298 * manual/examples/longopt.c (main): Use new-style prototype
11299 definition.
11300 * manual/examples/strncat.c (main): Specify return type and use
11301 (void) for arguments.
11302 * manual/examples/subopt.c (main): Use char **argv argument.
11303
113042012-02-17 Joseph Myers <joseph@codesourcery.com>
11305
11306 [BZ #5077]
11307 * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11308 rounding modes.
11309
113102012-02-17 Fabrice Bauzac <fabrice.bauzac@wanadoo.fr>
11311
11312 [BZ #6907]
11313 * manual/string.texi (strchr): Change when strchrnul is
11314 recommended.
11315
113162012-02-17 Dwayne Grant McConnell <decimal@us.ibm.com>
11317
11318 [BZ #174]
11319 * manual/locale.texi (setlocale): Document LOCPATH.
11320
113212012-02-17 Joseph Myers <joseph@codesourcery.com>
11322
11323 [BZ #10210]
11324 * manual/process.texi (execle): Move @dots{} before last argument.
11325
113262012-02-17 Paul Bolle <pebolle@tiscali.nl>
11327
11328 [BZ #12047]
11329 * manual/charset.texi (Generic Charset Conversion): Fix typo
11330 (LC_TYPE -> LC_CTYPE).
11331
113322012-02-17 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
11333
11334 [BZ #5805]
11335 * manual/arith.texi (scalbn): Use @var{} on parameter names.
11336 (scalbnf): Likewise.
11337 (scalbnl): Likewise.
11338 (scalbln): Likewise.
11339 (scalblnf): Likewise.
11340 (scalblnl): Likewise.
11341 * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11342 (vwarnx): Likewise.
11343 (verr): Likewise.
11344 (verrx): Likewise.
11345 * manual/filesys.texi (telldir): Use braces around return type.
11346 * manual/llio.texi (mmap): Add space after comma.
11347 (mmap64): Likewise.
11348 * manual/math.texi (jn): Use @var{} on parameter names.
11349 (jnf): Likewise.
11350 (jnl): Likewise.
11351 (yn): Likewise.
11352 (ynf): Likewise.
11353 (ynl): Likewise.
11354 * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11355 line.
11356 * manual/resource.texi (ulimit): Use @dots{} instead of literal
11357 "...".
11358 (sched_get_priority_min): Remove semicolon on @deftypefun line.
11359 (sched_get_priority_max): Likewise.
11360 * manual/signal.texi (sigvec): Add space after comma.
11361 * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11362 names.
11363 (if_indextoname): Likewise.
11364 (if_freenameindex): Likewise.
11365 (sendto): Use ',' instead of '.' in prototype.
11366 * manual/startup.texi (syscall): Use @dots{} instead of literal
11367 "...".
11368 * manual/stdio.texi (__fpending): Separate initial words of
11369 paragraph from @deftypefun line.
11370 * manual/syslog.texi (syslog): Use @dots{} instead of literal
11371 "...".
11372 (vsyslog): Use @var{} on parameter names.
11373 * manual/terminal.texi (stty): Use @var{} on parameter names.
11374 * manual/users.texi (getutmp): Use @var{} on parameter names.
11375 (getutmpx): Likewise.
11376
113772012-02-17 Joseph Myers <joseph@codesourcery.com>
11378
11379 [BZ #6884]
11380 * manual/stdio.texi (fopen): Fix typos in description of
11381 ",ccs=STRING".
11382
113832012-02-17 Aurelien Jarno <aurelien@aurel32.net>
11384
11385 [BZ #4026]
11386 * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11387 get clock_id definition.
11388
113892012-02-17 Thomas Schwinge <thomas@schwinge.name>
11390
11391 [BZ #4822]
11392 * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11393 (madvise): Cast every argument to void on its own.
11394
113952012-02-17 Joseph Myers <joseph@codesourcery.com>
11396
11397 [BZ #9902]
11398 * manual/startup.texi (Exit Status): Fix typo.
11399
114002012-02-17 Joseph Myers <joseph@codesourcery.com>
11401
11402 [BZ #10140]
11403 * manual/examples/argp-ex1.c: Include <stdlib.h>.
11404 * manual/examples/argp-ex2.c: Likewise.
11405 * manual/examples/argp-ex3.c: Likewise.
11406
114072012-02-16 Richard Henderson <rth@redhat.com>
11408
11409 * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11410 * sysdeps/s390/s390-32/initfini.c: Remove.
11411 * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11412 * sysdeps/s390/s390-64/initfini.c: Remove.
11413
114142012-02-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11415
11416 * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11417 compiler output for sysdeps/generic/initfini.c.
11418 * sysdeps/sh/elf/initfini.c: Remove file.
11419
114202012-02-16 David S. Miller <davem@davemloft.net>
11421
11422 [BZ #11494]
11423 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11424
11425 * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11426 * sysdeps/sparc/crti.S: New file.
11427 * sysdeps/sparc/crtn.S: New file.
11428 * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11429 * sysdeps/sparc/sparc64/Makefile: Likewise.
11430
114312012-02-15 Mike Frysinger <vapier@gentoo.org>
11432
11433 [BZ #3335]
11434 * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11435
114362012-02-15 Roland McGrath <roland@hack.frob.com>
11437
11438 [BZ #4822]
11439 * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11440
11441 * mach/devstream.c (cookie_io_functions_t): Macro removed.
11442 (write, read, close): Likewise.
11443 Patch by Aurelien Jarno <aurelien@aurel32.net>.
11444
114452012-02-15 Joseph Myers <joseph@codesourcery.com>
11446
11447 * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11448 * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11449 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11450 * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11451 <bits/signalfd.h>.
11452 (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11453 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11454 bits/signalfd.h.
11455
114562012-02-14 Marek Polacek <polacek@redhat.com>
11457
11458 * sysdeps/x86_64/crti.S: New file.
11459 * sysdeps/x86_64/crtn.S: New file.
11460 * sysdeps/x86_64/elf/initfini.c: Remove file.
11461
114622012-02-13 Joseph Myers <joseph@codesourcery.com>
11463
11464 * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11465 * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11466 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11467 * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11468 <bits/inotify.h>.
11469 (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11470 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11471 bits/inotify.h.
11472
114732012-02-13 Joseph Myers <joseph@codesourcery.com>
11474
11475 * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11476 * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11477 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11478 * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11479 <bits/eventfd.h>.
11480 (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11481 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11482 bits/eventfd.h.
11483
114842012-02-10 Thomas Schwinge <thomas@codesourcery.com>
11485
11486 * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11487 __feraiseexcept instead of feraiseexcept.
11488
11489 * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11490 nanosleep invocations.
11491 * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11492 strings, and add error checking for a nanosleep invocations.
11493
114942012-02-09 Paul Eggert <eggert@cs.ucla.edu>
11495
11496 Replace FSF snail mail address with URLs, as per GNU coding standards.
11497 Most of the snail mail addresses were wrong anyway, and omitting
11498 them makes the source code easier to maintain. Almost all of the
11499 changes are to license notices and to locale LC_IDENTIFICATION
11500 addresses, except for this one:
11501 * manual/libc.texinfo: In "Published by", give the FSF's URL,
11502 not its snail mail address.
11503
115042012-02-09 Richard Henderson <rth@twiddle.net>
11505
11506 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
11507 of kernel-features.h.
11508
11509 * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
11510
115112012-02-08 Marek Polacek <polacek@redhat.com>
11512
11513 * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
11514 * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
11515 * sysdeps/gnu/_G_config.h: Likewise.
11516 * sysdeps/generic/_G_config.h: Likewise.
11517
115182012-02-08 Andreas Schwab <schwab@linux-m68k.org>
11519
11520 * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
11521 tests.
11522 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11523
11524 * sysdeps/powerpc/powerpc32/crti.S: New file.
11525 * sysdeps/powerpc/powerpc32/crtn.S: New file.
11526 * sysdeps/powerpc/powerpc64/crti.S: New file.
11527 * sysdeps/powerpc/powerpc64/crtn.S: New file.
11528
11529 * Makeconfig (have-initfini): Don't set.
11530 * config.make.in (have-initfini, need-nopic-initfini): Don't set.
11531 * configure.in (nopic_initfini): Don't substitute.
11532 * config.h.in (HAVE_INITFINI): Don't #undef.
11533 * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
11534 * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
11535
115362012-02-08 Joseph Myers <joseph@codesourcery.com>
11537
11538 Support crti.S and crtn.S provided directly by architectures.
11539 * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
11540 [crti.S in sysdirs] (omit-deps): Likewise.
11541 [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
11542 [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
11543 [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
11544 [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
11545 [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
11546 [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
11547 [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
11548 [crti.S in sysdirs] (initfini.c): Remove vpath directive.
11549 * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
11550 compiler output for sysdeps/generic/initfini.c.
11551 * sysdeps/i386/elf/Makefile: Remove file.
11552 * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
11553
115542012-02-07 Marek Polacek <polacek@redhat.com>
11555
11556 * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
11557 * sysdeps/gnu/_G_config.h: Likewise.
11558 * sysdeps/mach/hurd/_G_config.h: Likewise.
11559
115602012-02-07 Marek Polacek <polacek@redhat.com>
11561
11562 * math/Makefile (tests): Add tst-CMPLX2.
11563 * math/tst-CMPLX2.c: New file.
11564
115652012-02-07 Andreas Schwab <schwab@linux-m68k.org>
11566
11567 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11568
11569 * math/libm-test.inc (jn_test): Add missing L suffix.
11570
115712012-02-06 Marek Polacek <polacek@redhat.com>
11572
11573 * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
11574 * sysdeps/i386/fpu/e_powf.S: Likewise.
11575 * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11576 * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11577 * sysdeps/i386/fpu/e_acosh.S: Likewise.
11578 * sysdeps/i386/fpu/e_pow.S: Likewise.
11579 * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11580 * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11581 * sysdeps/i386/fpu/s_expm1.S: Likewise.
11582 * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11583 * sysdeps/i386/fpu/e_log2.S: Likewise.
11584 * sysdeps/i386/fpu/e_log2l.S: Likewise.
11585 * sysdeps/i386/fpu/e_scalb.S: Likewise.
11586 * sysdeps/i386/fpu/e_powl.S: Likewise.
11587 * sysdeps/i386/fpu/s_log1p.S: Likewise.
11588 * sysdeps/i386/fpu/e_log10f.S: Likewise.
11589 * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11590 * sysdeps/i386/fpu/e_logl.S: Likewise.
11591 * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11592 * sysdeps/i386/fpu/s_expm1l.S: Likewise.
11593 * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11594 * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11595 * sysdeps/i386/fpu/e_log2f.S: Likewise.
11596 * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11597 * sysdeps/i386/fpu/e_log.S: Likewise.
11598 * sysdeps/i386/fpu/s_cexp.S: Likewise.
11599 * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11600 * sysdeps/i386/fpu/s_log1pl.S: Likewise.
11601 * sysdeps/i386/fpu/e_logf.S: Likewise.
11602 * sysdeps/i386/fpu/e_log10l.S: Likewise.
11603 * sysdeps/i386/fpu/e_atanh.S: Likewise.
11604 * sysdeps/i386/fpu/s_log1pf.S: Likewise.
11605 * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11606 * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11607 * sysdeps/i386/fpu/e_log10.S: Likewise.
11608 * sysdeps/i386/fpu/s_frexp.S: Likewise.
11609 * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11610 * sysdeps/i386/fpu/s_asinh.S: Likewise.
11611 * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11612 * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11613 * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11614 * sysdeps/i386/asm-syntax.h: Likewise.
11615 * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11616 * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11617 * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11618 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
11619 * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
11620 * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11621 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11622 * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11623 * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11624 * sysdeps/powerpc/sysdep.h: Likewise.
11625 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
11626 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11627
116282012-02-06 Joseph Myers <joseph@codesourcery.com>
11629
11630 [BZ #411]
11631 * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
11632
116332012-02-06 Joseph Myers <joseph@codesourcery.com>
11634
11635 * sysdeps/i386/sysdep.h: Include <features.h>.
11636 (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
11637 version.
11638
116392012-02-05 Joseph Myers <joseph@codesourcery.com>
11640
11641 * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
11642 Define.
11643 * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
11644 LOAD_PIC_REG_STR.
11645
116462012-02-03 Joseph Myers <joseph@codesourcery.com>
11647
11648 * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
11649 (SETUP_PIC_REG): Use GET_PC_THUNK.
11650 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
11651 macro.
11652
116532012-02-03 Joseph Myers <joseph@codesourcery.com>
11654
11655 * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
11656 for non-PIC compilation.
11657 (SETUP_PIC_REG): Add .p2align directive.
11658 * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
11659 * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
11660 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
11661 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
11662 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
11663 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
11664 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
11665 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11666 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
11667 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
11668 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
11669 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
11670 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
11671 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
11672 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
11673 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
11674 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
11675 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
11676 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
11677 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
11678 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
11679 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
11680 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
11681 * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
11682 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
11683 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
11684 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
11685 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
11686 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
11687 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
11688 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
11689 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
11690 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
11691 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
11692 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
11693 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
11694 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
11695 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
11696 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
11697 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
11698 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
11699
117002012-02-03 Joseph Myers <joseph@codesourcery.com>
11701
11702 * math/tst-CMPLX.c: Include <stdio.h>.
11703
117042012-01-31 Joseph Myers <joseph@codesourcery.com>
11705
11706 * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
11707 float.
11708 * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11709 * sysdeps/sparc/bits/mathdef.h: Likewise.
11710
117112012-01-31 Marek Polacek <polacek@redhat.com>
11712
11713 * libio/libio.h: Don't define _PARAMS.
11714 * locale/programs/config.h: Don't define PARAMS.
11715 * stdlib/strtol_l.c: Likewise.
11716 (__strtol_l): Remove PARAMS from the prototype.
11717
117182012-01-31 Ulrich Drepper <drepper@gmail.com>
11719
11720 * malloc/malloc.c: Remove name translation. Don't use mixed-cap
11721 names. Just use the correct names. Remove unnecessary wrapper
11722 functions.
11723 * malloc/arena.c: Likewise.
11724 * malloc/hooks.c: Likewise.
11725
11726 * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
11727 ARENA_TEST says not to. Simplify test for creation of a new arena.
11728 Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
11729
117302012-01-30 Ulrich Drepper <drepper@gmail.com>
11731
11732 * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
11733 into tail calls.
11734 (update_get_addr): New function.
11735 (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
11736 GET_ADDR_MODULE parameter.
11737
117382012-01-30 Joseph Myers <joseph@codesourcery.com>
11739
11740 * crypt/cert.c: Remove __STDC__ conditionals.
11741 * crypt/crypt-entry.c: Likewise.
11742 * crypt/crypt_util.c: Likewise.
11743 * libio/filedoalloc.c: Likewise.
11744 * libio/fileops.c: Likewise.
11745 * libio/genops.c: Likewise.
11746 * libio/iofclose.c: Likewise.
11747 * libio/iofdopen.c: Likewise.
11748 * libio/iofopen.c: Likewise.
11749 * libio/iofopen64.c: Likewise.
11750 * libio/iogetdelim.c: Likewise.
11751 * libio/iopopen.c: Likewise.
11752 * libio/obprintf.c: Likewise.
11753 * libio/oldfileops.c: Likewise.
11754 * libio/oldiofclose.c: Likewise.
11755 * libio/oldiofdopen.c: Likewise.
11756 * libio/oldiofopen.c: Likewise.
11757 * libio/oldiopopen.c: Likewise.
11758 * libio/wfiledoalloc.c: Likewise.
11759 * libio/wgenops.c: Likewise.
11760 * locale/programs/xmalloc.c: Likewise.
11761 * misc/syslog.c: Likewise.
11762 * stdio-common/xbug.c: Likewise.
11763 * string/memchr.c: Likewise.
11764 * string/memcmp.c: Likewise.
11765 * string/memrchr.c: Likewise.
11766 * string/rawmemchr.c: Likewise.
11767 * sysdeps/posix/getcwd.c: Likewise.
11768 * time/strftime_l.c: Likewise.
11769
117702012-01-30 Joseph Myers <joseph@codesourcery.com>
11771
11772 * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
11773 * config.make.in (config-cflags-sse2avx): Define.
11774 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
11775 Fix typo.
11776
117772012-01-29 Chris Metcalf <cmetcalf@tilera.com>
11778
11779 * scripts/config.guess: Update from upstream config git repository.
11780 * scripts/config.sub: Likewise.
11781
117822012-01-28 Chris Metcalf <cmetcalf@tilera.com>
11783
11784 * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
11785 (EM_NUM): Update.
11786 (R_TILEPRO_*, R_TILEGX_*): New macros.
11787
11788 * scripts/firstversions.awk: Fix bug in version range handling.
11789
11790 * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
11791
11792 * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
11793
11794 * include/sys/epoll.h: New file.
11795 * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
11796 libc_hidden_def.
11797
117982012-01-28 Ulrich Drepper <drepper@gmail.com>
11799
11800 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
11801 Avoid unnecessary __WORDSIZE == 64 test.
11802 (fmaxf): Use VEX format if possible.
11803 (fmax): Likewise.
11804 (fminf): Likewise.
11805 (fmin): Likewise.
11806
11807 * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
11808 * math/math_private.h: Remove libc_fegetround* and
11809 libc_fesetround*.
11810 * sysdeps/i386/configure.in: Check for -msse2avx.
11811 * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
11812 also if SSE2AVX is defined.
11813 Remove libc_fegetround* and libc_fesetround*.
11814 * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
11815 if config-cflags-sse2avx is yes. Also add -DSSE2AVX to defines.
11816 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
11817 of HAS_YMM_USABLE.
11818 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11819 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11820 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11821 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11822 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11823
11824 * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
11825
118262012-01-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
11827
11828 * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
11829 size is not set.
11830 * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
11831
118322012-01-27 Ulrich Drepper <drepper@gmail.com>
11833
11834 [BZ #13618]
11835 * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
11836 relocation.
11837 * Makeconfig (libm): Define.
11838 * elf/Makefile: Add rules to build and run tst-relsort1.
11839 * elf/tst-relsort1.c: New file.
11840 * elf/tst-relsort1mod1.c: New file.
11841 * elf/tst-relsort1mod2.c: New file.
11842
118432012-01-27 Joseph Myers <joseph@codesourcery.com>
11844
11845 * math/s_ldexp.c: Remove __STDC__ conditionals.
11846 * math/s_ldexpf.c: Likewise.
11847 * math/s_ldexpl.c: Likewise.
11848 * math/s_nextafter.c: Likewise.
11849 * math/s_nexttowardf.c: Likewise.
11850 * math/s_significand.c: Likewise.
11851 * math/s_significandf.c: Likewise.
11852 * math/s_significandl.c: Likewise.
11853 * math/w_jnl.c: Likewise.
11854 * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11855 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11856 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11857 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11858 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11859 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11860 * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
11861 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11862 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11863 * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11864 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11865 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11866 * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11867 * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11868 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11869 * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11870 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11871 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11872 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11873 * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11874 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11875 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11876 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11877 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11878 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11879 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11880 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11881 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11882 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11883 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11884 * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11885 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11886 * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11887 * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11888 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11889 * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11890 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11891 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11892 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11893 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11894 * sysdeps/ieee754/k_standard.c: Likewise.
11895 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11896 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11897 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11898 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11899 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11900 * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11901 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11902 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11903 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11904 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11905 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11906 * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11907 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11908 * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11909 * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11910 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11911 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11912 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11913 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11914 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11915 * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11916 * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11917 * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11918 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11919 * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11920 * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11921 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11922 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11923 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11924 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11925 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11926 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
11927 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11928 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11929 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11930 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11931 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11932 * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11933 * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11934 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
11935 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11936 * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11937 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
11938 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
11939 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11940 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
11941 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11942 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11943 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11944 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11945 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11946 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11947 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11948 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11949 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11950 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11951 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11952 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11953 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11954 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11955 * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11956 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11957 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11958 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11959 * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11960 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11961 * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11962 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11963 * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11964 * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11965 * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11966 * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11967 * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11968 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11969 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11970 * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11971 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11972 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11973 * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11974 * sysdeps/ieee754/s_matherr.c: Likewise.
11975 * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11976 * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11977 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11978 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11979
119802012-01-26 Joseph Myers <joseph@codesourcery.com>
11981
11982 * crypt/md5.h: Remove __STDC__ conditionals.
11983 * libio/libioP.h: Likewise.
11984 * locale/programs/config.h: Likewise.
11985 * sysdeps/generic/sysdep.h: Likewise.
11986 * sysdeps/i386/asm-syntax.h: Likewise.
11987 * sysdeps/s390/asm-syntax.h: Likewise.
11988 * sysdeps/unix/sysdep.h: Likewise.
11989 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
11990 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
11991
119922012-01-26 Joseph Myers <joseph@codesourcery.com>
11993
11994 * libio/libio.h: Remove __STDC__ conditionals.
11995 * malloc/obstack.h: Likewise.
11996 * math/complex.h: Likewise.
11997 * math/math.h: Likewise.
11998 * sysdeps/generic/_G_config.h: Likewise.
11999 * sysdeps/gnu/_G_config.h: Likewise.
12000 * sysdeps/mach/hurd/_G_config.h: Likewise.
12001 * sysdeps/powerpc/bits/mathdef.h: Likewise.
12002 * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12003 * sysdeps/sparc/bits/mathdef.h: Likewise.
12004
120052012-01-26 Ulrich Drepper <drepper@gmail.com>
12006
12007 [BZ #13583]
12008 * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12009 Clean up HAS_* macros.
12010 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12011 bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12012 possible.
12013 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12014 HAS_AVX.
12015 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12016 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12017 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12018 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12019 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12020
120212012-01-25 Joseph Myers <joseph@codesourcery.com>
12022
12023 * elf/tst-unique3.cc (gets): Remove declaration.
12024 * elf/tst-unique3lib.cc (gets): Likewise.
12025 * elf/tst-unique3lib2.cc (gets): Likewise.
12026 * elf/tst-unique4.cc (gets): Likewise.
12027
120282012-01-24 Ulrich Drepper <drepper@gmail.com>
12029
12030 * include/stdio.h: Add C++ protection. Add gets declarations and
12031 definitions.
12032 * debug/tst-chk1.c: Don't declare gets here.
12033 * stdio-common/tst-gets.c: Likewise.
12034
120352012-01-24 Joseph Myers <joseph@codesourcery.com>
12036
12037 * posix/glob: Remove directory.
12038
120392012-01-24 Joseph Myers <joseph@codesourcery.com>
12040
12041 * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12042
120432012-01-22 Pino Toscano <toscano.pino@tiscali.it>
12044
12045 * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
12046 of the non-standard EPFNOSUPPORT.
12047
120482011-12-26 Samuel Thibault <samuel.thibault@ens-lyon.org>
12049
12050 * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
12051 __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
12052 ANYWHERE set to 1 only on KERN_NO_SPACE error.
12053
120542012-01-21 Ulrich Drepper <drepper@gmail.com>
12055
12056 * wcsmbs/uchar.h: Test __STDC_VERSION__.
12057
120582012-01-20 Ulrich Drepper <drepper@gmail.com>
12059
12060 * nscd/aicache.c (addhstaiX): Do not cache negative results of
12061 transient errors.
12062 * nscd/grpcache.c (cache_addgr): Likewise.
12063 * nscd/hstcache.c (cache_addhst): Likewise.
12064 * nscd/initgrcache.c (addinitgroupsX): Likewise.
12065 * nscd/pwdcache.c (cache_addpw): Likewise.
12066 * nscd/servicescache.c (cache_addserv): Likewise.
12067
120682012-01-16 Ulrich Drepper <drepper@gmail.com>
12069
12070 * malloc/malloc.c: Various cleanups.
12071 * malloc/hooks.c: Likewise.
12072
12073 * stdlib/Makefile (tests): Add bug-fmtmsg1.
12074 * stdlib/bug-fmtmsg1.c: New file.
12075
12076 * stdlib/fmtmsg.c (init): Add missing unlock.
12077 Patch by Peng Haitao <penght@cn.fujitsu.com>.
12078
120792012-01-12 Marek Polacek <polacek@redhat.com>
12080
12081 * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
12082 and _GNU_SOURCE.
12083
120842012-01-04 Will Schmidt <will_schmidt@vnet.ibm.com>
12085
12086 * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
12087 * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
12088 macro to ensure uniqueness of label name.
12089 * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12090 * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12091
120922012-01-11 Ulrich Drepper <drepper@gmail.com>
12093
12094 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
12095
12096 * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
12097 * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12098 * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12099 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12100
121012012-01-10 Ulrich Drepper <drepper@gmail.com>
12102
12103 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12104
12105 * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12106 * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12107 * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12108
12109 * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12110
12111 * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
12112 * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12113 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12114 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
12115
12116 * math/bits/math-finite.h: Add ldexp support.
12117
121182012-01-10 Marek Polacek <polacek@redhat.com>
12119
12120 * locale/programs/localedef.h (show_archive_content): Add noreturn
12121 attribute.
12122
121232012-01-09 Ulrich Drepper <drepper@gmail.com>
12124
12125 * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
12126
121272012-01-08 Ulrich Drepper <drepper@gmail.com>
12128
12129 * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
12130
12131 * io/Makefile (headers): Add bits/poll2.h.
12132
121332011-01-05 Will Schmidt <will_schmidt@vnet.ibm.com>
12134
12135 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
12136 typo #include statement.
12137
121382012-01-08 Ulrich Drepper <drepper@gmail.com>
12139
12140 * include/sys/cdefs.h: Define __attribute_alloc_size.
12141 * catgets/gencat.c: Add alloc_size attribute and apply consistently
12142 the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
12143 * elf/pldd.c: Likewise.
12144 * iconv/iconv_charmap.c: Likewise.
12145 * iconv/iconvconfig.c: Likewise.
12146 * iconv/strtab.c: Likewise.
12147 * locale/programs/locale.c: Likewise.
12148 * locale/programs/localedef.h: Likewise.
12149 * locale/programs/simple-hash.c: Likewise.
12150 * nscd/nscd.h: Likewise.
12151 * nss/makedb.c: Likewise.
12152 * sysdeps/generic/ldconfig.h: Likewise.
12153 * locale/programs/localedef.c: Remove xmalloc prototype.
12154 * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
12155
121562012-01-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12157
12158 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
12159 appropriate.
12160
121612012-01-08 Ulrich Drepper <drepper@gmail.com>
12162
12163 * math/Makefile (tests): Add tst-CMPLX.
12164 * math/tst-CMPLX.c: New file.
12165
12166 * math/complex.h (CMPLXL): Fix typo.
12167
12168 * debug/Makefile (routines): Add poll_chk and ppoll_chk.
12169 * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
12170 GLIBC_2.16.
12171 * debug/tst-chk1.c: Add poll and ppoll tests.
12172 * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12173 * include/sys/poll.h: Add hidden proto for ppoll.
12174 * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12175 * sysdeps/mach/hurd/ppoll.c: Likewise.
12176 * io/ppoll.c: Likewise.
12177 * debug/poll_chk.c: New file.
12178 * debug/ppoll_chk.c: New file.
12179 * include/bits/poll2.h: New file.
12180 * io/bits/poll2.h: New file.
12181
12182 [BZ #1350]
12183 * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12184
12185 * configure.in: static is always set to yes. Remove.
12186 * config.make.in: Don't set build-static.
12187 * Makeconfig: Remove use of build-static.
12188 * dlfcn/Makefile: Likewise.
12189 * elf/Makefile: Likewise.
12190 * math/Makefile: Likewise.
12191 * misc/Makefile: Likewise.
12192 * nptl/Makefile: Likewise.
12193 * sysdeps/mach/hurd/Makefile: Likewise.
12194
12195 * configure.in: PWD_P is not used anymore.
12196 * config.make.in: Remove PWD_P entry.
12197
12198 * configure.in: Remove last remnants of RANLIB.
12199 No need to check for signed size_t anymore.
12200 Don't set libc_commonpagesize and libc_relro_required here for Alpha
12201 and IA-64.
12202 Remove __builtin_expect test because we require at least gcc 3.4.
12203 * aclocal.m4: Likewise.
12204
12205 * wcsmbs/mbrtoc16.c: Implement using towc function.
12206 * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12207 * wcsmbs/wcsmbsload.c: Likewise.
12208 * iconv/gconv_simple.c: Likewise.
12209 * iconv/gconv_int.h: Likewise.
12210 * iconv/gconv_builtin.h: Likewise.
12211 * iconv/iconv_prog.c: Remove CHAR16 handling.
12212
12213 * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12214
12215 * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12216
12217 * configure.in: Remove --with-elf and --enable-bounded options.
12218 Dont set base_machine for ia64. More non-ELF conditions removed.
12219 Remove testing and setting of leading underscore information.
12220 * config.make.in (build-bounded): Set to no.
12221 * config.h.in: Remove NO_UNDERSCORES entry.
12222 * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS. ELF has
12223 them.
12224 * csu/start.c: Remove !NO_UNDERSCORE code.
12225 * locale/localeinfo.h: Likewise.
12226 * sysdeps/generic/machine-gmon.h: Likewise.
12227 * sysdeps/generic/sysdep.h: Likewise.
12228 * sysdeps/i386/sysdep.h: Likewise.
12229 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12230 * sysdeps/mach/sysdep.h: Likewise.
12231 * sysdeps/s390/s390-32/sysdep.h: Likewise.
12232 * sysdeps/s390/s390-64/sysdep.h: Likewise.
12233 * sysdeps/sh/sysdep.h: Likewise.
12234 * sysdeps/sparc/sparc32/alloca.S: Likewise.
12235 * sysdeps/unix/i386/sysdep.S: Likewise.
12236 * sysdeps/unix/sparc/start.c: Likewise.
12237 * sysdeps/unix/sparc/sysdep.S: Likewise.
12238 * sysdeps/unix/sparc/sysdep.h: Likewise.
12239 * sysdeps/unix/start.c: Likewise.
12240 * sysdeps/unix/x86_64/sysdep.S: Likewise.
12241 * sysdeps/x86_64/sysdep.h: Likewise.
12242
122432012-01-07 Ulrich Drepper <drepper@gmail.com>
12244
12245 [BZ #13553]
12246 * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12247 for non-gcc.
12248 * argp/argp-fmtstream.h: Use const instead __const.
12249 * argp/argp.h: Likewise.
12250 * assert/assert.h: Likewise.
12251 * bits/fenv.h: Likewise.
12252 * bits/sched.h: Likewise.
12253 * bits/sigset.h: Likewise.
12254 * bits/sigthread.h: Likewise.
12255 * catgets/nl_types.h: Likewise.
12256 * conform/data/pthread.h-data: Likewise.
12257 * crypt/crypt-private.h: Likewise.
12258 * crypt/crypt.h: Likewise.
12259 * crypt/crypt_util.c: Likewise.
12260 * ctype/ctype.h: Likewise.
12261 * debug/execinfo.h: Likewise.
12262 * debug/mbsnrtowcs_chk.c: Likewise.
12263 * debug/mbsrtowcs_chk.c: Likewise.
12264 * debug/wcsnrtombs_chk.c: Likewise.
12265 * debug/wcsrtombs_chk.c: Likewise.
12266 * debug/wcstombs_chk.c: Likewise.
12267 * dirent/dirent.h: Likewise.
12268 * dlfcn/dlfcn.h: Likewise.
12269 * elf/neededtest4.c: Likewise.
12270 * grp/grp.h: Likewise.
12271 * gshadow/gshadow.h: Likewise.
12272 * iconv/gconv.h: Likewise.
12273 * iconv/gconv_int.h: Likewise.
12274 * iconv/gconv_simple.c: Likewise.
12275 * iconv/iconv.h: Likewise.
12276 * iconv/loop.c: Likewise.
12277 * iconv/skeleton.c: Likewise.
12278 * include/aio.h: Likewise.
12279 * include/aliases.h: Likewise.
12280 * include/argz.h: Likewise.
12281 * include/arpa/inet.h: Likewise.
12282 * include/assert.h: Likewise.
12283 * include/dirent.h: Likewise.
12284 * include/dlfcn.h: Likewise.
12285 * include/execinfo.h: Likewise.
12286 * include/fcntl.h: Likewise.
12287 * include/fenv.h: Likewise.
12288 * include/glob.h: Likewise.
12289 * include/grp.h: Likewise.
12290 * include/libintl.h: Likewise.
12291 * include/mntent.h: Likewise.
12292 * include/netdb.h: Likewise.
12293 * include/pwd.h: Likewise.
12294 * include/rpc/netdb.h: Likewise.
12295 * include/sched.h: Likewise.
12296 * include/search.h: Likewise.
12297 * include/shadow.h: Likewise.
12298 * include/signal.h: Likewise.
12299 * include/stdio.h: Likewise.
12300 * include/stdlib.h: Likewise.
12301 * include/string.h: Likewise.
12302 * include/sys/socket.h: Likewise.
12303 * include/sys/stat.h: Likewise.
12304 * include/sys/statfs.h: Likewise.
12305 * include/sys/statvfs.h: Likewise.
12306 * include/sys/syslog.h: Likewise.
12307 * include/sys/time.h: Likewise.
12308 * include/sys/uio.h: Likewise.
12309 * include/time.h: Likewise.
12310 * include/unistd.h: Likewise.
12311 * include/utmp.h: Likewise.
12312 * include/wchar.h: Likewise.
12313 * include/wctype.h: Likewise.
12314 * inet/aliases.h: Likewise.
12315 * inet/arpa/inet.h: Likewise.
12316 * inet/netinet/ether.h: Likewise.
12317 * inet/netinet/in.h: Likewise.
12318 * intl/libintl.h: Likewise.
12319 * io/bits/fcntl2.h: Likewise.
12320 * io/fcntl.h: Likewise.
12321 * io/ftw.h: Likewise.
12322 * io/sys/poll.h: Likewise.
12323 * io/sys/stat.h: Likewise.
12324 * io/sys/statfs.h: Likewise.
12325 * io/sys/statvfs.h: Likewise.
12326 * io/utime.h: Likewise.
12327 * libio/bits/stdio.h: Likewise.
12328 * libio/bits/stdio2.h: Likewise.
12329 * libio/libio.h: Likewise.
12330 * libio/libioP.h: Likewise.
12331 * libio/stdio.h: Likewise.
12332 * locale/lc-ctype.c: Likewise.
12333 * locale/locale.h: Likewise.
12334 * login/utmp.h: Likewise.
12335 * malloc/arena.c: Likewise.
12336 * malloc/malloc.c: Likewise.
12337 * malloc/malloc.h: Likewise.
12338 * malloc/mcheck.c: Likewise.
12339 * malloc/mtrace.c: Likewise.
12340 * math/bits/mathcalls.h: Likewise.
12341 * math/fenv.h: Likewise.
12342 * math/math_private.h: Likewise.
12343 * misc/bits/error.h: Likewise.
12344 * misc/bits/syslog.h: Likewise.
12345 * misc/err.h: Likewise.
12346 * misc/error.h: Likewise.
12347 * misc/fstab.h: Likewise.
12348 * misc/mntent.h: Likewise.
12349 * misc/regexp.h: Likewise.
12350 * misc/search.h: Likewise.
12351 * misc/sgtty.h: Likewise.
12352 * misc/sys/mman.h: Likewise.
12353 * misc/sys/syslog.h: Likewise.
12354 * misc/sys/uio.h: Likewise.
12355 * misc/sys/xattr.h: Likewise.
12356 * misc/ttyent.h: Likewise.
12357 * nis/rpcsvc/ypclnt.h: Likewise.
12358 * nss/nss.h: Likewise.
12359 * posix/bits/unistd.h: Likewise.
12360 * posix/fnmatch.h: Likewise.
12361 * posix/glob.h: Likewise.
12362 * posix/sched.h: Likewise.
12363 * posix/spawn.h: Likewise.
12364 * posix/sys/wait.h: Likewise.
12365 * posix/unistd.h: Likewise.
12366 * posix/wordexp.h: Likewise.
12367 * pwd/pwd.h: Likewise.
12368 * resolv/netdb.h: Likewise.
12369 * resource/sys/resource.h: Likewise.
12370 * rt/aio.h: Likewise.
12371 * rt/bits/mqueue2.h: Likewise.
12372 * rt/mqueue.h: Likewise.
12373 * shadow/shadow.h: Likewise.
12374 * signal/signal.h: Likewise.
12375 * socket/send.c: Likewise.
12376 * socket/sendto.c: Likewise.
12377 * socket/sys/socket.h: Likewise.
12378 * stdio-common/printf.h: Likewise.
12379 * stdlib/bits/stdlib.h: Likewise.
12380 * stdlib/fmtmsg.h: Likewise.
12381 * stdlib/monetary.h: Likewise.
12382 * stdlib/stdlib.h: Likewise.
12383 * stdlib/ucontext.h: Likewise.
12384 * streams/stropts.h: Likewise.
12385 * string/argz.h: Likewise.
12386 * string/bits/string2.h: Likewise.
12387 * string/string.h: Likewise.
12388 * string/strings.h: Likewise.
12389 * sunrpc/rpc/auth.h: Likewise.
12390 * sunrpc/rpc/auth_des.h: Likewise.
12391 * sunrpc/rpc/clnt.h: Likewise.
12392 * sunrpc/rpc/netdb.h: Likewise.
12393 * sunrpc/rpc/pmap_clnt.h: Likewise.
12394 * sunrpc/rpc/xdr.h: Likewise.
12395 * sysdeps/generic/inttypes.h: Likewise.
12396 * sysdeps/generic/net/if.h: Likewise.
12397 * sysdeps/generic/sys/swap.h: Likewise.
12398 * sysdeps/gnu/net/if.h: Likewise.
12399 * sysdeps/gnu/utmpx.h: Likewise.
12400 * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12401 * sysdeps/i386/i486/bits/string.h: Likewise.
12402 * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12403 * sysdeps/s390/bits/string.h: Likewise.
12404 * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12405 * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12406 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12407 * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12408 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12409 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12410 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12411 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12412 * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12413 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12414 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12415 * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12416 * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12417 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12418 * sysdeps/unix/sysv/linux/readv.c: Likewise.
12419 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12420 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12421 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12422 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12423 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12424 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12425 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12426 * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12427 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12428 * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12429 * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12430 * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12431 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12432 * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12433 * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12434 * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12435 * sysvipc/sys/ipc.h: Likewise.
12436 * sysvipc/sys/msg.h: Likewise.
12437 * sysvipc/sys/sem.h: Likewise.
12438 * sysvipc/sys/shm.h: Likewise.
12439 * termios/termios.h: Likewise.
12440 * time/sys/time.h: Likewise.
12441 * time/time.h: Likewise.
12442 * wcsmbs/bits/wchar2.h: Likewise.
12443 * wcsmbs/uchar.h: Likewise.
12444 * wcsmbs/wchar.h: Likewise.
12445 * wctype/wctype.h: Likewise.
12446
12447 [BZ #13551]
12448 * Makeconfig: Remove all but ELF support including AIX support.
12449 * Makerules: Likewise.
12450 * config.h.in: Likewise.
12451 * config.make.in: Likewise.
12452 * configure: Likewise.
12453 * configure.in: Likewise.
12454 * csu/Makefile: Likewise.
12455 * csu/version.c: Likewise.
12456 * debug/Makefile: Likewise.
12457 * dlfcn/Makefile: Likewise.
12458 * elf/Makefile: Likewise.
12459 * extra-lib.mk: Likewise.
12460 * iconv/Makefile: Likewise.
12461 * include/libc-symbols.h: Likewise.
12462 * include/shlib-compat.h: Likewise.
12463 * resolv/Makefile: Likewise.
12464 * resolv/res_libc.c: Likewise.
12465 * rt/Makefile: Likewise.
12466 * sysdeps/i386/asm-syntax.h: Likewise.
12467 * sysdeps/i386/sysdep.h: Likewise.
12468 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12469 * sysdeps/mach/sysdep.h: Likewise.
12470 * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12471 * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12472 * sysdeps/s390/asm-syntax.h: Likewise.
12473 * sysdeps/s390/s390-32/sysdep.h: Likewise.
12474 * sysdeps/s390/s390-64/sysdep.h: Likewise.
12475 * sysdeps/sh/sysdep.h: Likewise.
12476 * sysdeps/unix/sparc/sysdep.h: Likewise.
12477 * sysdeps/wordsize-32/divdi3.c: Likewise.
12478 * sysdeps/x86_64/sysdep.h: Likewise.
12479
12480 * argp/Versions: Remove _argp_unlock_xxx.
12481
12482 [BZ #13559]
12483 * abilist/ld.abilist: Update. Adjust for removal of tls option.
12484 * abilist/libBrokenLocale.abilist: Likewise.
12485 * abilist/libanl.abilist: Likewise.
12486 * abilist/libc.abilist: Likewise.
12487 * abilist/libcrypt.abilist: Likewise.
12488 * abilist/libdl.abilist: Likewise.
12489 * abilist/libm.abilist: Likewise.
12490 * abilist/libnsl.abilist: Likewise.
12491 * abilist/libpthread.abilist: Likewise.
12492 * abilist/libresolv.abilist: Likewise.
12493 * abilist/librt.abilist: Likewise.
12494 * abilist/libthread_db.abilist: Likewise.
12495 * abilist/libutil.abilist: Likewise.
12496 * abilist/libnss_db.abilist: New file.
12497
12498 * scripts/abilist.awk: Add support for indirect functions.
12499
12500 * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
12501
12502 * sysdeps/generic/ldsodefs.h: Remove Alpha support.
12503
12504 * shlib-versions: Remove entries for ports architectures.
12505
12506 * elf/tls-macros.h: Remove support for Alpha and IA-64. Should be in
12507 files in ports.
12508 * elf/stackguard-macros.h: Remove support for IA-64.
12509 * elf/tst-auditmod1.c: Likewise.
12510 * sysdeps/generic/ldsodefs.h: Likewise.
12511
12512 * sysdeps/unix/sysv/linux/configure.in: Ports should define
12513 libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
12514 configure files.
12515
12516 [BZ #13552]
12517 * configure.in: Remove --enable-omitfp support.
12518 * FAQ.in: Adjust.
12519 * config.make.in: Likewise.
12520 * Makeconfig: Likewise.
12521 * manual/install.texi: Likewise.
12522
12523 In case anyone cares, the IA-64 architecture could move to ports.
12524 * sysdeps/ia64/*: Removed.
12525 * sysdeps/unix/sysv/linux/ia64/*: Removed.
12526 * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
12527
12528 [BZ #13555]
12529 * configure.in: Remove entries for unsupported architectures.
12530
12531 [BZ #13533]
12532 * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
12533 * iconv/gconv_simple.c: Rename char16_t routines. Add char16_t<->utf8
12534 routines.
12535 * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
12536 * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
12537 * wcsmbs/c16rtomb.c: Fix a few problems. Disable all the code and
12538 fall back to using wcrtomb.
12539 * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
12540 * wcsmbs/wcsmbsload.c: Make char16 routines optional. Adjust for
12541 renaming.
12542 * wcsmbs/Makefile (tests): Add tst-c16c32-1:
12543 * wcsmbs/tst-c16c32-1.c: New file.
12544
12545 * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
12546 local variable.
12547
12548 * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
12549
12550 * elf/tst-unique3.cc: Add explicit declaration of gets.
12551 * elf/tst-unique3lib.cc: Likewise.
12552 * elf/tst-unique3lib2.cc: Likewise.
12553 * elf/tst-unique4.cc: Likewise.
12554
12555 * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
12556
125572012-01-06 Joseph Myers <joseph@codesourcery.com>
12558
12559 [BZ #13566]
12560 * assert/assert.h (static_assert): Don't define for C++.
12561 * libio/stdio.h (gets): Do declare for C++ <= C++11.
12562 * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
12563
125642012-01-03 Ulrich Drepper <drepper@gmail.com>
12565
12566 * iconv/loop.c (single loop): Fix assertion in storing of
12567 remaining bytes.
12568
12569 * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
12570
125712012-01-01 Ulrich Drepper <drepper@gmail.com>
12572
12573 * posix/getconf.c: Update copyright year.
12574 * nss/getent.c: Likewise.
12575 * nss/makedb.c: Likewise.
12576 * iconv/iconvconfig.c: Likewise.
12577 * iconv/iconv_prog.c: Likewise.
12578 * elf/ldconfig.c: Likewise.
12579 * elf/pldd.c: Likewise.
12580 * elf/sotruss.ksh: Likewise.
12581 * catgets/gencat.c: Likewise.
12582 * csu/version.c: Likewise.
12583 * elf/ldd.bash.in: Likewise.
12584 * elf/sprof.c (print_version): Likewise.
12585 * locale/programs/locale.c: Likewise.
12586 * locale/programs/localedef.c: Likewise.
12587 * login/programs/pt_chown.c: Likewise.
12588 * nscd/nscd.c (print_version): Likewise.
12589 * debug/xtrace.sh: Likewise.
12590 * malloc/memusage.sh: Likewise.
12591 * malloc/mtrace.pl: Likewise.
12592 * debug/catchsegv.sh: Likewise.
12593
125942011-12-30 Jakub Jelinek <jakub@redhat.com>
12595
12596 * posix/regex_internal.c (re_string_fetch_byte_case): Remove
12597 pure attribute.
12598
125992011-12-24 Ulrich Drepper <drepper@gmail.com>
12600
12601 [BZ #13533]
12602 * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
12603 * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
12604 transformations.
12605 * iconv/gconv_int.h: Likewise.
12606 * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
12607 * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
12608 from libc for GLIBC_2.16.
12609 * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
12610 * wcsmbs/wcrtomb.c: Define c32rtomb alias.
12611 * wcsmbs/uchar.h: Really define mbstate_t.
12612 * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
12613 * wcsmbs/c16rtomb.c: New file.
12614 * wcsmbs/mbrtoc16.c: New file.
12615 * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
12616 for C/POSIX locale.
12617 (__wcsmbs_load_conv): Do not fill in c16 routines yet.
12618 * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
12619
12620 * wcsmbs/wchar.h: Add missing __restrict.
12621
126222011-12-23 Ulrich Drepper <drepper@gmail.com>
12623
12624 [BZ #13532]
12625 * time/Makefile (routines): Add timespec_get.
12626 * time/Versions: Export timespec_get from libc for GLIBC_2.16.
12627 * time/time.h: Define TIME_UTC and declare timespec_get. Define
12628 timespec for ISO C11.
12629 * time/timespec_get.c: New file.
12630 * sysdeps/unix/sysv/linux/timespec_get.c: New file.
12631 * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
12632
12633 [BZ #13531]
12634 * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
12635 * stdlib/stdlib.h: Declare aligned_alloc.
12636 * Versions.def: Add GLIBC_2.16 for libc.
12637 * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
12638
12639 [BZ 13527]
12640 * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
12641 ISO C11.
12642
12643 * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
12644 code.
12645
12646 [BZ #13528]
12647 * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
12648
12649 [BZ #13529]
12650 * assert/assert.h (static_assert): Define.
12651
12652 * version.h: Update for 2.16 development version.
12653
12654 [BZ #13526]
12655 * include/features.h: Handle __STDC_VERSION__ >= 201112 and
12656 _ISOC11_SOURCE.
12657
12658 * version.h (RELEASE): Bump for 2.15 release.
12659 * include/features.h (__GLIBC_MINOR__): Bump to 15.
12660
12661 * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
12662 Patch by Marek Polacek <mpolacek@redhat.com>.
12663
12664 * bits/byteswap.h: Protect long long constants with __extension__.
12665 * sysdeps/i386/bits/byteswap.h: Likewise.
12666 * sysdeps/ia64/bits/byteswap.h: Likewise.
12667 * sysdeps/s390/bits/byteswap.h: Likewise.
12668 * sysdeps/x86_64/bits/byteswap.h: Likewise.
12669
126702011-12-23 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
12671
12672 [BZ #13540]
12673 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
12674 destination buffer.
12675 * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
12676
126772011-12-23 Marek Polacek <polacek@redhat.com>
12678
12679 * elf/dl-addr.c (determine_info): Add inline keyword.
12680 * elf/tst-auditmod4b.c (check_avx): Likewise.
12681 * elf/tst-auditmod6b.c (check_avx): Likewise.
12682 * elf/tst-auditmod6c.c (check_avx): Likewise.
12683 * elf/tst-auditmod7b.c (check_avx): Likewise.
12684
126852011-12-23 Ulrich Drepper <drepper@gmail.com>
12686
12687 * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
12688 !__SSE_MATH__.
12689
126902011-12-23 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
12691
12692 [BZ #13540]
12693 * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
12694 processing for last bytes.
12695
126962011-08-06 Bruno Haible <bruno@clisp.org>
12697
12698 [BZ #13061]
12699 * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
12700 U+0385, not to U+1FEE.
12701
12702 [BZ #13062]
12703 * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
12704 entry for U+00A5 U+0301.
12705
127062011-12-22 Ulrich Drepper <drepper@gmail.com>
12707
12708 [BZ #13166]
12709 * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
12710 buffer for the output is too small.
12711
12712 * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
12713 optimization.
12714
12715 [BZ #13185]
12716 * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
12717 SSE flags if possible.
12718
127192011-12-22 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
12720
12721 [BZ #13540]
12722 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
12723 processing for last bytes.
12724
127252011-12-22 Joseph Myers <joseph@codesourcery.com>
12726
12727 * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
12728 (syscall-list-default-options, syscall-list-default-condition)
12729 (syscall-list-includes): Define.
12730 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
12731 list of ABIs and options and #if conditions for each ABI. Do not
12732 handle common syscalls between ABIs specially.
12733 * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
12734 Remove.
12735 (syscall-list-variants, syscall-list-32bit-options)
12736 (syscall-list-32bit-condition, syscall-list-64bit-options)
12737 (syscall-list-64bit-condition): Define.
12738 * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
12739 (syscall-list-variants, syscall-list-32bit-options)
12740 (syscall-list-32bit-condition, syscall-list-64bit-options)
12741 (syscall-list-64bit-condition): Define.
12742 * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
12743 Remove.
12744 (syscall-list-variants, syscall-list-32bit-options)
12745 (syscall-list-32bit-condition, syscall-list-64bit-options)
12746 (syscall-list-64bit-condition): Define.
12747 * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
12748 Remove.
12749 (syscall-list-variants, syscall-list-32bit-options)
12750 (syscall-list-32bit-condition, syscall-list-64bit-options)
12751 (syscall-list-64bit-condition): Define.
12752
127532011-12-22 Ulrich Drepper <drepper@gmail.com>
12754
12755 * locale/iso-639.def: Add brx entry.
12756
12757 [BZ #13328]
12758 * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
12759 Proposed by Mariusz_Cukr <marcukr@op.pl>.
12760
12761 * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
12762 __feraiseexcept_renamed.
12763
127642011-12-21 Ulrich Drepper <drepper@gmail.com>
12765
12766 [BZ #13538]
12767 * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
12768 EPOLLET with unsigned values.
12769 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12770 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12771
12772 * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
12773 to large cancellation.
12774 * math/s_cacoshf.c: Likewise.
12775 * math/s_cacoshl.c: Likewise.
12776
127772011-11-18 Richard B. Kreckel <kreckel@ginac.de>
12778
12779 [BZ #13305]
12780 [BZ #12786]
12781 * math/s_cacosh.c: Fix rare miscomputation in cacosh().
12782 * math/s_cacoshf.c: Likewise.
12783 * math/s_cacoshl.c: Likewise.
12784
127852011-12-21 Ulrich Drepper <drepper@gmail.com>
12786
12787 [BZ #13439]
12788 * iconv/gconv.h: Define __GCONV_SWAP.
12789 * iconvdata/unicode.c: The swap bit must be stored in __flags.
12790 * iconvdata/utf-16.c: Likewise.
12791 * iconvdata/utf-32.c: Likewise.
12792
127932011-12-21 Andreas Schwab <schwab@linux-m68k.org>
12794
12795 [BZ #13524]
12796 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
12797 numerator after shifting it by one limb.
12798
127992011-12-19 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
12800
12801 * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
12802 under [__USE_EXTERN_INLINES].
12803
128042011-12-17 Ulrich Drepper <drepper@gmail.com>
12805
12806 [BZ #13446]
12807 * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
12808
128092011-11-22 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
12810
12811 * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
12812 * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
12813 optimized code.
12814 * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
12815 * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
12816 * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
12817 * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
12818 for strncasecmp/strncasecmp_l compilation.
12819 * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
12820 * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
12821
128222011-12-08 Marek Polacek <mpolacek@redhat.com>
12823
12824 [BZ #13484]
12825 * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
12826 of __asm__.
12827
128282011-12-17 Ulrich Drepper <drepper@gmail.com>
12829
12830 [BZ #13506]
12831 * time/tzfile.c (__tzfile_read): Check values from file header.
12832
128332011-11-21 Will Schmidt <will_schmidt@vnet.ibm.com>
12834
12835 * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
12836 * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
12837 * powerpc/powerpc32/dl-start.S: Likewise.
12838 * powerpc/powerpc32/elf/start.S: Likewise.
12839 * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
12840 * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
12841 * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
12842 * powerpc/powerpc32/fpu/s_floor.S: Likewise.
12843 * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
12844 * powerpc/powerpc32/fpu/s_lround.S: Likewise.
12845 * powerpc/powerpc32/fpu/s_rint.S: Likewise.
12846 * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
12847 * powerpc/powerpc32/fpu/s_round.S: Likewise.
12848 * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
12849 * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
12850 * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
12851 * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
12852 * powerpc/powerpc32/memset.S: Likewise.
12853 * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
12854 * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
12855 * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
12856 * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
12857 * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
12858 * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
12859 * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
12860 * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
12861 * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
12862 * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
12863 * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
12864 * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12865 * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12866
128672011-11-18 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
12868
12869 * math/libm-test.inc: Added more nearbyint tests.
12870 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
12871 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
12872 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
12873 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
12874
128752011-11-21 Ross Lagerwall <rosslagerwall@gmail.com>
12876
12877 * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
12878 FD_CLOEXEC.
12879
128802011-11-14 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
12881
12882 * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
12883 Add wcscpy-ssse3 wcscpy-c.
12884 * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
12885 * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
12886 * sysdeps/x86_64/multiarch/wcscpy.S: New file.
12887 * sysdeps/x86_64/wcschr.S: New file.
12888 * sysdeps/x86_64/wcsrchr.S: New file.
12889 * string/test-strcmp.c: Remove checking of wcscmp function for
12890 wrong alignments.
12891 * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
12892 (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
12893 wcsrchr-sse2 wcsrchr-c.
12894 * sysdeps/i386/i686/multiarch/wcschr.S: New file.
12895 * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
12896 * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
12897 * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
12898 * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
12899 * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
12900 * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
12901 * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
12902 * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
12903 * wcsmbc/wcschr.c (WCSCHR): New macro.
12904
129052011-11-17 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
12906
12907 * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
12908 * wcsmbs/test-wcsrchr.c: New file.
12909 * string/test-strrchr.c: Add wcsrchr support.
12910 (WIDE): New macro.
12911 * wcsmbs/test-wcscpy.c: New file.
12912 * string/test-strcpy.c: Add wcscpy support.
12913 (WIDE): New macro.
12914
129152011-12-10 Ulrich Drepper <drepper@gmail.com>
12916
12917 * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
12918 the inner loop.
12919
129202011-12-06 Andreas Schwab <schwab@linux-m68k.org>
12921
12922 [BZ #13472]
12923 * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
12924
129252011-12-04 Ulrich Drepper <drepper@gmail.com>
12926
12927 * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
12928 Minor optimizations.
12929
12930 * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
12931 * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
12932 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
12933
129342011-12-03 Ulrich Drepper <drepper@gmail.com>
12935
12936 * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
12937 IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
12938 IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
12939 for gcc to avoid warnings.
12940 * inet/Makefile (tests): Add tst-checks.
12941 * inet/tst-checks.c: New file.
12942
12943 * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
12944 warning.
12945
12946 * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
12947 __wmemcmp_sse2.
12948
12949 * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
12950 * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
12951
12952 * malloc/mcheck.h: Fix use of incorrect encoding in comment.
12953
129542011-12-02 Ulrich Drepper <drepper@gmail.com>
12955
12956 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
12957 problem.
12958
12959 * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
12960
129612011-11-29 Joseph Myers <joseph@codesourcery.com>
12962
12963 * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
12964 conditional on GCC version.
12965 (__arch_compare_and_exchange_val_8_acq)
12966 (__arch_compare_and_exchange_val_16_acq)
12967 (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
12968 (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
12969 (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
12970
129712011-12-02 Joseph Myers <joseph@codesourcery.com>
12972
12973 * sysdeps/sh/backtrace.c: New file.
12974
129752011-12-02 Andreas Schwab <schwab@redhat.com>
12976
12977 * misc/bits/select2.h (__FD_ELT): Mark as extension. Add
12978 parenthesis.
12979
129802011-12-01 Andreas Schwab <schwab@redhat.com>
12981
12982 * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
12983 falling back to utime.
12984
129852011-11-30 Andreas Schwab <schwab@redhat.com>
12986
12987 * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
12988 expectations for float.
12989
129902011-11-29 Andreas Schwab <schwab@redhat.com>
12991
12992 * locale/weight.h (findidx): Add parameter len.
12993 * locale/weightwc.h (findidx): Likewise.
12994 * posix/fnmatch_loop.c (FCT): Adjust caller.
12995 * posix/regcomp.c (build_equiv_class): Likewise.
12996 * posix/regex_internal.h (re_string_elem_size_at): Likewise.
12997 * posix/regexec.c (check_node_accept_bytes): Likewise.
12998 * string/strcoll_l.c (STRCOLL): Likewise.
12999 * string/strxfrm_l.c (STRXFRM): Likewise.
13000
130012011-11-17 Ulrich Drepper <drepper@gmail.com>
13002
13003 * Makefile.in: Remove CVSOPT handling.
13004 * configure.in: Remove use of AC_REVISION.
13005 * iconvdata/Makefile (distribute): No need to filter out CVS.
13006 * scripts/list-sources.sh: Remove CVS, subversion and monotone
13007 handling.
13008
130092011-11-16 Andreas Schwab <schwab@redhat.com>
13010
13011 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13012 [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13013 [USE_AS_STRNCASECMP_L]: Likewise.
13014 (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13015 NO_TLS_DIRECT_SEG_REFS.
13016 * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13017 Fix argument offsets for non-PIC.
13018 [USE_AS_STRNCASECMP_L]: Likewise.
13019 (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13020 NO_TLS_DIRECT_SEG_REFS.
13021
130222011-11-15 Ulrich Drepper <drepper@gmail.com>
13023
13024 * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13025 O_CLOEXEC.
13026 * locale/loadlocale.c (_nl_load_locale): Likewise.
13027
130282011-11-15 Andreas Schwab <schwab@redhat.com>
13029
13030 * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13031 [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13032 * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13033 (SYSCALL_GETTIME): Set errno on error.
13034
13035 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13036 count references to noai6ai_cached.
13037
130382011-11-15 Ulrich Drepper <drepper@gmail.com>
13039
13040 * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13041
13042 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13043 FD_CLOEXEC for /proc/self/maps.
13044
13045 * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
13046 FD_CLOEXEC for /proc/meminfo.
13047
13048 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
13049 gai.conf.
13050
13051 * resolv/res_query.c (res_hostalias): Don't allow cancellation and set
13052 FD_CLOEXEC for given file.
13053
13054 * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
13055
13056 * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
13057 FD_CLOEXEC for /etc/hosts.
13058 (_gethtent): Likewise.
13059
13060 * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
13061
13062 * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
13063 cancellation and set FD_CLOEXEC for /etc/netgroup.
13064
13065 * nss/nss_files/files-key.c (search): Don't allow cancellation when
13066 reading /etc/publickey.
13067
13068 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
13069 allow cancellation when reading /etc/group.
13070
13071 * nss/nss_files/files-alias.c (internal_setent): Don't allow
13072 cancellation.
13073 (get_next_alias): Likewise for included file. Also set FD_CLOEXEC.
13074
13075 * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
13076 when using data file.
13077
13078 * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
13079
13080 * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
13081 (write_nis_obj): Use "c" and "e" in fopen.
13082
13083 * misc/mntent_r.c (__setmntent): Also append e to fopen format.
13084
13085 * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
13086
13087 * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
13088
13089 * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
13090
13091 * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
13092 locale.alias.
13093
13094 * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
13095
13096 * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
13097
13098 * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13099
13100 * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13101 file parsing and set FD_CLOEXEC.
13102
131032011-11-14 Ulrich Drepper <drepper@gmail.com>
13104
13105 * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13106
131072011-11-14 Andreas Schwab <schwab@redhat.com>
13108
13109 * malloc/arena.c (arena_get2): Don't call reused_arena when
13110 _int_new_arena failed.
13111
131122011-11-14 Ulrich Drepper <drepper@gmail.com>
13113
13114 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
13115 (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
13116 * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
13117 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13118 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13119 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
13120 to compile strcasecmp and strncasecmp.
13121 * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
13122 * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
13123
13124 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
13125
131262011-11-13 Ulrich Drepper <drepper@gmail.com>
13127
13128 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
13129 locale-defines.sym to gen-as-const-headers.
13130 (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
13131 strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
13132 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
13133 to compile strcasecmp and strncasecmp.
13134 * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
13135 strcasecmp_l and strncasecmp_l.
13136 * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
13137 * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
13138 * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
13139 * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
13140 * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
13141 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
13142 * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
13143 * sysdeps/i386/i686/multiarch/strncase.S: New file.
13144 * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
13145 * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
13146 * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
13147
131482011-11-12 Ulrich Drepper <drepper@gmail.com>
13149
13150 * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
13151 result of SYSDEP_GETTIME_CPU to retval.
13152 * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
13153 parameter list to macro. Remove trailing semicolon. Adjust users.
13154
13155 * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
13156 variable.
13157
13158 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
13159 mantissa words.
13160 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13161
13162 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
13163 from unused variable.
13164
13165 * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
13166 DWARF definitions.
13167 * sysdeps/generic/dwarf2.h: Don't define enums when using the file
13168 for assembling.
13169
13170 * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
13171 over namespaces.
13172
13173 * sunrpc/rpc_prot.c (rejected): Fix case value.
13174
13175 * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13176 unsigned long long int to avoid warnings in shift.
13177
13178 * posix/regex_internal.c (re_string_reconstruct): Actually use result
13179 of use of trans.
13180 * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13181 variable tmp.
13182
13183 * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13184 * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13185 * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13186
13187 * nis/nis_table.c (nis_list): Use variable of correct type for
13188 result of __follow_path call.
13189
131902011-11-07 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
13191
13192 * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13193 of math functions ceil, trunc, floor, round, and sqrt, when
13194 avaliable on the platform.
13195 * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13196 name clash.
13197 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13198 * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13199 * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13200
132012011-10-30 Marek Polacek <mpolacek@redhat.com>
13202
13203 * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13204 * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13205
132062011-11-11 Roland McGrath <roland@hack.frob.com>
13207
13208 * include/unistd.h: Fix __readlink return type.
13209 Reported by Chris Metcalf <cmetcalf@tilera.com>.
13210
132112011-11-11 Ulrich Drepper <drepper@gmail.com>
13212
13213 * stdlib/ucontext.h: Undo last change for makecontext.
13214
132152011-11-11 Andreas Schwab <schwab@redhat.com>
13216
13217 * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13218
13219 * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13220 * setjmp/setjmp.h: Mark functions as non-leaf.
13221 * setjmp/bits/setjmp2.h: Likewise.
13222 * stdlib/ucontext.h: Likewise.
13223
132242011-11-10 Andreas Schwab <schwab@redhat.com>
13225
13226 * malloc/arena.c (_int_new_arena): Don't increment narenas.
13227 (reused_arena): Don't check arena limit.
13228 (arena_get2): Atomically check arena limit.
13229
132302011-11-08 Ulrich Drepper <drepper@gmail.com>
13231
13232 * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13233 * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13234
13235 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13236 instructions.
13237
132382011-11-07 Andreas Schwab <schwab@redhat.com>
13239
13240 * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13241 handler when locking.
13242
13243 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13244 Fix size of allocated buffer.
13245
132462011-11-04 Andreas Schwab <schwab@redhat.com>
13247
13248 [BZ #10103]
13249 * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13250 declarations for long double functions.
13251 * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13252
13253 * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13254
132552011-11-03 Andreas Schwab <schwab@redhat.com>
13256
13257 * nscd/nscd.c (main): Don't start AVC thread until credentials are
13258 installed.
13259
13260 * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13261 is disabled.
13262
132632011-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13264
13265 * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13266
132672011-11-01 Andreas Schwab <schwab@linux-m68k.org>
13268
13269 * include/alloca.h (stackinfo_alloca_round): Define.
13270 (extend_alloca): Use it.
13271 [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13272 * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13273 here.
13274
13275 * scripts/check-local-headers.sh: Ignore libaudit.h.
13276
13277 * nscd/Makefile (extra-objs): Make recursively expanded.
13278
132792011-11-01 Ulrich Drepper <drepper@gmail.com>
13280
13281 * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13282 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13283
13284 * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13285 * posix/tst-rfc3484-2.c: Likewise.
13286 * posix/tst-rfc3484-3.c: Likewise.
13287
13288 * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13289 process_vm_writev.
13290 * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13291 process_vm_writev.
13292 * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13293 process_vm_writev from libc using GLIBC_2.15 version.
13294
13295 * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13296
132972011-10-31 Paul Pluzhnikov <ppluzhnikov@google.com>
13298
13299 * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13300 stack usage.
13301
133022011-10-31 Ulrich Drepper <drepper@gmail.com>
13303
13304 [BZ #13367]
13305 * nss/getent.c (initgroups_keys): Show error message in case no group
13306 names are given.
13307
13308 * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13309 * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13310 __bump_nl_timestamp.
13311 * nscd/connections (nscd_init): When host database is served open
13312 netlink socket and request notification about configuration changes.
13313 (main_loop_poll): Track netlink file descriptor and bump timestamp
13314 in case data becomes available.
13315 (main_loop_epoll): Likewise.
13316 * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13317 (database_pers_head): Add extra_data fileds.
13318 Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13319 * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13320 * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13321 Adjust caller.
13322 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13323 in6ai data, call __free_in6ai.
13324 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13325 Add -DHAVE_NETLINK.
13326 * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite. Cache the
13327 interface information. Reuse previous data if netlink timestamp
13328 is not changed.
13329 (__bump_nl_timestamp): New function.
13330 (__free_in6ai): New function.
13331
133322011-10-30 Ulrich Drepper <drepper@gmail.com>
13333
13334 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13335 close_not_cancel_no_status here.
13336 (__check_pf): Reorganize code a bit to not call close twice if OOM.
13337
133382011-10-29 Ulrich Drepper <drepper@gmail.com>
13339
13340 [BZ #13276]
13341 * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13342 return value.
13343
13344 * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13345 * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13346 asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13347
133482011-07-03 Andreas Jaeger <aj@suse.de>
13349
13350 [BZ #10709]
13351 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13352 of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13353 * math/libm-test.inc (sin_test): Add test case.
13354
133552011-10-29 Ulrich Drepper <drepper@gmail.com>
13356
13357 [BZ #13337]
13358 * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13359 Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13360
13361 * elf/chroot_canon.c (chroot_canon): Cleanups.
13362
13363 * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13364
13365 [BZ #13335]
13366 * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13367 Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13368
13369 * string/test-strchr.c: Make usable for strchrnul testing.
13370 * string/test-strchrnul.c: New file.
13371 * string/Makefile (strop-tests): Add strchrnul.
13372
13373 * po/it.po: Update from translation team.
13374 * po/es.po: Likewise.
13375
133762011-10-28 Ulrich Drepper <drepper@gmail.com>
13377
13378 * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13379 the three constants needed as parameters. Drop the others.
13380 (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13381 __m128i_strloadu_tolower.
13382 Create and initialize variable zero and use it in all the places
13383 where _mm_setzero_si128 was used.
13384
13385 * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13386 doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13387 mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13388 * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13389 anymore.
13390 * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13391 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13392 * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13393 __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13394 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13395 __mpranred, __mptan.
13396 * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13397 * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13398 * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13399 * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13400 * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13401 * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13402 * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13403 * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13404 * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13405
134062011-10-28 Andreas Schwab <schwab@redhat.com>
13407
13408 * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13409 redefine if SHARED.
13410 * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13411
13412 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13413 wide char related routines to wcsmbs subdir.
13414
134152011-10-27 Andreas Schwab <schwab@redhat.com>
13416
13417 [BZ #13344]
13418 * misc/sys/cdefs.h (__THROWNL): Define.
13419 * posix/unistd.h: Use __THREADNL instead of __THREAD
13420 for memory synchronization functions.
13421
134222011-10-26 Roland McGrath <roland@hack.frob.com>
13423
13424 [BZ #13349]
13425 * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13426 doesn't exist.
13427 * manual/stdio.texi (Obstack Streams): Node removed.
13428
134292011-10-26 Andreas Schwab <schwab@redhat.com>
13430
13431 * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13432 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13433 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13434
13435 * math/math_private.h (math_force_eval): Allow non-addressable
13436 arguments.
13437 * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13438
134392011-10-25 Ulrich Drepper <drepper@gmail.com>
13440
13441 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13442 file is not needed.
13443
13444 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13445 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13446 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13447 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13448 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13449 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13450 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13451 * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13452 Add AVX variants.
13453 * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13454 * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13455 * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13456 * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13457 * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13458 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13459 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13460 * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13461 * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13462 * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13463 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13464 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13465 * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13466 * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13467 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13468 * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13469 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13470 * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13471 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13472
13473 * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13474 all the time. Define bit_AVX. Define HAS_* macros using bit_* macros.
13475
13476 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13477 place. Use VEX encoding when compiling for AVX.
13478
134792011-10-25 Andreas Schwab <schwab@redhat.com>
13480
13481 * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13482 * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13483
13484 * string/test-strchr.c (do_test): Don't generate NUL bytes.
13485
134862011-10-25 Ulrich Drepper <drepper@gmail.com>
13487
13488 * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13489 useless if() expression.
13490 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13491 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13492 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13493 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13494 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13495 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13496 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13497 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13498 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13499 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13500 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13501 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13502 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13503 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13504 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13505 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13506 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13507 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13508 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13509
13510 * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
13511
135122011-10-25 Andreas Schwab <schwab@redhat.com>
13513
13514 * elf/dl-deps.c (_dl_map_object_deps): Remove always true
13515 condition.
13516 * elf/dl-fini.c (_dl_sort_fini): Likewise.
13517
135182011-10-25 Ulrich Drepper <drepper@gmail.com>
13519
13520 * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
13521 .text section. Avoid duplicate constants.
13522 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13523 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13524 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13525 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13526 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13527 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13528 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13529 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13530 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13531 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
13532 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13533 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13534 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13535 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13536 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13537 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13538 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13539 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13540 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13541 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13542 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13543 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13544 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13545 * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
13546 * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
13547 * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
13548 * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
13549 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
13550 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
13551 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
13552 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
13553 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
13554 * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13555 * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
13556 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
13557 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
13558 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
13559 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
13560 * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
13561 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
13562 * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
13563 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
13564 * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
13565 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13566 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
13567
135682011-10-24 Ulrich Drepper <drepper@gmail.com>
13569
13570 * sysdeps/x86_64/dla.h: Move to ...
13571 * sysdeps/x86_64/fpu/dla.h: ...here.
13572 (DLA_FMS): Some compilers fail to inline __builtin_fma in some
13573 situations. Use __builtin_fma only for gcc 4.6 and up.
13574
13575 * config.make.in: Add have-mfma4 entry.
13576 * configure.in: Substitute libc_cv_cc_fma4.
13577 * math/Makefile (dbl-only-routines): Add sincostab.
13578 * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
13579 Use __sincostab not sincos.
13580 * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
13581 name is a macro.
13582 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13583 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13584 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13585 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise. Define singArctan2
13586 using __copysign.
13587 * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr. Don't define
13588 __cr and __cpymn. Define __cpy unless NO___CPY is defined. Define
13589 norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
13590 * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
13591 and __inv.
13592 * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
13593 * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
13594 __copysign.
13595 * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos. Don't
13596 define aliases when function name is a macro.
13597 * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
13598 sysdeps/ieee754/dbl-64/sincos.tbl.
13599 * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
13600 fma4-enabled routines.
13601 * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
13602 * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
13603 * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
13604 * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
13605 * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
13606 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
13607 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
13608 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
13609 * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
13610 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
13611 * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
13612 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
13613 * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
13614 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
13615 * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
13616 * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
13617 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
13618 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
13619 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
13620 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
13621 * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
13622 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
13623 * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
13624 * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
13625 * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
13626 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
13627 * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
13628 * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
13629 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
13630 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
13631
13632 * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
13633 rename.
13634 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13635 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13636 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13637 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13638 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13639 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13640 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13641 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13642
136432011-10-24 Andreas Schwab <schwab@redhat.com>
13644
13645 * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
13646
136472011-10-23 Ulrich Drepper <drepper@gmail.com>
13648
13649 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
13650
13651 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
13652 prediction.
13653 * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
13654
13655 * string/strnlen.c: Don't define STRNLEN, reverse logic.
13656 Remove unused variable magic_bits.
13657 * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
13658
13659 * string/strnlen.c: Define and use STRNLEN macro.
13660 * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
13661 Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
13662 * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
13663 * wcsmbs/wcslen.c: Define and use WCSLEN.
13664 * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
13665 * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
13666 * sysdeps/i386/i686/multiarch/strnlen.S: New file.
13667 * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
13668 * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
13669 * sysdeps/i386/i686/multiarch/wcslen.S: New file.
13670 Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
13671
136722011-10-20 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
13673
13674 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13675 strnlen-sse2-no-bsf.
13676 Rename strlen-no-bsf to strlen-sse2-no-bsf.
13677 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
13678 * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
13679 Add strnlen support.
13680 (USE_AS_STRNLEN): New macro.
13681 * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
13682 * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
13683 Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
13684 * sysdeps/x86_64/wcslen.S: New file.
13685
136862011-10-20 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
13687
13688 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
13689 XMM-moves are used for copying on small sizes.
13690
136912011-10-19 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
13692
13693 * wcsmbs/Makefile (strop-tests): Add wcschr.
13694 * wcsmbs/test-wcschr.c: New file.
13695 * string/test-strchr.c: Update.
13696 Add wcschr support.
13697 (WIDE): New macro.
13698
136992011-10-18 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
13700
13701 * wcsmbs/Makefile (strop-tests): Add wcslen.
13702 * wcsmbs/test-wcslen.c: New file.
13703 * string/test-strlen.c: Update.
13704 Add wcslen support.
13705 (WIDE): New macro.
13706
137072011-10-23 Ulrich Drepper <drepper@gmail.com>
13708
13709 * po/it.po: Update from translation team.
13710
137112011-09-22 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
13712
13713 * sysdeps/x86_64/wcscmp.S: Update.
13714 Fix wrong comparison semantics.
13715 wcscmp shall use signed comparison not unsigned.
13716 Don't use substraction to avoid overflow bug.
13717 * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
13718 * wcsmbc/wcscmp.c: Likewise.
13719 * string/test-strcmp.c: Likewise.
13720 Add new tests to check cases with negative values.
13721
137222011-10-23 Ulrich Drepper <drepper@gmail.com>
13723
13724 * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
13725 * sysdeps/x86_64/dla.h: ...here. New file.
13726 * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
13727 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13728 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13729 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13730 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13731 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13732 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13733 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13734 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13735
137362011-10-23 Andreas Schwab <schwab@linux-m68k.org>
13737
13738 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
13739 __ynl_finite aliases.
13740
137412011-10-22 Ulrich Drepper <drepper@gmail.com>
13742
13743 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13744
13745 * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
13746 define DLA_FMA.
13747 [DLA_FMA] (EMULV): Use DLA_FMA.
13748 [DLA_FMA] (MUL12): Use EMULV.
13749 * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
13750 that are not needed.
13751 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13752 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13753 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13754 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13755 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13756 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13757 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13758
137592011-10-22 Andreas Schwab <schwab@linux-m68k.org>
13760
13761 * math/s_nan.c: Undef __nan.
13762 * math/s_nanf.c: Undef __nanf.
13763 * math/s_nanl.c: Undef __nanl.
13764 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
13765 "math_private.h".
13766
137672011-10-22 Ulrich Drepper <drepper@gmail.com>
13768
13769 * math/s_catan.c: Add branch predictions.
13770 * math/s_catanf.c: Likewise.
13771 * math/s_catanh.c: Likewise.
13772 * math/s_catanhf.c: Likewise.
13773 * math/s_catanhl.c: Likewise.
13774 * math/s_catanl.c: Likewise.
13775 * math/s_cexp.c: Likewise.
13776 * math/s_cexpf.c: Likewise.
13777 * math/s_cexpl.c: Likewise.
13778 * math/s_clog.c: Likewise.
13779 * math/s_clog10.c: Likewise.
13780 * math/s_clog10f.c: Likewise.
13781 * math/s_clog10l.c: Likewise.
13782 * math/s_clogf.c: Likewise.
13783 * math/s_clogl.c: Likewise.
13784 * math/s_csqrt.c: Likewise.
13785 * math/s_csqrtf.c: Likewise.
13786 * math/s_csqrtl.c: Likewise.
13787 * math/s_ctanf.c: Likewise.
13788 * math/s_ctanh.c: Likewise.
13789 * math/s_ctanhf.c: Likewise.
13790 * math/s_ctanhl.c: Likewise.
13791 * math/s_ctanl.c: Likewise.
13792
13793 * math/math_private.h: Define __nan, __nanf, __nanl.
13794 * math/s_cacosh.c: Include <math_private.h>.
13795 * math/s_cacoshl.c: Likewise.
13796 * math/s_casinh.c: Likewise.
13797 * math/s_casinhf.c: Likewise.
13798 * math/s_casinhl.c: Likewise.
13799 * math/s_ccos.c: Rely entire on ccosh.
13800 * math/s_ccosf.c: Rely entire on ccoshf.
13801 * math/s_ccosl.c: Rely entirely on ccoshl.
13802 * math/s_ccosh.c: Add branch predicion helpers. Add branch prediction.
13803 Remove tests for FE_INVALID.
13804 * math/s_ccoshf.c: Likewise.
13805 * math/s_ccoshl.c: Likewise.
13806 * math/s_csin.c: Likewise.
13807 * math/s_csinf.c: Likewise.
13808 * math/s_csinh.c Likewise.
13809 * math/s_csinhf.c: Likewise.
13810 * math/s_csinhl.c: Likewise.
13811 * math/s_csinl.c: Likewise.
13812 * math/s_ctan.c: Likewise.
13813 * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
13814 * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
13815 * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
13816
138172011-10-21 Ulrich Drepper <drepper@gmail.com>
13818
13819 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
13820 compilation problems.
13821
13822 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
13823 __builtin_expect.
13824
138252011-10-20 Ulrich Drepper <drepper@gmail.com>
13826
13827 * sysdeps/i386/configure.in: Test for -mfma4 option.
13828 * config.h.in: Add HAVE_FMA4_SUPPORT entry.
13829 * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
13830 COMMON_CPUID_INDEX_80000001.
13831 * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
13832 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
13833 use it if FMA3 is not supported.
13834 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13835
13836 * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
13837 * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
13838
138392011-10-20 Andreas Schwab <schwab@redhat.com>
13840
13841 [BZ #12892]
13842 * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
13843 it would create a cycle with a link time dependency.
13844
138452011-10-19 Ulrich Drepper <drepper@gmail.com>
13846
13847 * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
13848 instruction.
13849 * string/Makefile (strop-tests): Add rawmemchr.
13850 * string/test-rawmemchr.c: New file.
13851
13852 * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
13853 * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file. Split out from...
13854 * sysdeps/x86_64/multiarch/strcmp.S: ...here. Include strcmp-sse42.S
13855 when compiling str{,n}casecmp and when AVX is available. Hook up
13856 new optimized code in initializers.
13857
138582011-10-19 Andreas Schwab <schwab@redhat.com>
13859
13860 * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
13861 __feraiseexcept instead of feraiseexcept.
13862
138632011-10-18 Ulrich Drepper <drepper@gmail.com>
13864
13865 * math/math_private.h: Define defaults for libc_fetestexcept and
13866 libc_feupdateenv.
13867 * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
13868 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13869 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13870 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13871 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13872 * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13873 libc_fetestexcept and libc_feupdateenv.
13874
13875 * math/math_private.h: Define defaults for libc_feholdexcept_setround,
13876 libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
13877 * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
13878 * sysdeps/x86_64/fpu/math_private.h: Define special version of
13879 libc_feholdexcept_setround.
13880
13881 * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
13882 Add s_nearbyint-c and s_nearbyintf-c.
13883 * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
13884 nearbyintf inlines.
13885 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
13886 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
13887 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
13888 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
13889
13890 * math/math_private.h: Define defaults for libc_fegetround,
13891 libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
13892 libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
13893 libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
13894 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
13895 libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
13896 standard functions.
13897 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13898 Remove comments and hacks for old compiler versions.
13899 * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13900 libc_fegetround, libc_fesetround, libc_feholdexcept, and
13901 libc_feholdexceptl.
13902
139032011-10-18 Andreas Schwab <schwab@redhat.com>
13904
13905 * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
13906 (__feraiseexcept_renamed): Add __NTH.
13907 (feraiseexcept): Add __NTH. Rename local variables to fix
13908 namespace violations.
13909
139102011-10-17 Ulrich Drepper <drepper@gmail.com>
13911
13912 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
13913
13914 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
13915
13916 * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
13917 recently added interfaces.
13918 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
13919
13920 * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
13921 about macro parameter expansion.
13922
13923 * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
13924 __NO_MATH_INLINES is defined. Cleanups.
13925
13926 * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
13927 and __floorf is target has SSE4.1.
13928 * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
13929 * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
13930 * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
13931 * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
13932
13933 * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
13934 name.
13935 (floorf): Likewise.
13936
13937 * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
13938
139392011-10-17 Andreas Schwab <schwab@redhat.com>
13940
13941 * misc/sys/cdefs.h: Fix last change.
13942
13943 * grp/initgroups.c (internal_getgrouplist): Fix initgroups
13944 database lookup.
13945
139462011-10-16 Ulrich Drepper <drepper@gmail.com>
13947
13948 * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
13949
13950 * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
13951 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13952 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13953 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13954 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13955 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
13956 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13957 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13958 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
13959 * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
13960 * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
13961 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
13962 * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
13963 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
13964 * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
13965 * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
13966 * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
13967 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
13968 * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
13969 * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
13970 * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
13971 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
13972
13973 * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
13974 ceil, ceilf, floor, floorf.
13975
13976 * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
13977 Perform IRELATIVE relocations last.
13978
13979 * elf/do-rel.h: Add another parameter nrelative, replacing the
13980 local variable with the same name. Change name of the function
13981 to end in Rel or Rela (uppercase).
13982 * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
13983 nrelative to ranges. Only nonzero for DT_REL/DT_RELA. Pass to the
13984 elf_dynamic_do_##reloc function.
13985
139862011-10-15 Ulrich Drepper <drepper@gmail.com>
13987
13988 * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
13989 is sufficient, at least on modern CPUs.
13990
13991 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
13992
13993 * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
13994 * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
13995
13996 * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
13997 __expl_finite.
13998 * math/bits/math-finite.h: Add entries for exp.
13999 * math/e_expl.c: Add __*_finite alias.
14000 * sysdeps/i386/fpu/e_exp.S: Likewise.
14001 * sysdeps/i386/fpu/e_expf.S: Likewise.
14002 * sysdeps/i386/fpu/e_expl.c: Likewise.
14003 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14004 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14005 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14006 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14007 * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14008 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14009 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14010
14011 * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14012 is sufficient, at least on modern CPUs.
14013
14014 * ctype/ctype-info.c (__ctype_init): Define.
14015 * include/ctype.h (__ctype_init): Declare.
14016 (__ctype_b_loc): The variable is always initialized.
14017 (__ctype_toupper_loc): Likewise.
14018 (__ctype_tolower_loc): Likewise.
14019 * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14020 * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14021
140222011-10-15 Andreas Schwab <schwab@linux-m68k.org>
14023
14024 * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14025
14026 * configure.in: Also look in $cxxmachine/include for C++ system
14027 headers.
14028
140292011-09-27 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
14030
14031 * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14032 memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14033 * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14034 * sysdeps/x86_64/multiarch/memcmp.S: Update. Add __memcmp_ssse3.
14035 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14036 (USE_AS_WMEMCMP): New macro.
14037 Fixing indents.
14038 * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14039 * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14040 * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14041 * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14042 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14043 wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
14044 * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
14045 * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
14046 * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
14047 * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
14048 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
14049 (USE_AS_WMEMCMP): New macro.
14050 * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
14051 * sysdeps/string/test-memcmp.c: Update.
14052 Fix simple_wmemcmp.
14053 Add new tests.
14054 * wcsmbs/wmemcmp.c: Update.
14055 (WMEMCMP): New macro.
14056 Fix overflow bug.
14057
140582011-10-12 Andreas Jaeger <aj@suse.de>
14059
14060 [BZ #13268]
14061 * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
14062
140632011-10-15 Ulrich Drepper <drepper@gmail.com>
14064
14065 * libio/iofwide.c (do_length): Avoid warning.
14066
14067 * ctype/ctype.h (__isctype_f): Add missing __THROW.
14068
140692011-10-14 Ulrich Drepper <drepper@gmail.com>
14070
14071 * elf/pldd-xx.c (find_maps): Remove leftover debug message.
14072
14073 * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
14074 * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
14075 * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
14076 * sysdeps/i386/i686/fpu/e_log.S: New file.
14077 * sysdeps/i386/i686/fpu/e_logf.S: New file.
14078 * sysdeps/i386/i686/fpu/e_logl.S: New file.
14079
14080 * ctype/ctype.h: Add support for inlined isXXX functions when
14081 compiling C++ code.
14082
140832011-10-14 Andreas Schwab <schwab@redhat.com>
14084
14085 * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14086
14087 * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
14088
140892011-10-13 Roland McGrath <roland@hack.frob.com>
14090
14091 [BZ #13291]
14092 * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
14093
140942011-10-13 Andreas Schwab <schwab@redhat.com>
14095
14096 * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
14097 * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
14098 feraiseexcept.
14099
14100 * sysdeps/x86_64/memrchr.S: Check for zero size.
14101
14102 * string/stratcliff.c: Add memrchr tests.
14103
141042011-10-12 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
14105
14106 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14107 memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14108 rawmemchr-sse2 rawmemchr-sse2-bsf.
14109 * sysdeps/i386/i686/multiarch/memchr.S: New file.
14110 * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
14111 * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
14112 * sysdeps/i386/i686/multiarch/memrchr.S: New file.
14113 * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
14114 * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
14115 * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
14116 * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14117 * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
14118 * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
14119 * string/memrchr.c (MEMRCHR): New macro.
14120
141212011-10-12 Ulrich Drepper <drepper@gmail.com>
14122
14123 Add integration with gcc's -ffinite-math-only and optimize wrapper
14124 functions in libm.
14125 * Versions.def: Define GLIBC_2.15 version for libm.
14126 * math/Makefile (headers): Add bits/math-finite.h.
14127 * math/bits/math-finite.h: New file.
14128 * sysdeps/ia64/fpu/bits/math-finite.h: New file.
14129 * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
14130 * math/e_acoshl.c: Add __*_finite alias.
14131 * math/e_acosl.c: Likewise.
14132 * math/e_asinl.c: Likewise.
14133 * math/e_atan2l.c: Likewise.
14134 * math/e_atanhl.c: Likewise.
14135 * math/e_coshl.c: Likewise.
14136 * math/e_exp10.c: Likewise.
14137 * math/e_exp10f.c: Likewise.
14138 * math/e_exp10l.c: Likewise.
14139 * math/e_exp2l.c: Likewise.
14140 * math/e_fmodl.c: Likewise.
14141 * math/e_gammal_r.c: Likewise.
14142 * math/e_hypotl.c: Likewise.
14143 * math/e_j0l.c: Likewise.
14144 * math/e_j1l.c: Likewise.
14145 * math/e_jnl.c: Likewise.
14146 * math/e_lgammal_r.c: Likewise.
14147 * math/e_log10l.c: Likewise.
14148 * math/e_log2l.c: Likewise.
14149 * math/e_logl.c: Likewise.
14150 * math/e_powl.c: Likewise.
14151 * math/e_sinhl.c: Likewise.
14152 * math/e_sqrtl.c: Likewise.
14153 * math/e_scalb.c: Completely rewritten and optimized.
14154 * math/e_scalbf.c: Likewise.
14155 * math/e_scalbl.c: Likewise.
14156 * math/w_acos.c: Likewise.
14157 * math/w_acosf.c: Likewise.
14158 * math/w_acosl.c: Likewise.
14159 * math/w_acosh.c: Likewise.
14160 * math/w_acoshf.c: Likewise.
14161 * math/w_acoshl.c: Likewise.
14162 * math/w_asin.c: Likewise.
14163 * math/w_asinf.c: Likewise.
14164 * math/w_asinl.c: Likewise.
14165 * math/w_atan2.c: Likewise.
14166 * math/w_atan2f.c: Likewise.
14167 * math/w_atan2l.c: Likewise.
14168 * math/w_atanh.c: Likewise.
14169 * math/w_atanhf.c: Likewise.
14170 * math/w_atanhl.c: Likewise.
14171 * math/w_exp10.c: Likewise.
14172 * math/w_exp10f.c: Likewise.
14173 * math/w_exp10l.c: Likewise.
14174 * math/w_fmod.c: Likewise.
14175 * math/w_fmodf.c: Likewise.
14176 * math/w_fmodl.c: Likewise.
14177 * math/w_j0.c: Likewise.
14178 * math/w_j0f.c: Likewise.
14179 * math/w_j0l.c: Likewise.
14180 * math/w_j1.c: Likewise.
14181 * math/w_j1f.c: Likewise.
14182 * math/w_j1l.c: Likewise.
14183 * math/w_jn.c: Likewise.
14184 * math/w_jnf.c: Likewise.
14185 * math/w_log.c: Likewise.
14186 * math/w_logf.c: Likewise.
14187 * math/w_logl.c: Likewise.
14188 * math/w_log10.c: Likewise.
14189 * math/w_log10f.c: Likewise.
14190 * math/w_log10l.c: Likewise.
14191 * math/w_log2.c: Likewise.
14192 * math/w_log2f.c: Likewise.
14193 * math/w_log2l.c: Likewise.
14194 * math/w_pow.c: Likewise.
14195 * math/w_powf.c: Likewise.
14196 * math/w_powl.c: Likewise.
14197 * math/w_remainder.c: Likewise.
14198 * math/w_remainderf.c: Likewise.
14199 * math/w_remainderl.c: Likewise.
14200 * math/w_scalb.c: Likewise.
14201 * math/w_scalbf.c: Likewise.
14202 * math/w_scalbl.c: Likewise.
14203 * math/w_sqrt.c: Likewise.
14204 * math/w_sqrtf.c: Likewise.
14205 * math/w_sqrtl.c: Likewise.
14206 * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14207 are declared. Include <bits/math-finite.h> if -ffinite-math-only is
14208 used.
14209 * math/math_private.h: Declare __kernel_standard_f.
14210 * math/w_cosh.c: Remove cruft and optimize a bit.
14211 * math/w_coshf.c: Likewise.
14212 * math/w_coshl.c: Likewise.
14213 * math/w_exp2.c: Likewise.
14214 * math/w_exp2f.c: Likewise.
14215 * math/w_exp2l.c: Likewise.
14216 * math/w_hypot.c: Likewise.
14217 * math/w_hypotf.c: Likewise.
14218 * math/w_hypotl.c: Likewise.
14219 * math/w_lgamma.c: Likewise.
14220 * math/w_lgamma_r.c: Likewise.
14221 * math/w_lgammaf.c: Likewise.
14222 * math/w_lgammaf_r.c: Likewise.
14223 * math/w_lgammal.c: Likewise.
14224 * math/w_lgammal_r.c: Likewise.
14225 * math/w_sinh.c: Likewise.
14226 * math/w_sinhf.c: Likewise.
14227 * math/w_sinhl.c: Likewise.
14228 * math/w_tgamma.c: Likewise.
14229 * math/w_tgammaf.c: Likewise.
14230 * math/w_tgammal.c: Likewise.
14231 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14232 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14233 * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14234 Minor optimizations. Pretty printing. Remove cruft.
14235 * sysdeps/i386/fpu/e_acosf.S: Likewise.
14236 * sysdeps/i386/fpu/e_acosh.S: Likewise.
14237 * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14238 * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14239 * sysdeps/i386/fpu/e_acosl.c: Likewise.
14240 * sysdeps/i386/fpu/e_asin.S: Likewise.
14241 * sysdeps/i386/fpu/e_asinf.S: Likewise.
14242 * sysdeps/i386/fpu/e_atan2.S: Likewise.
14243 * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14244 * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14245 * sysdeps/i386/fpu/e_atanh.S: Likewise.
14246 * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14247 * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14248 * sysdeps/i386/fpu/e_exp10.S: Likewise.
14249 * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14250 * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14251 * sysdeps/i386/fpu/e_exp2.S: Likewise.
14252 * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14253 * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14254 * sysdeps/i386/fpu/e_fmod.S: Likewise.
14255 * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14256 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14257 * sysdeps/i386/fpu/e_hypot.S: Likewise.
14258 * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14259 * sysdeps/i386/fpu/e_log.S: Likewise.
14260 * sysdeps/i386/fpu/e_log10.S: Likewise.
14261 * sysdeps/i386/fpu/e_log10f.S: Likewise.
14262 * sysdeps/i386/fpu/e_log10l.S: Likewise.
14263 * sysdeps/i386/fpu/e_log2.S: Likewise.
14264 * sysdeps/i386/fpu/e_log2f.S: Likewise.
14265 * sysdeps/i386/fpu/e_log2l.S: Likewise.
14266 * sysdeps/i386/fpu/e_logf.S: Likewise.
14267 * sysdeps/i386/fpu/e_logl.S: Likewise.
14268 * sysdeps/i386/fpu/e_pow.S: Likewise.
14269 * sysdeps/i386/fpu/e_powf.S: Likewise.
14270 * sysdeps/i386/fpu/e_powl.S: Likewise.
14271 * sysdeps/i386/fpu/e_remainder.S: Likewise.
14272 * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14273 * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14274 * sysdeps/i386/fpu/e_scalb.S: Likewise.
14275 * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14276 * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14277 * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14278 * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14279 * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14280 * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14281 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14282 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14283 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14284 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14285 * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14286 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14287 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14288 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14289 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14290 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14291 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14292 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14293 * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14294 * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14295 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14296 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14297 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14298 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14299 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14300 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14301 * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14302 * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14303 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14304 * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14305 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14306 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14307 * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14308 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14309 * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14310 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14311 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14312 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14313 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14314 * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14315 * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14316 * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14317 * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14318 * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14319 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14320 * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14321 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14322 * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14323 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14324 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14325 * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14326 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14327 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14328 * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14329 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14330 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14331 * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14332 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14333 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14334 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14335 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14336 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14337 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14338 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14339 * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14340 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14341 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14342 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14343 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14344 * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14345 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14346 * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14347 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14348 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14349 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14350 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14351 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14352 * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14353 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14354 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14355 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14356 * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14357 * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14358 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14359 * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14360 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14361 * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14362 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14363 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14364 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14365 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14366 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14367 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14368 * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14369 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14370 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14371 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14372 * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14373 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14374 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14375 * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14376 * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14377 * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14378 * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14379 * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14380 * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14381 * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14382 * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14383 * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14384 * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14385 * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14386 * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14387 * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14388 * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14389 * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14390 * sysdeps/x86_64/fpu/e_sqrt.c: Likewise. Fix parameter order
14391 * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14392 * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14393 (__isnanf): Likewise.
14394 (__isinf_ns): Likewise.
14395 (__isinf_nsf): Likewise.
14396 (__finite): Likewise.
14397 (__finitef): Likewise.
14398 (__ieee754_sqrt): Define as macro.
14399 (__ieee754_sqrtf): Define as macro.
14400 (__ieee754_sqrtl): Define as macro.
14401 * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14402 inlined copy.
14403 * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14404 __FINITE_MATH_ONLY__ consistent.
14405 * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14406
144072011-10-10 Andreas Schwab <schwab@linux-m68k.org>
14408
14409 * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14410 of rawmemchr.
14411
14412 * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14413
144142011-10-09 Ulrich Drepper <drepper@gmail.com>
14415
14416 * po/ja.po: Update from translation team.
14417
144182011-10-08 Roland McGrath <roland@hack.frob.com>
14419
14420 * locale/programs/locarchive.c (prepare_address_space): New function.
14421 (create_archive, enlarge_archive, open_archive): Use it.
14422
14423 * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14424 inside [SHARED], where it is used.
14425
14426 * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14427
14428 * nss/getent.c (netgroup_keys): Remove unused variable.
14429 * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14430
144312011-10-08 Ulrich Drepper <drepper@gmail.com>
14432
14433 * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14434 * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14435 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14436 * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14437 * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14438 * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14439 * math/Makefile (libm-calls): Add s_isinf_ns.
14440 * math/divtc3.c: Use __isinf_nsl instead of isinf.
14441 * math/multc3.c: Likewise.
14442 * math/s_casin.c: Likewise.
14443 * math/s_casinf.c: Likewise.
14444 * math/s_casinl.c: Likewise.
14445 * math/s_ccos.c: Likewise.
14446 * math/s_ccosf.c: Likewise.
14447 * math/s_ccosl.c: Likewise.
14448 * math/s_ctan.c: Likewise.
14449 * math/s_ctanf.c: Likewise.
14450 * math/s_ctanh.c: Likewise.
14451 * math/s_ctanhf.c: Likewise.
14452 * math/s_ctanhl.c: Likewise.
14453 * math/s_ctanl.c: Likewise.
14454 * math/w_fmod.c: Likewise.
14455 * math/w_fmodf.c: Likewise.
14456 * math/w_fmodl.c: Likewise.
14457 * math/w_remainder.c: Likewise.
14458 * math/w_remainderf.c: Likewise.
14459 * math/w_remainderl.c: Likewise.
14460 * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14461 * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14462 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14463 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14464 * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14465 * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14466 * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14467 __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14468
14469 * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14470 of the number.
14471 * stdio-common/printf_fphex.c: Likewise.
14472 * stdio-common/printf_size.c: Likewise.
14473
14474 * math/e_exp10.c: Include math_private.h using <...> not "...".
14475 * math/e_exp10f.c: Likewise.
14476 * math/e_exp10l.c: Likewise.
14477 * math/e_exp2l.c: Likewise.
14478 * math/e_j0l.c: Likewise.
14479 * math/e_j1l.c: Likewise.
14480 * math/e_jnl.c: Likewise.
14481 * math/e_lgammal_r.c: Likewise.
14482 * math/e_rem_pio2l.c: Likewise.
14483 * math/e_scalb.c: Likewise.
14484 * math/e_scalbf.c: Likewise.
14485 * math/e_scalbl.c: Likewise.
14486 * math/k_cosl.c: Likewise.
14487 * math/k_sinl.c: Likewise.
14488 * math/k_tanl.c: Likewise.
14489 * math/s_cacoshf.c: Likewise.
14490 * math/s_catan.c: Likewise.
14491 * math/s_catanf.c: Likewise.
14492 * math/s_catanh.c: Likewise.
14493 * math/s_catanhf.c: Likewise.
14494 * math/s_catanhl.c: Likewise.
14495 * math/s_catanl.c: Likewise.
14496 * math/s_ccosh.c: Likewise.
14497 * math/s_ccoshf.c: Likewise.
14498 * math/s_ccoshl.c: Likewise.
14499 * math/s_cexp.c: Likewise.
14500 * math/s_cexpf.c: Likewise.
14501 * math/s_cexpl.c: Likewise.
14502 * math/s_clog.c: Likewise.
14503 * math/s_clog10.c: Likewise.
14504 * math/s_clog10f.c: Likewise.
14505 * math/s_clog10l.c: Likewise.
14506 * math/s_clogf.c: Likewise.
14507 * math/s_clogl.c: Likewise.
14508 * math/s_csin.c: Likewise.
14509 * math/s_csinf.c: Likewise.
14510 * math/s_csinh.c: Likewise.
14511 * math/s_csinhf.c: Likewise.
14512 * math/s_csinhl.c: Likewise.
14513 * math/s_csinl.c: Likewise.
14514 * math/s_csqrt.c: Likewise.
14515 * math/s_csqrtf.c: Likewise.
14516 * math/s_csqrtl.c: Likewise.
14517 * math/s_ctan.c: Likewise.
14518 * math/s_ctanf.c: Likewise.
14519 * math/s_ctanh.c: Likewise.
14520 * math/s_ctanhf.c: Likewise.
14521 * math/s_ctanhl.c: Likewise.
14522 * math/s_ctanl.c: Likewise.
14523 * math/s_ldexp.c: Likewise.
14524 * math/s_ldexpf.c: Likewise.
14525 * math/s_ldexpl.c: Likewise.
14526 * math/s_significand.c: Likewise.
14527 * math/s_significandf.c: Likewise.
14528 * math/s_significandl.c: Likewise.
14529 * math/w_acos.c: Likewise.
14530 * math/w_acosf.c: Likewise.
14531 * math/w_acosh.c: Likewise.
14532 * math/w_acoshf.c: Likewise.
14533 * math/w_acoshl.c: Likewise.
14534 * math/w_acosl.c: Likewise.
14535 * math/w_asin.c: Likewise.
14536 * math/w_asinf.c: Likewise.
14537 * math/w_asinl.c: Likewise.
14538 * math/w_atan2.c: Likewise.
14539 * math/w_atan2f.c: Likewise.
14540 * math/w_atan2l.c: Likewise.
14541 * math/w_atanh.c: Likewise.
14542 * math/w_atanhf.c: Likewise.
14543 * math/w_atanhl.c: Likewise.
14544 * math/w_cosh.c: Likewise.
14545 * math/w_coshf.c: Likewise.
14546 * math/w_coshl.c: Likewise.
14547 * math/w_dremf.c: Likewise.
14548 * math/w_exp10.c: Likewise.
14549 * math/w_exp10f.c: Likewise.
14550 * math/w_exp10l.c: Likewise.
14551 * math/w_exp2.c: Likewise.
14552 * math/w_exp2f.c: Likewise.
14553 * math/w_fmod.c: Likewise.
14554 * math/w_fmodf.c: Likewise.
14555 * math/w_fmodl.c: Likewise.
14556 * math/w_hypot.c: Likewise.
14557 * math/w_hypotf.c: Likewise.
14558 * math/w_hypotl.c: Likewise.
14559 * math/w_j0.c: Likewise.
14560 * math/w_j0f.c: Likewise.
14561 * math/w_j0l.c: Likewise.
14562 * math/w_j1.c: Likewise.
14563 * math/w_j1f.c: Likewise.
14564 * math/w_j1l.c: Likewise.
14565 * math/w_jn.c: Likewise.
14566 * math/w_jnf.c: Likewise.
14567 * math/w_jnl.c: Likewise.
14568 * math/w_lgamma.c: Likewise.
14569 * math/w_lgamma_r.c: Likewise.
14570 * math/w_lgammaf.c: Likewise.
14571 * math/w_lgammaf_r.c: Likewise.
14572 * math/w_lgammal.c: Likewise.
14573 * math/w_lgammal_r.c: Likewise.
14574 * math/w_log.c: Likewise.
14575 * math/w_log10.c: Likewise.
14576 * math/w_log10f.c: Likewise.
14577 * math/w_log10l.c: Likewise.
14578 * math/w_log2.c: Likewise.
14579 * math/w_log2f.c: Likewise.
14580 * math/w_log2l.c: Likewise.
14581 * math/w_logf.c: Likewise.
14582 * math/w_logl.c: Likewise.
14583 * math/w_pow.c: Likewise.
14584 * math/w_powf.c: Likewise.
14585 * math/w_powl.c: Likewise.
14586 * math/w_remainder.c: Likewise.
14587 * math/w_remainderf.c: Likewise.
14588 * math/w_remainderl.c: Likewise.
14589 * math/w_scalb.c: Likewise.
14590 * math/w_scalbf.c: Likewise.
14591 * math/w_scalbl.c: Likewise.
14592 * math/w_sinh.c: Likewise.
14593 * math/w_sinhf.c: Likewise.
14594 * math/w_sinhl.c: Likewise.
14595 * math/w_sqrt.c: Likewise.
14596 * math/w_sqrtf.c: Likewise.
14597 * math/w_sqrtl.c: Likewise.
14598 * math/w_tgamma.c: Likewise.
14599 * math/w_tgammaf.c: Likewise.
14600 * math/w_tgammal.c: Likewise.
14601
14602 * po/ja.po: Update from translation team.
14603
146042011-09-29 Andreas Jaeger <aj@suse.de>
14605
14606 [BZ #13179]
14607 * sunrpc/netname.c (netname2host): Fix logic.
14608
14609 [BZ #6779]
14610 [BZ #6783]
14611 * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
14612 correctly.
14613 * math/w_remainder.c (__remainder): Likewise.
14614 * math/w_remainderf.c (__remainderf): Likewise.
14615 * math/libm-test.inc (remainder_test): Add test cases.
14616
146172011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14618
14619 * stdlib/longlong.h: Update from GCC. Fix zarch smul_ppmm and
14620 sdiv_qrnnd.
14621
146222011-10-07 Ulrich Drepper <drepper@gmail.com>
14623
14624 * string/test-memcmp.c: Avoid unncessary #defines.
14625 Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14626
146272011-08-31 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
14628
14629 * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
14630 Use new sse2 version for core i3 - i7 as it's faster
14631 than sse42 version.
14632 (bit_Prefer_PMINUB_for_stringop): New.
14633 * sysdeps/x86_64/rawmemchr.S: Update.
14634 Replace with faster SSE2 version.
14635 * sysdeps/x86_64/memrchr.S: New file.
14636 * sysdeps/x86_64/memchr.S: Update.
14637 Replace with faster SSE2 version.
14638
146392011-09-12 Marek Polacek <mpolacek@redhat.com>
14640
14641 * elf/dl-load.c (lose): Add cast to avoid warning.
14642
146432011-10-07 Ulrich Drepper <drepper@gmail.com>
14644
14645 * po/ca.po: Update from translation team.
14646
14647 * inet/getnetgrent_r.c: Hook up nscd.
14648 * nscd/Makefile (routines): Add nscd_netgroup.
14649 (nscd-modules): Add netgroupcache.
14650 (CFLAGS-netgroupcache.c): Define.
14651 * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
14652 (cache_search): Add const to second parameter.
14653 * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
14654 INNETGR.
14655 (dbs): Add netgrdb entry.
14656 (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
14657 (verify_persistent_db): Handle netgrdb.
14658 (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
14659 * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
14660 GETFDNETGR.
14661 (netgroup_response_header): Define.
14662 (innetgroup_response_header): Define.
14663 (datahead): Add netgroup_response_header and innetgroup_response_header
14664 elements.
14665 * nscd/nscd.conf: Add entries for netgroup cache.
14666 * nscd/nscd.h (dbtype): Add netgrdb.
14667 (_PATH_NSCD_NETGROUP_DB): Define.
14668 (netgroup_iov_disabled): Declare.
14669 (xmalloc, xcalloc, xrealloc): Move declarations here.
14670 (cache_search): Adjust prototype.
14671 Add netgroup-related prototypes.
14672 * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
14673 * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
14674 (__nscd_innetgr): Declare.
14675 * nscd/selinux.c (perms): Use access_vector_t as element type and
14676 add netgroup-related initializers.
14677 * nscd/netgroupcache.c: New file.
14678 * nscd/nscd_netgroup.c: New file.
14679 * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
14680 * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
14681 For four parameters use innetgr.
14682 * nss/nss_files/files-init.c: Add definition and callback for netgr.
14683 * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
14684 (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
14685 * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
14686
14687 * nscd/connections.c (register_traced_file): Don't register file
14688 for disabled databases.
14689
146902011-10-06 Ulrich Drepper <drepper@gmail.com>
14691
14692 * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
14693
14694 * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
14695 from tree and freeing node.
14696
146972011-09-25 Jiri Olsa <jolsa@redhat.com>
14698
14699 * nss/nsswitch.c (__nss_database_lookup): Handle
14700 nss_parse_service_list out of memory case.
14701
147022011-09-15 Jiri Olsa <jolsa@redhat.com>
14703
14704 * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
14705 out of memory case.
14706
147072011-10-04 Andreas Schwab <schwab@redhat.com>
14708
14709 * include/dlfcn.h (__RTLD_NOIFUNC): Define.
14710 * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
14711 pass it down.
14712 * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
14713 elf_machine_rela, elf_machine_lazy_rel.
14714 (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
14715 (ELF_DYNAMIC_DO_REL): Likewise.
14716 (ELF_DYNAMIC_DO_RELA): Likewise.
14717 (ELF_DYNAMIC_RELOCATE): Likewise.
14718 * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
14719 to ELF_DYNAMIC_DO_REL.
14720 * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
14721 (dl_main): In trace mode always set __RTLD_NOIFUNC.
14722 * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
14723 elf_machine_rela.
14724 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
14725 skip_ifunc, don't call ifunc function if non-zero.
14726 (elf_machine_rela): Likewise.
14727 (elf_machine_lazy_rel): Likewise.
14728 (elf_machine_lazy_rela): Likewise.
14729 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
14730 (elf_machine_lazy_rel): Likewise.
14731 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
14732 Likewise.
14733 (elf_machine_lazy_rel): Likewise.
14734 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14735 Likewise.
14736 (elf_machine_lazy_rel): Likewise.
14737 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
14738 (elf_machine_lazy_rel): Likewise.
14739 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
14740 (elf_machine_lazy_rel): Likewise.
14741 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
14742 (elf_machine_lazy_rel): Likewise.
14743 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
14744 (elf_machine_lazy_rel): Likewise.
14745 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
14746 (elf_machine_lazy_rel): Likewise.
14747 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
14748 (elf_machine_lazy_rel): Likewise.
14749
147502011-09-28 Ulrich Drepper <drepper@gmail.com>
14751
14752 * nss/nss_files/files-init.c (_nss_files_init): Use static
14753 initialization for all the *_traced_file variables.
14754
147552011-09-28 Andreas Schwab <schwab@redhat.com>
14756
14757 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14758
147592011-09-27 Roland McGrath <roland@hack.frob.com>
14760
14761 [BZ #13226]
14762 * manual/signal.texi (Longjmp in Handler): Grammar fixes.
14763
147642011-09-27 Andreas Schwab <schwab@redhat.com>
14765
14766 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14767 Reread the line before reparsing it.
14768
147692011-09-26 Andreas Schwab <schwab@redhat.com>
14770
14771 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
14772
147732011-09-21 Chung-Lin Tang <cltang@codesourcery.com>
14774 Maxim Kuvyrkov <maxim@codesourcery.com>
14775 Joseph Myers <joseph@codesourcery.com>
14776
14777 * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
14778 if needed for __stack_chk_guard.
14779
147802011-09-19 Roland McGrath <roland@hack.frob.com>
14781
14782 * sysdeps/posix/spawni.c (script_execute): Always define it.
14783 It will be optimized away if unused.
14784 (maybe_script_execute): New function.
14785 (__spawni): Call it.
14786
14787 * Makerules: Don't include tls.make.
14788 (config-tls): Always set to thread.
14789 * tls.make.c: File removed.
14790
147912011-09-19 Mike Frysinger <vapier@gentoo.org>
14792
14793 * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
14794 * config.make.in (CPPFLAGS-config): New substituted variable.
14795
147962011-09-15 Ulrich Drepper <drepper@gmail.com>
14797
14798 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
14799
14800 [BZ #13192]
14801 * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
14802 Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
14803
148042011-09-15 Roland McGrath <roland@hack.frob.com>
14805
14806 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
14807 (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
14808 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
14809 (CALL_FAIL): Likewise.
14810 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
14811 (CALL_FAIL): Macro removed.
14812 Patch mostly by Mike Frysinger <vapier@gentoo.org>.
14813
148142011-09-15 Ulrich Drepper <drepper@gmail.com>
14815
14816 * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
14817 for __FINITE_MATH_ONLY__ == 1.
14818
148192011-09-15 Andreas Schwab <schwab@redhat.com>
14820
14821 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
14822 __ieee754_sqrt instead of sqrt.
14823 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
14824 __ieee754_sqrtf instead of sqrtf.
14825 * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
14826 __floorf instead of floorf.
14827 * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
14828 __floorf, __truncf instead of floorf, truncf.
14829
148302011-09-14 Ulrich Drepper <drepper@gmail.com>
14831
14832 * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
14833
14834 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
14835 __extern_always_inline.
14836 Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
14837 32-bit.
14838
148392011-09-14 Andreas Schwab <schwab@redhat.com>
14840
14841 * elf/rtld.c (dl_main): Also relocate in dependency order when
14842 doing symbol dependency testing.
14843
148442011-09-13 Andreas Schwab <schwab@linux-m68k.org>
14845
14846 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14847 Always define `refsym'.
14848
148492011-09-13 Andreas Schwab <schwab@redhat.com>
14850
14851 * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
14852 (__FD_ELT): Renamed from __FDELT.
14853 * misc/bits/select2.h (__FD_ELT): Likewise.
14854 * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
14855 __FD_MASK instead of __FDELT, __FDMASK.
14856 * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14857 Likewise.
14858 * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14859 Likewise.
14860
14861 * elf/Makefile (gen-ldd): Fix pattern.
14862
14863 * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
14864 (init_tls): Likewise.
14865
148662011-09-12 Ulrich Drepper <drepper@gmail.com>
14867
14868 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
14869
148702011-09-12 Andreas Schwab <schwab@redhat.com>
14871
14872 * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
14873 `struct cmsghdr *' instead of `void *'.
14874 * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
14875 Likewise.
14876
148772011-09-11 Andreas Schwab <schwab@linux-m68k.org>
14878
14879 * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
14880 if non-absolute.
14881 * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
14882 ldd_rewrite_script.
14883
148842011-09-11 Ulrich Drepper <drepper@gmail.com>
14885
14886 * configure.in: Remove --with-tls option.
14887 * config.h.in: Remove HAVE_TLS_SUPPORT entry.
14888 * sysdeps/i386/elf/configure.in: Always test for TLS support and err
14889 out in case it is missing.
14890 * sysdeps/ia64/elf/configure.in: Likewise.
14891 * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
14892 * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
14893 * sysdeps/s390/s390-32/elf/configure.in: Likewise.
14894 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
14895 * sysdeps/sh/elf/configure.in: Likewise.
14896 * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
14897 * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14898 * sysdeps/x86_64/elf/configure.in: Likewise.
14899 * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
14900 * sysdeps/mach/hurd/tls.h: Likewise.
14901
14902 [BZ #13067]
14903 * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
14904
14905 [BZ #13090]
14906 * configure.in: Fix use of AC_INIT.
14907
14908 * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
14909
149102011-09-10 Ulrich Drepper <drepper@gmail.com>
14911
14912 * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
14913 __set_errno.
14914 * malloc/hooks.c: Likewise.
14915
14916 [BZ #11929]
14917 * malloc/arena.c (ptmalloc_init_minimal): Removed. Initialize all
14918 variables statically.
14919 (narenas): Initialize.
14920 (list_lock): Initialize.
14921 (ptmalloc_init): Don't call ptmalloc_init_minimal. Remove
14922 initializtion of main_arena and list_lock. Small cleanups.
14923 Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
14924 * malloc/malloc.c: Remove malloc_getpagesize. Include <ldsodefs.h>.
14925 Add initializers to main_arena and mp_.
14926 (malloc_state): Remove pagesize member. Change all users to use
14927 GLRO(dl_pagesize).
14928
14929 * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
14930 * sysdeps/unix/sysv/linux/getpagesize.c: Simplify. GLRO(dl_pagesize)
14931 is always initialized.
14932
14933 * malloc/malloc.c: Removed unused configurations and dead code.
14934 * malloc/arena.c: Likewise.
14935 * malloc/hooks.c: Likewise.
14936 * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
14937
14938 * include/tls.h: Removed. USE___THREAD must always be defined.
14939 * bits/libc-tsd.h: Don't handle !USE___THREAD.
14940 * elf/dl-libc.c: Likewise.
14941 * elf/dl-tsd.c: Likewise.
14942 * include/errno.h: Likewise.
14943 * include/netdb.h: Likewise.
14944 * include/resolv.h: Likewise.
14945 * inet/herrno-loc.c: Likewise.
14946 * inet/herrno.c: Likewise.
14947 * malloc/arena.c: Likewise.
14948 * malloc/hooks.c: Likewise.
14949 * malloc/malloc.c: Likewise.
14950 * resolv/res-state.c: Likewise.
14951 * resolv/res_libc.c: Likewise.
14952 * sysdeps/i386/dl-machine.h: Likewise.
14953 * sysdeps/ia64/dl-machine.h: Likewise.
14954 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
14955 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
14956 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
14957 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
14958 * sysdeps/sh/dl-machine.h: Likewise.
14959 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
14960 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
14961 * sysdeps/unix/i386/sysdep.S: Likewise.
14962 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
14963 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
14964 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
14965 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
14966 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
14967 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
14968 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
14969 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
14970 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14971 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
14972 * sysdeps/unix/x86_64/sysdep.S: Likewise.
14973 * sysdeps/x86_64/dl-machine.h: Likewise.
14974 * tls.make.c: Likewise.
14975
14976 * configure.in: Remove --with-__thread option. Make tests for
14977 --no-whole-archive, __builtin_expect, symbol redirection, __thread,
14978 tls_model attribute fail if no support is available. Remove
14979 USE_IN_LIBIO.
14980 * Makeconfig: Adjust for dropped configure option. All features are
14981 now mandatory.
14982 * Makerules: Likewise.
14983 * Versions.def: Likewise.
14984 * argp/argp-fmtstream.c: Likewise.
14985 * argp/argp-fmtstream.h: Likewise.
14986 * argp/argp-help.c: Likewise.
14987 * assert/assert.c: Likewise.
14988 * config.h.in: Likewise.
14989 * config.make.in: Likewise.
14990 * configure: Likewise.
14991 * configure.in: Likewise.
14992 * csu/Versions: Likewise.
14993 * csu/init.c: Likewise.
14994 * elf/tst-audit2.c: Likewise.
14995 * elf/tst-tls10.c: Likewise.
14996 * elf/tst-tls10.h: Likewise.
14997 * elf/tst-tls11.c: Likewise.
14998 * elf/tst-tls12.c: Likewise.
14999 * elf/tst-tls14.c: Likewise.
15000 * elf/tst-tlsmod11.c: Likewise.
15001 * elf/tst-tlsmod12.c: Likewise.
15002 * elf/tst-tlsmod13.c: Likewise.
15003 * elf/tst-tlsmod13a.c: Likewise.
15004 * elf/tst-tlsmod14a.c: Likewise.
15005 * elf/tst-tlsmod15b.c: Likewise.
15006 * elf/tst-tlsmod16a.c: Likewise.
15007 * elf/tst-tlsmod16b.c: Likewise.
15008 * elf/tst-tlsmod7.c: Likewise.
15009 * elf/tst-tlsmod8.c: Likewise.
15010 * elf/tst-tlsmod9.c: Likewise.
15011 * gmon/gmon.c: Likewise.
15012 * grp/fgetgrent_r.c: Likewise.
15013 * grp/putgrent.c: Likewise.
15014 * hurd/fopenport.c: Likewise.
15015 * include/libc-symbols.h: Likewise.
15016 * include/tls.h: Likewise.
15017 * intl/gettextP.h: Likewise.
15018 * intl/loadinfo.h: Likewise.
15019 * locale/global-locale.c: Likewise.
15020 * locale/localeinfo.h: Likewise.
15021 * mach/devstream.c: Likewise.
15022 * malloc/arena.c: Likewise.
15023 * malloc/set-freeres.c: Likewise.
15024 * misc/err.c: Likewise.
15025 * misc/getttyent.c: Likewise.
15026 * misc/mntent_r.c: Likewise.
15027 * posix/getopt.c: Likewise.
15028 * posix/wordexp.c: Likewise.
15029 * pwd/fgetpwent_r.c: Likewise.
15030 * resolv/Versions: Likewise.
15031 * resolv/res_hconf.c: Likewise.
15032 * shadow/fgetspent_r.c: Likewise.
15033 * shadow/putspent.c: Likewise.
15034 * stdio-common/printf_fphex.c: Likewise.
15035 * stdio-common/tmpfile.c: Likewise.
15036 * stdlib/abort.c: Likewise.
15037 * stdlib/fmtmsg.c: Likewise.
15038 * sunrpc/auth_unix.c: Likewise.
15039 * sunrpc/clnt_perr.c: Likewise.
15040 * sunrpc/clnt_tcp.c: Likewise.
15041 * sunrpc/clnt_udp.c: Likewise.
15042 * sunrpc/clnt_unix.c: Likewise.
15043 * sunrpc/openchild.c: Likewise.
15044 * sunrpc/svc_simple.c: Likewise.
15045 * sunrpc/svc_tcp.c: Likewise.
15046 * sunrpc/svc_udp.c: Likewise.
15047 * sunrpc/svc_unix.c: Likewise.
15048 * sunrpc/xdr.c: Likewise.
15049 * sunrpc/xdr_array.c: Likewise.
15050 * sunrpc/xdr_rec.c: Likewise.
15051 * sunrpc/xdr_ref.c: Likewise.
15052 * sunrpc/xdr_stdio.c: Likewise.
15053
150542011-09-09 Ulrich Drepper <drepper@gmail.com>
15055
15056 * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15057
150582011-07-03 Andreas Jaeger <aj@suse.de>
15059
15060 * math/libm-test.inc (jn_test): Add tests for BZ#11589.
15061 * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
15062 regenerate with gen-libm-tests.pl.
15063
150642010-05-12 Petr Baudis <pasky@suse.cz>
15065
15066 [BZ #11589]
15067 * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
15068 around j0() zero points by switching to j1().
15069 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15070 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15071 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15072 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15073
150742011-09-09 Ulrich Drepper <drepper@gmail.com>
15075
15076 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
15077 instead of 0.
15078 * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
15079 instead of 0. .
15080 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15081 Patch in part by Pavel Roskin <proski@gnu.org>.
15082
15083 [BZ #13138]
15084 * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
15085 realloc.
15086 (_IO_vfscanf_internal): Remove reteof. Use errout after setting done.
15087 Free memory block if necessary.
15088
15089 [BZ #12847]
15090 * libio/genops.c (INTDEF): For string streams the _lock pointer can
15091 be NULL. Don't lock in this case.
15092
150932011-09-09 Roland McGrath <roland@hack.frob.com>
15094
15095 * elf/elf.h (ELFOSABI_GNU): New macro.
15096 (ELFOSABI_LINUX): Define to that.
15097
150982011-07-29 Denis Zaitceff <zaitceff@gmail.com>
15099
15100 * string/strncat.c (strncat): Undef the symbol in case it has been
15101 defined in bits/string.h.
15102
151032011-09-09 Ulrich Drepper <drepper@gmail.com>
15104
15105 * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15106
15107 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15108 link map.
15109
151102011-08-17 Andreas Jaeger <aj@suse.de>
15111
15112 * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
15113
151142011-08-18 Paul Pluzhnikov <ppluzhnikov@google.com>
15115 Ian Lance Taylor <iant@google.com>
15116
15117 * math/libm-test.inc (lround_test): New testcase.
15118 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
15119
151202011-09-08 Ulrich Drepper <drepper@gmail.com>
15121
15122 * Makefile: Remove support for automatic cvs check-ins.
15123 * Makerules: Likewise.
15124 * config.make.in: Likewise.
15125 * configure.in: Likewise.
15126 * intl/Makefile: Likewise.
15127 * locale/Makefile: Likewise.
15128 * po/Makefile: Likewise.
15129 * posix/Makefile: Likewise.
15130 * sysdeps/gnu/Makefile: Likewise.
15131 * sysdeps/mach/hurd/Makefile: Likewise.
15132 * sysdeps/sparc/sparc32/Makefile: Likewise.
15133
15134 [BZ #13118]
15135 * posix/Makefile (bug-regex32-ENV): Define.
15136 Patch by John Stanley <jpsinthemix@verizon.net>.
15137
15138 * misc/Makefile (headers): Add bits/select2.h.
15139 * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
15140 * misc/bits/select2.h: New file.
15141 * include/bits/select2.h: New file.
15142 * debug/Makefile (routines): Add fdelt_chk.
15143 * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
15144 * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
15145 FD_ISSET.
15146 * debug/fdelt_chk.c: New file.
15147
15148 * wcsmbs/test-wcscmp.c: Moved from string/*. Adjust.
15149 * wcsmbs/test-wmemcmp.c: Likewise.
15150 * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
15151 * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
15152
151532011-09-08 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
15154
15155 * string/Makefile (strop-tests): Add memcmp.
15156 * string/test-wmemcmp.c: New file.
15157 * string/test-memcmp.c: Add wmemcmp support.
15158
151592011-09-08 Roland McGrath <roland@hack.frob.com>
15160
15161 [BZ #13153]
15162 * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
15163 2011-07-19 change.
15164
15165 * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
15166 garbage value in a __mach_port_mod_refs call in the cases of the
15167 task-self and thread-self ports.
15168
151692011-09-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
15170
15171 * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
15172
151732011-09-08 Andreas Schwab <schwab@redhat.com>
15174
15175 * elf/dl-load.c (lose): Check for non-null L.
15176
151772011-09-07 Ulrich Drepper <drepper@gmail.com>
15178
15179 * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15180
15181 * elf/dl-libc.c (dlerror_run): Pass back error code from
15182 dl_catch_error.
15183
15184 [BZ #13123]
15185 * elf/dl-load.c (lose): Free l_origin if it is valid.
15186
15187 * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15188 names.
15189 * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15190 * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15191 * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15192 * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15193 * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15194 Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15195
151962011-08-01 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
15197
15198 * sysdeps/powerpc/fpu/e_hypot.c: New file.
15199 * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15200 * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15201 * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15202 * sysdeps/powerpc/fpu/k_cosf.c: New file.
15203 * sysdeps/powerpc/fpu/k_sinf.c: New file.
15204 * sysdeps/powerpc/fpu/s_cosf.c: New file.
15205 * sysdeps/powerpc/fpu/s_sinf.c: New file.
15206 * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15207 * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15208
152092011-08-15 Alan Modra <amodra@gmail.com>
15210
15211 [BZ #13092]
15212 * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15213 * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15214 * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here. Add
15215 ppc_mcount to static-only-routines.
15216 * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15217 __mcount_internal.
15218 * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15219 __mcount_internal with usual JUMPTARGET. Remove useless nop.
15220
152212011-08-18 David Flaherty <flaherty@linux.vnet.ibm.com>
15222
15223 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15224 for finite and infinity parameters.
15225
152262011-08-04 Will Schmidt <will_schmidt@vnet.ibm.com>
15227
15228 * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15229 and add nop instructions for throughput optimization.
15230 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15231
152322011-07-28 Will Schmidt <will_schmidt@vnet.ibm.com>
15233
15234 * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15235 aligned copy for power7 with vector-scalar instructions.
15236 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15237
152382011-07-24 H.J. Lu <hongjiu.lu@intel.com>
15239
15240 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15241 AVX check.
15242
152432011-09-07 Andreas Schwab <schwab@redhat.com>
15244
15245 [BZ #13144]
15246 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15247 last change.
15248
152492011-09-07 Ulrich Drepper <drepper@gmail.com>
15250
15251 * sysdeps/unix/sysv/linux/x86_64/init-first.c
15252 (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15253 syscall wrapper around clock_gettime in __vdso_clock_gettime.
15254 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15255 clock_gettime.
15256
152572011-09-06 Ulrich Drepper <drepper@gmail.com>
15258
15259 * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15260 Forgot to demangle the pointer.
15261
15262 * sysdeps/i386/sysdep.h: Define atom_text_section.
15263 * sysdeps/x86_64/sysdep.h: Likewise.
15264 * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15265 section with atom_text_section.
15266 * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15267 * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15268 * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15269 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15270 * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15271
15272 * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15273 * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15274 already be defined. Change to take two parameters and don't assign
15275 result to variable. Adjust all users.
15276 Define INTERNAL_GETTIME if not already defined.
15277 Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15278 call.
15279 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15280 HAVE_CLOCK_GETTIME_VSYSCALL.
15281 * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15282
15283 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15284 gettimeofday vsyscall, just use time.
15285
152862011-09-06 Andreas Schwab <schwab@redhat.com>
15287
15288 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15289 <errno.h>.
15290
152912011-09-06 Ulrich Drepper <drepper@gmail.com>
15292
15293 * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15294 syscall on x86-64.
15295 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15296 syscall.
15297 * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15298 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15299 syscall if possible.
15300
153012011-09-05 Ulrich Drepper <drepper@gmail.com>
15302
15303 * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15304 e_ident. Don't pass to find_mapsXX.
15305 * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15306
153072011-07-20 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
15308
15309 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15310 strchr-sse2-no-bsf strrchr-sse2-no-bsf
15311 * sysdeps/x86_64/multiarch/strchr.S: Update.
15312 Check bit_slow_BSF bit.
15313 * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15314 * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15315 * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15316
153172011-09-05 Ulrich Drepper <drepper@gmail.com>
15318
15319 [BZ #13134]
15320 * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15321 before glibc 2.15.
15322 (tryshell): Define.
15323 (__spawni): Change last parameter to be flag. Test
15324 SPAWN_XFLAGS_USE_PATH flag to use path or not.
15325 Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15326 * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15327 * posix/spawni.c: Likewise.
15328 * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15329 * posix/spawnp.c: Likewise. Change normal version to use
15330 SPAWN_XFLAGS_USE_PATH.
15331 * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15332 SPAWN_XFLAGS_TRY_SHELL.
15333
15334 [BZ #13150]
15335 * posix/glob.h: Remove gcc 1.x support.
15336
15337 [BZ #13068]
15338 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15339
153402011-07-20 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
15341
15342 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15343 strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15344 strrchr-sse2-bsf
15345 * sysdeps/i386/i686/multiarch/strchr.S: New file.
15346 * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15347 * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15348 * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15349 * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15350 * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15351
153522011-08-29 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
15353
15354 * sysdeps/x86_64/wcscmp.S: New file.
15355
15356 * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15357 wcscmp-c wcscmp-sse2
15358 * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15359 * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15360 * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15361 * wcsmbs/wcscmp.c: Allow renaming.
15362
153632011-09-05 David S. Miller <davem@davemloft.net>
15364
15365 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15366 stack slot, rather than the struct return pointer slot.
15367 * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15368 * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15369 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15370 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15371
153722011-09-05 Ulrich Drepper <drepper@gmail.com>
15373
15374 * po/ja.po: Update from translation team.
15375
15376 [BZ #13144]
15377 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15378 kernel in 64-bit binaries.
15379
153802011-09-01 David S. Miller <davem@davemloft.net>
15381
15382 * elf/elf.h (HWCAP_SPARC_*): Move to..
15383 * sysdeps/sparc/sysdep.h: this new file and add new values.
15384 * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15385 * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15386 _DL_HWCAP_COUNT to 24.
15387 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15388 entries.
15389 * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15390 __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15391 * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15392 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15393 instead of magic constants.
15394 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15395
153962011-08-31 David S. Miller <davem@davemloft.net>
15397
15398 * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15399 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15400 Reimplement to do errno handling inline.
15401 (SYSCALL_ERROR_HANDLER): New macro.
15402 (__SYSCALL_STRING): Do not do errno handling in asm.
15403 (__CLONE_SYSCALL_STRING): Delete.
15404 (__INTERNAL_SYSCALL_STRING): Delete.
15405 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15406 sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15407 (PSEUDO): Reimplement to do errno handling inline.
15408 (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15409 (SYSCALL_ERROR_HANDLER): New macro.
15410 (__SYSCALL_STRING): Do not do errno handling in asm.
15411 (__CLONE_SYSCALL_STRING): Delete.
15412 (__INTERNAL_SYSCALL_STRING): Delete.
15413 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15414 Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15415 i386.
15416 (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15417 (inline_syscall*): Add 'err' argument.
15418 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15419 INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15420 (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15421 INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15422
15423 * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15424 * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15425
154262011-08-30 Andreas Schwab <schwab@redhat.com>
15427
15428 * elf/rtld.c (dl_main): Relocate objects in dependency order.
15429
154302011-08-29 Jiri Olsa <jolsa@redhat.com>
15431
15432 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15433 directive.
15434
154352011-08-24 David S. Miller <davem@davemloft.net>
15436
15437 * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15438
154392011-08-24 Andreas Schwab <schwab@redhat.com>
15440
15441 * elf/Makefile: Add rules to build and run unload8 test.
15442 * elf/unload8.c: New file.
15443 * elf/unload8mod1.c: New file.
15444 * elf/unload8mod1x.c: New file.
15445 * elf/unload8mod2.c: New file.
15446 * elf/unload8mod3.c: New file.
15447
15448 * elf/dl-close.c (_dl_close_worker): Reset private search list if
15449 it wasn't used.
15450
154512011-08-23 David S. Miller <davem@davemloft.net>
15452
15453 * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15454 subtract stack bias.
15455 * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15456 %sp not %fp in calculations.
15457 (_JMPBUF_UNWINDS_ADJ): Likewise.
15458
15459 * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15460 (aio_suspend): Call it to force an exception region around the
15461 AIO_MISC_WAIT() invocation.
15462
154632011-08-23 Andreas Schwab <schwab@redhat.com>
15464
15465 * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15466 backslash.
15467
154682011-07-04 Aurelien Jarno <aurelien@aurel32.net>
15469
15470 * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15471 protection macro.
15472 * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15473 and <dl-machine.h>.
15474 (Elf64_FuncDesc): Remove.
15475
154762011-08-22 David S. Miller <davem@davemloft.net>
15477
15478 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15479 sigaltstack check, add missing cfi directives.
15480 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15481 missing cfi directives, and sigaltstack handling.
15482
154832011-08-16 Andreas Schwab <schwab@redhat.com>
15484
15485 [BZ #11724]
15486 * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15487 object is seen twice.
15488 * elf/dl-fini.c (_dl_sort_fini): Likewise.
15489
15490 * elf/Makefile (distribute): Add tst-initorder2.c.
15491 (tests): Add tst-initorder2.
15492 (modules-names): Add tst-initorder2a tst-initorder2b
15493 tst-initorder2c tst-initorder2d. Add rules to build them.
15494 ($(objpfx)tst-initorder2.out): New rule.
15495 * elf/tst-initorder2.c: New file.
15496 * elf/tst-initorder2.exp: New file.
15497
154982011-08-22 Andreas Schwab <schwab@redhat.com>
15499
15500 * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
15501
15502 * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
15503 dependencies back to end of function.
15504
15505 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15506 $(elfobjdir)/ld.so.
15507
155082011-08-21 Ulrich Drepper <drepper@gmail.com>
15509
15510 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
15511 * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
15512 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
15513 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
15514 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
15515 of __vdso_gettimeofday.
15516 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
15517 __vdso_gettimeofday and __vdso_time. Define __vdso_getcpu with
15518 attribute_hidden.
15519 (_libc_vdso_platform_setup): Remove initialization of
15520 __vdso_gettimeofday and __vdso_time.
15521
155222011-08-20 Ulrich Drepper <drepper@gmail.com>
15523
15524 * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
15525 and fgetc_unlocked.
15526 * nss/nss_files/files-key.c (search): Use fgets_unlocked and
15527 getc_unlocked.
15528
15529 * elf/dl-open.c (add_to_global): Report additions to the global scope
15530 for LD_DEBUG=scopes.
15531 (dl_open_worker): Also print scope of newly loaded dependencies.
15532 (_dl_show_scope): Indicate if there is no scope.
15533
15534 [BZ #13114]
15535 * stdio-common/Makefile (tests): Add bug24.
15536 * stdio-common/bug24.c: New file.
15537
155382011-08-19 Andreas Jaeger <aj@suse.de>
15539
15540 [BZ #13114]
15541 * libio/fileops.c (_IO_new_file_fopen): Fix handling of
15542 non-existant file when using close-on-exec mode.
15543
155442011-08-20 Ulrich Drepper <drepper@gmail.com>
15545
15546 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
15547 the very first instruction.
15548
15549 * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
15550 the CFI state in the end.
15551 * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
15552 inclusion of dl-trampoline.h.
15553 Based on a patch by Jiri Olsa <jolsa@redhat.com>.
15554
155552011-08-19 Andreas Schwab <schwab@redhat.com>
15556
15557 * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
15558 expectations for long double.
15559
15560 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
15561 from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
15562
155632011-08-14 David S. Miller <davem@davemloft.net>
15564
15565 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
15566 artificual limit depends upon the system page size.
15567
155682011-08-17 Ulrich Drepper <drepper@gmail.com>
15569
15570 * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
15571 * resolv/Makefile: Define CFLAGS-libresolv.
15572
155732011-08-17 Andreas Schwab <schwab@redhat.com>
15574
15575 * nss/makedb.c (compute_tables): Make variables used in nested
15576 function static.
15577
155782011-08-17 Ulrich Drepper <drepper@gmail.com>
15579
15580 * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
15581 * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
15582 if buffer was too small.
15583
15584 * elf/pldd.c (main): Attach to all threads in the process.
15585 Rewrite /proc handling to use *at functions.
15586
155872011-08-16 Ulrich Drepper <drepper@gmail.com>
15588
15589 * elf/dl-open.c (_dl_show_scope): Take additional parameter which
15590 specifies first scope to show.
15591 (dl_open_worker): Update callers. Move printing scope of new
15592 object to before the relocation.
15593 * elf/rtld.c (dl_main): Update _dl_show_scope call.
15594 * sysdeps/generic/ldsodefs.h: Update declaration.
15595
15596 * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
15597 string for the scope number.
15598
155992011-08-14 Ulrich Drepper <drepper@gmail.com>
15600
15601 * nscd/servicescache.c (cache_addserv): Make sure written is always
15602 initialized.
15603
156042011-08-14 Roland McGrath <roland@hack.frob.com>
15605
15606 * sysdeps/i386/i486/bits/atomic.h
15607 (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
15608 statement expression, so as to suppress "set but not used" warning.
15609 (__arch_c_compare_and_exchange_val_64_acq): Likewise.
15610
15611 * string/strncat.c (STRNCAT): Use prototype definition.
15612
15613 * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
15614 (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
15615 -Iprograms here.
15616 (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
15617 (localedef-modules): Add localedef.
15618 (locale-modules): Add locale.
15619
15620 * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
15621 * elf/rtld.c (dl_main): Invert order of assignment in last change,
15622 to avoid a warning.
15623
156242011-08-14 David S. Miller <davem@davemloft.net>
15625
15626 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
15627 RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
15628
156292011-08-13 Ulrich Drepper <drepper@gmail.com>
15630
15631 * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
15632 (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
15633 * elf/rtld.c (dl_main): Set l_name of vDSO.
15634 Call _dl_show_scope when DL_DEBUG_SCOPES.
15635 (process_dl_debug): Recognize scopes flag and also set it for all.
15636 * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
15637 Declare _dl_show_scope.
15638
15639 * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
15640 (do_dlopen): Pass caller_dlopen to dl_open.
15641 (__libc_dlopen_mode): Initialize caller_dlopen.
15642
15643 * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
15644 of libc. Make tolower call locale-independent. Optimize a bit by
15645 using isdigit instead of isalnum.
15646 * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
15647
156482011-08-12 Ulrich Drepper <drepper@gmail.com>
15649
15650 * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
15651 was a dependency or dynamically loaded.
15652
156532011-08-11 Ulrich Drepper <drepper@gmail.com>
15654
15655 * intl/l10nflist.c: Allow architecture-specific pop function.
15656 * sysdeps/x86_64/l10nflist.c: New file.
15657
15658 * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
15659 classification.
15660
156612011-08-10 Andreas Schwab <schwab@redhat.com>
15662
15663 * include/dirent.h: Add libc_hidden_proto for scandirat and
15664 scandirat64. Don't declare __scandirat64.
15665 * dirent/scandirat.c: Add libc_hidden_def.
15666 * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
15667 * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
15668
156692011-08-10 David S. Miller <davem@davemloft.net>
15670
15671 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
15672 enum.
15673 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15674 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15675 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15676
156772011-08-09 Ulrich Drepper <drepper@gmail.com>
15678
15679 * Versions.def [libc]: Add GLIBC_2.15.
15680 * dirent/Makefile (routines): Add scandirat and scandirat64.
15681 * dirent/Versions [libc]: Export scandirat and scandirat64 for
15682 GLIBC_2.15.
15683 * dirent/dirent.h: Declare scandirat and scandirat64.
15684 * dirent/scandirat.c: New file.
15685 * dirent/scandirat64.c: New file.
15686 * sysdeps/wordsize-64/scandirat.c: New file.
15687 * sysdeps/wordsize-64/scandirat64.c: New file.
15688 * dirent/opendir.c: Define opendirat.
15689 * dirent/scandir.c: Move code to scandirat.c. Implement scandir
15690 using scandirat.
15691 * dirent/scandir64.c: Adjust for scandir.c change.
15692 * include/dirent.h: Define scandir_cancel_struct. Declare __opendirat,
15693 __scandirat64, and __scandir_cancel_handler.
15694 * sysdeps/unix/opendir.c: Rename __opendir to __opendirat. Take
15695 additional parameter and use openat instead of open (outside of ld.so).
15696 Add new __opendir as wrapper around __opendirat.
15697 * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
15698 here without requiring old scandirat implementation.
15699
157002011-08-08 Ulrich Drepper <drepper@gmail.com>
15701
15702 * dirent/scandir.c (cancel_handler): Renamed to
15703 __scandir_cancel_handler. Do not define if SKIP_SCANDIR_CANCEL is
15704 defined. Adjust users.
15705 * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
15706 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15707
157082011-08-04 Ulrich Drepper <drepper@gmail.com>
15709
15710 * string/test-string.h (IMPL): Use __STRING to expand name and then
15711 stringify it.
15712
15713 * string/test-strcmp.c: Unify most of the WIDE and !WIDE code. Lots
15714 of cleanups.
15715
157162011-07-22 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
15717
15718 * string/Makefile: Update.
15719 (strop-tests): Append strncat.
15720 * string/test-wcscmp.c: New file.
15721 New comprehensive test for wcscmp.
15722 * string/test-strcmp.c: Update.
15723 (WIDE): New define.
15724
157252011-07-22 Andreas Schwab <schwab@redhat.com>
15726
15727 * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
15728 line.
15729
157302011-07-26 Andreas Schwab <schwab@redhat.com>
15731
15732 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
15733 encoding to ACE if AI_IDN.
15734
157352011-08-01 Jakub Jelinek <jakub@redhat.com>
15736
15737 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
15738 to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
15739
157402011-07-22 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
15741
15742 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
15743 Fix overflow bug in strncat.
15744 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
15745
15746 * string/test-strncat.c: Update.
15747 Add new tests for checking overflow bugs.
15748
157492011-07-15 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
15750
15751 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15752 strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
15753 * sysdeps/i386/i686/multiarch/strcat.S: New file.
15754 * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
15755 * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
15756 * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
15757 * sysdeps/i386/i686/multiarch/strncat.S: New file.
15758 * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
15759 * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
15760
15761 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
15762 (USE_AS_STRCAT): Define.
15763 Add strcat and strncat support.
15764 * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15765
157662011-07-25 Andreas Schwab <schwab@redhat.com>
15767
15768 * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
15769 __n bigger than INT_MAX+1.
15770 (__strncmp_g): Likewise.
15771
157722011-07-23 Ulrich Drepper <drepper@gmail.com>
15773
15774 * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
15775 * libio/stido.h: Likewise.
15776
15777 * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
15778 (AF_NFC): Define.
15779 * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
15780 (AF_NFC): Define.
15781
15782 * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
15783 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15784 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15785 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
15786 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15787
15788 [BZ #13021]
15789 * scripts/test-installation.pl: Don't expect libnss_test1 to be
15790 installed.
15791
15792 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
15793 typo.
15794 (_dl_x86_64_save_sse): Likewise.
15795
157962011-07-22 Ulrich Drepper <drepper@gmail.com>
15797
15798 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
15799 OSXSAVE.
15800 (_dl_x86_64_save_sse): Likewise.
15801
15802 * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
15803
15804 * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
15805
158062011-07-21 Andreas Schwab <schwab@redhat.com>
15807
15808 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
15809 change.
15810 (_dl_x86_64_save_sse): Use correct AVX check.
15811
158122011-07-21 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
15813
15814 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
15815 bug in strncpy/strncat.
15816 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
15817
158182011-07-21 Ulrich Drepper <drepper@gmail.com>
15819
15820 * string/tester.c (test_strcat): Add tests for different alignments
15821 of source and destination.
15822 (test_strncat): Likewise.
15823
158242011-07-20 Ulrich Drepper <drepper@gmail.com>
15825
15826 [BZ #12852]
15827 * posix/glob.c (glob): Check passed in values before using them in
15828 expressions to avoid some overflows.
15829 (glob_in_dir): Likewise.
15830
15831 [BZ #13007]
15832 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
15833 check for AVX enablement so that we don't crash with old kernels and
15834 new hardware.
15835 * elf/tst-audit4.c: Add same checks here.
15836 * elf/tst-audit6.c: Likewise.
15837
15838 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
15839
158402011-07-09 Andreas Schwab <schwab@linux-m68k.org>
15841
15842 * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
15843
158442011-07-20 Ulrich Drepper <drepper@gmail.com>
15845
15846 * po/cs.po: Update from translation team.
15847 * po/bg.po: Likewise.
15848
158492011-07-12 Marek Polacek <mpolacek@redhat.com>
15850
15851 * misc/sys/cdefs.h: Add support for const attribute.
15852 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
15853 to gnu_dev_{major,minor,makedev} functions.
15854
158552011-07-20 Marek Polacek <mpolacek@redhat.com>
15856
15857 * intl/dcigettext.c (get_output_charset): Add missing bracket.
15858
158592011-07-20 Andreas Schwab <schwab@redhat.com>
15860
15861 * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
15862 strlen results.
15863
158642011-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15865
15866 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
15867 (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
15868 register in order to avoid conflicts with the soft frame pointer
15869 being held in r11 when necessary.
15870 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
15871 (INTERNAL_VSYSCALL_NCS): Likewise.
15872
158732011-07-14 Marek Polacek <mpolacek@redhat.com>
15874
15875 * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
15876 * elf/dl-fini.c (_dl_fini): Adjust caller.
15877 * elf/dl-close.c (_dl_close_worker): Likewise.
15878 * sysdeps/generic/ldsodefs.h: Adjust declaration.
15879
158802011-07-15 Marek Polacek <mpolacek@redhat.com>
15881
15882 * elf/cache.c (load_aux_cache): Remove unnecessary condition of
15883 "aux_cache->nlibs < 0".
15884
15885 * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
15886 in the reload-count case.
15887
158882011-07-15 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
15889
15890 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15891 strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
15892 strncat-sse2-unaligned strncat-c strlen-sse2-pminub
15893 * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
15894 * sysdeps/x86_64/multiarch/strcat.S: New file.
15895 * sysdeps/x86_64/multiarch/strncat.S: New file.
15896 * sysdeps/x86_64/multiarch/strncat-c.c: New file.
15897 * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
15898 * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
15899 * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
15900 * sysdeps/x86_64/multiarch/strcpy-ssse3.S
15901 (USE_AS_STRCAT): Define.
15902 Add strcat and strncat support.
15903 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15904 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
15905 * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
15906 * string/strncat.c: Update.
15907 (USE_AS_STRNCAT): Define.
15908 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15909 Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
15910 and i7.
15911 * sysdeps/x86_64/multiarch/init-arch.h
15912 (bit_Prefer_PMINUB_for_stringop): New.
15913 (index_Prefer_PMINUB_for_stringop): Likewise.
15914 * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
15915 bit_Prefer_PMINUB_for_stringop.
15916
159172011-07-19 Ulrich Drepper <drepper@gmail.com>
15918
15919 * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
15920 buffer64.
15921 * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
15922 of casting of buffer.
15923 * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
15924 buffer32 and buffer64.
15925 * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
15926 writes instead of casting of buffer.
15927 * crypt/md5.h (struct md5_ctx): Move buffer into union and add
15928 buffer32.
15929 * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
15930 casting of buffer.
15931
159322011-07-19 Andreas Schwab <schwab@redhat.com>
15933
15934 * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
15935
159362011-07-19 Ulrich Drepper <drepper@gmail.com>
15937
15938 * nscd/nscd.c (termination_handler): Don't do anything for a database
15939 if it has not yet been initialized.
15940
159412011-07-18 Ulrich Drepper <drepper@gmail.com>
15942
15943 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15944
159452011-07-15 Marek Polacek <mpolacek@redhat.com>
15946
15947 * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15948
159492011-07-18 Ulrich Drepper <drepper@gmail.com>
15950
15951 * po/nl.po: Update from translation team.
15952 * po/sv.po: Likewise.
15953
159542011-07-16 Roland McGrath <roland@hack.frob.com>
15955
15956 * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
15957 now disallowed by GCC.
15958
15959 * configure.in (use-default-link): Default to yes if a test -shared
15960 link meets our qualifications.
15961 * configure: Regenerated.
15962
15963 * config.make.in (output-format): New variable.
15964 * configure.in: Check for ld --print-output-format support.
15965 * configure: Regenerated.
15966 * Makerules ($(common-objpfx)format.lds)
15967 [$(output-format) != unknown]: Just use $(output-format),
15968 instead of the linker-script munging.
15969
159702011-07-14 Roland McGrath <roland@hack.frob.com>
15971
15972 * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
15973 of $(common-objpfx)shlib.lds.
15974 * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
15975
15976 * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
15977 Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
15978
15979 * configure.in (-z relro check): Adjust test code to add a large
15980 writable data section after it.
15981 * configure: Regenerated.
15982
159832011-07-11 Roland McGrath <roland@hack.frob.com>
15984
15985 * configure.in (-z relro check): Fix test code to make the variable
15986 truly const.
15987 * configure: Regenerated.
15988
159892011-07-11 Ulrich Drepper <drepper@gmail.com>
15990
15991 * nscd/nscd.h (struct traced_file): Define.
15992 (struct database_dyn): Remove inotify_descr, reset_res, and filename
15993 elements. Add traced_files.
15994 (inotify_fd): Declare.
15995 (register_traced_file): Declare.
15996 * nscd/connections.c (dbs): Remove reset_res and filename initializers.
15997 (inotify_fd): Export.
15998 (resolv_conf_descr): Remove.
15999 (nscd_init): Move inotify descriptor creation to main.
16000 Don't register files for notification here.
16001 (register_traced_file): New function.
16002 (invalidate_cache): Don't use reset_res to determine whether to call
16003 res_init, go through the list of registered files.
16004 (main_loop_poll): The inotify descriptors are now stored in the
16005 structures for the traced files.
16006 (main_loop_epoll): Likewise
16007 * nscd/nscd.c (main): Create inotify socket here. Pass extra argument
16008 to __nss_disable_nscd.
16009 * nscd/cache.c (prune_cache): There is no single inotify descriptor
16010 for a database anymore. Check the records for all the registered
16011 files instead.
16012 * nss/Makefile (libnss_files-routines): Add files-init.
16013 (libnss_db-routines): Add db-init.
16014 * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16015 [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16016 * nss/nss_db/db-init.c: New file.
16017 * nss/nss_files/files-init.c: New file.
16018 * nss/nsswitch.c (nss_load_library): New function. Broken out of
16019 __nss_lookup_function.
16020 (__nss_lookup_function): Call nss_load_library.
16021 (nss_load_all_libraries): New function.
16022 (__nss_disable_nscd): Take parameter with callback function for files
16023 to register. Set is_nscd. Load all the DSOs for the NSS modules
16024 used for the cached services.
16025 * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16026 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16027 options for features to all the files in nscd.
16028
16029 * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16030
160312011-07-10 Roland McGrath <roland@hack.frob.com>
16032
16033 * csu/elf-init.c (__libc_csu_init): Comment typo.
16034
160352011-07-09 Ulrich Drepper <drepper@gmail.com>
16036
16037 * po/pl.po: Update from translation team.
16038 * po/ja.po: Likewise.
16039 * po/ru.po: Likewise.
16040 * po/ko.po: Likewise.
16041 * po/fr.po: Likewise.
16042
160432011-07-09 Roland McGrath <roland@hack.frob.com>
16044
16045 * configure.in (.ctors/.dtors header and trailer check):
16046 Use an empirical test on a built program.
16047 * configure: Regenerated.
16048
16049 * configure.in (-z relro check): Use an empirical test on a built DSO.
16050 Detect, but do not require, on ia64.
16051 * configure: Regenerated.
16052
16053 * configure.in (READELF): Find it with AC_CHECK_TOOL.
16054 Update tests that use readelf to use $READELF instead.
16055 * configure: Regenerated.
16056
160572011-07-08 Ulrich Drepper <drepper@gmail.com>
16058
16059 * malloc/hooks.c (memalign_check): Avoid using checked_request2size
16060 if the result is not used.
16061
160622011-07-05 Andreas Jaeger <aj@suse.de>
16063
16064 [BZ#9696]
16065 * stdlib/tst-strtod.c: Add testcase.
16066
160672011-07-07 Ulrich Drepper <drepper@gmail.com>
16068
16069 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
16070 (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
16071 The latter has a higher limit. Take additional parameter to pass to
16072 the new function.
16073 (__pathconf): Pass file to __statfs_link_max.
16074 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
16075 __statfs_link_max.
16076 * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
16077 __statfs_link_max.
16078
16079 [BZ #12868]
16080 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
16081 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16082 Handle Lustre.
16083 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
16084 (__statfs_filesize_max): Likewise.
16085 Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
16086
160872011-07-05 Andreas Jaeger <aj@suse.de>
16088
16089 * resolv/res_comp.c (dn_skipname): Remove unused variable.
16090
160912011-07-06 Marek Polacek <mpolacek@redhat.com>
16092
16093 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
16094 `status' variable.
16095 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
16096 Likewise.
16097
160982011-07-04 H.J. Lu <hongjiu.lu@intel.com>
16099
16100 * Makefile (strop-tests): Add strncat.
16101 * string/test-strncat.c: New file.
16102
161032011-06-30 Marek Polacek <mpolacek@redhat.com>
16104
16105 * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16106
161072011-06-21 Andreas Jaeger <aj@suse.de>
16108
16109 * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16110 Copy rule from iconvdata/Makefile.
16111
161122011-07-06 Ulrich Drepper <drepper@gmail.com>
16113
16114 [BZ #12922]
16115 * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
16116 but no long options are defined, just return 'W'.
16117
161182011-06-22 Marek Polacek <mpolacek@redhat.com>
16119
16120 [BZ #9696]
16121 * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
16122
161232011-07-06 Ulrich Drepper <drepper@gmail.com>
16124
16125 * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
16126 netgroups to read.
16127 (innetgr): Likewise.
16128
161292011-07-05 Roland McGrath <roland@hack.frob.com>
16130
16131 * config.make.in (install_root): Default to $(DESTDIR).
16132
161332011-07-05 Ulrich Drepper <drepper@gmail.com>
16134
16135 * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
16136
161372011-07-02 Roland McGrath <roland@hack.frob.com>
16138
16139 * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
16140
16141 * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
16142 containing directory rather than embedding absolute directory names.
16143
16144 * scripts/check-local-headers.sh: Rewritten using awk.
16145 Match by word, not by line. Print error messages for matches.
16146 * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
16147
16148 * Makerules [shlib-lds-flags empty]:
16149 ($(common-objpfx)libc_pic.opts): New target.
16150 ($(common-objpfx)libc_pic.os.clean): New target.
16151 ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
16152
16153 * config.make.in (OBJCOPY): New variable.
16154 * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
16155 * configure: Regenerated.
16156
16157 * config.make.in (use-default-link): New variable.
16158 * configure.in (use_default_link): Grok --with-default-link to set it.
16159 * configure: Regenerated.
16160 * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
16161 (shlib-lds, shlib-lds-flags): Define to empty.
16162
16163 * Makerules (shlib-lds): New variable.
16164 (shlib-lds-flags): New variable.
16165 (build-shlib, build-moduile, build-module-asneeded): Use it.
16166 ($(common-objpfx)libc.so): Use $(shlib-lds).
16167 ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
16168 * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
16169
16170 * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
16171 DT_FLAGS/DT_FLAGS_1 with zero flags.
16172
16173 * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16174 linker script munging.
16175
161762011-07-02 Ulrich Drepper <drepper@gmail.com>
16177
16178 * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16179 as 128-bit value.
16180 * crypt/sha512.c (sha512_process_block): Perform total addition using
16181 128-bit if possible.
16182 (__sha512_finish_ctx): Likewise.
16183 * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16184 as 64-bit value.
16185 * crypt/sha256.c (SWAP64): Define.
16186 (sha256_process_block): Perform total addition using 64-bit if
16187 possible.
16188 (__sha256_finish_ctx): Likewise.
16189
161902011-07-01 Ulrich Drepper <drepper@gmail.com>
16191
16192 * nscd/pwdcache.c (cache_addpw): Cleanup. Add branch prediction.
16193 * nscd/initgrcache.c (addinitgroupsX): Likewise.
16194 * nscd/hstcache.c (cache_addhst): Likewise.
16195 * nscd/grpcache.c (cache_addgr): Likewise.
16196 * nscd/aicache.c (addhstaiX): Likewise
16197 * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16198
161992011-07-01 Thorsten Kukuk <kukuk@suse.de>
16200
16201 * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16202 * nscd/initgrcache.c (addinitgroupsX): Likewise.
16203 * nscd/hstcache.c (cache_addhst): Likewise.
16204 * nscd/grpcache.c (cache_addgr): Likewise.
16205 * nscd/aicache.c (addhstaiX): Likewise
16206
162072011-07-01 Andreas Schwab <schwab@redhat.com>
16208
16209 * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16210 domain only when needed.
16211
162122011-06-30 Andreas Schwab <schwab@redhat.com>
16213
16214 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16215 is always restored.
16216
162172011-06-29 Ulrich Drepper <drepper@gmail.com>
16218
16219 * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16220 are re-adding the entry.
16221 * nscd/servicescache.c (cache_addserv): Likewise.
16222
162232011-06-30 Aurelien Jarno <aurelien@aurel32.net>
16224
16225 * sysdeps/generic/dl-irel.h: fix protection against multiple
16226 inclusions.
16227 * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16228
162292011-06-28 Ulrich Drepper <drepper@gmail.com>
16230
16231 [BZ #12935]
16232 * malloc/memusage.sh: Fix quoting in message.
16233 * debug/xtrace.sh: Likewise.
16234
16235 * configure.in: Remove support for --experimental-malloc option, make
16236 it the default.
16237 * config.make.in: Likewise.
16238 * malloc/Makefile: Likewise.
16239
162402011-06-27 Andreas Schwab <schwab@redhat.com>
16241
16242 * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16243 two-byte characters.
16244
162452011-06-27 Roland McGrath <roland@hack.frob.com>
16246
16247 * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16248 AC_CACHE_CHECK invocation.
16249 * configure: Regenerated.
16250
16251 * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16252
162532011-06-27 Ulrich Drepper <drepper@gmail.com>
16254
16255 [BZ #12350]
16256 * nscd/aicache.c (addhstaiX): Restore only RES_USE_INET6
16257 bit from old_res_options.
16258
16259 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16260
16261 * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16262 value type for setfct.
16263
162642011-06-23 H.J. Lu <hongjiu.lu@intel.com>
16265
16266 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16267 __gettimeofday instead of gettimeofday.
16268
162692011-06-26 Ulrich Drepper <drepper@gmail.com>
16270
16271 * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16272
162732011-06-24 H.J. Lu <hongjiu.lu@intel.com>
16274
16275 * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16276
16277 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16278 info.
16279
162802011-06-22 H.J. Lu <hongjiu.lu@intel.com>
16281
16282 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16283 strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16284 strcpy-sse2-unaligned strncpy-sse2-unaligned
16285 stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16286 * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16287 * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16288 * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16289 * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16290 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16291 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16292 * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16293 * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16294 * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16295 (STRCPY): Support SSE2 and SSSE3 versions.
16296
162972011-06-24 Ulrich Drepper <drepper@gmail.com>
16298
16299 [BZ #12874]
16300 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16301 * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16302 kernels which artificially limit size of requests.
16303
163042011-06-22 H.J. Lu <hongjiu.lu@intel.com>
16305
16306 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16307 strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16308 strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16309 * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16310 * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16311 * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16312 * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16313 * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16314 * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16315 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16316 * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16317 * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16318 * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16319 * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16320 * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16321 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16322 Enable unaligned load optimization for Intel Core i3, i5 and i7
16323 processors.
16324 * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16325 Define.
16326 (index_Fast_Unaligned_Load): Define.
16327 (HAS_FAST_UNALIGNED_LOAD): Define.
16328
163292011-06-23 Marek Polacek <mpolacek@redhat.com>
16330
16331 * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16332
163332011-06-22 Ulrich Drepper <drepper@gmail.com>
16334
16335 [BZ #12907]
16336 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16337 until it is clear that the information is realy needed.
16338 Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16339
163402011-06-22 Andreas Schwab <schwab@redhat.com>
16341
16342 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16343
163442011-06-22 Ulrich Drepper <drepper@gmail.com>
16345
16346 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16347 /sys/devices/system/cpu/online if it is usable.
16348
16349 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16350 reading the information from the /proc filesystem to once a second.
16351
163522011-06-21 Andreas Jaeger <aj@suse.de>
16353
16354 * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16355 NULL after inclusion of kernel headers.
16356
163572011-06-21 Ulrich Drepper <drepper@gmail.com>
16358
16359 * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16360 calls to internal_setent.
16361
16362 [BZ #12885]
16363 * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16364 addresses using gethostbyname4_r ignore IPv4 addresses.
16365
16366 * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16367 branch using gethostbyname2 is only for AF_INET. Optimize accordingly.
16368
16369 * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16370
163712011-06-20 David S. Miller <davem@davemloft.net>
16372
16373 * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16374 inclusions.
16375 * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16376
16377 * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16378 (elf_irel): Use it.
16379 * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16380 * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16381 * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16382 * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16383 * sysdeps/x86_64/dl-irel.h: Likewise.
16384
16385 * elf/dl-runtime.c: Use elf_ifunc_invoke.
16386 * elf/dl-sym.c: Likewise.
16387
163882011-06-15 Ulrich Drepper <drepper@gmail.com>
16389
16390 * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch. We
16391 need to dereference resplen2.
16392
163932011-06-14 Andreas Schwab <schwab@redhat.com>
16394
16395 * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16396
163972011-06-15 Ulrich Drepper <drepper@gmail.com>
16398
16399 * Makeconfig: Define vardbdir and inst_vardbdir.
16400 * nss/Makefile: Add rules to install db-Makefile.
16401
16402 * nss/nss_db/db-XXX.c: Cleanup.
16403
16404 * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16405 * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16406 GLIBC_PRIVATE.
16407 * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16408 * nss/makedb.c: Implement -g option to specify that value strings
16409 are generated and should not be added to table iterated over for
16410 get*ent calls.
16411 * nss/nss_db/db-initgroups.c: New file.
16412
16413 * nss/getent.c: Add support for initgroups lookups through getgrouplist
16414 interface.
16415
16416 * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16417 (internal_getgrouplist): Adjust to name change.
16418 Update use_initgroups_entry if this is not the first call.
16419 * nss/databases.def: Add initgroups entry.
16420
16421 * nss/makedb.c (compute_tables): Check result of multiple hash table
16422 sizes to minimize maximum chain length.
16423
164242011-06-14 Ulrich Drepper <drepper@gmail.com>
16425
16426 * Versions.def: Add entry for libnss_db.
16427 * shlib-versions: Likewise.
16428 * nss/Makefile: Add rules to build libnss_db.
16429 * nss/Versions: Add libnss_db information. Organize libnss_files
16430 entries better.
16431 * nss/db-Makefile: Add gshadow support. Change rules for the new
16432 makedb progra. Some minor improvements to generate smaller files.
16433 * nss/nss_db/nss_db.h: Move NSS database header data structures to
16434 here from...
16435 * nss/makedb.c: ...here.
16436 Improve database format to be smaller and require less memory at
16437 runtime.
16438 * nss/nss_db/db-XXX.x: Adjust for new database format. Don't use
16439 db anymore.
16440 * nss/nss_db/db-netgrp.c: Likewise.
16441 * nss/nss_db/db-open.c: Likewise.
16442 * nss/nss_files/flies-XXX.x: Adjust comments.
16443 * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16444 * nss/nss_files/files-grp.c: Likewise.
16445 * nss/nss_files/files-hosts.c: Likewise.
16446 * nss/nss_files/files-network.c: Likewise.
16447 * nss/nss_files/files-proto.c: Likewise.
16448 * nss/nss_files/files-pwd.c: Likewise.
16449 * nss/nss_files/files-rpc.c: Likewise.
16450 * nss/nss_files/files-service.c: Likewise.
16451 * nss/nss_files/files-sgrp.c: Likewise.
16452 * nss/nss_files/files-spwd.c: Likewise.
16453 * nss/nss_db/db-alias.c: Removed.
16454 * nss/nss_db/dummy-db.h: Removed.
16455
164562011-06-02 Ulrich Drepper <drepper@gmail.com>
16457
16458 * nss/makedb.c: Rewritten to not use database library.
16459 * nss/Makefile: Update to build new makedb program.
16460
164612011-06-14 Andreas Jaeger <aj@suse.de>
16462
16463 * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16464 memset declaration.
16465
164662011-06-10 Andreas Schwab <schwab@redhat.com>
16467
16468 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16469 tmpbuf.
16470
164712011-06-10 Roland McGrath <roland@hack.frob.com>
16472
16473 * Makerules (shlib.lds): Fail if the linker script comes out empty.
16474 * elf/Makefile ($(objpfx)ld.so): Likewise.
16475
16476 * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16477 Don't list ld.so twice in dependencies.
16478
16479 * posix/bug-regex31.c: Include <stdlib.h>.
16480
16481 * nscd/hstcache.c (cache_addhst): Remove unused variable.
16482
16483 * nis/nss_compat/compat-spwd.c
16484 (getspent_next_nss_netgr): Remove unused variable.
16485 * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16486
16487 * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16488 nonmembers" output to use the right array.
16489
16490 * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16491
16492 * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16493
16494 * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
16495 * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
16496 * catgets/gencat.c (read_input_file): Likewise.
16497 * locale/programs/locarchive.c (enlarge_archive): Likewise.
16498
16499 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
16500 variable definition inside #if's controlling its use.
16501
16502 * inet/getnetgrent_r.c (innetgr): Remove unused variable.
16503
16504 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
16505
16506 * misc/syslog.c (__vsyslog_chk): Remove unused variable.
16507
16508 * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
16509 unreachable code.
16510
16511 * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
16512
16513 * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
16514 * configure: Regenerated.
16515
16516 * Makerules: Revert last change.
16517 * elf/Makefile: Likewise.
16518
165192011-06-09 Roland McGrath <roland@hack.frob.com>
16520
16521 * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
16522 * elf/Makefile ($(objpfx)librtld.os): Likewise.
16523 (reloc-link): Likewise.
16524
165252011-06-09 Ulrich Drepper <drepper@gmail.com>
16526
16527 * elf/Makefile: Add rules to build pldd.
16528 * elf/pldd.c: New file.
16529 * elf/pldd-xx.c: New file.
16530
165312011-06-07 Ulrich Drepper <drepper@gmail.com>
16532
16533 * version.h: Update for 2.15 development version.
16534
165352011-06-07 David S. Miller <davem@davemloft.net>
16536
16537 * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
16538 ifuncs.
16539 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
16540 elf_machine_lazy_rel): Likewise.
16541 * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
16542 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
16543 elf_machine_lazy_rel): Likewise.
16544 * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
16545 dl_hwcap via passed in argument.
16546 * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
16547 Likewise.
16548
165492011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16550
16551 * stdlib/longlong.h: Update from GCC. Fix smul_ppmm for S/390.
16552
165532011-06-06 Roland McGrath <roland@hack.frob.com>
16554
16555 [BZ #12849]
16556 * manual/fdl-1.1.texi: New file, verbatim from:
16557 http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
16558 * manual/lgpl-2.1.texi: New file, verbatim from:
16559 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
16560 * manual/Makefile (licenses): New variable, list those new file names.
16561 (texis): Use it.
16562 (chapters.% top-menu.%): Include $(licenses) with $(appendices).
16563
16564 * manual/fdl.texi: File removed.
16565 * manual/lesser.texi: File removed.
16566 * manual/libc.texinfo (Copying, Documentation License):
16567 Use new @include file names, put @appendix directive before @include.
16568
165692011-06-04 Jakub Jelinek <jakub@redhat.com>
16570
16571 [BZ #12841]
16572 * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
16573 (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
16574 (mq_open): Add __NTH.
16575
165762011-06-02 H.J. Lu <hongjiu.lu@intel.com>
16577
16578 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16579 Assume Intel Core i3/i5/i7 processor if AVX is available.
16580
165812011-05-31 Ulrich Drepper <drepper@gmail.com>
16582
16583 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16584 typo.
16585
165862011-05-31 Andreas Schwab <schwab@redhat.com>
16587
16588 * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
16589 memory. Use alloca_account. Fix memory leak when retrying.
16590
165912011-05-31 Ulrich Drepper <drepper@gmail.com>
16592
16593 * version.h (RELEASE): Bump for 2.14 release.
16594 * include/features.h (__GLIBC_MINOR__): Bump to 14.
16595
16596 * config.make.in (RANLIB): Remove entry.
16597
165982011-05-30 Ulrich Drepper <drepper@gmail.com>
16599
16600 * po/Makefile (po-sed-cmd): Add ksh to extensions.
16601 (libc.pot): Work around missing support for .ksh extension in xgettext.
16602
16603 [BZ #12684]
16604 * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
16605 if both request failed.
16606 (send_dg): In case of server errors clear resplen or *resplen2.
16607
16608 [BZ #12454]
16609 * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
16610 when there are multiple maps.
16611 * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
16612 (_dl_fini): Remove test here.
16613
16614 * elf/rtld.c (dl_main): Don't allow the loader to load itself.
16615
166162011-05-29 Ulrich Drepper <drepper@gmail.com>
16617
16618 [BZ #12350]
16619 * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
16620 bit from old_res_options.
16621 (gaih_inet): Likewise.
16622
16623 [BZ #11099]
16624 * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
16625 as signed.
16626
16627 * resolv/res_init.c (res_setoptions): Make the code more compact.
16628
16629 [BZ #11558]
16630 * resolv/res_init.c (res_setoptions): Recognize use-vc option and
16631 set RES_USEVC.
16632
16633 [BZ #11634]
16634 * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
16635
16636 * malloc/malloc.h: Mark malloc hook variables as deprecated.
16637
16638 [BZ #11781]
16639 * malloc/malloc.h: Declare malloc hook variables as volatile.
16640
16641 * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
16642 in last patch.
16643
16644 [BZ #11799]
16645 * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
16646 raise in the comment.
16647 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
16648 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16649 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
16650
166512011-05-28 Ulrich Drepper <drepper@gmail.com>
16652
16653 [BZ #12811]
16654 * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
16655 grow the buffers more if it already has to be sufficient.
16656 (build_wcs_upper_buffer): Likewise.
16657 * posix/regexec.c (check_matching): Likewise.
16658 (clean_state_log_if_needed): Likewise.
16659 (extend_buffers): Don't enlarge buffers beyond size of the input
16660 buffer.
16661 Patches mostly by Emil Wojak <emil@wojak.eu>.
16662 * posix/bug-regex32.c: New file.
16663 * posix/Makefile (tests): Add bug-regex32.
16664
16665 * locale/findlocale.c (_nl_find_locale): Return right away if
16666 _nl_explode_name failed.
16667 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
16668
16669 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
16670
16671 * debug/xtrace.sh: Unify messages.
16672 * malloc/memusage.sh: Likewise.
16673
16674 [BZ #12813]
16675 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
16676 time symbol from vDSO. Substitute with vsyscall if not available.
16677 * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
16678 __vdso_time.
16679
16680 * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
16681 * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
16682 * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
16683 Add sendmmsg and internal_sendmmsg.
16684 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
16685 * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
16686 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
16687
16688 * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
16689 * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
16690 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
16691
166922011-05-27 Ulrich Drepper <drepper@gmail.com>
16693
16694 [BZ #12813]
16695 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
16696 Retrieve getcpu symbol from vDSO. Substitute with vsyscall if not
16697 available.
16698 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
16699 __vdso_getcpu.
16700
16701 [BZ #12814]
16702 * iconvdata/Makefile (tests): Add bug-iconv9.
16703 * iconvdata/bug-iconv9.c: New file.
16704
167052011-05-27 Andreas Schwab <schwab@redhat.com>
16706
16707 [BZ #12814]
16708 * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
16709
167102011-05-25 Jakub Jelinek <jakub@redhat.com>
16711
16712 * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16713 (struct user_regs_struct): Change intcs field back to cs.
16714
167152011-05-25 Ulrich Drepper <drepper@gmail.com>
16716
16717 * po/ja.po: Update from translation team.
16718
167192011-05-23 Ulrich Drepper <drepper@gmail.com>
16720
16721 [BZ #12795]
16722 * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
16723 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
16724
167252011-05-20 Andreas Schwab <schwab@redhat.com>
16726
16727 * stdlib/longlong.h: Update from GCC.
16728
167292011-05-23 Andreas Schwab <schwab@redhat.com>
16730
16731 * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
16732 parameter name.
16733 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
16734 Add parameter name.
16735 (__sysconf): Pass it down.
16736
167372011-05-22 Ulrich Drepper <drepper@gmail.com>
16738
16739 [BZ #12671]
16740 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
16741 some situations.
16742 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
16743 * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
16744 add in in __libc_use_alloca calls. Adjust callers.
16745 (glob): Use malloc in some situations.
16746
16747 * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
16748 and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
16749 pltexit.
16750
167512011-05-21 Ulrich Drepper <drepper@gmail.com>
16752
16753 * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
16754 and CLOCK_BOOTTIME_ALARM.
16755
16756 [BZ #12782]
16757 * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
16758 is returned.
16759
16760 * string/_strerror.c (__strerror_r): Print negative errors as signed
16761 numbers.
16762
16763 [BZ #12777]
16764 * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
16765 (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
16766 * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
16767
16768 * configure.in: Fix typo in redirection and correct removal of test
16769 files in two cases.
16770
16771 [BZ #12788]
16772 * locale/setlocale.c (new_composite_name): Fix test to check for
16773 identical name of all categories.
16774
16775 [BZ #12792]
16776 * libio/filedoalloc.c (local_isatty): New function.
16777 (_IO_file_doallocate): Use local_isatty.
16778 * stdio-common/perror.c (perror): In case a new stream is used
16779 forward the stream error.
16780 * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
16781 error flag.
16782
167832011-05-20 Ulrich Drepper <drepper@gmail.com>
16784
16785 [BZ #11869]
16786 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
16787 alloca.
16788 * include/alloca.h (extend_alloca_account): Define.
16789
16790 [BZ #11857]
16791 * posix/regex.h: Fix comments with documentation of user-accessible
16792 fields after compilation and describe correct free'ing of pattern
16793 after re_compile_pattern.
16794 Patch by Reuben Thomas <rrt@sc3d.org>.
16795
167962011-05-18 Ryan S. Arnold <rsa@us.ibm.com>
16797
16798 * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
16799 and -mno-altivec to prevent the compiler from using Altivec and/or
16800 VSX instructions when the corresponding registers are not available.
16801
168022011-05-19 Andreas Schwab <schwab@redhat.com>
16803
16804 * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
16805
168062011-05-19 Ulrich Drepper <drepper@gmail.com>
16807
16808 * libio/freopen.c (freopen): Use __dup2, not dup2.
16809 * libio/freopen64.c (freopen64): Likewise.
16810
168112011-05-17 H.J. Lu <hongjiu.lu@intel.com>
16812
16813 [BZ #12775]
16814 * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
16815 * math/Makefile (tests): Add test-powl.
16816 (CFLAGS-test-powl.c): Define.
16817 * math/test-powl.c: New file.
16818
168192011-05-16 H.J. Lu <hongjiu.lu@intel.com>
16820
16821 * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
16822
168232011-05-17 Ulrich Drepper <drepper@gmail.com>
16824
16825 [BZ #11837]
16826 * iconvdata/gb18030.c: Update to GB18020-2005.
16827
168282011-05-16 Ulrich Drepper <drepper@gmail.com>
16829
16830 * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
16831 RE_SYNTAX_POSIX_AWK): Update to match recent development.
16832 Patch by Aharon Robbins <arnold@skeeve.com>.
16833
16834 [BZ #11892]
16835 * stdlib/putenv.c (putenv): Don't always create copy of the variable
16836 on the stack.
16837
16838 [BZ #11895]
16839 * misc/pselect.c (__pselect): Handle timeout value errors hidden
16840 through underflows.
16841
16842 [BZ #12766]
16843 * misc/error.c (error_at_line): Ensure file_name and old_file_name
16844 point to strings before performing equality test for error_one_per_line
16845 mode.
16846
16847 [BZ #11697]
16848 * login/programs/pt_chown.c (do_pt_chown): Always call chown.
16849
16850 [BZ #11820]
16851 * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16852 (struct user_fpregs_struct): Avoid __uint*_t types.
16853
16854 [BZ #6420]
16855 * malloc/mtrace.c (tr_where): Add additional parameter to point to
16856 symbol info. Use it instead of calling _dl_addr locally.
16857 (lock_and_info): New function.
16858 (tr_freehook): Call lock_and_info and pass symbol info as additional
16859 parameter to tr_where.
16860 (tr_mallochook): Likewise.
16861 (tr_reallochook): Likewise.
16862 (tr_memalignhook): Likewise.
16863
16864 * malloc/mtrace.c: Remove support for USE_MTRACE_FILE. It is not
16865 used and couldn't be at all thread-safe.
16866
168672011-05-15 Ulrich Drepper <drepper@gmail.com>
16868
16869 * libio/freopen.c (freopen): Don't close old file descriptor
16870 before the new one is opened. Instead dup the new file descriptor
16871 to the old one after the new stream is created.
16872 * libio/freopen64.c (freopen64): Likewise.
16873 * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
16874 * libio/fileops.c (_IO_new_file_close_it): Handle new
16875 _IO_FLAGS2_NOCLOSE flag.
16876 (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
16877 If _IO_file_open didn't set FD_CLOEXEC do it after the call.
16878 * libio/oldfileops.c (_IO_old_file_close_it): Handle new
16879 _IO_FLAGS2_NOCLOSE flag.
16880 * include/unistd.h: Add hidden_proto for dup3.
16881 Define __have_dup3.
16882 * io/dup3.c: Define hidden symbol.
16883 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
16884
16885 [BZ #7101]
16886 * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
16887 when an incomplete long option is used.
16888 * posix/tst-getopt_long1.c: New file.
16889 * posix/Makefile (tests): Add tst-getopt_long1.
16890
16891 [BZ #10138]
16892 * scripts/config.guess: Update from autoconf-2.68.
16893 * scripts/config.sub: Likewise.
16894
16895 [BZ #10157]
16896 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
16897 tests into ...
16898 (has_cpuclock): ...this. New function.
16899 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
16900 macro here based on has_cpuclock code.
16901
16902 [BZ #10149]
16903 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16904 First byte (not low byte) is now always NUL.
16905 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
16906
16907 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16908 Use non-cancelable interfaces.
16909
16910 [BZ #9809]
16911 * locale/iso-639.def: Add entry for Sorani.
16912
16913 [BZ #11901]
16914 * include/stdlib.h: Move include protection to the right place.
16915 Define abort_msg_s. Declare __abort_msg with it.
16916 * stdlib/abort.c (__abort_msg): Adjust type.
16917 * assert/assert.c (__assert_fail_base): New function. Majority
16918 of code from __assert_fail. Allocate memory for __abort_msg with
16919 mmap.
16920 (__assert_fail): Now call __assert_fail_base.
16921 * assert/assert-perr.c: Remove bulk of implementation. Use
16922 __assert_fail_base.
16923 * include/assert.hL Declare __assert_fail_base.
16924 * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
16925 mmap.
16926 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
16927
169282011-05-14 Ulrich Drepper <drepper@gmail.com>
16929
16930 [BZ #11952]
16931 [BZ #12453]
16932 * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
16933 until all modules are registered in the DTV.
16934 * elf/Makefile: Add rules to build and run tst-tls19.
16935 * elf/tst-tls19.c: New file.
16936 * elf/tst-tls19mod1.c: New file.
16937 * elf/tst-tls19mod2.c: New file.
16938 * elf/tst-tls19mod3.c: New file.
16939 Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
16940
16941 [BZ #12083]
16942 * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
16943 correctly.
16944
16945 [BZ #12601]
16946 * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
16947 two-byte sequence errors.
16948 * iconvdata/Makefile (tests): Add bug-iconv8.
16949 * iconvdata/bug-iconv8.c: New file.
16950
16951 [BZ #12626]
16952 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
16953 buf2 definition.
16954
16955 * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
16956
16957 [BZ #12432]
16958 * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
16959 (dummy_getcfa): New function.
16960 (init): Get _Unwind_GetCFA address, use dummy if not found.
16961 (backtrace_helper): In recursion check, also check whether CFA changes.
16962 (__backtrace): Completely initialize arg.
16963
16964 * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
16965 storing incomplete byte sequence in state object. Avoid testing for
16966 guaranteed too small input if we know there is enough data available.
16967
169682011-05-11 Andreas Schwab <schwab@redhat.com>
16969
16970 * Makeconfig (+link-pie): Indent.
16971 * Rules (binaries-pie): Define if $(have-fpie) and
16972 $(build-shared).
16973 (binaries-shared): Also filter out $(binaries-pie).
16974 ($(addprefix $(objpfx),$(binaries-pie))): New rule.
16975 * nscd/Makefile (others-pie): Add nscd.
16976 (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
16977 ($(objpfx)nscd): Remove command override.
16978 * login/Makefile (others-pie): Add pt_chown.
16979 ($(objpfx)pt_chown): Remove command override.
16980 * elf/Makefile: Add PIE tests to tests and tests-pie variables and
16981 remove command overrides.
16982
169832011-05-13 Ulrich Drepper <drepper@gmail.com>
16984
16985 * libio/tst_putwc.c: Fix error messages.
16986
16987 [BZ #12724]
16988 * libio/fileops.c (_IO_new_file_close_it): Always flush when
16989 currently writing and seek to current position when not.
16990 * libio/Makefile (tests): Add bug-fclose1.
16991 * libio/bug-fclose1.c: New file.
16992
169932011-05-12 Ulrich Drepper <drepper@gmail.com>
16994
16995 [BZ #12511]
16996 * elf/dl-lookup.c (enter): Don't test for copy relocation here and
16997 don't set DF_1_NODELETE here.
16998 (do_lookup_x): When entering new entry test for copy relocation
16999 and if necessary set DF_1_NODELETE flag.
17000 * elf/tst-unique4.cc: New file.
17001 * elf/tst-unique4.h: New file.
17002 * elf/tst-unique4lib.cc: New file.
17003 * elf/Makefile: Add rules to build and run tst-unique4.
17004 Patch by Piotr Bury <pbury@goahead.com>.
17005
170062011-05-11 Ulrich Drepper <drepper@gmail.com>
17007
17008 [BZ #12052]
17009 * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17010
17011 [BZ #12625]
17012 * misc/mntent_r.c (addmntent): Flush the stream after the output
17013
17014 [BZ #12393]
17015 * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17016 (is_trusted_path_normalize): Skip initial colon. Append slash
17017 to empty buffer. Duplicate is_trusted_path code but allow
17018 constructed patch to be prefix.
17019 (is_dst): Allow $ORIGIN followed by /.
17020 (_dl_dst_substitute): Correct clearing of check_for_trusted.
17021 Correct testing of result of is_trusted_path_normalize
17022 (decompose_rpath): Fix warning.
17023
170242011-05-10 Ulrich Drepper <drepper@gmail.com>
17025
17026 [BZ #11257]
17027 * grp/initgroups.c (internal_getgrouplist): When we found the service
17028 list through the initgroups entry in nsswitch.conf do not always
17029 continue on a successful lookup. Don't always use the
17030 __nss_group_database value if it is set.
17031 * nss/nsswitch.conf (initgroups): Change action for successful db
17032 lookup to continue for compatibility.
17033
170342011-05-09 Ulrich Drepper <drepper@gmail.com>
17035
17036 [BZ #11532]
17037 * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17038 and CP774 modules.
17039 * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17040 and CP774 modules.
17041 * iconvdata/tst-tables.sh: Likewise.
17042 * iconvdata/cp770.c: New file.
17043 * iconvdata/cp771.c: New file.
17044 * iconvdata/cp772.c: New file.
17045 * iconvdata/cp773.c: New file.
17046 * iconvdata/cp774.c: New file.
17047 * iconvdata/testdata/CP770: New file.
17048 * iconvdata/testdata/CP770..UTF8: New file.
17049 * iconvdata/testdata/CP771: New file.
17050 * iconvdata/testdata/CP771..UTF8: New file.
17051 * iconvdata/testdata/CP772: New file.
17052 * iconvdata/testdata/CP772..UTF8: New file.
17053 * iconvdata/testdata/CP773: New file.
17054 * iconvdata/testdata/CP773..UTF8: New file.
17055 * iconvdata/testdata/CP774: New file.
17056 * iconvdata/testdata/CP774..UTF8: New file.
17057
17058 * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
17059 END CHARMAP line.
17060 * iconvdata/gen-8bit-gap.sh: Likewise.
17061 * iconvdata/gen-8bit.sh: Likewise.
17062
17063 * locale/iso-639.def: Add ary entry.
17064
17065 [BZ #11258]
17066 * locale/C-translit.h.in: Add U20A1 transliteration.
17067
17068 [BZ #12178]
17069 * locale/iso-639.def: Add wae entry.
17070 Patch by Kevin Bortis <bortis@translate-wae.ch>.
17071
17072 [BZ #12545]
17073 * locale/programs/localedef.c (construct_output_path): Use ssize_t
17074 for n.
17075
17076 [BZ #12711]
17077 * locale/C-translit.h.in: Add entry for U20B9.
17078 Patch by pravin.d.s@gmail.com.
17079
170802011-05-08 Ulrich Drepper <drepper@gmail.com>
17081
17082 [BZ #12713]
17083 * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
17084 ENAMETOOLONG use generic getcwd.
17085 * sysdeps/posix/getcwd.c: Add support to use openat. Make usable
17086 in rtld. Use *stat64.
17087 * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
17088 Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
17089 * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
17090 * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
17091 * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
17092 * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
17093 * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
17094 __fstatat64 macros.
17095 * include/dirent.h: Add libc_hidden_proto for rewinddir.
17096 * dirent/rewinddir.c: Add libc_hidden_def.
17097 * sysdeps/mach/hurd/rewinddir.c: Likewise.
17098 * sysdeps/unix/rewinddir.c: Likewise. Don't do locking outside libc.
17099
17100 * include/dirent.h (__alloc_dir): Add flags parameter.
17101 * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17102 * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17103 __alloc_dir.
17104 (__alloc_dir): Take new parameter. Don't call fcntl for invocations
17105 from fdopendir if O_CLOEXEC is already set.
17106
171072011-03-15 Alan Modra <amodra@gmail.com>
17108
17109 * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17110 l_tls_firstbyte_offset non-zero. Save padding offset in
17111 l_tls_firstbyte_offset for later use.
17112 * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
17113 freeing static tls block.
17114
171152011-03-05 Jonathan Nieder <jrnieder@gmail.com>
17116
17117 * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
17118 where #ifdef was intended. The intent is to prevent ARG_MAX from
17119 being defined by the kernel headers.
17120
171212011-05-07 Ulrich Drepper <drepper@gmail.com>
17122
17123 [BZ #12734]
17124 * resolv/resolv.h: Define RES_NOTLDQUERY.
17125 * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
17126 no-tld-query and set RES_NOTLDQUERY.
17127 * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
17128 * resolv/res_query.c (__libc_res_nsearch): Backport changes from
17129 modern BIND to search name as TLD unless forbidden.
17130
171312011-05-07 Petr Baudis <pasky@suse.cz>
17132 Ulrich Drepper <drepper@gmail.com>
17133
17134 [BZ #12393]
17135 * elf/dl-load.c (fillin_rpath): Move trusted path check...
17136 (is_trusted_path): ...to here.
17137 (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
17138 (_dl_dst_substitute): Verify expanded $ORIGIN path elements
17139 using is_trusted_path_normalize() in setuid scripts.
17140
171412011-05-06 Paul Pluzhnikov <ppluzhnikov@google.com>
17142
17143 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
17144 __BEGIN/__END_DECLS.
17145
171462011-05-06 Ulrich Drepper <drepper@gmail.com>
17147
17148 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
17149 NSS_STATUS_NOTFOUND if no record was found.
17150
171512011-05-05 Andreas Schwab <schwab@redhat.com>
17152
17153 * sunrpc/Makefile (headers): Add rpc/netdb.h.
17154 (headers-not-in-tirpc): Remove rpc/netdb.h
17155 * resolv/netdb.h: Revert last change.
17156
171572011-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
17158
17159 * Makeconfig (link-libc-static): Use --{start,end}-group to handle
17160 circular dependency between libgcc.a and libc.a.
17161
171622011-05-05 Andreas Schwab <schwab@redhat.com>
17163
17164 * resolv/netdb.h: Don't include <rpc/netdb.h>.
17165 * nis/Makefile: Don't install rpcsvc/*.
17166 * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
17167 instead of <rpc/types.h>.
17168 (MAXHOSTNAMELEN): Define.
17169
171702011-05-03 Andreas Schwab <schwab@redhat.com>
17171
17172 * elf/ldconfig.c (add_dir): Don't crash on empty path.
17173
171742011-04-28 Maciej Babinski <mbabinski@google.com>
17175
17176 [BZ #12714]
17177 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17178 gethostbyname4_r when IPv6 results are possible.
17179
171802011-05-02 Ulrich Drepper <drepper@gmail.com>
17181
17182 [BZ #12723]
17183 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17184 _PC_PIPE_BUF handling.
17185
171862011-04-30 Bruno Haible <bruno@clisp.org>
17187
17188 [BZ #12717]
17189 * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17190 * resolv/netdb.h (getnameinfo): Change type of flags parameter
17191 to 'int'.
17192 * inet/getnameinfo.c (getnameinfo): Likewise.
17193
171942011-04-29 Ulrich Drepper <drepper@gmail.com>
17195
17196 * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17197 to groups setting in database lookup.
17198 * nss/nsswitch.conf: Add initgroups entry.
17199
172002011-04-22 Ulrich Drepper <drepper@gmail.com>
17201
17202 [BZ #12685]
17203 * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17204 mode string.
17205 Patch by Eric Blake <eblake@redhat.com>.
17206
172072011-04-20 H.J. Lu <hongjiu.lu@intel.com>
17208
17209 * sunrpc/Makefile (need-export-routines): Add svc_run.
17210 (routines): Remove svc_run.
17211 ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17212 * sunrpc/clnt_perr.c (clnt_perrno): Export.
17213 * sunrpc/svc_run.c (svc_run): Likewise.
17214 * sunrpc/svc_udp.c (svcudp_create): Likewise.
17215
172162011-04-21 Ulrich Drepper <drepper@gmail.com>
17217
17218 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17219 problem in reallocation in last patch.
17220
172212011-04-20 Ulrich Drepper <drepper@gmail.com>
17222
17223 * sunrpc/Makefile: Move inclusion of Rules.
17224
172252011-04-19 Ulrich Drepper <drepper@gmail.com>
17226
17227 * nss/nss_files/files-initgroups.c: New file.
17228 * nss/Makefile (libnss_files-routines): Add files-initgroups.
17229 * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17230 _nss_files_initgroups_dyn.
17231
172322011-03-31 Richard Sandiford <richard.sandiford@linaro.org>
17233
17234 * elf/elf.h (R_ARM_IRELATIVE): Define.
17235
172362011-04-19 Ulrich Drepper <drepper@gmail.com>
17237
17238 * po/ru.po: Update from translation team.
17239
172402011-04-17 Ulrich Drepper <drepper@gmail.com>
17241
17242 * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17243 dependencies.
17244
172452011-02-06 Mike Frysinger <vapier@gentoo.org>
17246
17247 [BZ #12653]
17248 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17249 MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17250 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17251 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17252 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17253
172542011-03-28 Andreas Schwab <schwab@linux-m68k.org>
17255
17256 * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17257 differing bytes.
17258 * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17259 * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17260 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17261
172622011-04-17 Ulrich Drepper <drepper@gmail.com>
17263
17264 [BZ #12420]
17265 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17266 storing it.
17267 * stdlib/bug-getcontext.c: New file.
17268 * stdlib/Makefile: Add rules to build and run bug-getcontext.
17269
172702011-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17271
17272 * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17273 instructions into .machine "z9-109".
17274 * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17275 * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17276
172772011-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17278
17279 * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17280 between environment variables and auxiliary vector.
17281
172822011-04-16 Ulrich Drepper <drepper@gmail.com>
17283
17284 * Makefile: Add rules to build linkobj/libc.so.
17285 * include/libc-symbols.h: Define libc_hidden_nolink.
17286 * include/rpc/auth.h: Mark functions which are to be hidden.
17287 * include/rpc/auth_des.h: Likewise.
17288 * include/rpc/auth_unix.h: Likewise.
17289 * include/rpc/clnt.h: Likewise.
17290 * include/rpc/des_crypt.h: Likewise.
17291 * include/rpc/key_prot.h: Likewise.
17292 * include/rpc/pmap_clnt.h: Likewise.
17293 * include/rpc/pmap_prot.h: Likewise.
17294 * include/rpc/pmap_rmt.h: Likewise.
17295 * include/rpc/rpc_msg.h: Likewise.
17296 * include/rpc/svc.h: Likewise.
17297 * include/rpc/svc_auth.h: Likewise.
17298 * include/rpc/xdr.h: Likewise.
17299 * nis/Makefile: Link all DSOs against linkobj/libc.so.
17300 * nss/Makefile: Likewise.
17301 * sunrpc/Makefile: Don't install headers. Build library with normal
17302 entry points. Don't build rpcinfo. Link RPC tests appropriately.
17303 * sunrpc/auth_des.c: Hide exported symbols by default, export some
17304 for the compat linking library. Remove use of INTDEF/INTUSE.
17305 * sunrpc/auth_none.c: Likewise.
17306 * sunrpc/auth_unix.c: Likewise.
17307 * sunrpc/authdes_prot.c: Likewise.
17308 * sunrpc/authuxprot.c: Likewise.
17309 * sunrpc/clnt_gen.c: Likewise.
17310 * sunrpc/clnt_perr.c: Likewise.
17311 * sunrpc/clnt_raw.c: Likewise.
17312 * sunrpc/clnt_simp.c: Likewise.
17313 * sunrpc/clnt_tcp.c: Likewise.
17314 * sunrpc/clnt_udp.c: Likewise.
17315 * sunrpc/clnt_unix.c: Likewise.
17316 * sunrpc/des_crypt.c: Likewise.
17317 * sunrpc/des_soft.c: Likewise.
17318 * sunrpc/get_myaddr.c: Likewise.
17319 * sunrpc/key_call.c: Likewise.
17320 * sunrpc/key_prot.c: Likewise.
17321 * sunrpc/netname.c: Likewise.
17322 * sunrpc/pm_getmaps.c: Likewise.
17323 * sunrpc/pm_getport.c: Likewise.
17324 * sunrpc/pmap_clnt.c: Likewise.
17325 * sunrpc/pmap_prot.c: Likewise.
17326 * sunrpc/pmap_prot2.c: Likewise.
17327 * sunrpc/pmap_rmt.c: Likewise.
17328 * sunrpc/publickey.c: Likewise.
17329 * sunrpc/rpc_cmsg.c: Likewise.
17330 * sunrpc/rpc_common.c: Likewise.
17331 * sunrpc/rpc_dtable.c: Likewise.
17332 * sunrpc/rpc_prot.c: Likewise.
17333 * sunrpc/rpc_thread.c: Likewise.
17334 * sunrpc/rtime.c: Likewise.
17335 * sunrpc/svc.c: Likewise.
17336 * sunrpc/svc_auth.c: Likewise.
17337 * sunrpc/svc_authux.c: Likewise.
17338 * sunrpc/svc_raw.c: Likewise.
17339 * sunrpc/svc_run.c: Likewise.
17340 * sunrpc/svc_simple.c: Likewise.
17341 * sunrpc/svc_tcp.c: Likewise.
17342 * sunrpc/svc_udp.c: Likewise.
17343 * sunrpc/svc_unix.c: Likewise.
17344 * sunrpc/svcauth_des.c: Likewise.
17345 * sunrpc/xcrypt.c: Likewise.
17346 * sunrpc/xdr.c: Likewise.
17347 * sunrpc/xdr_array.c: Likewise.
17348 * sunrpc/xdr_float.c: Likewise.
17349 * sunrpc/xdr_intXX_t.c: Likewise.
17350 * sunrpc/xdr_mem.c: Likewise.
17351 * sunrpc/xdr_rec.c: Likewise.
17352 * sunrpc/xdr_ref.c: Likewise.
17353 * sunrpc/xdr_sizeof.c: Likewise.
17354 * sunrpc/xdr_stdio.c: Likewise.
17355
173562011-04-10 Ulrich Drepper <drepper@gmail.com>
17357
17358 [BZ #12650]
17359 * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17360 * sysdeps/ia64/dl-tls.h: Likewise.
17361 * sysdeps/powerpc/dl-tls.h: Likewise.
17362 * sysdeps/s390/dl-tls.h: Likewise.
17363 * sysdeps/sh/dl-tls.h: Likewise.
17364 * sysdeps/sparc/dl-tls.h: Likewise.
17365 * sysdeps/x86_64/dl-tls.h: Likewise.
17366 * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17367
173682011-03-14 Andreas Schwab <schwab@redhat.com>
17369
17370 * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17371 rpath element also skip the following colon.
17372 (expand_dynamic_string_token): Add is_path parameter and pass
17373 down to DL_DST_REQUIRED and _dl_dst_substitute.
17374 (decompose_rpath): Call expand_dynamic_string_token with
17375 non-zero is_path. Ignore empty rpaths.
17376 (_dl_map_object_from_fd): Call expand_dynamic_string_token
17377 with zero is_path.
17378
173792011-04-08 Andreas Schwab <schwab@linux-m68k.org>
17380
17381 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17382 Make cancelable.
17383
173842011-04-09 Ulrich Drepper <drepper@gmail.com>
17385
17386 [BZ #12655]
17387 * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17388 Patch by Filipe David Manana <fdmanana@apache.org>.
17389
173902011-04-07 Andreas Schwab <schwab@redhat.com>
17391
17392 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17393 Maintain aligned stack.
17394 (CHECK_RSP): Remove unused macro.
17395
173962011-04-03 Ulrich Drepper <drepper@gmail.com>
17397
17398 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17399 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17400
174012011-04-02 Ulrich Drepper <drepper@gmail.com>
17402
17403 * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17404
17405 * include/features.h: Mention __USE_XOPEN2K8 in comment.
17406
174072011-03-26 H.J. Lu <hongjiu.lu@intel.com>
17408
17409 [BZ #12518]
17410 * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17411 * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17412 * sysdeps/x86_64/memmove.c: New file.
17413 * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17414 (memcpy): Renamed to ...
17415 (__new_memcpy): This.
17416 (memcpy): Provide GLIBC_2_14 memcpy.
17417 * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17418 (memcpy): Provide GLIBC_2_2_5 memcpy.
17419
174202011-04-01 Ulrich Drepper <drepper@gmail.com>
17421
17422 [BZ #12631]
17423 * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17424
174252011-03-30 Andreas Schwab <schwab@redhat.com>
17426
17427 * misc/syncfs.c: New file.
17428 * misc/Makefile (routines): Add syncfs.
17429 * posix/unistd.h: Declare syncfs.
17430 * sysdeps/unix/syscalls.list: Add syncfs.
17431
174322011-04-01 Andreas Schwab <schwab@redhat.com>
17433
17434 * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17435 open_by_handle_at.
17436 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17437 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17438 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17439 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17440 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17441 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17442 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17443
174442011-04-01 Ulrich Drepper <drepper@gmail.com>
17445
17446 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17447 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17448 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17449 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17450 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17451 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17452 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17453
17454 * io/Makefile: Compile fallocate.c, fallocate64.c, and
17455 sync_file_range.c with -fexceptions.
17456 * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17457 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17458 * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17459 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17460 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17461 * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17462 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17463 sync_file_range as cancellation point
17464 * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file. This is
17465 now a wrapper around __call_sync_file_range with cancellation handling.
17466 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17467 * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this. Change
17468 function name to __call_sync_file_range.
17469 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17470 Add call_sync_file_range.
17471
174722011-04-01 Andreas Schwab <schwab@redhat.com>
17473
17474 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17475 bits/timex.h.
17476
174772011-04-01 Ulrich Drepper <drepper@gmail.com>
17478
17479 * iconv/iconv.h: Fix typo in comment.
17480 * io/fcntl.h: Likewise.
17481 * libio/stdio.h: Likewise.
17482 * posix/spawn.h: Likewise.
17483 * posix/unistd.h: Likewise.
17484 * stdlib/stdlib.h: Likewise.
17485 * time/time.h: Likewise.
17486 * wcsmbs/wchar.h: Likewise.
17487
17488 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17489 open_by_handle): Add.
17490 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17491 and MAX_HANDLE_SZ. Declare name_to_handle_at and open_by_handle.
17492 Augment a few comments.
17493 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17494 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17495 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17496 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17497 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17498 * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
17499 open_by_handle.
17500
17501 * io/fcntl.h (AT_EMPTY_PATH): Define.
17502
175032011-03-30 Ulrich Drepper <drepper@gmail.com>
17504
17505 * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
17506 * sysdeps/unix/sysv/linux/bits/time.h: New file.
17507 * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
17508 to...
17509 * sysdeps/unix/sysv/linux/bits/timex.h: ...here. New file.
17510 * Versions.def: Add GLIBC_2.14.
17511 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
17512 Export.
17513
175142011-03-22 Ulrich Drepper <drepper@gmail.com>
17515
17516 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
17517 round counter.
17518 * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17519
175202011-03-20 H.J. Lu <hongjiu.lu@intel.com>
17521
17522 [BZ #12597]
17523 * string/test-strncmp.c (do_page_test): New function.
17524 (check2): Likewise.
17525 (test_main): Call check2.
17526 * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
17527
175282011-03-20 Ulrich Drepper <drepper@gmail.com>
17529
17530 [BZ #12587]
17531 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
17532 Handle cache information in CPU leaf 4.
17533 * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17534
175352011-03-18 Ulrich Drepper <drepper@gmail.com>
17536
17537 [BZ #12583]
17538 * posix/fnmatch.c (fnmatch): Check size of pattern in wide
17539 character representation.
17540 Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
17541
175422011-03-16 Ryan S. Arnold <rsa@us.ibm.com>
17543
17544 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
17545 END(__isnan) to END(__isnanf) to match function entry point/label
17546 EALIGN(__isnanf,...).
17547
175482011-03-10 Jakub Jelinek <jakub@redhat.com>
17549
17550 * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
17551
175522011-03-10 Ulrich Drepper <drepper@gmail.com>
17553
17554 [BZ #12510]
17555 * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
17556 copy from the symbol referenced in the relocation to initialize the
17557 used variable.
17558 Patch by Piotr Bury <pbury@goahead.com>.
17559 * elf/Makefile: Add rules to build and tst-unique3.
17560 * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
17561 * elf/tst-unique3.cc: New file.
17562 * elf/tst-unique3.h: New file.
17563 * elf/tst-unique3lib.cc: New file.
17564 * elf/tst-unique3lib2.cc: New file.
17565
17566 * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
17567
175682011-03-10 Mike Frysinger <vapier@gentoo.org>
17569
17570 * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
17571 $LDFLAGS and -nostdlib -nostartfiles to linking step. Change main
17572 to _start.
17573
175742011-03-06 Ulrich Drepper <drepper@gmail.com>
17575
17576 * elf/dl-load.c (_dl_map_object): If we are looking for the first
17577 to-be-loaded object along a path to loader is ld.so.
17578
175792011-03-02 Harsha Jagasia <harsha.jagasia@amd.com>
17580 Ulrich Drepper <drepper@gmail.com>
17581
17582 * sysdeps/x86_64/memset.S: After aligning destination, code
17583 branches to different locations depending on the value of
17584 misalignment, when multiarch is enabled. Fix this.
17585
175862011-03-02 Harsha Jagasia <harsha.jagasia@amd.com>
17587
17588 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
17589 Set _x86_64_preferred_memory_instruction for AMD processsors.
17590 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17591 Set bit_Prefer_SSE_for_memop for AMD processors.
17592
175932011-03-04 Ulrich Drepper <drepper@gmail.com>
17594
17595 * libio/fmemopen.c (fmemopen): Optimize a bit.
17596
175972011-03-03 Andreas Schwab <schwab@redhat.com>
17598
17599 * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
17600
176012011-03-03 Roland McGrath <roland@redhat.com>
17602
17603 * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
17604
176052011-02-28 Aurelien Jarno <aurelien@aurel32.net>
17606
17607 * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
17608 __bzero_ultra1 instead of __memset_ultra1.
17609
176102011-02-23 Andreas Schwab <schwab@redhat.com>
17611 Ulrich Drepper <drepper@gmail.com>
17612
17613 [BZ #12509]
17614 * include/link.h (struct link_map): Add l_orig_initfini.
17615 * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
17616 returning unsuccessfully.
17617 * elf/dl-close.c (_dl_close_worker): If this is the last explicit
17618 close of a file loaded at startup, restore the original l_initfini
17619 list.
17620 * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
17621 list, store the pointer.
17622 * elf/Makefile ($(objpfx)noload-mem): New rule.
17623 (noload-ENV): Define.
17624 (tests): Add $(objpfx)noload-mem.
17625 * elf/noload.c: Include <memcheck.h>.
17626 (main): Call mtrace. Close all opened handles.
17627
176282011-02-17 Andreas Schwab <schwab@redhat.com>
17629
17630 [BZ #12454]
17631 * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
17632 dependencies are missing.
17633
176342011-02-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
17635
17636 Fix __if_freereq crash: Unlike the generic version which uses free,
17637 Hurd needs munmap.
17638 * sysdeps/mach/hurd/ifreq.h: New file.
17639
176402011-01-27 Petr Baudis <pasky@suse.cz>
17641 Ulrich Drepper <drepper@gmail.com>
17642
17643 [BZ 12445]#
17644 * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
17645 to extend_alloca().
17646 * stdio-common/bug23.c: New file.
17647 * stdio-common/Makefile (tests): Add bug23.
17648
176492010-09-28 Andreas Schwab <schwab@redhat.com>
17650 Ulrich Drepper <drepper@gmail.com>
17651
17652 [BZ #12489]
17653 * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
17654 before performing relro protection. At old place add assertion
17655 to make sure nothing changed.
17656
176572011-02-17 Nathan Sidwell <nathan@codesourcery.com>
17658 Glauber de Oliveira Costa <glommer@gmail.com>
17659
17660 * elf/elf.h: Add new ARM TLS relocs.
17661
176622011-02-16 Ryan S. Arnold <rsa@us.ibm.com>
17663
17664 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17665 (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
17666 cast from r3.
17667 * sysdeps/wordsize-64/Makefile: New file. Add tst-writev to
17668 'tests' variable.
17669 * sysdeps/wordsize-64/tst-writev.c: New file.
17670
176712011-02-15 Ryan S. Arnold <rsa@us.ibm.com>
17672
17673 * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
17674 -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
17675 insns in _dl_start to prevent a TOC reference before relocs are
17676 resolved.
17677
176782011-02-15 Ulrich Drepper <drepper@gmail.com>
17679
17680 [BZ #12469]
17681 * Makeconfig: Remove RANLIB definition.
17682 * Makerules: Don't use RANLIB.
17683 * aclocal.m4: Remove ranlib test.
17684 * configure.in: No need to check for ranlib.
17685 * elf/rtld-Rules: Don't use RANLIB.
17686
176872011-02-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
17688
17689 * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
17690 protection macro.
17691 * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
17692 inclusion protection macro.
17693
17694 * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
17695 SIGRTMIN and SIGRTMAX and print information in that case only when
17696 SIGRTMIN is defined.
17697
176982011-02-11 Jakub Jelinek <jakub@redhat.com>
17699
17700 * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
17701 arginfo fn returning -1.
17702
17703 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
17704 and thousands string is zero terminated.
17705
177062011-02-03 Andreas Schwab <schwab@redhat.com>
17707
17708 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
17709 sysdeps/unix/sysv/linux/bits/socket.h.
17710
177112011-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
17712
17713 * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
17714 (__CPU_COUNT): Remove old macros.
17715 (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
17716 (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
17717 (__CPU_ALLOC, __CPU_FREE): Add macros.
17718 (__sched_cpualloc, __sched_cpufree): Add declarations.
17719
177202011-02-05 Ulrich Drepper <drepper@gmail.com>
17721
17722 * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
17723 (struct datahead): Reuse 32 bits of the alignment for a TTL field.
17724 * nscd/aicache.c (addhstaiX): Return timeout of added value.
17725 (readdhstai): Return value of addhstaiX call.
17726 * nscd/grpcache.c (cache_addgr): Return timeout of added value.
17727 (addgrbyX): Return value returned by cache_addgr.
17728 (readdgrbyname): Return value returned by addgrbyX.
17729 (readdgrbygid): Likewise.
17730 * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
17731 (addpwbyX): Return value returned by cache_addpw.
17732 (readdpwbyname): Return value returned by addhstbyX.
17733 (readdpwbyuid): Likewise.
17734 * nscd/servicescache.c (cache_addserv): Return timeout of added value.
17735 (addservbyX): Return value returned by cache_addserv.
17736 (readdservbyname): Return value returned by addservbyX:
17737 (readdservbyport): Likewise.
17738 * nscd/hstcache.c (cache_addhst): Return timeout of added value.
17739 (addhstbyX): Return value returned by cache_addhst.
17740 (readdhstbyname): Return value returned by addhstbyX.
17741 (readdhstbyaddr): Likewise.
17742 (readdhstbynamev6): Likewise.
17743 (readdhstbyaddrv6): Likewise.
17744 * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
17745 (readdinitgroups): Return value returned by addinitgroupsX.
17746 * nscd/cache.c (readdfcts): Change return value of functions to time_t.
17747 (prune_cache): Keep track of timeout value of re-added entries.
17748 * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
17749 * nscd/nscd.h: Adjust prototypes of readd* functions.
17750
177512011-02-04 Roland McGrath <roland@redhat.com>
17752
17753 * nis/nis_server.c (nis_servstate): Use the right name for 0.
17754 (nis_stats): Likewise.
17755 * nis/nis_modify.c (nis_modify): Likewise.
17756 * nis/nis_remove.c (nis_remove): Likewise.
17757 * nis/nis_add.c (nis_add): Likewise.
17758
17759 * elf/dl-object.c (_dl_new_object): Remove unused variable L.
17760
17761 * posix/fnmatch_loop.c: Add some consts.
17762
17763 * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
17764
177652011-02-02 H.J. Lu <hongjiu.lu@intel.com>
17766
17767 [BZ #12460]
17768 * config.make.in (config-cflags-novzeroupper): Define.
17769 * configure.in: Substitute libc_cv_cc_novzeroupper.
17770 * elf/Makefile (AVX-CFLAGS): Define.
17771 (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
17772 (CFLAGS-tst-auditmod4a.c): Likewise.
17773 (CFLAGS-tst-auditmod4b.c): Likewise.
17774 (CFLAGS-tst-auditmod6b.c): Likewise.
17775 (CFLAGS-tst-auditmod6c.c): Likewise.
17776 (CFLAGS-tst-auditmod7b.c): Likewise.
17777 * sysdeps/i386/configure.in: Check -mno-vzeroupper.
17778
177792011-02-02 Ulrich Drepper <drepper@gmail.com>
17780
17781 * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
17782 function to the callback.
17783 Patch partly by Jiri Olsa <jolsa@redhat.com>.
17784
177852011-02-02 Andreas Schwab <schwab@redhat.com>
17786
17787 * shadow/sgetspent.c: Check return value of __sgetspent_r instead
17788 of errno.
17789
177902011-01-19 Ulrich Drepper <drepper@gmail.com>
17791
17792 [BZ #11724]
17793 * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
17794 of constructors.
17795 * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
17796 of destructors.
17797 (_dl_fini): Don't call _dl_sort_fini if there is only one object.
17798
17799 [BZ #11724]
17800 * elf/Makefile: Add rules to build and run new test.
17801 * elf/tst-initorder.c: New file.
17802 * elf/tst-initorder.exp: New file.
17803 * elf/tst-initordera1.c: New file.
17804 * elf/tst-initordera2.c: New file.
17805 * elf/tst-initordera3.c: New file.
17806 * elf/tst-initordera4.c: New file.
17807 * elf/tst-initorderb1.c: New file.
17808 * elf/tst-initorderb2.c: New file.
17809 * elf/tst-order-a1.c: New file.
17810 * elf/tst-order-a2.c: New file.
17811 * elf/tst-order-a3.c: New file.
17812 * elf/tst-order-a4.c: New file.
17813 * elf/tst-order-b1.c: New file.
17814 * elf/tst-order-b2.c: New file.
17815 * elf/tst-order-main.c: New file.
17816 New test case by George Gensure <werkt0@gmail.com>.
17817
178182010-10-01 Andreas Schwab <schwab@redhat.com>
17819
17820 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17821 decoding ACE if AI_CANONIDN.
17822
178232011-01-18 Ulrich Drepper <drepper@gmail.com>
17824
17825 * elf/Makefile: Build IFUNC tests unless multi-arch = no.
17826
178272011-01-17 Ulrich Drepper <drepper@gmail.com>
17828
17829 * version.h (RELEASE): Bump for 2.13 release.
17830 * include/features.h: (__GLIBC_MINOR__): Bump to 13.
17831
17832 * io/fcntl.h: Define AT_NO_AUTOMOUNT.
17833
17834 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
17835 MADV_NOHUGEPAGE.
17836 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
17837 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
17838 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
17839 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
17840 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
17841 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
17842
17843 * posix/getconf.c: Update copyright year.
17844 * catgets/gencat.c: Likewise.
17845 * csu/version.c: Likewise.
17846 * debug/catchsegv.sh: Likewise.
17847 * debug/xtrace.sh: Likewise.
17848 * elf/ldconfig.c: Likewise.
17849 * elf/ldd.bash.in: Likewise.
17850 * elf/sprof.c (print_version): Likewise.
17851 * iconv/iconv_prog.c: Likewise.
17852 * iconv/iconvconfig.c: Likewise.
17853 * locale/programs/locale.c: Likewise.
17854 * locale/programs/localedef.c: Likewise.
17855 * malloc/memusage.sh: Likewise.
17856 * malloc/mtrace.pl: Likewise.
17857 * nscd/nscd.c (print_version): Likewise.
17858 * nss/getent.c: Likewise.
17859
17860 * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
17861 PF_CAIF, and PF_ALG.
17862 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17863
178642011-01-16 Andreas Schwab <schwab@linux-m68k.org>
17865
17866 * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
17867 (modules-names): Use them.
17868 (ifunc-test-modules, ifunc-pie-tests): Define.
17869 (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
17870 tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
17871 (test-extras): Likewise.
17872 ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
17873 $(compile-command.c).
17874 ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
17875 (all-built-dso): Define.
17876 (check-textrel.out, check-execstack.out): Depend on it.
17877
17878 * configure.in: Don't override --enable-multi-arch.
17879
178802011-01-15 Ulrich Drepper <drepper@gmail.com>
17881
17882 [BZ #6812]
17883 * nscd/hstcache.c (tryagain): Define.
17884 (cache_addhst): Return tryagain not notfound for temporary errors.
17885 (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
17886 failed.
17887
178882011-01-14 Ulrich Drepper <drepper@gmail.com>
17889
17890 [BZ #10563]
17891 * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
17892 to make the syscall.
17893 * sysdeps/unix/sysv/linux/setgroups.c: New file.
17894
17895 [BZ #12378]
17896 * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
17897 and fall back to matching as normal character if the string ends before
17898 the matching ']' is found. This is what POSIX requires.
17899 * posix/testfnm.c: Adjust test result.
17900 * posix/globtest.sh: Adjust test result. Add new test.
17901 * posix/tst-fnmatch.input: Likewise.
17902 * posix/tst-fnmatch2.c: Add new test.
17903
179042010-12-28 Andreas Schwab <schwab@linux-m68k.org>
17905
17906 * elf/Makefile (check-execstack): Revert last change. Depend on
17907 check-execstack.h.
17908 (check-execstack.h): New target.
17909 (generated): Add check-execstack.h.
17910 * elf/check-execstack.c: Include "check-execstack.h".
17911 (main): Revert last change.
17912 (handle_file): Return zero if GNU_STACK is absent and
17913 DEFAULT_STACK_PERMS doesn't include PF_X.
17914
179152011-01-13 Ulrich Drepper <drepper@gmail.com>
17916
17917 * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
17918 in child fails because the descriptor is already closed.
17919 * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
17920 * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
17921 * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
17922
17923 [BZ #12397]
17924 * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
17925 syscall.
17926
17927 [BZ #10484]
17928 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
17929 temporary buffer used to handle multi lookups locally.
17930 * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
17931
179322011-01-12 Ulrich Drepper <drepper@gmail.com>
17933
17934 * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
17935 loader is ld.so.
17936
179372011-01-10 Paul Pluzhnikov <ppluzhnikov@google.com>
17938
17939 * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
17940 alignment for SSE2.
17941
179422011-01-12 Ulrich Drepper <drepper@gmail.com>
17943
17944 [BZ #12394]
17945 * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
17946 characters. When rounding increased number of integer digits recompute
17947 number of groups.
17948 * stdio-common/tst-grouping.c: New file.
17949 * stdio-common/Makefile: Add rules to build and run tst-grouping.
17950
179512011-01-09 Ulrich Drepper <drepper@gmail.com>
17952
17953 * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
17954 __FD_CLR, and __FS_ISSET. gcc generates better code on its own.
17955
17956 * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
17957 void.
17958 * bits/select.h: Likewise.
17959
179602011-01-08 Ulrich Drepper <drepper@gmail.com>
17961
17962 * po/ja.po: Update from translation team.
17963
179642011-01-04 David S. Miller <davem@sunset.davemloft.net>
17965
17966 [BZ #11155]
17967 * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
17968 implementation just like for lxstat, fxstatat, et al.
17969
179702010-12-27 Jim Meyering <meyering@redhat.com>
17971
17972 [BZ #12348]
17973 * posix/regexec.c (build_trtable): Return failure indication upon
17974 calloc failure. Otherwise, re_search_internal could infloop on OOM.
17975
179762010-12-25 Ulrich Drepper <drepper@gmail.com>
17977
17978 [BZ #12201]
17979 * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
17980 * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
17981 * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
17982 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
17983
17984 [BZ #12207]
17985 * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
17986
17987 [BZ #12204]
17988 * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
17989 * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
17990
179912010-12-15 H.J. Lu <hongjiu.lu@intel.com>
17992
17993 * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
17994 * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
17995 script has SORT_BY_INIT_PRIORITY.
17996 * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
17997 NO_CTORS_DTORS_SECTIONS is defined.
17998 * elf/soinit.c: Likewise.
17999 * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18000 NO_CTORS_DTORS_SECTIONS is defined.
18001 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18002 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18003 * sysdeps/sh/init-first.c: Likewise.
18004 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18005
180062010-12-24 Ulrich Drepper <drepper@gmail.com>
18007
18008 * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18009 always use the slow path.
18010
180112010-12-15 Ryan S. Arnold <rsa@us.ibm.com>
18012
18013 * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18014 similar rule which adds the sysdep directories to the header search in
18015 order to pick up the correct platform stackinfo.h.
18016 * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18017 perform test if it is, otherwise return successfully without testing.
18018 * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18019 DEFAULT_STACK_PERMS define in stackinfo.h.
18020 * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18021 defined in stackinfo.h.
18022 * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18023 DEFAULT_STACK_PERMS defined in stackinfo.h.
18024 * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18025 * sysdeps/ia64/stackinfo.h: Likewise.
18026 * sysdeps/s390/stackinfo.h: Likewise.
18027 * sysdeps/sh/stackinfo.h: Likewise.
18028 * sysdeps/sparc/stackinfo.h: Likewise.
18029 * sysdeps/x86_64/stackinfo.h: Likewise.
18030 * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18031 PF_X for powerpc64. Retain PF_X for powerpc32.
18032
180332010-12-19 Ulrich Drepper <drepper@gmail.com>
18034
18035 * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18036 accurately.
18037 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18038 GETDENTS_64BIT_ALIGNED.
18039
180402010-12-14 Ulrich Drepper <dreper@gmail.com>
18041
18042 * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18043
180442010-12-10 Andreas Schwab <schwab@redhat.com>
18045
18046 * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
18047 _GNU_SOURCE.
18048
18049 * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
18050 * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
18051 Remove __restrict.
18052 (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
18053 (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
18054
180552010-12-09 Ulrich Drepper <drepper@gmail.com>
18056
18057 [BZ #11655]
18058 * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
18059 are initialized.
18060
180612010-12-09 Jakub Jelinek <jakub@redhat.com>
18062
18063 * string/bits/string3.h (memmove, bcopy): Remove __restrict.
18064
180652010-12-03 Ulrich Drepper <drepper@gmail.com>
18066
18067 * po/it.po: Update from translation team.
18068
180692010-12-01 H.J. Lu <hongjiu.lu@intel.com>
18070
18071 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
18072 unused codes.
18073
180742010-11-30 Ulrich Drepper <drepper@gmail.com>
18075
18076 * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
18077
180782010-11-24 Andreas Schwab <schwab@redhat.com>
18079
18080 * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
18081 specially.
18082 (gaih_getanswer_slice): Likewise.
18083
180842010-10-20 Jakub Jelinek <jakub@redhat.com>
18085
18086 * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
18087
180882010-05-31 Petr Baudis <pasky@suse.cz>
18089
18090 [BZ #11149]
18091 * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
18092 silently even in the chroot mode.
18093
180942010-11-22 Ulrich Drepper <drepper@gmail.com>
18095
18096 * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
18097 last patch a bit. Pretty printing
18098
180992010-05-31 Petr Baudis <pasky@suse.cz>
18100
18101 [BZ #10085]
18102 * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18103 initialization of skip_initgroups_dyn.
18104
181052010-11-19 Ulrich Drepper <drepper@gmail.com>
18106
18107 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18108 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18109
181102010-11-16 Ulrich Drepper <drepper@gmail.com>
18111
18112 * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
18113
181142010-11-11 Andreas Schwab <schwab@redhat.com>
18115
18116 * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
18117 * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
18118 (tst-fnmatch-ENV): Set MALLOC_TRACE.
18119 ($(objpfx)tst-fnmatch-mem): New rule.
18120 (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
18121 * posix/tst-fnmatch.c (main): Call mtrace.
18122
181232010-11-11 H.J. Lu <hongjiu.lu@intel.com>
18124
18125 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18126 Support Intel processor model 6 and model 0x2c.
18127
181282010-11-10 Luis Machado <luisgpm@br.ibm.com>
18129
18130 * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
18131 signed comparison.
18132
181332010-11-09 H.J. Lu <hongjiu.lu@intel.com>
18134
18135 [BZ #12205]
18136 * string/test-strncasecmp.c (check_result): New function.
18137 (do_one_test): Use it.
18138 (check1): New function.
18139 (test_main): Use it.
18140 * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
18141 Support strcasecmp and strncasecmp.
18142
181432010-11-08 Ulrich Drepper <drepper@gmail.com>
18144
18145 [BZ #12194]
18146 * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
18147 * sysdeps/x86_64/bits/byteswap.h: Likewise.
18148
181492010-11-07 H.J. Lu <hongjiu.lu@intel.com>
18150
18151 * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
18152 IFUNC support.
18153 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18154 memset-x86-64.
18155 * sysdeps/x86_64/multiarch/bzero.S: New file.
18156 * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
18157 * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
18158 * sysdeps/x86_64/multiarch/memset.S: New file.
18159 * sysdeps/x86_64/multiarch/memset_chk.S: New file.
18160 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18161 Set bit_Prefer_SSE_for_memop for Intel processors.
18162 * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
18163 Define.
18164 (index_Prefer_SSE_for_memop): Define.
18165 (HAS_PREFER_SSE_FOR_MEMOP): Define.
18166
181672010-11-04 Luis Machado <luisgpm@br.ibm.com>
18168
18169 * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
18170 * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
18171
181722010-11-03 H.J. Lu <hongjiu.lu@intel.com>
18173
18174 [BZ #12191]
18175 * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18176 (__x86_64_raw_data_cache_size_half): Likewise.
18177 (__x86_64_raw_shared_cache_size): Likewise.
18178 (__x86_64_raw_shared_cache_size_half): Likewise.
18179
18180 * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18181 (__x86_64_raw_data_cache_size_half): Likewise.
18182 (__x86_64_raw_shared_cache_size): Likewise.
18183 (__x86_64_raw_shared_cache_size_half): Likewise.
18184 (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18185 __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18186 and __x86_64_raw_shared_cache_size_half. Round
18187 __x86_64_data_cache_size_half, __x86_64_data_cache_size
18188 __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18189 to multiple of 256 bytes.
18190
181912010-11-03 Ulrich Drepper <drepper@gmail.com>
18192
18193 [BZ #12167]
18194 * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18195 of inacessible symlinks. Verify result of symlink before returning it.
18196 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18197 Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18198
181992010-10-28 Erich Ritz <erichritz@gmail.com>
18200
18201 * math/math.h (isinf): Fix typo in comment.
18202
182032010-11-01 Ulrich Drepper <drepper@gmail.com>
18204
18205 * po/da.po: Update from translation team.
18206
182072010-10-26 Ulrich Drepper <drepper@gmail.com>
18208
18209 * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18210 is added to the list.
18211
182122010-10-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18213 Ulrich Drepper <drepper@gmail.com>
18214
18215 * elf/dl-object.c (_dl_new_object): Don't append the new object to
18216 the global list here. Move code to...
18217 (_dl_add_to_namespace_list): ...here. New function.
18218 * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18219 * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18220 * elf/dl-load.c (lose): Don't remove the element from the list.
18221 (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18222 (_dl_map_object): Likewise.
18223
182242010-10-25 Ulrich Drepper <drepper@gmail.com>
18225
18226 [BZ #12159]
18227 * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18228 into all bytes of SSE register.
18229 Patch by Richard Li <richardpku@gmail.com>.
18230
182312010-10-24 Ulrich Drepper <drepper@gmail.com>
18232
18233 [BZ #12140]
18234 * malloc/malloc.c (_int_free): Fill correct number of bytes when
18235 perturbing.
18236
182372010-10-20 Michael B. Brutman <brutman@us.ibm.com>
18238
18239 * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18240 * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18241 * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18242 * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18243 * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18244 submachine.
18245 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18246
182472010-10-22 Andreas Schwab <schwab@redhat.com>
18248
18249 * include/dlfcn.h (__RTLD_SECURE): Define.
18250 * elf/dl-load.c (_dl_map_object): Remove preloaded parameter. Use
18251 mode & __RTLD_SECURE instead.
18252 (open_path): Rename preloaded parameter to secure.
18253 * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18254 * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18255 * elf/dl-deps.c (openaux): Likewise.
18256 * elf/rtld.c (struct map_args): Remove is_preloaded.
18257 (map_doit): Don't use it.
18258 (dl_main): Likewise.
18259 (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18260 (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18261
182622010-09-09 Andreas Schwab <schwab@redhat.com>
18263
18264 * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18265 (sysd-rules-targets): Remove duplicates.
18266 * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18267 rtld-%.$o dependency.
18268
182692010-10-18 Andreas Schwab <schwab@redhat.com>
18270
18271 * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18272 _dl_map_object do it.
18273
182742010-10-19 Ulrich Drepper <drepper@gmail.com>
18275
18276 * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18277 fast fma builtins, define the macros in the C99 standard.
18278 (FP_FAST_FMAF): Likewise.
18279 (FP_FAST_FMAL): Likewise.
18280 * sysdeps/x86_64/bits/mathdef.h: Likewise.
18281
18282 * bits/mathdef.h: Update copyright year.
18283 * sysdeps/powerpc/bits/mathdef.h: Likewise.
18284
182852010-10-19 Michael Meissner <meissner@linux.vnet.ibm.com>
18286
18287 * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18288 builtins, define the macros in the C99 standard.
18289 (FP_FAST_FMAF): Likewise.
18290 (FP_FAST_FMAL): Likewise.
18291 * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18292 multiply/add.
18293 (FP_FAST_FMAF): Likewise.
18294
182952010-10-15 Jakub Jelinek <jakub@redhat.com>
18296
18297 [BZ #3268]
18298 * math/libm-test.inc (fma_test): Some new testcases.
18299 * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18300 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18301 y and infinite z. Do multiplication by C already in long double.
18302 * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18303 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18304 y and infinite z. Do bitwise or of inexact bit into u.d.
18305 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18306 * sysdeps/i386/fpu/s_fmaf.S: Removed.
18307 * sysdeps/i386/fpu/s_fma.S: Removed.
18308 * sysdeps/i386/fpu/s_fmal.S: Removed.
18309
183102010-10-16 Jakub Jelinek <jakub@redhat.com>
18311
18312 [BZ #3268]
18313 * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18314 * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18315 computation is not scheduled after fetestexcept. Fix value
18316 of minimum denormal long double.
18317
183182010-10-14 Jakub Jelinek <jakub@redhat.com>
18319
18320 [BZ #3268]
18321 * math/libm-test.inc (fma_test): Add some more tests.
18322 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18323 correctly.
18324
183252010-10-15 Andreas Schwab <schwab@redhat.com>
18326
18327 * scripts/data/localplt-s390-linux-gnu.data: New file.
18328 * scripts/data/localplt-s390x-linux-gnu.data: New file.
18329
183302010-10-13 Jakub Jelinek <jakub@redhat.com>
18331
18332 [BZ #3268]
18333 * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18334 * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18335 instead of dbl-64.
18336 * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18337 inlines.
18338 * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18339 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18340 if one of x and y is very large and the other is subnormal.
18341 * sysdeps/s390/fpu/s_fmaf.c: New file.
18342 * sysdeps/s390/fpu/s_fma.c: New file.
18343 * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18344 * sysdeps/powerpc/fpu/s_fma.S: New file.
18345 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18346 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18347 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18348
183492010-10-12 Jakub Jelinek <jakub@redhat.com>
18350
18351 [BZ #3268]
18352 * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18353 fma tests.
18354 * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18355 * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18356 * sysdeps/i386/i686/multiarch/s_fma.c: Include
18357 sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18358 * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18359 * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18360 * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18361
183622010-10-12 Ulrich Drepper <drepper@redhat.com>
18363
18364 [BZ #12078]
18365 * posix/regcomp.c (parse_branch): One more memory leak plugged.
18366 * posix/bug-regex31.input: Add test case.
18367
183682010-10-11 Ulrich Drepper <drepper@gmail.com>
18369
18370 * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18371 * posix/bug-regex31.input: New file.
18372
18373 [BZ #12078]
18374 * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18375 (parse_sub_exp): Fix last change, use postorder.
18376
18377 * posix/bug-regex31.c: New file.
18378 * posix/Makefile: Add rules to build and run bug-regex31.
18379
18380 * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18381
18382 [BZ #12078]
18383 * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18384
18385 [BZ #12108]
18386 * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18387 to have entries in sys_siglist.
18388
18389 [BZ #12093]
18390 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18391 be NULL.
18392
183932010-10-07 Jakub Jelinek <jakub@redhat.com>
18394
18395 [BZ #3268]
18396 * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18397 * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18398 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18399 sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18400 * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18401 * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18402 * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18403 * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18404 * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18405 * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18406 * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18407 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18408 * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18409 * math/ftestexcept.c (fetestexcept): Likewise.
18410 * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18411 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18412 * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18413 * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18414 * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18415 * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18416 * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18417
184182010-10-11 Ulrich Drepper <drepper@gmail.com>
18419
18420 [BZ #12107]
18421 * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18422 newline.
18423
184242010-10-06 Ulrich Drepper <drepper@gmail.com>
18425
18426 * string/bug-strstr1.c: New file.
18427 * string/Makefile: Add rules to build and run bug-strstr1.
18428
184292010-10-05 Eric Blake <eblake@redhat.com>
18430
18431 [BZ #12092]
18432 * string/str-two-way.h (two_way_long_needle): Always clear memory
18433 when skipping input due to the shift table.
18434
184352010-10-03 Ulrich Drepper <drepper@gmail.com>
18436
18437 [BZ #12005]
18438 * malloc/mcheck.c: Handle large requests.
18439
18440 [BZ #12077]
18441 * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18442 for strncmp and strncasecmp.
18443 * string/stratcliff.c: Add tests for strcmp and strncmp.
18444 * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18445
184462010-09-28 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
18447
18448 * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18449 __set_fpscr.
18450
184512010-09-30 Andreas Jaeger <aj@suse.de>
18452
18453 * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18454 (CGROUP_SUPER_MAGIC): Define.
18455 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18456 Handle btrfs and cgroup file systems.
18457 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18458 Likewise.
18459
184602010-09-27 Luis Machado <luisgpm@br.ibm.com>
18461
18462 * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18463 * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18464
184652010-09-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18466
18467 [BZ #12067]
18468 * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18469 trying to locate the ELF header.
18470
184712010-09-27 Andreas Schwab <schwab@redhat.com>
18472
18473 [BZ #11611]
18474 * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18475 Mask out sign-bit copies when constructing f_fsid.
18476
184772010-09-24 Petr Baudis <pasky@suse.cz>
18478
18479 * debug/stack_chk_fail_local.c: Add missing licence exception.
18480 * debug/warning-nop.c: Likewise.
18481
184822010-09-15 Joseph Myers <joseph@codesourcery.com>
18483
18484 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18485 implementing getdents64 using getdents syscall, set d_type if
18486 __ASSUME_GETDENTS32_D_TYPE.
18487
184882010-09-16 Andreas Schwab <schwab@redhat.com>
18489
18490 * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18491 * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18492
184932010-09-21 Ulrich Drepper <drepper@redhat.com>
18494
18495 [BZ #12037]
18496 * posix/unistd.h: Undo change of feature selection for ftruncate from
18497 2010-01-11.
18498
184992010-09-20 Ulrich Drepper <drepper@redhat.com>
18500
18501 * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
18502 detection.
18503
185042010-09-20 Andreas Schwab <schwab@redhat.com>
18505
18506 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
18507 fanotify_mark.
18508 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18509
185102010-09-14 Andreas Schwab <schwab@redhat.com>
18511
18512 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
18513 variables after CHECK_SP call.
18514 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
18515
185162010-09-13 Andreas Schwab <schwab@redhat.com>
18517 Ulrich Drepper <drepper@redhat.com>
18518
18519 * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
18520 re-relocationg ld.so.
18521 * elf/dl-support.c (_dl_non_dynamic_init): And here after the
18522 _dl_init_paths call.
18523 * elf/dl-load.c (_dl_init_paths). Don't set GLRO(dl_init_all_dirs)
18524 here anymore.
18525
185262010-09-14 Ulrich Drepper <drepper@redhat.com>
18527
18528 * resolv/res_init.c (__res_vinit): Count the default server we added.
18529
185302010-09-08 Chung-Lin Tang <cltang@codesourcery.com>
18531 Ulrich Drepper <drepper@redhat.com>
18532
18533 [BZ #11968]
18534 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18535 (____longjmp_chk): Use %ebx for saving value across system call.
18536 Add unwind info.
18537
185382010-09-06 Andreas Schwab <schwab@redhat.com>
18539
18540 * manual/Makefile: Don't mix pattern rules with normal rules.
18541
185422010-09-05 Andreas Schwab <schwab@linux-m68k.org>
18543
18544 * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
18545 operation.
18546 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
18547 * libio/iofopncook.c (_IO_cookie_init): Likewise.
18548 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
18549 * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18550 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18551 Likewise.
18552
185532010-09-04 Ulrich Drepper <drepper@redhat.com>
18554
18555 [BZ #11979]
18556 * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
18557 IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
18558
185592010-09-02 Ulrich Drepper <drepper@redhat.com>
18560
18561 * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
18562 * sysdeps/x86_64/addmul_1.S: Likewise.
18563 * sysdeps/x86_64/lshift.S: Likewise.
18564 * sysdeps/x86_64/mul_1.S: Likewise.
18565 * sysdeps/x86_64/rshift.S: Likewise.
18566 * sysdeps/x86_64/sub_n.S: Likewise.
18567 * sysdeps/x86_64/submul_1.S: Likewise.
18568
185692010-09-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
18570
18571 This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
18572 Define __sched_param instead of SCHED_* and sched_param when
18573 <bits/sched.h> is included with __need_schedparam defined.
18574 * bits/sched.h [__need_schedparam]
18575 (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
18576 [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
18577 (__defined_schedparam): Define to 1.
18578 (__sched_param): New structure, identical to sched_param.
18579 (__need_schedparam): Undefine.
18580
185812010-08-31 Mike Frysinger <vapier@gentoo.org>
18582
18583 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
18584 (epoll_create1): Declare.
18585
18586 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
18587
185882010-08-31 Andreas Schwab <schwab@redhat.com>
18589
18590 [BZ #7066]
18591 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
18592 shifting retval into place.
18593
185942010-09-01 Ulrich Drepper <drepper@redhat.com>
18595
18596 * nis/rpcsvc/nis.h: Update copyright notice.
18597 * nis/rpcsvc/nis.x: Likewise.
18598 * nis/rpcsvc/nis_callback.h: Likewise.
18599 * nis/rpcsvc/nis_callback.x: Likewise.
18600 * nis/rpcsvc/nis_object.x: Likewise.
18601 * nis/rpcsvc/nis_tags.h: Likewise.
18602 * nis/rpcsvc/yp.h: Likewise.
18603 * nis/rpcsvc/yp.x: Likewise.
18604 * nis/rpcsvc/ypupd.h: Likewise.
18605 * nis/yp_xdr.c: Likewise.
18606 * nis/ypupdate_xdr.c: Likewise.
18607
18608 * sunrpc/pm_getport.c (__libc_rpc_getport): New function. This is
18609 mainly the body of pmap_getport. Add parameters to specify timeouts.
18610 (pmap_getport): Use __libc_rpc_getport.
18611 * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
18612 * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
18613 * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
18614
186152010-08-31 Andreas Schwab <schwab@linux-m68k.org>
18616
18617 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
18618 fanotify_mark.
18619
186202010-08-27 Roland McGrath <roland@redhat.com>
18621
18622 * sysdeps/i386/i686/multiarch/Makefile
18623 (CFLAGS-varshift.c): New variable.
18624
186252010-08-27 Ulrich Drepper <drepper@redhat.com>
18626
18627 * sysdeps/i386/i686/multiarch/varshift.S: File removed.
18628 * sysdeps/i386/i686/multiarch/varshift.c: New file.
18629
18630 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
18631
18632 * sysdeps/x86_64/strlen.S: Minimal code improvement.
18633
186342010-08-26 H.J. Lu <hongjiu.lu@intel.com>
18635
18636 * sysdeps/x86_64/strlen.S: Unroll the loop.
18637 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18638 strlen-sse2 strlen-sse2-bsf.
18639 * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
18640 __strlen_no_bsf if bit_Slow_BSF is set.
18641 (__strlen_sse42): Removed.
18642 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
18643 * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
18644
186452010-08-25 Roland McGrath <roland@redhat.com>
18646
18647 * sysdeps/x86_64/multiarch/varshift.S: File removed.
18648 * sysdeps/x86_64/multiarch/varshift.c: New file.
18649 * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
18650 * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
18651 * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
18652 * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18653
186542010-08-25 H.J. Lu <hongjiu.lu@intel.com>
18655
18656 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18657 strlen-sse2 strlen-sse2-bsf.
18658 * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
18659 __strlen_sse2_bsf if bit_Slow_BSF is unset.
18660 (__strlen_sse2): Removed.
18661 * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
18662 * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
18663 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
18664 bit_Slow_BSF for Atom.
18665 * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
18666 (index_Slow_BSF): Define.
18667 (HAS_SLOW_BSF): Define.
18668
186692010-08-25 Ulrich Drepper <drepper@redhat.com>
18670
18671 [BZ #10851]
18672 * resolv/res_init.c (__res_vinit): When no server address at all
18673 is given default to loopback.
18674
186752010-08-24 Roland McGrath <roland@redhat.com>
18676
18677 * configure.in: Remove config-name.h generation.
18678 * configure: Regenerated.
18679 * config-name.in: File removed.
18680 * scripts/config-uname.sh: New file.
18681 * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
18682 ($(objdir)config-name.h): New target.
18683
18684 * sunrpc/rpc_parse.h: Avoid nested comment.
18685
186862010-08-24 Richard Henderson <rth@redhat.com>
18687 Ulrich Drepper <drepper@redhat.com>
18688 H.J. Lu <hongjiu.lu@intel.com>
18689
18690 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
18691 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
18692 * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
18693 Replace _mm_srli_si128 with __m128i_shift_right. Replace
18694 _mm_alignr_epi8 with _mm_loadu_si128.
18695 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
18696 * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
18697 (__m128i_shift_right): Removed.
18698 * sysdeps/i386/i686/multiarch/varshift.h: New file.
18699 * sysdeps/i386/i686/multiarch/varshift.S: New file.
18700 * sysdeps/x86_64/multiarch/varshift.h: New file.
18701 * sysdeps/x86_64/multiarch/varshift.S: New file.
18702
187032010-08-21 Mike Frysinger <vapier@gentoo.org>
18704
18705 * configure.in: Move assembler checks to before sysdep dir checking.
18706
187072010-08-20 Petr Baudis <pasky@suse.cz>
18708
18709 * LICENSES: Sync the sunrpc license.
18710
187112010-08-19 Ulrich Drepper <drepper@redhat.com>
18712
18713 * sunrpc/auth_des.c: Update copyright notice once again.
18714 * sunrpc/auth_none.c: Likewise.
18715 * sunrpc/auth_unix.c: Likewise.
18716 * sunrpc/authdes_prot.c: Likewise.
18717 * sunrpc/authuxprot.c: Likewise.
18718 * sunrpc/bindrsvprt.c: Likewise.
18719 * sunrpc/clnt_gen.c: Likewise.
18720 * sunrpc/clnt_perr.c: Likewise.
18721 * sunrpc/clnt_raw.c: Likewise.
18722 * sunrpc/clnt_simp.c: Likewise.
18723 * sunrpc/clnt_tcp.c: Likewise.
18724 * sunrpc/clnt_udp.c: Likewise.
18725 * sunrpc/clnt_unix.c: Likewise.
18726 * sunrpc/des_crypt.c: Likewise.
18727 * sunrpc/des_soft.c: Likewise.
18728 * sunrpc/get_myaddr.c: Likewise.
18729 * sunrpc/getrpcport.c: Likewise.
18730 * sunrpc/key_call.c: Likewise.
18731 * sunrpc/key_prot.c: Likewise.
18732 * sunrpc/openchild.c: Likewise.
18733 * sunrpc/pm_getmaps.c: Likewise.
18734 * sunrpc/pm_getport.c: Likewise.
18735 * sunrpc/pmap_clnt.c: Likewise.
18736 * sunrpc/pmap_prot.c: Likewise.
18737 * sunrpc/pmap_prot2.c: Likewise.
18738 * sunrpc/pmap_rmt.c: Likewise.
18739 * sunrpc/rpc/auth.h: Likewise.
18740 * sunrpc/rpc/auth_unix.h: Likewise.
18741 * sunrpc/rpc/clnt.h: Likewise.
18742 * sunrpc/rpc/des_crypt.h: Likewise.
18743 * sunrpc/rpc/key_prot.h: Likewise.
18744 * sunrpc/rpc/netdb.h: Likewise.
18745 * sunrpc/rpc/pmap_clnt.h: Likewise.
18746 * sunrpc/rpc/pmap_prot.h: Likewise.
18747 * sunrpc/rpc/pmap_rmt.h: Likewise.
18748 * sunrpc/rpc/rpc.h: Likewise.
18749 * sunrpc/rpc/rpc_des.h: Likewise.
18750 * sunrpc/rpc/rpc_msg.h: Likewise.
18751 * sunrpc/rpc/svc.h: Likewise.
18752 * sunrpc/rpc/svc_auth.h: Likewise.
18753 * sunrpc/rpc/types.h: Likewise.
18754 * sunrpc/rpc/xdr.h: Likewise.
18755 * sunrpc/rpc_clntout.c: Likewise.
18756 * sunrpc/rpc_cmsg.c: Likewise.
18757 * sunrpc/rpc_common.c: Likewise.
18758 * sunrpc/rpc_cout.c: Likewise.
18759 * sunrpc/rpc_dtable.c: Likewise.
18760 * sunrpc/rpc_hout.c: Likewise.
18761 * sunrpc/rpc_main.c: Likewise.
18762 * sunrpc/rpc_parse.c: Likewise.
18763 * sunrpc/rpc_parse.h: Likewise.
18764 * sunrpc/rpc_prot.c: Likewise.
18765 * sunrpc/rpc_sample.c: Likewise.
18766 * sunrpc/rpc_scan.c: Likewise.
18767 * sunrpc/rpc_scan.h: Likewise.
18768 * sunrpc/rpc_svcout.c: Likewise.
18769 * sunrpc/rpc_tblout.c: Likewise.
18770 * sunrpc/rpc_util.c: Likewise.
18771 * sunrpc/rpc_util.h: Likewise.
18772 * sunrpc/rpcinfo.c: Likewise.
18773 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
18774 * sunrpc/rpcsvc/key_prot.x: Likewise.
18775 * sunrpc/rpcsvc/klm_prot.x: Likewise.
18776 * sunrpc/rpcsvc/mount.x: Likewise.
18777 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
18778 * sunrpc/rpcsvc/nlm_prot.x: Likewise.
18779 * sunrpc/rpcsvc/rex.x: Likewise.
18780 * sunrpc/rpcsvc/rstat.x: Likewise.
18781 * sunrpc/rpcsvc/rusers.x: Likewise.
18782 * sunrpc/rpcsvc/sm_inter.x: Likewise.
18783 * sunrpc/rpcsvc/spray.x: Likewise.
18784 * sunrpc/rpcsvc/yppasswd.x: Likewise.
18785 * sunrpc/rtime.c: Likewise.
18786 * sunrpc/svc.c: Likewise.
18787 * sunrpc/svc_auth.c: Likewise.
18788 * sunrpc/svc_authux.c: Likewise.
18789 * sunrpc/svc_raw.c: Likewise.
18790 * sunrpc/svc_run.c: Likewise.
18791 * sunrpc/svc_simple.c: Likewise.
18792 * sunrpc/svc_tcp.c: Likewise.
18793 * sunrpc/svc_udp.c: Likewise.
18794 * sunrpc/svc_unix.c: Likewise.
18795 * sunrpc/svcauth_des.c: Likewise.
18796 * sunrpc/xcrypt.c: Likewise.
18797 * sunrpc/xdr.c: Likewise.
18798 * sunrpc/xdr_array.c: Likewise.
18799 * sunrpc/xdr_float.c: Likewise.
18800 * sunrpc/xdr_mem.c: Likewise.
18801 * sunrpc/xdr_rec.c: Likewise.
18802 * sunrpc/xdr_ref.c: Likewise.
18803 * sunrpc/xdr_sizeof.c: Likewise.
18804 * sunrpc/xdr_stdio.c: Likewise.
18805
18806 * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
18807 handling.
18808
188092010-08-19 Andreas Schwab <schwab@redhat.com>
18810
18811 * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
18812
188132010-08-19 Luis Machado <luisgpm@br.ibm.com>
18814
18815 * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
18816 * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
18817 * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
18818 * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
18819 * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
18820 * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
18821 * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
18822 * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
18823 * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
18824 * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
18825 * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
18826 * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
18827 * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
18828 * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
18829
188302010-07-26 Anton Blanchard <anton@samba.org>
18831
18832 * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
18833 * malloc/arena.c (heap_trim): Likewise.
18834
188352010-08-16 Ulrich Drepper <drepper@redhat.com>
18836
18837 * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
18838 here. Not...
18839 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
18840 * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
18841
188422010-08-12 H.J. Lu <hongjiu.lu@intel.com>
18843
18844 * sysdeps/i386/elf/Makefile: New file.
18845
188462010-08-14 Andreas Schwab <schwab@linux-m68k.org>
18847
18848 * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
18849 from fanotify_init.
18850 * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
18851 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18852
188532010-08-15 Ulrich Drepper <drepper@redhat.com>
18854
18855 * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
18856 of strncasecmp_l.
18857 * sysdeps/multiarch/strcmp.S: Likewise.
18858
188592010-08-14 Ulrich Drepper <drepper@redhat.com>
18860
18861 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18862 strncase_l-nonascii.
18863 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18864 Add strncase_l-ssse3.
18865 * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
18866 * sysdeps/x86_64/strcmp.S: Likewise.
18867 * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
18868 * sysdeps/x86_64/multiarch/strncase_l.S: New file.
18869 * sysdeps/x86_64/strncase.S: New file.
18870 * sysdeps/x86_64/strncase_l-nonascii.c: New file.
18871 * sysdeps/x86_64/strncase_l.S: New file.
18872 * string/Makefile (strop-tests): Add strncasecmp.
18873 * string/test-strncasecmp.c: New file.
18874
18875 * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
18876 warning.
18877
18878 * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
18879 * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
18880
188812010-08-14 Andreas Schwab <schwab@linux-m68k.org>
18882
18883 * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
18884
188852010-08-12 Ulrich Drepper <drepper@redhat.com>
18886
18887 * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
18888 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
18889 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
18890
188912010-05-01 Alan Modra <amodra@gmail.com>
18892
18893 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
18894 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
18895 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
18896 * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
18897 * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
18898 tidying. Don't tail-call __sigjmp_save for static lib.
18899 * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
18900 save location.
18901 (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
18902 (CALL_MCOUNT): Add eh info, and nop after bl.
18903 (TAIL_CALL_SYSCALL_ERROR): New macro.
18904 (PSEUDO_RET): Use it.
18905 * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
18906 Correct save location of integer regs and cr.
18907 (_dl_profile_resolve): Correct cr save location. Delete nops
18908 after bl when SHARED. Reduce cfi size a little by better
18909 placement of cfi directives.
18910 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
18911 make a stack frame. Instead use parm save area as a temp.
18912 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
18913 make a stack frame. Use TAIL_CALL_SYSCALL_ERROR.
18914 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
18915 Don't make a stack frame for parent, use parm save area.
18916 Increase child stack frame to 112 bytes. Don't save unused reg,
18917 and adjust reg usage. Set up cfi on error recovery and
18918 epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
18919 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
18920 (__makecontext): Add dummy nop after jump to exit.
18921 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
18922 Use correct parm save area and cr save, reduce stack frame.
18923 Correct cfi for possible PSEUDO_RET frame setup.
18924 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
18925 Branch to local label emitted by PSEUDO_RET rather than
18926 __syscall_error.
18927
189282010-08-12 Andreas Schwab <schwab@redhat.com>
18929
18930 [BZ #11904]
18931 * locale/programs/locale.c (print_assignment): New function.
18932 (show_locale_vars): Use it.
18933
189342010-08-11 Ulrich Drepper <drepper@redhat.com>
18935
18936 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
18937 field.
18938 (struct statfs64): Likewise.
18939 (_STATFS_F_FLAGS): Define.
18940 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
18941 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18942 Don't define if __ASSUME_STATFS_F_FLAGS is defined.
18943 (ST_VALID): Define locally.
18944 (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
18945 __statvfs_getflags, use the provided value.
18946 * sysdeps/unix/sysv/linux/kernel-features.h: Define
18947 __ASSUME_STATFS_F_FLAGS.
18948
18949 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
18950
18951 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
18952 Add sys/fanotify.h.
18953 * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
18954 fanotify_mask for GLIBC_2.13.
18955 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
18956 fanotify_init and fanotify_mark.
18957 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18958 * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
18959
18960 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
18961 Add prlimit.
18962 * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
18963 prlimit64 for GLIBC_2.13.
18964 * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
18965 prlimit64.
18966 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
18967 syscall.
18968 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18969 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18970 * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
18971 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
18972 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise. Also
18973 add prlimit alias.
18974 * sysdeps/unix/sysv/linux/prlimit.c: New file.
18975
18976 [BZ #11903]
18977 * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
18978 Patch by Evgeni Bikov <bikovevg@iitp.ru>.
18979
18980 * nss/Makefile: Add rules to build and run tst-nss-test1.
18981 * shlib-versions: Add entry for libnss_test1.
18982 * nss/nss_test1.c: New file.
18983 * nss/tst-nss-test1.c: New file.
18984
18985 * nss/nsswitch.c (__nss_database_custom): Define new variable.
18986 (__nss_configure_lookup): Set appropriate entry in
18987 __nss_configure_lookup to true.
18988 * nss/nsswitch.h: Define enum with indeces of databases in
18989 databases and __nss_database_custom arrays. Declare
18990 __nss_database_custom.
18991 * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
18992 to avoid using nscd when custom rules are installed.
18993 * nss/getXXbyYY_r.c: Likewise.
18994 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
18995
18996 * nss/nss_files/files-parse.c: Whitespace fixes.
18997
189982010-08-09 Ulrich Drepper <drepper@redhat.com>
18999
19000 [BZ #11883]
19001 * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19002 * posix/fnmatch_loop.c: Likewise.
19003
190042010-07-17 Andi Kleen <ak@linux.intel.com>
19005
19006 * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19007 * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19008 * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19009 * Versions.def [GLIBC_2.13]: Add.
19010
190112010-08-06 Ulrich Drepper <drepper@redhat.com>
19012
19013 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19014 Also fail if tpwd after pwuid call is NULL.
19015
190162010-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
19017
19018 * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19019 when converting to ms.
19020
190212010-06-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
19022
19023 * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19024 EOPNOTSUPP errors with ENOTTY.
19025 * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19026 EOPNOTSUPP errors with ENOTTY.
19027
190282010-07-31 Ulrich Drepper <drepper@redhat.com>
19029
19030 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19031 Add strcasecmp_l-ssse3.
19032 * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19033 strcasecmp.
19034 * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19035 * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19036 * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19037
190382010-07-30 Ulrich Drepper <drepper@redhat.com>
19039
19040 * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19041
19042 * string/Makefile (strop-tests): Add strcasecmp.
19043 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19044 strcasecmp_l-nonascii.
19045 (gen-as-const-headers): Add locale-defines.sym.
19046 * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
19047 * sysdeps/x86_64/strcasecmp.S: New file.
19048 * sysdeps/x86_64/strcasecmp_l.S: New file.
19049 * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
19050 * sysdeps/x86_64/locale-defines.sym: New file.
19051 * string/test-strcasecmp.c: New file.
19052
19053 * string/test-strcasestr.c: Test both ends of the range of characters.
19054 * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
19055
190562010-07-29 Roland McGrath <roland@redhat.com>
19057
19058 [BZ #11856]
19059 * manual/locale.texi (Yes-or-No Questions): Fix example code.
19060
190612010-07-27 Ulrich Drepper <drepper@redhat.com>
19062
19063 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
19064 for ld.so.
19065
190662010-07-27 Andreas Schwab <schwab@redhat.com>
19067
19068 * manual/memory.texi (Malloc Tunable Parameters): Document
19069 M_PERTURB.
19070
190712010-07-26 Roland McGrath <roland@redhat.com>
19072
19073 [BZ #11840]
19074 * configure.in (-fgnu89-inline check): Set and substitute
19075 gnu89_inline, not libc_cv_gnu89_inline.
19076 * configure: Regenerated.
19077 * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
19078
190792010-07-26 Ulrich Drepper <drepper@redhat.com>
19080
19081 * string/test-strnlen.c: New file.
19082 * string/Makefile (strop-tests): Add strnlen.
19083 * string/tester.c (test_strnlen): Add a few more test cases.
19084 * string/tst-strlen.c: Better error reporting.
19085
19086 * sysdeps/x86_64/strnlen.S: New file.
19087
190882010-07-24 Ulrich Drepper <drepper@redhat.com>
19089
19090 * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
19091 lower-latency instructions.
19092
190932010-07-23 Ulrich Drepper <drepper@redhat.com>
19094
19095 * string/test-strcasestr.c: New file.
19096 * string/test-strstr.c: New file.
19097 * string/Makefile (strop-tests): Add strstr and strcasestr.
19098 * string/str-two-way.h: Don't undefine MAX.
19099 * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19100
191012010-07-21 Andreas Schwab <schwab@redhat.com>
19102
19103 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19104 strcasestr-nonascii.
19105 (CFLAGS-strcasestr-nonascii.c): Define.
19106 * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19107 * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19108 Remove unused attribute.
19109
191102010-07-20 Roland McGrath <roland@redhat.com>
19111
19112 * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
19113 dl_hwcap_mask as well as dl_hwcap. Without this, dsocaps matching in
19114 ld.so.cache was broken. With it, there is no way to disable dsocaps
19115 like LD_HWCAP_MASK can disable hwcaps.
19116
191172010-06-02 Emilio Pozuelo Monfort <pochu27@gmail.com>
19118
19119 * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
19120
191212010-07-16 Ulrich Drepper <drepper@redhat.com>
19122
19123 * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
19124 call in strcasestr.
19125 * sysdeps/x86_64/multiarch/strcasestr.c: Declare
19126 __strcasestr_sse42_nonascii.
19127 * sysdeps/x86_64/multiarch/Makefile: Add rules to build
19128 strcasestr-nonascii.c.
19129 * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
19130
191312010-06-15 Luis Machado <luisgpm@br.ibm.com>
19132
19133 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
19134 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
19135 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
19136 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
19137
191382010-07-09 Ulrich Drepper <drepper@redhat.com>
19139
19140 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
19141 fcntl.
19142
191432010-07-06 Andreas Schwab <schwab@redhat.com>
19144
19145 [BZ #11577]
19146 * elf/dl-version.c (match_symbol): Don't pass NULL occation to
19147 dl_signal_cerror.
19148
191492010-07-06 Ulrich Drepper <drepper@redhat.com>
19150
19151 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
19152 _PC_PIPE_BUF using F_GETPIPE_SZ.
19153
191542010-07-05 Roland McGrath <roland@redhat.com>
19155
19156 * manual/arith.texi (Rounding Functions): Fix rint description
19157 implicit in round description.
19158
191592010-07-02 Ulrich Drepper <drepper@redhat.com>
19160
19161 * elf/Makefile: Fix linking for a few tests to make recent linker
19162 happy.
19163
191642010-06-30 Andreas Schwab <schwab@redhat.com>
19165
19166 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19167 $(common-objpfx)libc_nonshared.a.
19168
191692010-06-21 Luis Machado <luisgpm@br.ibm.com>
19170
19171 * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
19172 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19173 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19174 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19175 * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19176 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19177 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19178 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19179 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19180 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19181 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19182 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19183 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19184 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19185 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19186 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19187 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19188 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19189 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19190 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19191 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19192 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19193 * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19194 * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19195 * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19196 * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19197 * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19198 * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19199 * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19200 * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19201 * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19202 * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19203 * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19204 * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19205 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19206 * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19207 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19208 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19209 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19210 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19211 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19212 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19213 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19214 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19215 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19216 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19217 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19219
192202010-06-25 H.J. Lu <hongjiu.lu@intel.com>
19221
19222 * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19223 (MEMMOVE_CHK): ...this. Default to __memmove_chk.
19224 * string/memmove.c (memmove): Renamed to ...
19225 (MEMMOVE): ...this. Default to memmove.
19226 * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19227 * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19228 (END_CHK): Define.
19229 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19230 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19231 mempcpy-ssse3-back memmove-ssse3-back.
19232 * sysdeps/x86_64/multiarch/bcopy.S: New file .
19233 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19234 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19235 * sysdeps/x86_64/multiarch/memcpy.S: New file.
19236 * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19237 * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19238 * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19239 * sysdeps/x86_64/multiarch/memmove.c: New file.
19240 * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19241 * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19242 * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19243 * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19244 * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19245 * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19246 Define.
19247 (index_Fast_Copy_Backward): Define.
19248 (HAS_ARCH_FEATURE): Define.
19249 (HAS_FAST_REP_STRING): Define.
19250 (HAS_FAST_COPY_BACKWARD): Define.
19251
192522010-06-21 Andreas Schwab <schwab@redhat.com>
19253
19254 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19255 Restore proper fallback handling.
19256
192572010-06-19 Ulrich Drepper <drepper@redhat.com>
19258
19259 [BZ #11701]
19260 * posix/group_member.c (__group_member): Correct checking loop.
19261
19262 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19263 OOM in getpwuid_r correctly. Return error number when the caller
19264 should return, otherwise -1.
19265 (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19266 call returning > 0 value.
19267 * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19268
192692010-06-07 Andreas Schwab <schwab@redhat.com>
19270
19271 * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19272 libc_nonshared.a from targets in modules-names.
19273
192742010-06-02 Kirill A. Shutemov <kirill@shutemov.name>
19275
19276 * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19277 requires it.
19278
192792010-06-10 Luis Machado <luisgpm@br.ibm.com>
19280
19281 * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19282 * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19283 * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19284 * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19285
192862010-06-02 Andreas Schwab <schwab@redhat.com>
19287
19288 * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19289
192902010-06-14 Ulrich Drepper <drepper@redhat.com>
19291
19292 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19293 and F_GETPIPE_SZ.
19294 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19295 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19296 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19297 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19298 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19299 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19300
193012010-06-14 Roland McGrath <roland@redhat.com>
19302
19303 * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19304
193052010-06-07 Jakub Jelinek <jakub@redhat.com>
19306
19307 * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19308 __REDIRECT followed by __THROW.
19309 * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19310 * posix/getopt.h (getopt): Likewise.
19311
193122010-06-02 Emilio Pozuelo Monfort <pochu27@gmail.com>
19313
19314 * hurd/lookup-at.c (__file_name_lookup_at): Accept
19315 AT_SYMLINK_FOLLOW in AT_FLAGS. Fail with EINVAL if both
19316 AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19317 in AT_FLAGS.
19318 * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19319 * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19320
193212010-05-28 Luis Machado <luisgpm@br.ibm.com>
19322
19323 * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19324
193252010-05-26 H.J. Lu <hongjiu.lu@intel.com>
19326
19327 [BZ #11640]
19328 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19329 Properly check family and model.
19330
193312010-05-26 Takashi Yoshii <takashi.yoshii.zj@renesas.com>
19332
19333 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19334
193352010-05-24 Luis Machado <luisgpm@br.ibm.com>
19336
19337 * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19338
193392010-05-21 Ulrich Drepper <drepper@redhat.com>
19340
19341 * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19342 symbol reference.
19343
193442010-05-19 Andreas Schwab <schwab@redhat.com>
19345
19346 * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19347 symbol reference.
19348
193492010-05-21 Andreas Schwab <schwab@redhat.com>
19350
19351 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19352 and internal_recvmmsg.
19353 * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19354 * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19355 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19356 * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19357
19358 * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19359 * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19360 * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19361
193622010-05-20 Andreas Schwab <schwab@redhat.com>
19363
19364 * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19365
193662010-05-17 Luis Machado <luisgpm@br.ibm.com>
19367
19368 POWER7 optimizations.
19369 * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19370 * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19371
193722010-05-19 Ulrich Drepper <drepper@redhat.com>
19373
19374 * version.h: Update for 2.13 development version.
19375
193762010-05-12 Andrew Stubbs <ams@codesourcery.com>
19377
19378 * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19379 exceptions. Return 0.
19380
193812010-05-07 Roland McGrath <roland@redhat.com>
19382
19383 * elf/ldconfig.c (main): Add a const.
19384
193852010-05-06 Ulrich Drepper <drepper@redhat.com>
19386
19387 * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19388 (args_options): Add no-idn option.
19389 (ahosts_keys_int): Add idn_flags to ai_flags.
19390 (parse_option): Handle 'i' option to clear idn_flags.
19391
19392 * malloc/malloc.c (_int_free): Possible race in the most recently
19393 added check. Only act on the data if no current modification
19394 happened.
19395
19396See ChangeLog.17 for earlier changes.