]> git.ipfire.org Git - thirdparty/glibc.git/blame_incremental - ChangeLog
Add a missing #include to dl-sym.c.
[thirdparty/glibc.git] / ChangeLog
... / ...
CommitLineData
12012-08-15 Roland McGrath <roland@hack.frob.com>
2
3 * elf/dl-sym.c: Include <stdlib.h>.
4
5 * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
6 constants, which avoids warnings in 32-bit builds.
7
8 * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
9 (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
10
11 * misc/lseek.c: File moved to ...
12 * io/lseek.c: ... here.
13
14 * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
15
16 * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
17 shifting LEN more than 31 bits at once.
18
192012-08-15 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
20
21 [BZ #14195]
22 * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
23 segmentation fault for a case of two empty input strings.
24 * string/test-strncasecmp.c (check1): Renamed to...
25 (bz12205): ...this.
26 (bz14195): Add new testcase for two empty input strings and N > 0.
27 (test_main): Call new testcase, adapt for renamed function.
28
292012-08-15 Andreas Jaeger <aj@suse.de>
30
31 [BZ #14090]
32 * crypt/md5test2.c: New test, based on test supplied by Serge
33 Belyshev <belyshev@depni.sinp.msu.ru>.
34 * crypt/Makefile (xtests): Add md5test-giant..
35 * crypt/Makefile ($(objpfx)md5test-giant): Add.
36
372012-08-15 Paul Eggert <eggert@cs.ucla.edu>
38
39 [BZ #14090]
40 * crypt/md5.c (md5_process_block): Don't assume the buffer
41 length is less than 2**32.
42 * crypt/sha512.c (sha512_process_block): Don't assume the buffer
43 length is less than 2**64.
44
452012-08-15 Roland McGrath <roland@hack.frob.com>
46
47 * string/str-two-way.h: Include <sys/param.h>.
48 (MAX): Macro removed.
49
50 * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
51 Move #define and #undef of memmove to just before and after
52 including <string.h>.
53
54 * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
55 [!NOT_IN_libc]: Move #define and #undef of memmove to just before
56 and after including <string.h>. Move declarations of
57 __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
58 to before #include "string/memmove.c".
59
60 * include/dirent.h: Declare __getdirentries.
61
62 * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
63 using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
64
652012-08-14 Mike Frysinger <vapier@gentoo.org>
66
67 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
68 * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
69 * sysdeps/i386/configure: Regenerated.
70 * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
71 STABS_CURRENT_FILE, and STABS_FUN.
72 (END): Remove call to STABS_FUN_END.
73 (STABS_CURRENT_FILE1): Delete.
74 (STABS_CURRENT_FILE): Likewise.
75 (STABS_FUN): Likewise.
76 (STABS_FUN_END): Likewise.
77 (STABS_FUN2): Likewise.
78 * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
79 * sysdeps/x86_64/configure: Regenerated.
80
812012-08-14 Roland McGrath <roland@hack.frob.com>
82
83 * elf/dl-open.c: Include <atomic.h>.
84 * elf/dl-lookup.c: Likewise.
85
862012-08-14 Joseph Myers <joseph@codesourcery.com>
87
88 * sysdeps/unix/sysv/linux/kernel-features.h
89 (__ASSUME_CLONE_THREAD_FLAGS): Remove.
90 * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
91 unconditionally.
92 * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
93 unconditionally.
94 * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
95 condition on __ASSUME_CLONE_THREAD_FLAGS.
96
972012-08-14 Andreas Jaeger <aj@suse.de>
98
99 * sysdeps/i386/fpu/libm-test-ulps: Update.
100
1012012-08-13 Maxim Kuvyrkov <maxim@codesourcery.com>
102
103 * include/atomic.h (atomic_exchange_and_add): Split into ...
104 (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
105 New atomic macros.
106
1072012-08-13 Markus Trippelsdorf <markus@trippelsdorf.de>
108
109 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
110
1112012-08-13 Jeff Law <law@redhat.com>
112
113 * manual/stdio.texi (snprintf): Clarify handling of the trailing
114 null byte in the output string.
115
1162012-08-10 Joseph Myers <joseph@codesourcery.com>
117
118 * sysdeps/unix/sysv/linux/kernel-features.h
119 (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
120 [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
121 (__ASSUME_ARG_MAX_STACK_BASED): Define.
122 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
123 [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
124 !__ASSUME_ARG_MAX_STACK_BASED. Compare version with
125 __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
126
1272012-08-09 Jeff Law <law@redhat.com>
128
129 [BZ #13939]
130 * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
131 When avoid_arena is set, don't retry in the that arena. Pick the
132 next one, whatever it might be.
133 (arena_get2): New parameter avoid_arena, pass through to reused_arena.
134 (arena_lock): Pass in new parameter to arena_get2.
135 * malloc/malloc.c (__libc_memalign): Pass in new parameter to
136 arena_get2.
137 (__libc_malloc): Unify retrying after main arena failure with
138 __libc_memalign version.
139 (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
140
1412012-08-09 H.J. Lu <hongjiu.lu@intel.com>
142
143 [BZ #14166]
144 * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
145 to __redirect_strstr.
146 (__strstr_sse42): Use typeof __redirect_strstr.
147 (__strstr_ia32): Likewise.
148 (__libc_strstr): New prototype.
149 (strstr): Renamed to ...
150 (__libc_strstr): This.
151 (strstr): New strong alias of __libc_strstr.
152 * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
153 * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
154 __redirect_time.
155 Include <time.h>.
156 (__libc_time): New prototype.
157 (time_ifunc): Replace time with __libc_time.
158 (time): New strong alias and hidden definition of __libc_time.
159 (__GI_time): Remove strong alias.
160 * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
161 Include <stddef.h>.
162 (memmove): Redefined to __redirect_memmove.
163 (__memmove_sse2): Use typeof __redirect_memmove.
164 (__memmove_ssse3): Likewise.
165 (__memmove_ssse3_back): Likewise.
166 (__libc_memmove): New prototype.
167 (memmove): Renamed to ...
168 (__libc_memmove): This.
169 (memmove): New strong alias of __libc_memmove.
170
1712012-08-08 Mark Salter <msalter@redhat.com>
172
173 * elf/elf.h
174 (R_MN10300_TLS_GD): Define.
175 (R_MN10300_TLS_LD): Likewise.
176 (R_MN10300_TLS_LDO): Likewise.
177 (R_MN10300_TLS_GOTIE): Likewise.
178 (R_MN10300_TLS_IE): Likewise.
179 (R_MN10300_TLS_LE): Likewise.
180 (R_MN10300_TLS_DTPMOD): Likewise.
181 (R_MN10300_TLS_DTPOFF): Likewise.
182 (R_MN10300_TLS_TPOFF): Likewise.
183 (R_MN10300_SYM_DIFF): Likewise.
184 (R_MN10300_ALIGN): Likewise.
185 (R_MN10300_NUM): Update.
186
1872012-08-08 Joseph Myers <joseph@codesourcery.com>
188
189 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
190 Remove.
191
1922012-08-08 Roland McGrath <roland@hack.frob.com>
193
194 * sysdeps/posix/fdopendir.c: Include <stddef.h>.
195
196 * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
197 sysdeps/unix -> sysdeps/posix move.
198 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
199
2002012-08-07 Allan McRae <allan@archlinux.org>
201
202 [BZ #14303]
203 * sunrpc/rpc_main.c (SVR4_CPP): Remove.
204 (SUNOS_CPP): Likewise.
205 (find_cpp): Fall back to selecting system cpp when /lib/cpp is
206 not found.
207 (open_input): Call CPP using execvp.
208
2092012-08-07 Joseph Myers <joseph@codesourcery.com>
210
211 * sysdeps/unix/sysv/linux/kernel-features.h
212 (__ASSUME_PROT_GROWSUPDOWN): Remove.
213 (__ASSUME_NO_CLONE_DETACHED): Likewise.
214 (__ASSUME_GETDENTS32_D_TYPE): Likewise.
215 (__ASSUME_WAITID_SYSCALL): Likewise.
216 * sysdeps/unix/sysv/linux/dl-execstack.c
217 (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
218 code unconditional.
219 (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
220 conditional code.
221 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
222 [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
223 (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
224 code.
225 * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
226 unconditional.
227 [__ASSUME_WAITID_SYSCALL]: Likewise.
228 [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
229
2302012-08-07 Roland McGrath <roland@hack.frob.com>
231
232 * sysdeps/unix/closedir.c: Renamed to ...
233 * sysdeps/posix/closedir.c: ... here.
234 * sysdeps/unix/dirfd.c: Renamed to ...
235 * sysdeps/posix/dirfd.c: ... here.
236 * sysdeps/unix/dirstream.h: Renamed to ...
237 * sysdeps/posix/dirstream.h: ... here.
238 * sysdeps/unix/fdopendir.c: Renamed to ...
239 * sysdeps/posix/fdopendir.c: ... here.
240 * sysdeps/unix/opendir.c: Renamed to ...
241 * sysdeps/posix/opendir.c: ... here.
242 * sysdeps/unix/readdir.c: Renamed to ...
243 * sysdeps/posix/readdir.c: ... here.
244 * sysdeps/unix/readdir_r.c: Renamed to ...
245 * sysdeps/posix/readdir_r.c: ... here.
246 * sysdeps/unix/rewinddir.c: Renamed to ...
247 * sysdeps/posix/rewinddir.c: ... here.
248 * sysdeps/unix/seekdir.c: Renamed to ...
249 * sysdeps/posix/seekdir.c: ... here.
250 * sysdeps/unix/telldir.c: Renamed to ...
251 * sysdeps/posix/telldir.c: ... here.
252 * sysdeps/unix/sysv/linux/opendir.c: Update #include.
253 * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
254 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
255 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
256
257 * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
258 * bits/fcntl.h: ... here.
259
260 * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
261 not 0.
262 (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
263 [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
264 (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
265 (struct flock): Move l_start, l_len to the beginning.
266 Use __pid_t for l_pid.
267 [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
268 [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
269 [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
270 (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
271 [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
272 [__USE_LARGEFILE64] (struct flock64): New type.
273 (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
274
275 * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
276 * bits/dirent.h: ... here.
277
278 * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
279 [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
280
2812012-08-07 Joseph Myers <joseph@codesourcery.com>
282
283 * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
284 Change from 2.6.0 to 2.6.16.
285 * sysdeps/unix/sysv/linux/configure: Regenerated.
286 * sysdeps/unix/sysv/linux/kernel-features.h
287 (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
288 (__ASSUME_TGKILL): Define conditional on architectures, not kernel
289 version.
290 (__ASSUME_UTIMES): Likewise.
291 (__ASSUME_CLONE_STOPPED): Remove.
292 (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
293 architectures, not kernel version.
294 (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
295 (__ASSUME_NO_CLONE_DETACHED): Likewise.
296 (__ASSUME_GETDENTS32_D_TYPE): Likewise.
297 (__ASSUME_WAITID_SYSCALL): Likewise.
298 [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
299 condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
300 * README: State 2.6.16 as minimum Linux kernel version. Do not
301 refer to older versions.
302
3032012-08-06 Roland McGrath <roland@hack.frob.com>
304
305 * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
306 Define alphasort64 as an alias.
307 * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
308 Define versionsort64 as an alias.
309 * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
310 Define scandir64 as an alias.
311 * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
312 Define scandirat64 as an alias.
313 * dirent/alphasort64.c (alphasort64):
314 Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
315 * dirent/versionsort64.c: Likewise.
316 * dirent/scandir64.c: Likewise.
317 * dirent/scandirat64.c: Likewise.
318 * sysdeps/wordsize-64/alphasort.c: File removed.
319 * sysdeps/wordsize-64/alphasort64.c: File removed.
320 * sysdeps/wordsize-64/scandir.c: File removed.
321 * sysdeps/wordsize-64/scandir64.c: File removed.
322 * sysdeps/wordsize-64/scandirat.c: File removed.
323 * sysdeps/wordsize-64/scandirat64.c: File removed.
324 * sysdeps/wordsize-64/versionsort.c: File removed.
325 * sysdeps/wordsize-64/versionsort64.c: File removed.
326 * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
327 * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
328 * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
329 * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
330 * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
331 * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
332 * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
333 * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
334
335 * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
336 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
337 [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
338 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
339 [defined __arch64__ || defined __sparcv9]
340 (__INO_T_MATCHES_INO64_T): New macro.
341 * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
342 [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
343 * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
344 * sysdeps/unix/sysv/linux/bits/dirent.h
345 [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
346 (_DIRENT_MATCHES_DIRENT64): New macro.
347
348 * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
349 Define lockf64 as an alias.
350 * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
351 Define fseeko64 as an alias.
352 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
353 Define ftello64 as an alias.
354 * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
355 Define _IO_fgetpos64 and fgetpos64 as aliases.
356 * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
357 Define _IO_fsetpos64 and fsetpos64 as aliases.
358 * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
359 Conditionalize body on this.
360 * libio/fseeko64.c: Likewise.
361 * libio/ftello64.c: Likewise.
362 * libio/iofgetpos64.c: Likewise.
363 * libio/iofsetpos64.c: Likewise.
364 * sysdeps/wordsize-64/lockf.c: File removed.
365 * sysdeps/wordsize-64/lockf64.c: File removed.
366 * sysdeps/wordsize-64/fseeko.c: File removed.
367 * sysdeps/wordsize-64/fseeko64.c: File removed.
368 * sysdeps/wordsize-64/ftello.c: File removed.
369 * sysdeps/wordsize-64/ftello64.c: File removed.
370 * sysdeps/wordsize-64/iofgetpos.c: File removed.
371 * sysdeps/wordsize-64/iofgetpos64.c: File removed.
372 * sysdeps/wordsize-64/iofsetpos.c: File removed.
373 * sysdeps/wordsize-64/iofsetpos64.c: File removed.
374 * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
375 * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
376 * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
377 * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
378 * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
379 * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
380 * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
381 * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
382 * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
383 * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
384
385 * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
386 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
387 [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
388 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
389 [defined __arch64__ || defined __sparcv9]
390 (__OFF_T_MATCHES_OFF64_T): New macro.
391 * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
392 [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
393 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
394 (__OFF_T_MATCHES_OFF64_T): New macro.
395
3962012-08-06 H.J. Lu <hongjiu.lu@intel.com>
397
398 * stdlib/secure-getenv.c (__secure_getenv): Replace
399 GLIBC_2_16 with GLIBC_2_17.
400
4012012-08-06 H.J. Lu <hongjiu.lu@intel.com>
402
403 * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
404 * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
405
4062012-08-03 David S. Miller <davem@davemloft.net>
407
408 * sysdeps/sparc/fpu/libm-test-ulps: Update.
409
4102012-08-03 Joseph Myers <joseph@codesourcery.com>
411
412 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
413 Remove.
414 (__ASSUME_CORRECT_SI_PID): Likewise.
415 (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
416 (__ASSUME_TMPFS_NAME): Likewise.
417 * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
418 [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
419 * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
420 (HAVE_AUX_SECURE): Make definition unconditional.
421 * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
422 [!__ASSUME_TMPFS_NAME]: Remove conditional code.
423
4242012-08-03 Roland McGrath <roland@hack.frob.com>
425
426 * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
427 * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
428 * sysdeps/mach/hurd/eloop-threshold.h: New file.
429 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
430 __eloop_threshold instead of SYMLOOP_MAX.
431
432 * sysdeps/generic/eloop-threshold.h: New file.
433 * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
434 of MAXSYMLINKS.
435 * elf/chroot_canon.c (chroot_canon): Likewise.
436
4372012-08-03 Joseph Myers <joseph@codesourcery.com>
438
439 [BZ #13717]
440 * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
441 Change to 2.6.0 everywhere.
442 * sysdeps/unix/sysv/linux/configure: Regenerated.
443 * sysdeps/unix/sysv/linux/kernel-features.h
444 (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
445 (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
446 kernel versions.
447 (__ASSUME_POSIX_TIMERS): Define unconditionally.
448 (__ASSUME_FUTEX_REQUEUE): Remove.
449 (__ASSUME_STATFS64): Define unconditionally.
450 (__ASSUME_AT_SECURE): Likewise.
451 (__ASSUME_CORRECT_SI_PID): Likewise.
452 (__ASSUME_TGKILL): Define without depending on kernel version for
453 i386.
454 (__ASSUME_UTIMES): Likewise.
455 (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
456 kernel version.
457 (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
458 (__ASSUME_TMPFS_NAME): Likewise.
459 * README: Update reference to Linux kernel versions.
460
4612012-08-02 Marek Polacek <polacek@redhat.com>
462
463 [BZ#14150]
464 * configure.in (libc_cv_asm_type_prefix): Remove test. Replace
465 libc_cv_asm_type_prefix with %.
466 * configure: Regenerated.
467 * include/libc-symbols.h: Remove comment about
468 ASM_TYPE_DIRECTIVE_PREFIX. Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
469 (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
470 (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
471 (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
472 (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
473 * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
474 [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
475 [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
476 * elf/tst-unique2mod1.c: Likewise.
477 * elf/tst-unique1mod2.c: Likewise.
478 * elf/tst-unique1mod1.c: Likewise.
479 * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
480 * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
481 Replace ASM_TYPE_DIRECTIVE with .type.
482 * sysdeps/s390/s390-64/sysdep.h: Likewise.
483 * sysdeps/i386/sysdep.h: Likewise.
484 * sysdeps/x86_64/sysdep.h: Likewise.
485 * sysdeps/sh/sysdep.h: Likewise.
486 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
487 Do not define ASM_TYPE_DIRECTIVE.
488 * sysdeps/powerpc/sysdep.h: Likewise.
489 * sysdeps/powerpc/powerpc32/sysdep.h:
490 Replace ASM_TYPE_DIRECTIVE with .type.
491 * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
492 * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
493 * sysdeps/i386/fpu/e_powf.S: Likewise.
494 * sysdeps/i386/fpu/e_expl.S: Likewise.
495 * sysdeps/i386/fpu/e_atanhf.S: Likewise.
496 * sysdeps/i386/fpu/e_acosh.S: Likewise.
497 * sysdeps/i386/fpu/e_pow.S: Likewise.
498 * sysdeps/i386/fpu/s_asinhl.S: Likewise.
499 * sysdeps/i386/fpu/e_acoshl.S: Likewise.
500 * sysdeps/i386/fpu/s_expm1.S: Likewise.
501 * sysdeps/i386/fpu/s_frexpf.S: Likewise.
502 * sysdeps/i386/fpu/e_log2.S: Likewise.
503 * sysdeps/i386/fpu/e_log2l.S: Likewise.
504 * sysdeps/i386/fpu/e_scalb.S: Likewise.
505 * sysdeps/i386/fpu/e_powl.S: Likewise.
506 * sysdeps/i386/fpu/e_log10f.S: Likewise.
507 * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
508 * sysdeps/i386/fpu/e_logl.S: Likewise.
509 * sysdeps/i386/fpu/s_cbrt.S: Likewise.
510 * sysdeps/i386/fpu/s_frexpl.S: Likewise.
511 * sysdeps/i386/fpu/s_expm1f.S: Likewise.
512 * sysdeps/i386/fpu/e_log2f.S: Likewise.
513 * sysdeps/i386/fpu/e_acoshf.S: Likewise.
514 * sysdeps/i386/fpu/e_log.S: Likewise.
515 * sysdeps/i386/fpu/e_scalbf.S: Likewise.
516 * sysdeps/i386/fpu/e_logf.S: Likewise.
517 * sysdeps/i386/fpu/e_log10l.S: Likewise.
518 * sysdeps/i386/fpu/e_atanh.S: Likewise.
519 * sysdeps/i386/fpu/s_asinhf.S: Likewise.
520 * sysdeps/i386/fpu/e_log10.S: Likewise.
521 * sysdeps/i386/fpu/s_frexp.S: Likewise.
522 * sysdeps/i386/fpu/e_atanhl.S: Likewise.
523 * sysdeps/i386/fpu/s_asinh.S: Likewise.
524 * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
525 * sysdeps/i386/fpu/e_scalbl.S: Likewise.
526 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
527 * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
528 * sysdeps/i386/i686/strtok.S: Likewise.
529 * sysdeps/i386/i386-mcount.S: Likewise.
530 * sysdeps/i386/strtok.S: Likewise.
531 * sysdeps/x86_64/fpu/e_expl.S: Likewise.
532 * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
533 * sysdeps/x86_64/fpu/e_powl.S: Likewise.
534 * sysdeps/x86_64/fpu/e_logl.S: Likewise.
535 * sysdeps/x86_64/fpu/e_expf.S: Likewise.
536 * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
537 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
538 * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
539 * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
540 * sysdeps/x86_64/_mcount.S: Likewise.
541 * sysdeps/x86_64/strtok.S: Likewise.
542 * sysdeps/sh/_mcount.S: Likewise.
543
5442012-08-01 Roland McGrath <roland@hack.frob.com>
545
546 * libio/iofopen.c: Include <fcntl.h>.
547 [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
548 (_IO_fopen64, fopen64): Define as aliases.
549 * libio/iofopen64.c: Include <fcntl.h>.
550 [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
551 Conditionalize body on this.
552 * sysdeps/wordsize-64/iofopen.c: File removed.
553 * sysdeps/wordsize-64/iofopen64.c: File removed.
554
5552012-08-01 Marek Polacek <polacek@redhat.com>
556
557 * libc/Makeconfig: Use elf in place of binfmt-subdir.
558 Use dlfcn directly instead of a variable.
559 (binfmt-subdir): Do not define.
560 (dlfcn): Likewise.
561
5622012-08-01 Joseph Myers <joseph@codesourcery.com>
563
564 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
565 Remove all definitions.
566 * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
567 <kernel-features.h>.
568 [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
569 (miss_F_GETOWN_EX): Remove all definitions.
570 [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
571 macro definition.
572 [!__ASSUME_FCNTL64]: Remove conditional code.
573 [__ASSUME_FCNTL64]: Make code unconditional.
574 * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
575 <kernel-features.h>.
576 [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
577 (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
578 (lockf64) [__NR_fcntl64]: Make code unconditional.
579 (lockf64) [__ASSUME_FCNTL64]: Likewise.
580
581 * sysdeps/unix/sysv/linux/kernel-features.h
582 (__ASSUME_VFORK_SYSCALL): Remove all definitions.
583 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
584 Make code unconditional.
585 (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
586 (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
587 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
588 [__NR_vfork]: Make code unconditional.
589 (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
590 (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
591 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
592 [__NR_vfork]: Make code unconditional.
593 (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
594 (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
595
5962012-08-01 Roland McGrath <roland@hack.frob.com>
597
598 * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
599 (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
600
601 * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
602 Define mkstemp64 as an alias.
603 * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
604 Define mkstemps64 as an alias.
605 * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
606 Define mkostemp64 as an alias.
607 * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
608 Define mkostemps64 as an alias.
609 * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
610 Conditionalize body on this.
611 * misc/mkostemp64.c: Likewise.
612 * misc/mkostemps64.c: Likewise.
613 * misc/mkstemps64.c: Likewise.
614 * sysdeps/wordsize-64/mkstemp64.c: File removed.
615 * sysdeps/wordsize-64/mkostemp64.c: File removed.
616 * sysdeps/wordsize-64/mkostemp.c: File removed.
617 * sysdeps/wordsize-64/mkstemp.c: File removed.
618 * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
619 * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
620 * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
621 * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
622
623 [BZ #14138]
624 * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
625 * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
626 * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
627 * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
628
629 * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
630 compat_symbol macros from <shlib-compat.h> rather than the underlying
631 default_symbol_version and symbol_version macros, so that DEFAULT
632 lines in shlib-versions are respected.
633 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
634
6352012-08-01 Florian Weimer <fweimer@redhat.com>
636
637 * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
638 Declare with warn_unused_result.
639 (setgid, setregid, setegid, setresgid): Likewise.
640 * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
641 Likewise.
642 * WUR-REPORT: Remove set*id functions.
643
6442012-07-31 Pino Toscano <toscano.pino@tiscali.it>
645
646 * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
647
6482012-07-31 Roland McGrath <roland@hack.frob.com>
649
650 * include/sys/socket.h (__libc_accept, __libc_accept4):
651 Add attribute_hidden.
652 * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
653
654 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
655 use of PTR_MANGLE.
656 * inet/getnetgrent_r.c (setup): Likewise.
657
658 * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
659
6602012-07-31 David S. Miller <davem@davemloft.net>
661
662 * sysdeps/sparc/fpu/libm-test-ulps: Update.
663
6642012-07-31 Joseph Myers <joseph@codesourcery.com>
665
666 [BZ #13629]
667 * math/s_clog.c (__clog): Use __log1p if larger part has absolute
668 value between 1.0 and 2.0 and smaller part has absolute value less
669 than 1.0.
670 * math/s_clog10.c (__clog10): Likewise.
671 * math/s_clog10f.c (__clog10f): Likewise.
672 * math/s_clog10l.c (__clog10l): Likewise.
673 * math/s_clogf.c (__clogf): Likewise.
674 * math/s_clogl.c (__clogl): Likewise.
675 * math/libm-test.inc (clog_test): Add more tests.
676 (clog10_test): Likewise.
677 * sysdeps/i386/fpu/libm-test-ulps: Update.
678 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
679
6802012-07-31 Florian Weimer <fweimer@redhat.com>
681
682 * stdlib/tst-secure-getenv.c: Use printf for error reporting.
683 Exit with zero in case no suitable GID is found, and write a
684 message to standard error.
685
6862012-07-30 Roland McGrath <roland@hack.frob.com>
687
688 * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
689 rather than to 1.
690 (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
691 (MAXPATHLEN): Removed.
692 (NOGROUP, NODEV): New macros.
693 (setbit, clrbit, isset, isclr): New macros.
694 (howmany, roundup, powerof2): New macros.
695 (DEV_BSIZE): New macro.
696
697 * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
698 * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
699
700 * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
701 definition on [!__NO_LONG_DOUBLE_MATH].
702
703 * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
704 PTR_MANGLE and PTR_DEMANGLE.
705
706 * socket/accept4.c (accept4): Rename to __libc_accept4.
707 Define accept4 as a weak alias.
708
709 * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
710 on [_DIRENT_HAVE_D_TYPE].
711 * io/ftw.c (ftw_dir): Likewise.
712
713 * io/xmknod.c (__xmknod): Don't check PATH for being null.
714
715 * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
716
717 * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
718 Use the BSD numbers rather than the arbitrary ones we had.
719 (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
720 (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
721 (SIGXCPU, SIGXFSZ): New macros.
722 (_NSIG): Now 32.
723
724 * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
725 initializer on [_LIBC_REENTRANT].
726
727 * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
728 definitions inside [_POSIX_MAPPED_FILES].
729
730 * posix/regex.c: Include <sys/param.h> for MIN/MAX.
731
732 * dirent/opendir.c: Include <fcntl.h>.
733
734 * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
735 (__libc_getspecific): Likewise.
736 (__libc_key_create): Likewise.
737
738 * stdio-common/tmpfile64.c: Include <fcntl.h> first.
739 [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
740 * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
741 (tmpfile64): Define as alias.
742 * sysdeps/wordsize-64/tmpfile.c: File removed.
743 * sysdeps/wordsize-64/tmpfile64.c: File removed.
744 * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
745 * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
746
747 * stdio-common/vfscanf.c: Include <stdbool.h>.
748 * nss/makedb.c: Likewise.
749 * stdio-common/_i18n_number.h: Likewise.
750 * argp/argp-help.c: Likewise.
751 * posix/wordexp.c: Likewise.
752 * sysdeps/posix/spawni.c: Likewise.
753 * nss/nss_files/files-initgroups.c: Likewise.
754 * stdio-common/reg-modifier.c: Include <stdlib.h>.
755 * nss/nss_files/files-initgroups.c: Likewise.
756 * nss/nss_db/db-netgrp.c: Likewise.
757 * nss/nss_db/db-initgroups.c: Likewise.
758 * io/fchmodat.c: Include <sys/stat.h>.
759
760 * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
761 __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
762
763 * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
764 [HAVE_MMAP].
765
766 * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
767 Add multiple inclusion protection.
768
7692012-07-27 David S. Miller <davem@davemloft.net>
770
771 * sysdeps/sparc/fpu/libm-test-ulps: Update.
772
7732012-07-27 Gary Benson <gbenson@redhat.com>
774
775 [BZ #14298]
776 * elf/rtld.c: Include <stap-probe.h>.
777 (dl_main): Added static probes "init_start" and "init_complete".
778 * elf/dl-load.c: Include <stap-probe.h>.
779 (lose): Take new parameter "nsid".
780 Added static probe "map_failed".
781 (_dl_map_object_from_fd): Pass namespace id to lose.
782 Added static probe "map_start".
783 (open_verify): Pass namespace id to lose.
784 * elf/dl-open.c: Include <stap-probe.h>.
785 (dl_open_worker) Added static probes "map_complete", "reloc_start"
786 and "reloc_complete".
787 * elf/dl-close.c: Include <stap-probe.h>.
788 (_dl_close_worker): Added static probes "unmap_start" and
789 "unmap_complete".
790 * elf/rtld-debugger-interface.txt: New file documenting the above.
791
7922012-07-26 Roland McGrath <roland@hack.frob.com>
793
794 * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
795 rather than a string variable.
796 * sunrpc/rpc_main.c (h_output): Likewise.
797 * sunrpc/rpc_svcout.c (write_real_program): Likewise.
798
7992012-07-26 Pino Toscano <toscano.pino@tiscali.it>
800
801 * inet/check_native.c: New file.
802
8032012-07-26 Joseph Myers <joseph@codesourcery.com>
804
805 [BZ #13629]
806 * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
807 if larger part has absolute value 1.0.
808 * math/s_clog10.c (__clog10): Likewise.
809 * math/s_clog10f.c (__clog10f): Likewise.
810 * math/s_clog10l.c (__clog10l): Likewise.
811 * math/s_clogf.c (__clogf): Likewise.
812 * math/s_clogl.c (__clogl): Likewise.
813 * math/libm-test.inc (clog_test): Add more tests.
814 (clog10_test): Likewise.
815 * sysdeps/i386/fpu/libm-test-ulps: Update.
816 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
817
818 * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
819 (pltexit): Likewise.
820 (La_regs): Likewise.
821 (La_retval): Likewise.
822 (int_retval): Likewise.
823 Update #error for removed macros to refer only to definitions in
824 tst-audit.h.
825 * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
826 macro.
827 (pltexit): Likewise.
828 (La_regs): Likewise.
829 (La_retval): Likewise.
830 (int_retval): Likewise.
831 * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
832 macro.
833 (pltexit): Likewise.
834 (La_regs): Likewise.
835 (La_retval): Likewise.
836 (int_retval): Likewise.
837 * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
838 macro.
839 (pltexit): Likewise.
840 (La_regs): Likewise.
841 (La_retval): Likewise.
842 (int_retval): Likewise.
843 * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
844 macro.
845 (pltexit): Likewise.
846 (La_regs): Likewise.
847 (La_retval): Likewise.
848 (int_retval): Likewise.
849 * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
850 macro.
851 (pltexit): Likewise.
852 (La_regs): Likewise.
853 (La_retval): Likewise.
854 (int_retval): Likewise.
855 * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
856 macro.
857 (pltexit): Likewise.
858 (La_regs): Likewise.
859 (La_retval): Likewise.
860 (int_retval): Likewise.
861 * sysdeps/generic/tst-audit.h: Update comment to refer only to
862 macro definitions in tst-audit.h.
863 * sysdeps/i386/tst-audit.h: New file.
864 * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
865 * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
866 * sysdeps/s390/s390-32/tst-audit.h: Likewise.
867 * sysdeps/s390/s390-64/tst-audit.h: Likewise.
868 * sysdeps/sh/tst-audit.h: Likewise.
869 * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
870 * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
871 * sysdeps/x86_64/tst-audit.h: Likewise.
872
8732012-07-26 Andreas Jaeger <aj@suse.de>
874
875 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
876 ptrace.
877
878 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
879 new value PTRACE_EVENT_SECCOMP from Linux 3.5.
880 (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
881 PTRACE_O_MASK.
882 * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
883 * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
884 * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
885
886 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
887 value.
888
889 * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
890 _sigsys.
891 (si_call_addr, si_syscall, si_arch): Define new macro.
892 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
893 _sigsys.
894 (si_call_addr, si_syscall, si_arch): Define new marcro.
895 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
896 _sigsys.
897 (si_call_addr, si_syscall, si_arch): Define new macro.
898 * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
899 _sigsys.
900 (si_call_addr, si_syscall, si_arch): Define new macro.
901
9022012-07-25 Joseph Myers <joseph@codesourcery.com>
903
904 [BZ #13717]
905 * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
906 Change to 2.4.21 where previously 2.4.1.
907 * sysdeps/unix/sysv/linux/configure: Regenerated.
908 * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
909 __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
910 Linux kernel version.
911 (__ASSUME_STD_AUXV): Remove.
912 [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
913 kernel version.
914 [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
915 (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
916 (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
917 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
918 (__ASSUME_NETLINK_SUPPORT): Likewise.
919 * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
920 (__no_netlink_support): Remove conditional definition.
921 * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
922 Remove.
923 (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
924 [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
925 * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
926 (if_nameindex_ioctl): Remove.
927 (if_nameindex_netlink): Do not handle __no_netlink_support.
928 (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
929 code.
930 * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
931 Remove conditional code.
932 (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
933 code.
934 (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
935 unconditional.
936 [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
937 [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
938 * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
939 Remove.
940 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
941 [!__ASSUME_STD_AUXV]: Remove conditional code.
942 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
943 [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
944 [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
945 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
946 [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
947 (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
948 code.
949 [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
950 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
951 [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
952 (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
953 conditional code.
954 [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
955 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
956 (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
957 code.
958 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
959 (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
960 conditional code.
961 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
962 (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
963 code unconditional.
964 (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
965 conditional code.
966 (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
967 unconditional.
968 (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
969 conditional code.
970 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
971 (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
972 unconditional.
973 (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
974 conditional code.
975 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
976 (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
977 code unconditional.
978 (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
979 conditional code.
980 (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
981 unconditional.
982 (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
983 conditional code.
984 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
985 (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
986 code unconditional.
987 (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
988 conditional code.
989 (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
990 unconditional.
991 (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
992 conditional code.
993
9942012-07-25 Andreas Schwab <schwab@linux-m68k.org>
995
996 * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
997 * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
998 * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
999 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
1000 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
1001 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
1002 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1003 * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
1004 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
1005 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
1006 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
1007 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
1008 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
1009 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1010 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1011 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
1012 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
1013 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
1014 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
1015 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
1016 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
1017 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1018 * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
1019
10202012-07-25 Florian Weimer <fweimer@redhat.com>
1021
1022 * Versions.def: Add GLIBC_2.17.
1023 * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
1024 * include/stdlib.h: Rename __secure_getenv to secure_getenv.
1025 Introduce __libc_secure_getenv.
1026 * stdlib/Versions (2.17): Add secure_getenv
1027 (GLIBC_PRIVATE): Add __libc_secure_getenv.
1028 * stdlib/secure-getenv.c: Rename __secure_getenv to
1029 __libc_secure_getenv. Add secure_getenv alias. Add compatibility
1030 symbol __secure_getenv for GLIBC_2.0.
1031 * stdlib/tst-secure-getenv.c: New.
1032 * stdlib/Makefile (tests): Add testcase.
1033 * manual/startup.texi (Environment Access): Document
1034 secure_getenv.
1035 * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
1036 __libc_secure_getenv.
1037 * inet/ruserpass.c (ruserpass): Likewise.
1038 * malloc/mtrace.c (mtrace): Likewise.
1039 * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
1040 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
1041 * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
1042 * sysdeps/posix/tempname.c: Likewise. Evaluate
1043 HAVE_SECURE_GETENV.
1044 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
1045 __secure_getenv to __libc_secure_getenv.
1046 * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
1047 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1048 Likewise.
1049 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1050 Likewise.
1051 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1052 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1053 * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1054 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1055 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1056 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1057 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1058
10592012-07-25 Joseph Myers <joseph@codesourcery.com>
1060
1061 * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
1062 (struct La_i86_retval): Likewise.
1063 (struct La_x86_64_regs): Likewise.
1064 (struct La_x86_64_retval): Likewise.
1065 (struct La_x32_regs): Likewise.
1066 (struct La_x32_retval): Likewise.
1067 (struct La_ppc32_regs): Likewise.
1068 (struct La_ppc32_retval): Likewise.
1069 (struct La_ppc64_regs): Likewise.
1070 (struct La_ppc64_retval): Likewise.
1071 (struct La_sh_regs): Likewise.
1072 (struct La_sh_retval): Likewise.
1073 (struct La_s390_32_regs): Likewise.
1074 (struct La_s390_32_retval): Likewise.
1075 (struct La_s390_64_regs): Likewise.
1076 (struct La_s390_64_retval): Likewise.
1077 (struct La_sparc32_regs): Likewise.
1078 (struct La_sparc32_retval): Likewise.
1079 (struct La_sparc64_regs): Likewise.
1080 (struct La_sparc64_retval): Likewise.
1081 (struct audit_ifaces): Remove architecture-specific pltenter and
1082 pltexit members.
1083 * sysdeps/i386/ldsodefs.h: New file.
1084 * sysdeps/powerpc/ldsodefs.h: Likewise.
1085 * sysdeps/s390/ldsodefs.h: Likewise.
1086 * sysdeps/sh/ldsodefs.h: Likewise.
1087 * sysdeps/sparc/ldsodefs.h: Likewise.
1088 * sysdeps/x86_64/ldsodefs.h: Likewise.
1089
10902012-07-25 Marek Polacek <polacek@redhat.com>
1091
1092 [BZ #6808]
1093 * math/libm-test.inc (yn_test): Add another test.
1094 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
1095 to ERANGE when the result is +-Inf.
1096 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
1097 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
1098 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
1099 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
1100
11012012-07-24 Joseph Myers <joseph@codesourcery.com>
1102
1103 * conform/data/time.h-data (NULL): Use macro-constant. Require
1104 equal to 0.
1105 (CLOCKS_PER_SEC): Use macro instead of constant. Specify type as
1106 clock_t.
1107 [ISO11] (TIME_UTC): Use macro-int-constant. Require value > 0.
1108
11092012-07-23 Thomas Schwinge <thomas@codesourcery.com>
1110
1111 * configure.in <sysdeps resolving>: Correct printing
1112 Implies_before.
1113 * configure: Regenerate.
1114
11152012-07-22 Thomas Schwinge <thomas@codesourcery.com>
1116
1117 * math/w_ilogb.c: Include <limits.h>.
1118 * math/w_ilogbl.c: Likewise.
1119
11202012-07-20 Joseph Myers <joseph@codesourcery.com>
1121
1122 * manual/lang.texi (__va_copy): Document primarily as ISO C99
1123 va_copy. Document allowing for unavailable va_copy only as
1124 pre-C99 compatibility.
1125 * manual/string.texi (Copying and Concatenation): Use va_copy
1126 instead of __va_copy in concat example.
1127
11282012-07-20 Pino Toscano <toscano.pino@tiscali.it>
1129
1130 * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
1131 (__sendto): Use create_address_port. Initialize APORT and deallocate
1132 it if not null.
1133
1134 * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
1135 with O_NOLINK passed to __file_name_lookup.
1136
1137 * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
1138 with O_NOLINK passed to __file_name_lookup.
1139
1140 * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
1141 negative N or less than NGIDS.
1142
1143 * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
1144 type to string_t. Set ERANGE as errno and return it if NAME is not big
1145 enough. Use memcpy instead of strncpy.
1146
11472012-07-20 Joseph Myers <joseph@codesourcery.com>
1148
1149 * elf/Makefile (check-data): Remove.
1150 (localplt.data): New vpath directive.
1151 ($(objpfx)check-localplt.out): Use localplt.data from vpath
1152 instead of $(check-data).
1153 * scripts/data/localplt-generic.data: Move to ...
1154 * sysdeps/generic/localplt.data: ... here.
1155 * scripts/data/localplt-i386-linux-gnu.data: Move to ...
1156 * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
1157 * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
1158 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
1159 ... here.
1160 * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
1161 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
1162 ... here.
1163 * scripts/data/localplt-s390-linux-gnu.data: Move to ...
1164 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
1165 ... here.
1166 * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
1167 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
1168 ... here.
1169 * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
1170 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
1171 ... here.
1172 * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
1173 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
1174 ... here.
1175
11762012-07-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
1177
1178 * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
1179 PPC32 and PPC64 files.
1180 * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
1181 * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
1182
11832012-07-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1184
1185 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
1186 __makecontext_ret to ...
1187 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
1188 ... here and call exit if uc_link is NULL. New file.
1189 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
1190 __makecontext_ret.S.
1191 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
1192 __makecontext_ret to ...
1193 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
1194 ... here and call exit if uc_link is NULL. New file.
1195 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
1196 __makecontext_ret.S.
1197
11982012-07-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1199
1200 * elf/elf.h (R_390_IRELATIVE): New definition.
1201 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
1202 resolver function for IFUNC symbols. Support R_390_IRELATIVE.
1203 (elf_machine_lazy_rel): Support R_390_IRELATIVE.
1204 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
1205 (elf_machine_lazy_rel): Likewise.
1206 * sysdeps/s390/dl-irel.h: New file.
1207 * sysdeps/s390/s390-64/memcpy.S: New asm code.
1208 * sysdeps/s390/s390-64/memset.S: New asm code.
1209 * sysdeps/s390/s390-64/memcmp.S: New asm code.
1210 * sysdeps/s390/s390-64/multiarch/memset.S: New file.
1211 * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
1212 * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
1213 * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
1214 * sysdeps/s390/s390-64/multiarch/Makefile: New file.
1215 * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
1216 * sysdeps/s390/s390-32/multiarch/Makefile: New file.
1217 * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
1218 * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
1219 * sysdeps/s390/s390-32/multiarch/memset.S: New file.
1220 * sysdeps/s390/s390-32/memcpy.S: New asm code.
1221 * sysdeps/s390/s390-32/memset.S: New asm code.
1222 * sysdeps/s390/s390-32/memcmp.S: New asm code.
1223
12242012-07-17 Marek Polacek <polacek@redhat.com>
1225
1226 [BZ #14349]
1227 * sysdeps/s390/s390-32/configure.in: Remove TLS check.
1228 * sysdeps/s390/s390-64/configure.in: Likewise.
1229 * sysdeps/sparc/configure.in: Likewise.
1230 * sysdeps/powerpc/powerpc32/configure.in: Likewise.
1231 * sysdeps/powerpc/powerpc64/configure.in: Likewise.
1232 * sysdeps/i386/configure.in: Likewise.
1233 * sysdeps/x86_64/configure.in: Likewise.
1234 * sysdeps/sh/configure.in: Likewise.
1235 * sysdeps/s390/s390-32/configure: Regenerated.
1236 * sysdeps/s390/s390-64/configure: Likewise.
1237 * sysdeps/x86_64/configure: Likewise.
1238 * sysdeps/sh/configure: Likewise.
1239 * sysdeps/powerpc/powerpc64/configure: Likewise.
1240 * sysdeps/powerpc/powerpc32/configure: Likewise.
1241 * sysdeps/sparc/configure: Likwise.
1242 * sysdeps/i386/configure: Likewise.
1243
1244 * elf/dl-open.c: Comment fixes.
1245
12462012-07-17 Joseph Myers <joseph@codesourcery.com>
1247
1248 * Makefile [CXX] (check-data): Remove.
1249 [CXX] (c++-types.data): New vpath directive.
1250 [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
1251 vpath. Do not allow for C++ type data being missing.
1252 * scripts/data/c++-types-alpha-linux-gnu.data: Move to
1253 ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
1254 * scripts/data/c++-types-ia64-linux-gnu.data: Move to
1255 ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
1256 * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
1257 * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
1258 * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
1259 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
1260 ... here.
1261 * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
1262 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
1263 ... here.
1264 * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
1265 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
1266 ... here.
1267 * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
1268 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
1269 ... here.
1270 * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
1271 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
1272 ... here.
1273 * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
1274 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
1275 ... here.
1276 * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
1277 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
1278 ... here.
1279 * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
1280 * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
1281
1282 * elf/tls-macros.h (TLS_LE): Move architecture-specific
1283 definitions to architecture-specific files.
1284 (TLS_IE): Likewise.
1285 (TLS_LD): Likewise.
1286 (TLS_GD): Likewise.
1287 * sysdeps/i386/tls-macros.h: New file.
1288 * sysdeps/powerpc/tls-macros.h: Likewise.
1289 * sysdeps/s390/s390-32/tls-macros.h: Likewise.
1290 * sysdeps/s390/s390-64/tls-macros.h: Likewise.
1291 * sysdeps/sh/tls-macros.h: Likewise.
1292 * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
1293 * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
1294 * sysdeps/x86_64/tls-macros.h: Likewise.
1295
12962012-07-17 Thomas Schwinge <thomas@codesourcery.com>
1297
1298 * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
1299 zero value for regular exit case.
1300
1301 * sysdeps/unix/sysv/linux/x86_64/__start_context.S
1302 (__start_context): Preserve zero value for regular exit case.
1303
13042012-07-17 Thomas Schwinge <thomas@codesourcery.com>
1305 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1306
1307 * manual/setjmp.texi (setcontext): Clarify normal process
1308 termination when uc_link is the null pointer.
1309 * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
1310 exit call.
1311
13122012-07-16 Andreas Schwab <schwab@linux-m68k.org>
1313
1314 * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
1315 preprocessor. Test for each exception mask separately.
1316
13172012-07-16 Andreas Jaeger <aj@suse.de>
1318
1319 * po/ru.po: Update from translation team.
1320
13212012-07-15 Joseph Myers <joseph@codesourcery.com>
1322
1323 * conform/data/string.h-data (NULL): Use macro-constant. Require
1324 equal to 0.
1325 [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
1326 (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
1327 (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
1328 (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
1329 [ISO || ISO99 || ISO11] (*_t): Do not allow.
1330
13312012-07-13 Andreas Jaeger <aj@suse.de>
1332
1333 * po/fr.po: Update from translation team.
1334
13352012-07-12 Marek Polacek <polacek@redhat.com>
1336
1337 [BZ #14173]
1338 * math/libm-test.inc (yn_test): Add test for BZ #14173.
1339 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
1340 loop condition.
1341
13422012-07-12 Joseph Myers <joseph@codesourcery.com>
1343
1344 [BZ #13717]
1345 * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1346 Change to 2.4.1 where previously 2.4.0.
1347 * sysdeps/unix/sysv/linux/configure: Regenerated.
1348 * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
1349 (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
1350 version.
1351 [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
1352 (__ASSUME_AT_CLKTCK): Remove.
1353 (__ASSUME_AT_PAGESIZE): Likewise.
1354 (__ASSUME_AT_XID): Likewise.
1355 (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
1356 [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
1357 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
1358 unconditionally.
1359 (HAVE_AUX_PAGESIZE): Likewise.
1360 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
1361 [__ASSUME_AT_CLKTCK]: Make code unconditional.
1362 [!__ASSUME_AT_CLKTCK]: Remove conditional code.
1363
13642012-07-12 Jeroen van Bemmel <jvb127@gmail.com>
1365
1366 [BZ #14307]
1367 * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
1368 the temporary buffer used to invoke __gethostbyname2_r,
1369 __gethostbyaddr_r and gethostbyname4_r to make room for struct
1370 host_data / struct gaih_addrtuple.
1371 * resolv/nss_dns/dns-host.c (global scope): Move definition of
1372 implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
1373 header file nss/nsswitch.h.
1374 * nss/nsswitch.h (global scope): Add definition of implementation
1375 constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
1376 resolv/nss_dns/dns-host.c).
1377
13782012-07-11 Andreas Jaeger <aj@suse.de>
1379
1380 * po/fr.po: Update from translation team.
1381
1382 * po/sv.po: Update from translation team
1383 * po/fr.po: Another update from translation team.
1384
13852012-07-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
1386
1387 * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
1388 for subnormals or multiply small sinh result by itself.
1389 * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
1390 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1391
13922012-07-11 David S. Miller <davem@davemloft.net>
1393
1394 * sysdeps/sparc/fpu/libm-test-ulps: Update.
1395
13962012-07-10 Andreas Schwab <schwab@linux-m68k.org>
1397
1398 [BZ #14347]
1399 * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
1400 (INTERNAL_MARK): Shift it here.
1401
14022012-07-10 Marek Polacek <polacek@redhat.com>
1403
1404 [BZ #14151]
1405 * configure.in (libc_cv_asm_global_directive): Remove test. Replace
1406 libc_cv_asm_global_directive with .globl.
1407 * configure: Regenerated.
1408 * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
1409 with .globl.
1410 * sysdeps/i386/configure: Regenerated.
1411 * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
1412 with .globl.
1413 * sysdeps/x86_64/configure: Regenerated.
1414 * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
1415 * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
1416 * elf/tst-unique2mod2.c: Likewise.
1417 * elf/tst-unique2mod1.c: Likewise.
1418 * elf/tst-unique1mod2.c: Likewise.
1419 * elf/tst-unique1mod1.c: Likewise.
1420 * sysdeps/s390/s390-32/sysdep.h: Likewise.
1421 * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1422 * sysdeps/s390/s390-64/sysdep.h: Likewise.
1423 * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1424 * sysdeps/mach/sysdep.h: Likewise.
1425 * sysdeps/i386/sysdep.h: Likewise.
1426 * sysdeps/i386/i386-mcount.S: Likewise.
1427 * sysdeps/x86_64/_mcount.S: Likewise.
1428 * sysdeps/x86_64/sysdep.h: Likewise.
1429 * sysdeps/sh/_mcount.S: Likewise.
1430 * sysdeps/sh/sysdep.h: Likewise.
1431 * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
1432 * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
1433 * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
1434 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
1435 * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
1436 * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
1437 * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
1438 * locale/localeinfo.h: Likewise.
1439 (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
1440 (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
1441
14422012-07-09 Roland McGrath <roland@hack.frob.com>
1443
1444 [BZ #14336]
1445 * manual/charset.texi (Extended Char Intro): Word use fix, "operating
1446 system".
1447 * manual/message.texi (The Uniforum approach): Likewise.
1448 * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
1449 (glibc iconv Implementation): Likewise.
1450
14512012-07-09 Joseph Myers <joseph@codesourcery.com>
1452
1453 [BZ #14337]
1454 * math/s_clog.c (__clog): Avoid scaling a value down where that
1455 could result in underflow.
1456 * math/s_clog10.c (__clog10): Likewise.
1457 * math/s_clog10f.c (__clog10f): Likewise.
1458 * math/s_clog10l.c (__clog10l): Likewise.
1459 * math/s_clogf.c (__clogf): Likewise.
1460 * math/s_clogl.c (__clogl): Likewise.
1461 * math/libm-test.inc (clog_test): Add more tests.
1462 (clog10_test): Likewise.
1463 * sysdeps/i386/fpu/libm-test-ulps: Update.
1464 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1465
14662012-07-06 Andreas Schwab <schwab@linux-m68k.org>
1467
1468 [BZ #14283]
1469 * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
1470 by 7 not 8 to examine high bit of fractional part.
1471
1472 [BZ #14042]
1473 * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
1474 for call to __mcount_internal.
1475 * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
1476 (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
1477 * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
1478
14792012-07-06 Joseph Myers <joseph@codesourcery.com>
1480
1481 [BZ #14154]
1482 * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
1483 approximation for values within 0x1p-13f of an odd multiple of
1484 pi/4.
1485 * math/libm-test.inc (tan_test): Do not allow spurious underflow
1486 exception. Add more tests.
1487 * sysdeps/i386/fpu/libm-test-ulps: Update.
1488
1489 [BZ #6778]
1490 * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
1491 inputs and return -1 for them. Do not check for +Inf in case not
1492 reachable for +Inf.
1493 * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
1494 * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
1495 (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
1496 and return -1 for them. Do not check for +Inf in case not
1497 reachable for +Inf.
1498 * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
1499 define.
1500 (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
1501 and return -1 for them. Do not check for +Inf in case not
1502 reachable for +Inf.
1503 * math/libm-test.inc (expm1_test): Add more tests. Do not allow
1504 spurious underflow.
1505 * sysdeps/i386/fpu/libm-test-ulps: Update.
1506 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1507
15082012-07-06 Mike Frysinger <vapier@gentoo.org>
1509
1510 * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
1511
15122012-07-05 Joseph Myers <joseph@codesourcery.com>
1513
1514 [BZ #14157]
1515 [BZ #14331]
1516 * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
1517 could result in spurious underflow. Scale down values above
1518 DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
1519 * math/s_csqrtf.c (__csqrtf): Likewise.
1520 * math/s_csqrtl.c (__csqrtl): Likewise.
1521 * math/libm-test.inc (csqrt_test): Add more tests. Do not allow
1522 spurious underflow.
1523 * sysdeps/i386/fpu/libm-test-ulps: Update.
1524 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1525
15262012-07-04 Andreas Schwab <schwab@linux-m68k.org>
1527
1528 * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
1529 xopen-msg.sed.
1530 * catgets/xopen-msg.awk: New file.
1531 * catgets/xopen-msg.sed: Removed.
1532
1533 * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
1534 po2text.sed.
1535 * intl/po2test.awk: New file.
1536 * intl/po2test.sed: Removed.
1537
15382012-07-04 Joseph Myers <joseph@codesourcery.com>
1539
1540 [BZ #14328]
1541 * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
1542 or multiply small sinh result by itself.
1543 * math/s_ctanf.c (__ctanf): Likewise.
1544 * math/s_ctanh.c (__ctanh): Likewise.
1545 * math/s_ctanhf.c (__ctanhf): Likewise.
1546 * math/s_ctanhl.c (__ctanhl): Likewise.
1547 * math/s_ctanl.c (__ctanl): Likewise.
1548 * math/libm-test.inc (ctan_test_tonearest): New function.
1549 (ctan_test_towardzero): Likewise.
1550 (ctan_test_downward): Likewise.
1551 (ctan_test_upward): Likewise.
1552 (ctanh_test_tonearest): Likewise.
1553 (ctanh_test_towardzero): Likewise.
1554 (ctanh_test_downward): Likewise.
1555 (ctanh_test_upward): Likewise.
1556 (main): Call these new functions.
1557 * sysdeps/i386/fpu/libm-test-ulps: Update.
1558 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1559
15602012-07-03 Mike Frysinger <vapier@gentoo.org>
1561
1562 * .gitignore: Delete /ports entry.
1563
15642012-07-03 Andreas Jaeger <aj@suse.de>
1565
1566 * po/bg.po: Update from translation team.
1567 * po/cs.po: Likewise.
1568 * po/de.po: Likewise.
1569 * po/hr.po: Likewise.
1570 * po/nl.pl: Likewise.
1571 * po/pl.po: Likewise.
1572 * po/vi.po: Likewise.
1573
15742012-07-03 Joseph Myers <joseph@codesourcery.com>
1575
1576 * Makeconfig [!+link] (+link-before-libc): New variable.
1577 [!+link] (+link-after-libc): Likewise.
1578 [!+link] (+link-tests): Likewise.
1579 [!+link] (+link): Define in terms of $(+link-before-libc) and
1580 $(+link-after-libc).
1581 [!+link-static] (+link-static-before-libc): New variable.
1582 [!+link-static] (+link-static-after-libc): Likewise.
1583 [!+link-static] (+link-static-tests): Likewise.
1584 [!+link-static] (+link-static): Define in terms of
1585 $(+link-static-before-libc) and $(+link-static-after-libc).
1586 [build-shared] (link-libc-before-gnulib): New variable.
1587 [build-shared] (link-libc-tests): Likewise.
1588 [build-shared] (link-libc): Define in terms of
1589 $(link-libc-before-gnulib).
1590 [!build-shared] (link-libc-tests): New variable.
1591 (link-libc-static-tests): New variable.
1592 [!gnulib] (gnulib-arch): New variable.
1593 [!gnulib] (gnulib-tests): Likewise.
1594 [!gnulib] (static-gnulib-arch): Likewise.
1595 [!gnulib] (static-gnulib-tests): Likewise.
1596 [!gnulib] (gnulib): Use $(gnulib-arch). Do not use $(libgcc_eh).
1597 Define with "=" instead of ":=".
1598 [!gnulib] (static-gnulib): Use $(static-gnulib-arch). Do not use
1599 -lgcc_eh $(libunwind). Define with "=" instead of ":=".
1600 * Rules (binaries-all-notests): New variable.
1601 (binaries-all-tests): Likewise.
1602 (binaries-static-notests): Likewise.
1603 (binaries-static-tests): Likewise.
1604 (binaries-all): Define using $(binaries-all-notests) and
1605 $(binaries-all-tests).
1606 (binaries-static): Define using $(binaries-static-notests) and
1607 $(binaries-static-tests).
1608 (binaries-shared-tests): New variable.
1609 (binaries-shared-notests): Likewise.
1610 (binaries-shared): Remove variable.
1611 ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
1612 ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
1613 ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
1614 ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
1615 ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
1616 ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
1617 * elf/Makefile (sln-modules): New variable.
1618 (extra-objs): Add $(sln-modules:=.o).
1619 (ldconfig-modules): Add static-stubs.
1620 ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
1621 * elf/static-stubs.c: New file.
1622
1623 [BZ #14283]
1624 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
1625 by 7 not 8 to examine high bit of fractional part. Use volatile
1626 variables when splitting into final array of floats if
1627 __FLT_EVAL_METHOD__ != 0.
1628 * math/libm-test.inc (cos_test): Add another test.
1629 (sin_test): Likewise.
1630 * sysdeps/i386/fpu/libm-test-ulps: Update.
1631
1632 [BZ #14273]
1633 * math/libm-test.inc (cosh_test): Add more tests.
1634
1635 * version.h (RELEASE): Set to "development".
1636 (VERSION): Set to "2.16.90".
1637
16382012-06-30 Carlos O'Donell <carlos_odonell@mentor.com>
1639
1640 * NEWS: Update copyright. Remove last-updated date.
1641 Mention math library bug fixes and timezone data changes.
1642 * README: Mention GNU/Hurd, x32, and HPPA support status.
1643
16442012-06-28 Thomas Schwinge <thomas@codesourcery.com>
1645
1646 * manual/contrib.texi (Contributors): Sort alphabetically by last name.
1647
16482012-06-27 Andreas Jaeger <aj@suse.de>
1649
1650 * manual/contrib.texi (Contributors): Add Samuel Thibault.
1651
16522012-06-25 Andreas Jaeger <aj@suse.de>
1653
1654 * sysdeps/s390/fpu/libm-test-ulps: Update.
1655
16562012-06-23 Andreas Schwab <schwab@linux-m68k.org>
1657 Thomas Schwinge <thomas@codesourcery.com>
1658
1659 * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
1660 * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
1661 * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
1662 fanotify_mark.
1663
16642012-06-23 Thomas Schwinge <thomas@codesourcery.com>
1665
1666 * sysdeps/mach/start.c: Remove file.
1667 * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
1668 * sysdeps/i386/init-first.c: Fix comment regarding start.S.
1669 * sysdeps/sh/init-first.c: Likewise.
1670
1671 * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
1672 registers for frame unwinding purposes, add CFI directives.
1673 * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
1674 * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
1675 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
1676 Likewise.
1677
1678 * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
1679 __fortify_fail returning.
1680 * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
1681
1682 * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
1683 sysdeps/sh/____longjmp_chk.S.
1684 * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
1685 on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
1686 * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
1687 (gen-as-const-headers): Append sigaltstack-offsets.sym.
1688
1689 * sysdeps/sh/abort-instr.h: New file.
1690 * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
1691 process in case exit returns.
1692
1693 * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
1694 initialize the GOT register before use.
1695
1696 * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
1697 calculation of ARGC > 4.
1698
1699 * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
1700 meaningful names to some local labels.
1701
17022012-06-22 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
1703 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1704
1705 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
1706 (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
1707 (__arch_compare_and_exchange_val_16_acq): Likewise.
1708 (__arch_compare_and_exchange_val_32_acq): Likewise.
1709 (atomic_exchange_and_add): Fix gUSA sequence.
1710 (atomic_add): Likewise.
1711 (atomic_add_negative): Likewise.
1712 (atomic_add_zero): Likewise.
1713 (atomic_bit_test_set): Likewise.
1714
17152012-06-22 Andreas Schwab <schwab@redhat.com>
1716
1717 [BZ #13579]
1718 * include/link.h (struct link_map): Add l_free_initfini.
1719 * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
1720 l_initfini.
1721 * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
1722 * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
1723 * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
1724 set.
1725
17262012-06-22 Carlos O'Donell <carlos_odonell@mentor.com>
1727
1728 * configure.in: Use AC_LANG_SOURCE.
1729 * configure: Regenerate.
1730
17312012-06-22 Roland McGrath <roland@hack.frob.com>
1732
1733 * configure.in (libc_cv_localstatedir): New substituted variable.
1734 * configure: Regenerated.
1735 * config.make.in (localstatedir): New variable, substituted from
1736 libc_cv_localstatedir.
1737 * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
1738 * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
1739 ${prefix}/var to /var when we change ${prefix}/etc to /etc.
1740 * sysdeps/gnu/configure: Regenerated.
1741
17422012-06-21 Jeff Law <law@redhat.com>
1743
1744 [BZ #14277]
1745 * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
1746 free. Simplify list management for _LIBC case.
1747
17482012-06-21 Joseph Myers <joseph@codesourcery.com>
1749
1750 [BZ #14273]
1751 * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
1752 Clear sign bit of 64-bit integer value before comparing against
1753 overflow value.
1754
1755 * sysdeps/mach/configure: Regenerated.
1756
17572012-06-21 H.J. Lu <hongjiu.lu@intel.com>
1758
1759 [BZ #14278]
1760 * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
1761
17622012-06-21 Jeff Law <law@redhat.com>
1763
1764 [BZ #13882]
1765 * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection. Use
1766 uint16_t for elements in the "seen" array to avoid char overflows.
1767 * elf/dl-fini.c (_dl_sort_fini): Likewise.
1768 * elf/dl-open.c (dl_open_worker): Likewise.
1769
17702012-06-21 Carlos O'Donell <carlos_odonell@mentor.com>
1771
1772 * scripts/list-sources.sh: Scan PORTS for translations.
1773 * po/libc.pot: Regenerated.
1774
17752012-06-21 Andreas Jaeger <aj@suse.de>
1776
1777 [BZ #12194]
1778 * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
1779 warning.
1780 * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
1781 * bits/byteswap-16.h (__bswap_16): Likewise.
1782 * bits/byteswap.h (__bswap_constant_16): Likewise.
1783
17842012-06-18 H.J. Lu <hongjiu.lu@intel.com>
1785
1786 [BZ #14117]
1787 * sysdeps/i386/fpu_control.h: Removed.
1788 * sysdeps/x86_64/fpu_control.h: Moved to ...
1789 * sysdeps/x86/fpu_control.h: Here.
1790
1791 * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
1792 (_FPU_SETCW): Likewise.
1793
17942012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1795
1796 [BZ #14117]
1797 * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
1798 * sysdeps/x86/fpu/bits/mathinline.h: This.
1799 * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
1800
1801 [BZ #14050]
1802 [BZ #14117]
1803 * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
1804 functions if __x86_64__ is defined.
1805
18062012-06-15 Chung-Lin Tang <cltang@codesourcery.com>
1807
1808 * string/endian.h: Add !__ASSEMBLER__ condition for including
1809 conversion interfaces.
1810
18112012-06-15 Joseph Myers <joseph@codesourcery.com>
1812
1813 [BZ #14241]
1814 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
1815 of ABS(x) in calculating zero to negative powers other than odd
1816 integers.
1817 * math/libm-test.inc (pow_test): Add more tests.
1818
18192012-06-15 Andreas Jaeger <aj@suse.de>
1820
1821 * manual/contrib.texi (Contributors): Update entry of Liubov
1822 Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
1823 Machado Filho.
1824
18252012-06-15 Cyril Hrubis <metan@ucw.cz>
1826
1827 * string/string.h: Add __wur to GNU version of strerror_r.
1828
18292012-06-14 H.J. Lu <hongjiu.lu@intel.com>
1830
1831 [BZ #14229]
1832 * string/Makefile (tests): Add tst-strtok_r.
1833 * string/tst-strtok_r.c: New file.
1834 * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
1835 RAX_LP/RDX_LP on SAVE_PTR.
1836
18372012-06-14 Roland McGrath <roland@hack.frob.com>
1838
1839 * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
1840
18412012-06-14 Joseph Myers <joseph@codesourcery.com>
1842
1843 * libm_test.inc (csqrt_test): Allow more spurious underflow
1844 exceptions.
1845 (j0_test): Likewise.
1846 (j1_test): Likewise.
1847 (y0_test): Likewise.
1848 (y1_test): Likewise.
1849
18502012-06-13 Carlos O'Donell <carlos_odonell@mentor.com>
1851
1852 * po/Makefile (libc.pot): Use UTF-8 charset.
1853
18542012-06-13 Paul Pluzhnikov <ppluzhnikov@google.com>
1855
1856 [BZ #14210]
1857 Suppress sign-conversion warning from FD_SET.
1858 See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
1859 * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
1860 not unsigned long int.
1861 * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
1862
18632012-06-12 H.J. Lu <hongjiu.lu@intel.com>
1864
1865 [BZ #14050]
1866 [BZ #14117]
1867 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
1868 __extern_always_inline instead of __extern_inline.
1869 (__signbitf): Support __SSE2_MATH__ and C++ namespace.
1870 (__signbit): Likewise.
1871 (__signbitl): Support C++ namespace.
1872 (lrintf): New inline function.
1873 (lrint): Likewise.
1874 (llrintf): Likewise.
1875 (llrint): Likewise.
1876 (fmaxf): Likewise.
1877 (fmax): Likewise.
1878 (fminf): Likewise.
1879 (fmin): Likewise.
1880 (rint): Likewise.
1881 (rintf): Likewise.
1882 (ceil): Likewise.
1883 (ceilf): Likewise.
1884 (floor): Likewise.
1885 (floorf): Likewise.
1886 (nearbyint): Likewise.
1887 (nearbyintf): Likewise.
1888
18892012-06-12 Thomas Schwinge <thomas@codesourcery.com>
1890
1891 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
1892 non-default versions.
1893
18942012-06-11 Roland McGrath <roland@hack.frob.com>
1895
1896 [BZ #14218]
1897 * manual/argp.texi (Argp): Reword argp_parse description slightly.
1898
18992012-06-09 Thomas Schwinge <thomas@codesourcery.com>
1900
1901 * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
1902 (FE_UPWARD, FE_DOWNWARD): Don't define.
1903 * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
1904 * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
1905
1906 * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
1907 reading it.
1908 * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
1909 * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
1910
19112012-06-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1912
1913 * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
1914 * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
1915 * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
1916 * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
1917
19182012-06-06 H.J. Lu <hongjiu.lu@intel.com>
1919
1920 [BZ #14117]
1921 * sysdeps/i386/fpu/bits/fenv.h: Removed.
1922 * sysdeps/i386/fpu/Implies: New file.
1923 * sysdeps/x86_64/fpu/Implies: Likewise.
1924 * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
1925 * sysdeps/x86/fpu/bits/fenv.h: This.
1926
1927 * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
1928 __SSE_MATH__.
1929
19302012-06-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1931
1932 [BZ #14134]
1933 * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
1934 character 0xffff that matches the last element of the
1935 conversion table.
1936
19372012-06-05 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
1938
1939 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
1940 fmodl commit.
1941
19422012-06-05 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
1943
1944 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
1945 values higher than 25.6283.
1946
19472012-06-04 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
1948
1949 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
1950 subnormal exponent extraction and add some __builtin_expect.
1951 * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
1952 Fix for subnormal mantissa calculation.
1953
19542012-06-04 Mike Frysinger <vapier@gentoo.org>
1955
1956 * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
1957 cpu2 is -1 and errno is not ENOSYS.
1958
19592012-06-04 H.J. Lu <hongjiu.lu@intel.com>
1960
1961 [BZ #14117]
1962 * sysdeps/i386/i486/bits/string.h: Renamed to ...
1963 * sysdeps/x86/bits/string.h: This.
1964 * sysdeps/x86_64/bits/string.h: Removed.
1965
1966 * sysdeps/i386/i486/bits/string.h: Define inline functions only
1967 if not compiling for x86-64, but compiling for >= i486.
1968
1969 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
1970 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
1971
1972 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
1973 New macro from Linux kernel 3.4.0.
1974 (FP_XSTATE_MAGIC2): Likewise.
1975 (FP_XSTATE_MAGIC2_SIZE): Likewise.
1976 (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
1977 (struct _fpx_sw_bytes): New struct.
1978 (struct _xsave_hdr): Likewise.
1979 (struct _ymmh_state): Likewise.
1980 (struct _xstate): Likewise.
1981
1982 * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
1983 * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
1984 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
1985 * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
1986 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
1987 * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
1988
1989 * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
1990 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
1991 * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
1992 * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
1993 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
1994 * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
1995
19962012-06-04 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
1997
1998 [BZ #13743]
1999 * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
2000 * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
2001 (sysdep_headers): Include sys/platform/ppc.h.
2002 * sysdeps/powerpc/test-gettimebase.c: Test for
2003 __ppc_get_timebase() to catch future ISA opcode/insn changes.
2004 * manual/Makefile (appendices): Include platform.texi.
2005 * manual/contrib.texi (Contributors): Update @node pointers.
2006 * manual/maint.texi (Maintenance): Likewise.
2007 (Platform): New node.
2008 * manual/platform.texi: New file. Document the new features.
2009
20102012-06-04 Siddhesh Poyarekar <siddhesh@redhat.com>
2011 Jakub Jelinek <jakub@redhat.com>
2012
2013 [BZ #14188]
2014 * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
2015 where __builtin_expect is unavailable.
2016
20172012-06-03 David S. Miller <davem@davemloft.net>
2018
2019 * stdlib/longlong.h: Updated from GCC.
2020
20212012-06-02 Andreas Schwab <schwab@linux-m68k.org>
2022
2023 [BZ #14042]
2024 * sysdeps/powerpc/powerpc32/mcount.c: New file.
2025 * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
2026 __mcount_internal.
2027 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2028 (GLIBC_2.16): Likewise.
2029
20302012-06-01 H.J. Lu <hongjiu.lu@intel.com>
2031
2032 * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
2033
20342012-06-01 Joseph Myers <joseph@codesourcery.com>
2035
2036 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
2037 (default-abi): New variable.
2038 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
2039 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
2040 variable.
2041 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
2042 Likewise.
2043 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
2044 Likewise.
2045 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
2046 Likewise.
2047
2048 * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
2049 definition. Document in comment.
2050
20512012-06-01 David S. Miller <davem@davemloft.net>
2052
2053 * stdlib/longlong.h: Updated from GCC.
2054
20552012-06-01 H.J. Lu <hongjiu.lu@intel.com>
2056
2057 [BZ #14117]
2058 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
2059 Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
2060 sys/debugreg.h sys/io.h here.
2061 * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
2062 sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
2063 sys/io.h.
2064 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
2065 Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
2066 * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
2067 * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
2068 * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
2069 * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
2070
2071 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
2072 Define only if __x86_64__ is defined.
2073
20742012-06-01 Joseph Myers <joseph@codesourcery.com>
2075
2076 [BZ #14048]
2077 * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
2078 Use int64_t for variable i.
2079 * math/libm-test.inc (fmod_test): Add more tests.
2080
2081 * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
2082 z computation is not scheduled after fetestexcept.
2083 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
2084 Use math_force_eval instead of asm to ensure calculation scheduled
2085 before exception test.
2086 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
2087 Ensure a1 + u.d computation is not scheduled after fetestexcept.
2088
20892012-06-01 Aurelien Jarno <aurelien@aurel32.net>
2090
2091 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
2092 computation is not scheduled after fetestexcept.
2093
20942012-06-01 H.J. Lu <hongjiu.lu@intel.com>
2095
2096 [BZ #14117]
2097 * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
2098 * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
2099
21002012-06-01 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
2101
2102 * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
2103 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
2104
21052012-05-31 H.J. Lu <hongjiu.lu@intel.com>
2106
2107 [BZ #14117]
2108 * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
2109 <bits/wordsize.h>.
2110 (__WCHAR_MIN): Support __WORDSIZE == 64.
2111 (__WCHAR_MAX): Likewise.
2112
2113 * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
2114 * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
2115
2116 [BZ #14183]
2117 * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
2118 Defined with __SWORD_TYPE if __x86_64__ isn't defined.
2119
2120 [BZ #14117]
2121 * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
2122 * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
2123
2124 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
2125 * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
2126
2127 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
2128 Defined to 1 if __x86_64__ isn't defined.
2129 (_STAT_VER_LINUX_OLD): New.
2130 (st_atime): Remove duplicate.
2131 (st_mtime): Likewise.
2132 (st_ctime): Likewise.
2133
21342012-05-31 David S. Miller <davem@davemloft.net>
2135
2136 * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
2137 entries.
2138
21392012-06-01 Andreas Schwab <schwab@linux-m68k.org>
2140
2141 * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
2142 gen-libm-test.pl.
2143
2144 [BZ #14132]
2145 * elf/dl-reloc.c: Include <_itoa.h>.
2146 (_dl_reloc_bad_type): Remove use of INTUSE.
2147 * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
2148 * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
2149 * stdio-common/psiginfo.c (psiginfo): Likewise.
2150 * stdio-common/psignal.c (psignal): Likewise.
2151 * string/strsignal.c (strsignal): Likewise.
2152 * include/signal.h (_sys_siglist): Declare hidden proto.
2153 * stdio-common/itoa-digits.c: Include <_itoa.h>. Replace
2154 INTVARDEF with libc_hidden_data_def.
2155 * stdio-common/itoa-udigits.c: Likewise.
2156 * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
2157 (_itoa_lower_digits_internal): Remove declaration.
2158 (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
2159 * sysdeps/gnu/siglist.c (_sys_siglist_internal)
2160 (_sys_sigabbrev_internal): Remove aliases.
2161 (_sys_siglist): Define hidden alias.
2162
21632012-05-31 Markus Trippelsdorf <markus@trippelsdorf.de>
2164
2165 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2166 bits/sysctl.h.
2167
21682012-05-31 H.J. Lu <hongjiu.lu@intel.com>
2169
2170 [BZ #14117]
2171 * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
2172 * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
2173
2174 * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
2175 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
2176 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
2177 * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
2178 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
2179 * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
2180
2181 * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
2182 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
2183 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
2184
2185 * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
2186 with __addr.
2187 (insw): Likewise.
2188 (insl): Likewise.
2189 (outsb): Likewise.
2190 (outsw): Likewise.
2191 (outsl): Likewise.
2192
2193 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
2194 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
2195 * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
2196
2197 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
2198 * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
2199 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
2200 * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
2201 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
2202 * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
2203
2204 * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
2205 * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
2206
2207 * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
2208 * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
2209
2210 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
2211 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
2212 * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
2213
2214 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
2215 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
2216 to ...
2217 * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
2218
2219 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
2220 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
2221 * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
2222
2223 * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
2224 for x86-64.
2225 * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
2226
22272012-05-31 Joseph Myers <joseph@codesourcery.com>
2228
2229 * math/math.h (M_El): Use two more decimal places.
2230 (M_LOG2El): Likewise.
2231 (M_LOG10El): Likewise.
2232 (M_LN2l): Likewise.
2233 (M_LN10l): Likewise.
2234 (M_PIl): Likewise.
2235 (M_PI_2l): Likewise.
2236 (M_PI_4l): Likewise.
2237 (M_1_PIl): Likewise.
2238 (M_2_PIl): Likewise.
2239 (M_2_SQRTPIl): Likewise.
2240 (M_SQRT2l): Likewise.
2241 (M_SQRT1_2l): Likewise.
2242
22432012-05-31 David S. Miller <davem@davemloft.net>
2244
2245 * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
2246 values between float registers.
2247 * sysdeps/sparc/sparc64/memset.S: Likewise.
2248 * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
2249
22502012-05-31 Mike Frysinger <vapier@gentoo.org>
2251
2252 * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
2253 -D_FORTIFY_SOURCE=1.
2254 (CPPFLAGS-tst-longjmp_chk.c): Define.
2255 (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
2256 (CPPFLAGS-tst-longjmp_chk2.c): Define.
2257 * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
2258 CFLAGS-tst-wchar-h.c.
2259
22602012-05-31 Marek Polacek <polacek@redhat.com>
2261
2262 [BZ #14132]
2263 * include/mntent.h (__setmntent_internal, __getmntent_r_internal
2264 __endmntent_internal): Remove declaration.
2265 (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
2266 (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
2267 * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
2268
22692012-05-30 David S. Miller <davem@davemloft.net>
2270
2271 * sysdeps/sparc/sparc32/soft-fp/q_util.c
2272 (___Q_simulate_exceptions): Use real FP ops rather than writing
2273 into the %fsr.
2274 * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
2275 Likewise.
2276
22772012-05-30 H.J. Lu <hongjiu.lu@intel.com>
2278
2279 [BZ #14117]
2280 * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
2281 * sysdeps/x86/bits/xtitypes.h: This.
2282
2283 * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
2284 * sysdeps/x86/bits/wordsize.h: This.
2285
2286 * sysdeps/i386/bits/huge_vall.h: Renamed to ...
2287 * sysdeps/x86/bits/huge_vall.h: This.
2288
2289 * sysdeps/i386/bits/select.h: Removed.
2290 * sysdeps/x86_64/bits/select.h: Renamed to ...
2291 * sysdeps/x86/bits/select.h: This.
2292
2293 * sysdeps/i386/bits/setjmp.h: Removed.
2294 * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
2295 * sysdeps/x86/bits/setjmp.h: This.
2296
2297 * sysdeps/i386/bits/mathdef.h: Removed.
2298 * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
2299 * sysdeps/x86/bits/mathdef.h: This.
2300
23012012-05-30 Andreas Schwab <schwab@linux-m68k.org>
2302
2303 [BZ #14132]
2304 * include/sys/socket.h (__connect_internal)
2305 (__libc_sa_len_internal): Remove declaration.
2306 (__connect, __libc_sa_len): Declare hidden_proto.
2307 (SA_LEN): Remove use of INTUSE.
2308 * socket/connect.c: Add libc_hidden_def.
2309 * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
2310 * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
2311 * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
2312 alias.
2313 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2314 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2315 * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
2316 of adding _internal alias.
2317
23182012-05-30 H.J. Lu <hongjiu.lu@intel.com>
2319
2320 [BZ #14117]
2321 * sysdeps/i386/bits/link.h: Removed.
2322 * sysdeps/i386/bits/linkmap.h: Likewise.
2323 * sysdeps/x86_64/bits/link.h: Renamed to ...
2324 * sysdeps/x86/bits/link.h: This.
2325 * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
2326 * sysdeps/x86/bits/linkmap.h: This.
2327
2328 * sysdeps/i386/bits/endian.h: Removed.
2329 * sysdeps/x86_64/bits/endian.h: Renamed to ...
2330 * sysdeps/x86/bits/endian.h: This.
2331
2332 * sysdeps/i386/bits/byteswap.h: Removed.
2333 * sysdeps/i386/bits/byteswap-16.h: Likewise.
2334 * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
2335 * sysdeps/x86/bits/byteswap.h: This.
2336 * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
2337 * sysdeps/x86/bits/byteswap-16.h: This.
2338 * sysdeps/i386/Implies: Add x86.
2339 * sysdeps/x86_64/Implies: Likewise.
2340
23412012-05-30 David S. Miller <davem@davemloft.net>
2342
2343 * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
2344 (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
2345 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
2346 (FP_TRAPPING_EXCEPTIONS): Define.
2347 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
2348 (FP_TRAPPING_EXCEPTIONS): Define.
2349 * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
2350 subnormals only when inexact has been signalled or underflow
2351 exceptions are enabled.
2352 (_FP_PACK_CANONICAL): Likewise.
2353
23542012-05-30 H.J. Lu <hongjiu.lu@intel.com>
2355
2356 [BZ #14183]
2357 * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
2358 Defined with __UWORD_TYPE if __x86_64__ isn't defined.
2359
23602012-05-30 Richard Henderson <rth@twiddle.net>
2361
2362 * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
2363 with #ifndef NOT_IN_libc.
2364
2365 * scripts/abilist.awk: Accept 8 fields. Handle Alpha functions
2366 marked to avoid plt entry.
2367
23682012-05-30 H.J. Lu <hongjiu.lu@intel.com>
2369
2370 [BZ #14112]
2371 * Makeconfig (default-abi): New macro.
2372 (abi-includes): Likewise.
2373 ($(common-objpfx)soversions.mk): Remove WORDSIZE check. Use
2374 $(abi-$(default-abi)-lib-soname) for soname if defined.
2375 ($(common-objpfx)gnu/lib-names.stmp): Generate from
2376 abi-variants.
2377 * Makefile (installed-stubs): Likewise.
2378 * include/stubs-biarch.h: Removed.
2379 * scripts/lib-names.awk: Only handle one library at a time.
2380 * scripts/soversions.awk: Remove WORDSIZE support.
2381 * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
2382 entries.
2383 * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
2384 Removed.
2385 (syscall-list-default-condition): Likewise.
2386 (syscall-list-default-condition): Likewise.
2387 (syscall-list-includes): Likewise.
2388 ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
2389 syscall-list-* with abi-*. Handle undefined abi-variants.
2390 * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
2391 * sysdeps/unix/sysv/linux/i386/Implies: New file.
2392 * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
2393 * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
2394 * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
2395 * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
2396 Removed.
2397 (syscall-list-32-options): Likewise.
2398 (syscall-list-32-condition): Likewise.
2399 (syscall-list-64-options): Likewise.
2400 (syscall-list-64-condition): Likewise.
2401 * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
2402 macro.
2403 * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
2404 Renamed to ...
2405 (abi-*): This.
2406 (abi-64-ld-soname): New macro.
2407 * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
2408 * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
2409 Renamed to ...
2410 (abi-*): This.
2411 * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
2412 * sysdeps/x86_64/x32/shlib-versions: Likewise.
2413
24142012-05-30 Joseph Myers <joseph@codesourcery.com>
2415
2416 * sysdeps/unix/sysv/linux/kernel-features.h
2417 (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
2418 * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
2419 include <kernel-features.h>.
2420 [!__NR_ftruncate64]: Remove conditional code.
2421 [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2422 [__NR_ftruncate64]: Make code unconditional.
2423 [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2424 * sysdeps/unix/sysv/linux/truncate64.c: Do not
2425 include <kernel-features.h>.
2426 [!__NR_ftruncate64]: Remove conditional code.
2427 [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2428 [__NR_ftruncate64]: Make code unconditional.
2429 [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2430 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
2431 include <kernel-features.h>.
2432 [!__NR_ftruncate64]: Remove conditional code.
2433 [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2434 [__NR_ftruncate64]: Make code unconditional.
2435 [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2436 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
2437 include <kernel-features.h>.
2438 [!__NR_ftruncate64]: Remove conditional code.
2439 [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2440 [__NR_ftruncate64]: Make code unconditional.
2441 [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
2442
2443 * configure.in (libc_cv_fpie): Weaken to a compile test using
2444 LIBC_TRY_CC_OPTION.
2445 * configure: Regenerated.
2446
24472012-05-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2448
2449 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
2450 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
2451 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
2452 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
2453 Refreshed.
2454 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
2455 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
2456 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
2457 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
2458 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
2459 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
2460 Refreshed.
2461
24622012-05-27 David S. Miller <davem@davemloft.net>
2463
2464 * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
2465 (___Q_zero): New.
2466 (__Q_simulate_exceptions): Return void. Change to simulate
2467 exceptions by writing into the %fsr.
2468 * sysdeps/sparc/sparc64/soft-fp/qp_util.c
2469 (__Qp_handle_exceptions): Likewise.
2470 (numbers): Delete.
2471 * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
2472 __Qp_handle_exceptions.
2473 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
2474 __Qp_handle_exceptions.
2475 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
2476 as unused and give dummy FP_RND_NEAREST initializer.
2477 (FP_INHIBIT_RESULTS): Define.
2478 (___Q_simulate_exceptions): Update declaration.
2479 (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
2480 formatting.
2481 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
2482 as unused and give dummy FP_RND_NEAREST initializer.
2483 (__Qp_handle_exceptions): Update declaration.
2484 (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
2485 formatting.
2486
24872012-05-27 Thomas Schwinge <thomas@codesourcery.com>
2488
2489 * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
2490 the temporary FPU control word.
2491 * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2492 * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
2493 * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
2494 * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
2495 * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
2496 * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
2497 * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
2498 * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
2499 * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
2500 * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
2501 * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
2502
25032012-05-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2504
2505 * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
2506 fields.
2507
25082012-05-27 Chung-Lin Tang <cltang@codesourcery.com>
2509
2510 * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
2511 * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
2512 * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
2513 * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
2514 Likewise.
2515 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
2516 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
2517 Likewise.
2518
25192012-05-27 Ulrich Drepper <drepper@gmail.com>
2520
2521 * po/h.po: Update from translation team.
2522
25232012-05-26 Andreas Schwab <schwab@linux-m68k.org>
2524
2525 * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
2526
2527 * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
2528 handling of denormals.
2529 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
2530 * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
2531 * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
2532 * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
2533 * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
2534 * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
2535 * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
2536 Likewise.
2537
25382012-05-26 Marek Polacek <polacek@redhat.com>
2539
2540 [BZ #14152]
2541 * math/libm-test.inc (fma_test): Don't always expect underflow
2542 exception.
2543
25442012-05-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2545
2546 [BZ #12416]
2547 * elf/tst-execstack.c: Include stackinfo.h.
2548 (do_test): Adjust test case to ensure that pthread_getattr_np
2549 behaviour remains the same after marking stack executable.
2550
25512012-05-25 Joseph Myers <joseph@codesourcery.com>
2552
2553 * sysdeps/unix/sysv/linux/kernel-features.h
2554 (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
2555 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
2556 kernel-features.h.
2557 [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
2558 [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
2559 * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
2560 kernel-features.h.
2561 [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
2562 [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
2563
25642012-05-25 H.J. Lu <hongjiu.lu@intel.com>
2565
2566 * configure.in: Define the default includes to being none.
2567 * configure: Regenerated.
2568
25692012-05-25 Roland McGrath <roland@hack.frob.com>
2570
2571 * sysdeps/x86_64/__longjmp.S: Add a static probe here.
2572 * sysdeps/x86_64/setjmp.S: Likewise.
2573 * sysdeps/i386/bsd-setjmp.S: Likewise.
2574 * sysdeps/i386/bsd-_setjmp.S: Likewise.
2575 * sysdeps/i386/setjmp.S: Likewise.
2576 * sysdeps/i386/__longjmp.S: Likewise.
2577 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
2578 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
2579
2580 * include/stap-probe.h: New file.
2581 * configure.in: Handle --enable-systemtap.
2582 * configure: Regenerated.
2583 * config.h.in (USE_STAP_PROBE): New #undef.
2584 * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
2585 * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
2586 * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
2587
25882012-05-25 Joseph Myers <joseph@codesourcery.com>
2589
2590 [BZ #13717]
2591 * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
2592 to 2.4.0 where earlier.
2593 * sysdeps/unix/sysv/linux/configure: Regenerated.
2594 * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
2595 <kernel-features.h>.
2596 [__ASSUME_32BITUIDS]: Make code unconditional.
2597 [!__ASSUME_32BITUIDS]: Remove conditional code.
2598 * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
2599 <kernel-features.h>.
2600 [__ASSUME_32BITUIDS]: Make code unconditional.
2601 [!__ASSUME_32BITUIDS]: Remove conditional code.
2602 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
2603 [__ASSUME_32BITUIDS]: Make code unconditional.
2604 (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
2605 * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
2606 <kernel-features.h>.
2607 [__ASSUME_32BITUIDS]: Make code unconditional.
2608 [!__ASSUME_32BITUIDS]: Remove conditional code.
2609 * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
2610 <kernel-features.h>.
2611 [__ASSUME_32BITUIDS]: Make code unconditional.
2612 [!__ASSUME_32BITUIDS]: Remove conditional code.
2613 * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
2614 <kernel-features.h>.
2615 [__ASSUME_32BITUIDS]: Make code unconditional.
2616 [!__ASSUME_32BITUIDS]: Remove conditional code.
2617 * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
2618 <kernel-features.h>.
2619 [__ASSUME_32BITUIDS]: Make code unconditional.
2620 [!__ASSUME_32BITUIDS]: Remove conditional code.
2621 * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
2622 <kernel-features.h>.
2623 [__ASSUME_32BITUIDS]: Make code unconditional.
2624 [!__ASSUME_32BITUIDS]: Remove conditional code.
2625 * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
2626 <kernel-features.h>.
2627 [__ASSUME_32BITUIDS]: Make code unconditional.
2628 [!__ASSUME_32BITUIDS]: Remove conditional code.
2629 * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
2630 <kernel-features.h>.
2631 [__ASSUME_32BITUIDS]: Make code unconditional.
2632 [!__ASSUME_32BITUIDS]: Remove conditional code.
2633 * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
2634 <kernel-features.h>.
2635 [__ASSUME_32BITUIDS]: Make code unconditional.
2636 [!__ASSUME_32BITUIDS]: Remove conditional code.
2637 * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
2638 <kernel-features.h>.
2639 [__ASSUME_32BITUIDS]: Make code unconditional.
2640 [!__ASSUME_32BITUIDS]: Remove conditional code.
2641 * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
2642 <kernel-features.h>.
2643 [__ASSUME_32BITUIDS]: Make code unconditional.
2644 [!__ASSUME_32BITUIDS]: Remove conditional code.
2645 * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
2646 <kernel-features.h>.
2647 [__NR_setresgid] (__setresgid): Do not declare.
2648 [__ASSUME_32BITUIDS]: Make code unconditional.
2649 [!__ASSUME_32BITUIDS]: Remove conditional code.
2650 * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
2651 <kernel-features.h>.
2652 [__NR_setresuid] (__setresuid): Do not declare.
2653 [__ASSUME_32BITUIDS]: Make code unconditional.
2654 [!__ASSUME_32BITUIDS]: Remove conditional code.
2655 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
2656 <kernel-features.h>.
2657 [__ASSUME_32BITUIDS]: Make code unconditional.
2658 [!__ASSUME_32BITUIDS]: Remove conditional code.
2659 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
2660 <kernel-features.h>.
2661 [__ASSUME_32BITUIDS]: Make code unconditional.
2662 [!__ASSUME_32BITUIDS]: Remove conditional code.
2663 * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
2664 <kernel-features.h>.
2665 [__ASSUME_32BITUIDS]: Make code unconditional.
2666 [!__ASSUME_32BITUIDS]: Remove conditional code.
2667 * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
2668 <kernel-features.h>.
2669 [__ASSUME_32BITUIDS]: Make code unconditional.
2670 [!__ASSUME_32BITUIDS]: Remove conditional code.
2671 * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
2672 <kernel-features.h>.
2673 [__ASSUME_32BITUIDS]: Make code unconditional.
2674 [!__ASSUME_32BITUIDS]: Remove conditional code.
2675 * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
2676 <kernel-features.h>.
2677 [__ASSUME_32BITUIDS]: Make code unconditional.
2678 [!__ASSUME_32BITUIDS]: Remove conditional code.
2679 * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
2680 <kernel-features.h>.
2681 [__ASSUME_32BITUIDS]: Make code unconditional.
2682 [!__ASSUME_32BITUIDS]: Remove conditional code.
2683 * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
2684 <kernel-features.h>.
2685 [__ASSUME_32BITUIDS]: Make code unconditional.
2686 [!__ASSUME_32BITUIDS]: Remove conditional code.
2687 * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
2688 <kernel-features.h>.
2689 [__ASSUME_32BITUIDS]: Make code unconditional.
2690 [!__ASSUME_32BITUIDS]: Remove conditional code.
2691 * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
2692 <kernel-features.h>.
2693 [__ASSUME_32BITUIDS]: Make code unconditional.
2694 [!__ASSUME_32BITUIDS]: Remove conditional code.
2695 * sysdeps/unix/sysv/linux/kernel-features.h
2696 (__ASSUME_SETRESUID_SYSCALL): Remove.
2697 (__ASSUME_SETRESGID_SYSCALL): Likewise.
2698 (__ASSUME_32BITUIDS): Likewise.
2699 (__ASSUME_LDT_WORKS): Likewise.
2700 (__ASSUME_O_DIRECTORY): Likewise.
2701 (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
2702 architecture but not kernel version.
2703 (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
2704 (__ASSUME_MMAP2_SYSCALL): Likewise.
2705 (__ASSUME_STAT64_SYSCALL): Likewise.
2706 (__ASSUME_IPC64): Likewise.
2707 * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
2708 <kernel-features.h>.
2709 [__ASSUME_32BITUIDS]: Make code unconditional.
2710 [!__ASSUME_32BITUIDS]: Remove conditional code.
2711 * sysdeps/unix/sysv/linux/opendir.c: Do not include
2712 <kernel-features.h>.
2713 [__ASSUME_O_DIRECTORY]: Make code unconditional.
2714 * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
2715 132096]: Remove conditional code.
2716 [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
2717 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
2718 <kernel-features.h>.
2719 [__ASSUME_32BITUIDS]: Make code unconditional.
2720 [!__ASSUME_32BITUIDS]: Remove conditional code.
2721 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
2722 <kernel-features.h>.
2723 [__ASSUME_32BITUIDS]: Make code unconditional.
2724 [!__ASSUME_32BITUIDS]: Remove conditional code.
2725 * sysdeps/unix/sysv/linux/setegid.c: Do not include
2726 <kernel-features.h>.
2727 [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
2728 unconditional.
2729 (__setresgid): Do not declare.
2730 [__ASSUME_32BITUIDS]: Make code unconditional.
2731 [!__ASSUME_32BITUIDS]: Remove conditional code.
2732 * sysdeps/unix/sysv/linux/seteuid.c: Do not include
2733 <kernel-features.h>.
2734 [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
2735 unconditional.
2736 (__setresuid): Do not declare.
2737 [__ASSUME_32BITUIDS]: Make code unconditional.
2738 [!__ASSUME_32BITUIDS]: Remove conditional code.
2739 * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
2740 <kernel-features.h>.
2741 [__ASSUME_32BITUIDS]: Make code unconditional.
2742 [!__ASSUME_32BITUIDS]: Remove conditional code.
2743 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
2744 <kernel-features.h>.
2745 [__ASSUME_32BITUIDS]: Make code unconditional.
2746 [!__ASSUME_32BITUIDS]: Remove conditional code.
2747
27482012-05-25 Richard Henderson <rth@twiddle.net>
2749
2750 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
2751 dl_hwcap to ifunc resolver.
2752 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
2753 elf_ifunc_invoke.
2754 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
2755 dl_hwcap to ifunc resolver.
2756 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
2757
27582012-05-24 Joseph Myers <joseph@codesourcery.com>
2759
2760 [BZ #14153]
2761 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
2762 for |x| <= 2**-26, not 2**-57.
2763 * math/libm-test.inc (acos_test): Do not allow spurious underflow
2764 exception.
2765
27662012-05-24 Jeff Law <law@redhat.com>
2767
2768 * stdio-common/Makefile (tests): Add bug25.
2769 * stdio-common/bug25.c: New test.
2770
27712012-05-24 H.J. Lu <hongjiu.lu@intel.com>
2772
2773 [BZ #13576]
2774 * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
2775 multiple of MALLOC_ALIGNMENT in size.
2776 (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
2777
27782012-05-24 Joseph Myers <joseph@codesourcery.com>
2779
2780 * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
2781 Require >= 256.
2782 (FILENAME_MAX): Use macro-int-constant.
2783 (FOPEN_MAX): Use macro-int-constant. Require >= 8.
2784 (_IOFBF): Use macro-int-constant.
2785 (_IOLBF): Likewise.
2786 (_IONBF): Likewise.
2787 (SEEK_CUR): Likewise.
2788 (SEEK_END): Likewise.
2789 (SEEK_SET): Likewise.
2790 (TMP_MAX): Likewise.
2791 (EOF): Use macro-int-constant. Require < 0.
2792 (NULL): Use macro-constant. Require == 0.
2793 (stdin): Require type to be FILE *.
2794 (stdout): Likewise.
2795 (stderr): Likewise.
2796 * conform/data/stdlib.h-data (EXIT_FAILURE): Use
2797 macro-int-constant.
2798 (EXIT_SUCCESS): Likewise.
2799 (NULL): Use macro-constant. Require == 0.
2800 (RAND_MAX): Use macro-int-constant.
2801 [ISO99 || ISO11] (lldiv_t): Require also for these standards.
2802 [C99-based standards] (strtof): Require function.
2803 [C99-based standards] (strtold): Likewise.
2804 [C99-based standards] (strtoll): Likewise.
2805 [C99-based standards] (strtoull): Likewise.
2806 [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2807 [ISO || ISO99 || ISO11] (limits.h): Likewise.
2808 [ISO || ISO99 || ISO11] (math.h): Likewise.
2809 [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
2810 (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2811 [ISO || ISO99 || ISO11] (*_t): Do not allow.
2812
28132012-05-24 Andreas Schwab <schwab@linux-m68k.org>
2814
2815 [BZ #14132]
2816 * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
2817 * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
2818 * intl/dgettext.c (DCGETTEXT): Likewise.
2819 * intl/gettext.c (DCGETTEXT): Likewise.
2820 * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
2821 * posix/regex_internal.h (gettext): Likewise.
2822 * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
2823 Remove declaration.
2824 * include/argz.h (__argz_count_internal)
2825 (__argz_stringify_internal): Remove declaration.
2826 (__argz_count, __argz_stringify): Declare hidden proto.
2827 * intl/dcgettext.c: Remove use of INTDEF.
2828 * string/argz-count.c: Replace INTDEF with libc_hidden_def.
2829 * string/argz-stringify.c: Likewise.
2830 * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
2831 (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
2832 Declare hidden proto.
2833 * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
2834 (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
2835 Declare hidden proto.
2836 * include/stdio.h (__asprintf_internal): Don't declare.
2837 (__asprintf): Don't define as macro. Declare hidden proto.
2838 * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
2839 (__fsetlocking): Declare hidden proto.
2840 * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
2841 (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
2842 hidden proto.
2843 (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
2844 (_IO_setlinebuf): Remove use of INTUSE.
2845 (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
2846 (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
2847 (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
2848 Remove declaration.
2849 * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
2850 (_IO_do_flush): Remove use of INTUSE.
2851 (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
2852 (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
2853 (_IO_adjust_column, _IO_least_wmarker)
2854 (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
2855 (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
2856 (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
2857 (_IO_default_doallocate, _IO_wdefault_doallocate)
2858 (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
2859 (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
2860 (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
2861 (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
2862 (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
2863 (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
2864 (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
2865 (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
2866 (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
2867 (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
2868 (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
2869 (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
2870 (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
2871 proto.
2872 (_IO_flush_all_internal, _IO_adjust_column_internal)
2873 (_IO_default_uflow_internal, _IO_default_finish_internal)
2874 (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
2875 (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
2876 (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
2877 (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
2878 (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
2879 (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
2880 (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
2881 (_IO_file_xsgetn_internal, _IO_file_stat_internal)
2882 (_IO_file_close_internal, _IO_file_close_it_internal)
2883 (_IO_file_underflow_internal, _IO_file_overflow_internal)
2884 (_IO_file_init_internal, _IO_file_attach_internal)
2885 (_IO_file_fopen_internal, _IO_file_read_internal)
2886 (_IO_file_sync_internal, _IO_file_seek_internal)
2887 (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
2888 (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
2889 (_IO_str_underflow_internal, _IO_str_overflow_internal)
2890 (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
2891 (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
2892 (_IO_list_all_internal, _IO_link_in_internal)
2893 (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
2894 (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
2895 (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
2896 (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
2897 (_IO_do_write_internal, _IO_padn_internal)
2898 (_IO_getline_info_internal, _IO_getline_internal)
2899 (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
2900 (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
2901 (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
2902 (_IO_vfscanf_internal, _IO_vfprintf_internal)
2903 (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
2904 (_IO_init_internal, _IO_un_link_internal): Don't declare.
2905 * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
2906 with libc_hidden_ver, remove use of INTUSE.
2907 * libio/genops.c: Likewise.
2908 * libio/freopen.c: Likewise.
2909 * libio/freopen64.c: Likewise.
2910 * libio/iofclose.c: Likewise.
2911 * libio/iofdopen.c: Likewise.
2912 * libio/iofflush.c: Likewise.
2913 * libio/iofflush_u.c: Likewise.
2914 * libio/iofgets.c: Likewise.
2915 * libio/iofgets_u.c: Likewise.
2916 * libio/iofopen.c: Likewise.
2917 * libio/iofopncook.c: Likewise.
2918 * libio/iofread.c: Likewise.
2919 * libio/iofread_u.c: Likewise.
2920 * libio/ioftell.c: Likewise.
2921 * libio/iofwrite.c: Likewise.
2922 * libio/iogetline.c: Likewise.
2923 * libio/iogets.c: Likewise.
2924 * libio/iogetwline.c: Likewise.
2925 * libio/iopadn.c: Likewise.
2926 * libio/iopopen.c: Likewise.
2927 * libio/ioseekoff.c: Likewise.
2928 * libio/ioseekpos.c: Likewise.
2929 * libio/iosetbuffer.c: Likewise.
2930 * libio/iosetvbuf.c: Likewise.
2931 * libio/ioungetc.c: Likewise.
2932 * libio/ioungetwc.c: Likewise.
2933 * libio/iovdprintf.c: Likewise.
2934 * libio/iovsprintf.c: Likewise.
2935 * libio/iovsscanf.c: Likewise.
2936 * libio/memstream.c: Likewise.
2937 * libio/obprintf.c: Likewise.
2938 * libio/oldfileops.c: Likewise.
2939 * libio/oldiofclose.c: Likewise.
2940 * libio/oldiofdopen.c: Likewise.
2941 * libio/oldiofopen.c: Likewise.
2942 * libio/oldiopopen.c: Likewise.
2943 * libio/oldstdfiles.c: Likewise.
2944 * libio/putc.c: Likewise.
2945 * libio/setbuf.c: Likewise.
2946 * libio/setlinebuf.c: Likewise.
2947 * libio/stdfiles.c: Likewise.
2948 * libio/strops.c: Likewise.
2949 * libio/vasprintf.c: Likewise.
2950 * libio/vscanf.c: Likewise.
2951 * libio/vsnprintf.c: Likewise.
2952 * libio/vswprintf.c: Likewise.
2953 * libio/wfiledoalloc.c: Likewise.
2954 * libio/wfileops.c: Likewise.
2955 * libio/wgenops.c: Likewise.
2956 * libio/wmemstream.c: Likewise.
2957 * libio/wstrops.c: Likewise.
2958 * libio/__fpurge.c: Likewise.
2959 * libio/__fsetlocking.c: Likewise.
2960 * assert/assert.c: Likewise.
2961 * debug/fgets_chk.c: Likewise.
2962 * debug/fgets_u_chk.c: Likewise.
2963 * debug/fread_chk.c: Likewise.
2964 * debug/fread_u_chk.c: Likewise.
2965 * debug/gets_chk.c: Likewise.
2966 * debug/obprintf_chk.c: Likewise.
2967 * debug/vasprintf_chk.c: Likewise.
2968 * debug/vdprintf_chk.c: Likewise.
2969 * debug/vsnprintf_chk.c: Likewise.
2970 * debug/vsprintf_chk.c: Likewise.
2971 * malloc/mtrace.c: Likewise.
2972 * misc/error.c: Likewise.
2973 * misc/syslog.c: Likewise.
2974 * stdio-common/asprintf.c: Likewise.
2975 * stdio-common/fxprintf.c: Likewise.
2976 * stdio-common/getw.c: Likewise.
2977 * stdio-common/isoc99_fscanf.c: Likewise.
2978 * stdio-common/isoc99_scanf.c: Likewise.
2979 * stdio-common/isoc99_vfscanf.c: Likewise.
2980 * stdio-common/isoc99_vscanf.c: Likewise.
2981 * stdio-common/isoc99_vsscanf.c: Likewise.
2982 * stdio-common/printf-prs.c: Likewise.
2983 * stdio-common/printf_fp.c: Likewise.
2984 * stdio-common/printf_fphex.c: Likewise.
2985 * stdio-common/printf_size.c: Likewise.
2986 * stdio-common/putw.c: Likewise.
2987 * stdio-common/scanf.c: Likewise.
2988 * stdio-common/sprintf.c: Likewise.
2989 * stdio-common/tmpfile.c: Likewise.
2990 * stdio-common/vfprintf.c: Likewise.
2991 * stdio-common/vfscanf.c: Likewise.
2992 * stdlib/strfmon_l.c: Likewise.
2993 * sunrpc/openchild.c: Likewise.
2994 * sunrpc/xdr_stdio.c: Likewise.
2995 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
2996 * sysdeps/mach/hurd/tmpfile.c: Likewise.
2997
29982012-05-24 Roland McGrath <roland@hack.frob.com>
2999
3000 * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
3001
3002 * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
3003 in the third column, to generate for the shared library an IFUNC
3004 that uses _dl_vdso_vsym.
3005 * Makerules (COMPILE.c, compile-stdin.c): New variables.
3006 * Makeconfig (object-suffixes-noshared): New variable.
3007
3008 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
3009 (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
3010 (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
3011 (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
3012
3013 [BZ #14132]
3014 * include/sys/time.h (__gettimeofday): Remove macro.
3015 (__gettimeofday, gettimeofday): Add libc_hidden_proto.
3016 * time/gettimeofday.c (__gettimeofday): Remove #undef.
3017 Remove INTDEF.
3018 (__gettimeofday): Add libc_hidden_def.
3019 (gettimeofday): Add libc_hidden_weak.
3020 * sysdeps/mach/gettimeofday.c: Likewise.
3021 * sysdeps/posix/gettimeofday.c: Likewise.
3022 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
3023 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
3024 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
3025 (__gettimeofday_internal): Remove strong_alias.
3026 (__gettimeofday): Add libc_hidden_def.
3027 (gettimeofday): Add libc_hidden_weak.
3028 * sysdeps/unix/syscalls.list (gettimeofday):
3029 Remove __gettimeofday_internal alias.
3030
30312012-05-24 Daniel Jacobowitz <drow@false.org>
3032 H.J. Lu <hongjiu.lu@intel.com>
3033
3034 [BZ #12495]
3035 * malloc/malloc.c (SMALLBIN_CORRECTION): New.
3036 (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
3037 (largebin_index_32_big): New.
3038 (largebin_index): Use it for 16-byte alignment.
3039 (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ. Don't update
3040 correction with front_misalign.
3041
30422012-05-24 H.J. Lu <hongjiu.lu@intel.com>
3043
3044 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
3045 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
3046 Likewise.
3047 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
3048 Likewise.
3049 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
3050 Likewise.
3051 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
3052 Likewise.
3053 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
3054 Likewise.
3055 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
3056 Likewise.
3057 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
3058 Likewise.
3059 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
3060 Likewise.
3061 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
3062 Likewise.
3063 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
3064 Likewise.
3065 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
3066 Likewise.
3067 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
3068 Likewise.
3069
3070 * scripts/data/c++-types-x32-linux-gnu.data: New file.
3071 * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
3072
30732012-05-24 Joseph Myers <joseph@codesourcery.com>
3074
3075 [BZ #10846]
3076 [BZ #14036]
3077 * math/libm-test.inc (exp_test): Add test from bug 14036.
3078 (pow_test): Add test from bug 10846.
3079
3080 * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
3081 and other flags.
3082 (special_function): Do not include flags in test name.
3083 (parse_args): Likewise.
3084 * sysdeps/i386/fpu/libm-test-ulps: Update.
3085 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3086 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
3087 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
3088 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3089
3090 * math/gen-libm-test.pl (%beautify): Add entries for underflow
3091 exceptions.
3092 * math/libm-test.inc ("Philosophy"): Update comment about
3093 exception testing.
3094 (UNDERFLOW_EXCEPTION): New macro.
3095 (UNDERFLOW_EXCEPTION_OK): Likewise.
3096 (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
3097 (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
3098 (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
3099 (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
3100 (INVALID_EXCEPTION_OK): Update value.
3101 (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
3102 (OVERFLOW_EXCEPTION_OK): Likewise.
3103 (IGNORE_ZERO_INF_SIGN): Likewise.
3104 (test_exceptions): Handle underflow exceptions.
3105 (acos_test): Update for underflow exception expectations.
3106 (cexp_test): Likewise.
3107 (clog_test): Likewise.
3108 (clog10_test): Likewise.
3109 (csqrt_test): Likewise.
3110 (ctan_test): Likewise.
3111 (ctanh_test): Likewise.
3112 (exp_test): Likewise.
3113 (exp10_test): Likewise.
3114 (exp2_test): Likewise.
3115 (expm1_test): Likewise.
3116 (fma_test): Likewise.
3117 (j0_test): Likewise.
3118 (jn_test): Likewise.
3119 (nexttoward_test): Likewise.
3120 (pow_test): Likewise.
3121 (scalbn_test): Likewise.
3122 (scalbln_test): Likewise.
3123 (tan_test): Likewise.
3124 (y1_test): Likewise.
3125 * sysdeps/i386/fpu/libm-test-ulps: Update.
3126 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3127
31282012-05-23 David S. Miller <davem@davemloft.net>
3129
3130 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
3131 (__libc_sigaction): Remove unused local variables.
3132
31332012-05-23 H.J. Lu <hongjiu.lu@intel.com>
3134
3135 * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
3136
31372012-05-23 Paul Eggert <eggert@cs.ucla.edu>
3138
3139 mktime: avoid signed integer overflow
3140 * time/mktime.c (__mktime_internal): Do not mishandle the case
3141 where diff == INT_MIN.
3142
3143 mktime: simplify computation of average
3144 * time/mktime.c (ranged_convert): Use new time_t_avg function
3145 instead of rolling our own (probably-slower) code.
3146
3147 mktime: do not assume signed right shift propagates sign bit
3148 * time/mktime.c (isdst_differ): New static function.
3149 (__mktime_internal): No need to normalize tm_isdst now.
3150 (__mktime_internal, not_equal_tm): Use isdst_differ to compare
3151 tm_isdst values.
3152
3153 mktime: merge another wrapv change from gnulib
3154 * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
3155 from some compilers.
3156
3157 mktime: remove incorrect attempt at unusual arithmetics
3158 * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
3159 The code didn't really work on such machines anyway.
3160 (TYPE_MINIMUM): Assume two's complement.
3161 (twos_complement_arithmetic): Verify that long_int and time_t
3162 are two's complement (or unsigned, in the latter case).
3163
3164 mktime: check signed shifts on long_int and time_t, too
3165 * time/mktime.c (SHR): Check that shifts work as desired
3166 on the types long_int and time_t too, as SHR is used on
3167 such types.
3168
3169 mktime: do not assume 'long' is wide enough
3170 * time/mktime.c (verify): Move decl up.
3171 (long_int): New type.
3172 (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
3173 to remove assumption in the code that 'long' is wide enough to
3174 store year values. This assumption is not true on x32 and on
3175 some non-glibc platforms.
3176
3177 mktime: merge wrapv change from gnulib
3178 * time/mktime.c (WRAPV): New macro.
3179 (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
3180 (guess_time_tm, __mktime_internal): Do not assume that signed
3181 integer overflow wraps around; modern compilers generate code
3182 where this assumption is no longer valid.
3183
31842012-05-23 H.J. Lu <hongjiu.lu@intel.com>
3185
3186 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
3187 Replace "jmp L(pseudo_end)" with "ret".
3188 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
3189 Likewise.
3190
31912012-05-23 Andreas Jaeger <aj@suse.de>
3192
3193 * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
3194 * sysdeps/unix/sysv/linux/poll.c: Remove file.
3195
31962012-05-23 Andreas Jaeger <aj@suse.de>
3197 Maximilian Attems <max@stro.at>
3198
3199 * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
3200 New macros.
3201
32022012-05-23 H.J. Lu <hongjiu.lu@intel.com>
3203
3204 * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
3205 code so that pseudo_end is just ret and the stack pointer is
3206 correct also for static library in error case.
3207
32082012-05-23 Joseph Myers <joseph@codesourcery.com>
3209
3210 * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
3211 move to syscalls.list.
3212 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
3213 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
3214 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
3215 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
3216
3217 * manual/install.texi (Running make install): Do not mention Linux
3218 kernel version for which pt_chown is not needed.
3219 (Linux): Do not mention problems with nscd with 2.0 kernels.
3220 * INSTALL: Regenerated.
3221
32222012-05-23 Andreas Jaeger <aj@suse.de>
3223
3224 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
3225 (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
3226 macro.
3227 * sysdeps/unix/sysv/linux/s390/bits/mman.h
3228 (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3229 * sysdeps/unix/sysv/linux/sh/bits/mman.h
3230 (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3231 * sysdeps/unix/sysv/linux/i386/bits/mman.h
3232 (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3233 * sysdeps/unix/sysv/linux/sparc/bits/mman.h
3234 (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3235 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
3236 (MADV_DONTDUMP,MADV_DODUMP): Likewise.
3237 * sysdeps/unix/sysv/linux/bits/in.h
3238 (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
3239
32402012-05-22 Roland McGrath <roland@hack.frob.com>
3241
3242 * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
3243 (PREPARE_VERSION): Just use assert instead, it will be elided
3244 under [NDEBUG] anyway.
3245
32462012-05-22 H.J. Lu <hongjiu.lu@intel.com>
3247
3248 * sysdeps/unix/sysv/linux/Makefile: Include
3249 $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
3250 (sysdep_routines): Remove sysctl.
3251 * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
3252 * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
3253 * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
3254 * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
3255 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
3256
32572012-05-22 Andreas Jaeger <aj@suse.de>
3258
3259 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
3260 that pseudo_end is just ret and the stack pointer is correct also
3261 for static library in error case.
3262
32632012-05-22 Paul Pluzhnikov <ppluzhnikov@google.com>
3264
3265 [BZ #14122]
3266 * nss/nsswitch.c (defconfig_entries): New variable.
3267 (__nss_database_lookup): Don't leak defconfig entries.
3268 (nss_parse_service_list): Don't leak on error paths.
3269 (free_database_entries): New function.
3270 (free_defconfig): New function.
3271 (free_mem): Move common code to free_database_entries.
3272
32732012-05-22 H.J. Lu <hongjiu.lu@intel.com>
3274
3275 * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
3276 Add arch_prctl.
3277 * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
3278
3279 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
3280 (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
3281 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
3282 New macro.
3283 (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
3284 (INTERNAL_SYSCALL_TYPES): Likewise.
3285 (LOAD_ARGS_TYPES_[1-6]): Likewise.
3286 (LOAD_REGS_TYPES_[1-6]): Likewise.
3287 (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
3288 (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
3289
32902012-05-22 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
3291
3292 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
3293 copysignl for GLIBC_2_0.
3294 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
3295 finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
3296 * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
3297 logbl for GLIBC_2_0.
3298 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
3299 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
3300
33012012-05-22 H.J. Lu <hongjiu.lu@intel.com>
3302
3303 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
3304 <bits/wordsize.h>. Check __x86_64__ instead of __WORDSIZE.
3305
3306 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
3307 Use "neg %eax".
3308
3309 * time/mktime.c: Update copyright years.
3310
33112012-05-22 Paul Eggert <eggert@cs.ucla.edu>
3312
3313 mktime: merge comment-quoting-style change from gnulib
3314 * time/mktime.c: Quote 'like this' in comments.
3315 The GNU coding standards suggest that we no longer quote `like this',
3316 as "`" and "'" are typically rendered asymmetrically nowadays.
3317 The typical gnulib style is to quote 'like this' when quoting
3318 code, and "like this" when quoting English.
3319
3320 * time/mktime.c (compile-command): Add "-I.".
3321
3322 mktime: merge mktime-internal.h change from gnulib
3323 * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
3324
3325 mktime: merge time_r change from gnulib
3326 * time/mktime.c [!_LIBC]: Do not include "time_r.h".
3327
3328 mktime: merge DEBUG change from gnulib
3329 * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
3330 case system <time.h> has a #define.
3331
3332 mktime: merge <sys/types.h> change from gnulib
3333 * time/mktime.c: Do not include <sys/types.h>; no longer needed,
3334 since <time.t> is now guaranteed to define time_t.
3335
3336 mktime: merge HAVE_CONFIG_H change from gnulib
3337 * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
3338
33392012-05-22 H.J. Lu <hongjiu.lu@intel.com>
3340
3341 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
3342 Use "neg %eax".
3343
3344 * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
3345 __rlim_t cast.
3346 (struct rusage): Use anonymous union to pad each field to
3347 __syscall_slong_t.
3348
33492012-05-21 David S. Miller <davem@davemloft.net>
3350
3351 * Makefules (o-iterator): Remove .s cases.
3352 (compile-command.s): Delete.
3353 (COMPILE.s): Delete.
3354 * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
3355
33562012-05-21 Joseph Myers <joseph@codesourcery.com>
3357
3358 * configure.in (libc_cv_predef_stack_protector): Only consider
3359 "foobar" and "__stack_chk_fail" lines in libc_undefs.
3360 * configure: Regenerated.
3361
33622012-05-21 H.J. Lu <hongjiu.lu@intel.com>
3363
3364 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
3365 New macro. Use R*LP on int and pointer.
3366 (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
3367 * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
3368 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
3369 * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
3370
3371 * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
3372 [__WORDSIZE_TIME64_COMPAT32] instead of
3373 [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
3374 (struct utmp): Likewise.
3375 * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
3376 * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
3377 Renamed to ...
3378 (__WORDSIZE_TIME64_COMPAT32): This.
3379 * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
3380 * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
3381 * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
3382 * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
3383 * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
3384 (__WORDSIZE_TIME64_COMPAT32): New macro.
3385
33862012-05-21 Andreas Jaeger <aj@suse.de>
3387
3388 * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
3389 only if [SHARED]. Add prototype for __wcschr_ia32.
3390
33912012-05-21 Roland McGrath <roland@hack.frob.com>
3392
3393 * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
3394 of %rbp unmolested in the jmp_buf while mangling the low bits.
3395 * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
3396 unmolested high bits of %rbp while demangling the low bits.
3397 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3398
33992012-05-21 Andreas Jaeger <aj@suse.de>
3400
3401 * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
3402 * sunrpc/svc_simple.c: Use it for registerrpc.
3403 * sunrpc/xcrypt.c: Use it for passwd2des.
3404
3405 * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
3406
34072012-05-21 H.J. Lu <hongjiu.lu@intel.com>
3408
3409 * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
3410 Don't define if [__SYSCALL_WORDSIZE != 32].
3411 * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
3412 New macro.
3413
34142012-05-21 Bruno Haible <bruno@clisp.org>
3415 Andreas Jaeger <aj@suse.de>
3416
3417 [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
3418 * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
3419 inptr and inend for must_buffer_ch.
3420 * wcsmbs/tst-mbsnrtowcs.c: Remove file.
3421 * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
3422 * stdio-common/Makefile (tests): Remove bug15.
3423 (bug15-ENV): Remove macro.
3424 * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
3425 anymore.
3426
34272012-05-19 Andreas Jaeger <aj@suse.de>
3428 Roland McGrath <roland@hack.frob.com>
3429
3430 * manual/contrib.texi: Completely rewritten. It contains now an
3431 alphabetical list of contributors and their contributions.
3432
34332012-05-21 Richard Henderson <rth@twiddle.net>
3434
3435 * misc/getauxval.c (__getauxval): Use unsigned long int.
3436 * misc/sys/auxv.h: Include <sys/cdefs.h>.
3437 (getauxval): Use unsigned long int.
3438
34392012-05-21 H.J. Lu <hongjiu.lu@intel.com>
3440
3441 * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
3442
34432012-05-21 Roland McGrath <roland@hack.frob.com>
3444
3445 * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
3446 (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
3447 __alignof__ (long double).
3448
34492012-05-21 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
3450
3451 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3452
34532012-05-20 Richard Henderson <rth@twiddle.net>
3454
3455 * misc/getauxval.c: New file.
3456 * misc/sys/auxv.h: New file.
3457 * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
3458 (routines): Add getauxval.
3459 * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
3460 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
3461 * elf/dl-sysdep.c (_dl_auxv): Remove.
3462 (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
3463 * elf/dl-support.c (_dl_auxv): New variable.
3464 (_dl_aux_init): Initialize it.
3465 * manual/startup.texi (Auxiliary Vector): New node.
3466 * sysdeps/generic/bits/hwcap.h: New file.
3467 * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
3468 * sysdeps/powerpc/sysdep.h: ... here. Include it.
3469 * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
3470 * sysdeps/sparc/sysdep.h: ... here. Include it.
3471 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
3472 * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
3473 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3474 Update.
3475 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
3476 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
3477 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
3478 * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
3479 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
3480 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
3481 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
3482 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
3483
34842012-05-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
3485
3486 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3487
34882012-05-19 David S. Miller <davem@davemloft.net>
3489
3490 * sysdeps/sparc/fpu/libm-test-ulps: Update.
3491
34922012-05-19 Joseph Myers <joseph@codesourcery.com>
3493
3494 [BZ #14123]
3495 * math/s_ccosh.c: Include <float.h>
3496 (__ccosh): Avoid internal overflow calculating sinh and cosh
3497 values before multiplying by sin and cos values.
3498 * math/s_ccoshf.c: Likewise.
3499 * math/s_ccoshl.c: Likewise.
3500 * math/s_csin.c: Likewise.
3501 * math/s_csinf.c: Likewise.
3502 * math/s_csinl.c: Likewise.
3503 * math/s_csinh.c: Likewise.
3504 * math/s_csinhf.c: Likewise.
3505 * math/s_csinhl.c: Likewise.
3506 * math/libm-test.inc (ccos_test): Add more tests.
3507 (ccosh_test): Likewise.
3508 (csin_test): Likewise.
3509 (csinh_test): Likewise.
3510 * sysdeps/i386/fpu/libm-test-ulps: Update.
3511 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3512
35132012-05-19 H.J. Lu <hongjiu.lu@intel.com>
3514
3515 * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
3516 * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
3517
3518 * sysdeps/x86_64/x32/_itoa.h: Add comment.
3519
35202012-05-19 Joseph Myers <joseph@codesourcery.com>
3521
3522 * sysdeps/powerpc/soft-fp/Makefile: Remove file.
3523 * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
3524 * sysdeps/powerpc/soft-fp/Versions: Likewise.
3525 * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
3526 * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
3527 * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
3528 * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
3529 * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
3530 * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
3531 * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
3532 * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
3533 * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
3534 * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
3535 * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
3536 * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
3537 * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
3538 * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
3539 * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
3540 * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
3541 * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
3542 * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
3543 * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
3544 * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
3545 * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
3546 * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
3547 * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
3548 * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
3549 * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
3550 * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
3551 * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
3552 * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
3553
35542012-05-18 Andreas Jaeger <aj@suse.de>
3555
3556 * csu/.gitignore: Delete.
3557
35582012-05-18 H.J. Lu <hongjiu.lu@intel.com>
3559
3560 * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
3561 (timex): Use __syscall_slong_t.
3562
35632012-05-18 Andreas Jaeger <aj@suse.de>
3564 Carlos O'Donell <carlos_odonell@mentor.com>
3565
3566 * manual/install.texi (Configuring and compiling): Update
3567 description about files modified in the source directory.
3568 * INSTALL: Regenerated.
3569
35702012-05-18 H.J. Lu <hongjiu.lu@intel.com>
3571
3572 * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
3573 value. Use "or" to set return value to -1.
3574 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
3575 negate return value.
3576
35772012-05-18 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
3578
3579 * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
3580 CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
3581 failure if the compiler has Graphite support disabled.
3582 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
3583 Likewise.
3584 * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
3585 CFLAGS-memmove.c): Likewise.
3586 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
3587 Likewise.
3588
35892012-05-18 H.J. Lu <hongjiu.lu@intel.com>
3590
3591 * sysdeps/x86_64/x32/_itoa.h: New file.
3592
3593 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
3594 getdents system call only if kernel and user dirents have the
3595 same d_ino and d_off.
3596
3597 * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
3598 LLONG_MAX != LONG_MAX.
3599 (_itoa_word): Use _ITOA_WORD_TYPE on value.
3600 (_fitoa_word): Likewise.
3601
3602 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
3603 years.
3604 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
3605 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
3606 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
3607
3608 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
3609 include <bits/wordsize.h>. Check __x86_64__ instead of
3610 __WORDSIZE.
3611 (sigcontext): Use "__uint64_t" instead of "unsigned long int"
3612 if __x86_64__ is defined. Use anonymous union on fpstate.
3613
3614 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
3615 anonymous union.
3616
36172012-05-18 Andreas Schwab <schwab@linux-m68k.org>
3618
3619 * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
3620 INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
3621 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
3622 Refer to _rtld_local_ro instead of _rtld_global_ro.
3623 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
3624 Likewise.
3625 * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
3626 Likewise.
3627 * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
3628 Likewise.
3629 * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
3630 * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
3631 of _rtld_global, and rtld_progname instead of _dl_argv[0].
3632
3633 * sysdeps/powerpc/powerpc32/dl-machine.c
3634 (__elf_machine_runtime_setup) [PROF]: Don't reference
3635 _dl_prof_resolve.
3636
36372012-05-18 Andreas Jaeger <aj@suse.de>
3638
3639 * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
3640 function only available for GCCs before 3.4 since GCC 3.4
3641 introduced a builtin.
3642 (lrint): Likewise.
3643 (llrintf): Likewise.
3644 (llrint): Likewise.
3645 (fmaxf): Likewise.
3646 (fmax): Likewise.
3647 (fminf): Likewise.
3648 (fmin): Likewise.
3649 (rint): Likewise.
3650 (rintf): Likewise.
3651 (nearbyint): Likewise.
3652 (nearbyintf): Likewise.
3653 (ceil): Likewise.
3654 (ceilf): Likewise.
3655 (floor): Likewise.
3656 (floorf): Likewise.
3657
36582012-05-17 H.J. Lu <hongjiu.lu@intel.com>
3659
3660 * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
3661 on both fields and cast pointer to __syscall_ulong_t.
3662
3663 * bits/types.h (__fsword_t): New type.
3664 * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
3665 sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
3666 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3667 (__FSWORD_T_TYPE): Likewise.
3668 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3669 (__FSWORD_T_TYPE): Likewise.
3670 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3671 (__FSWORD_T_TYPE): Likewise.
3672 * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
3673 (__FSWORD_T_TYPE): Likewise.
3674 * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
3675 __SWORD_TYPE with __fsword_t.
3676 (statfs64): Likewise.
3677
36782012-05-17 David S. Miller <davem@davemloft.net>
3679
3680 * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
3681
36822012-05-17 Andreas Jaeger <aj@suse.de>
3683
3684 * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
3685 warning.
3686
36872012-05-17 H.J. Lu <hongjiu.lu@intel.com>
3688
3689 * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
3690
36912012-05-17 Andreas Jaeger <aj@suse.de>
3692
3693 * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
3694 when it is used.
3695
36962012-05-17 Chris Metcalf <cmetcalf@tilera.com>
3697
3698 * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
3699
37002012-05-17 H.J. Lu <hongjiu.lu@intel.com>
3701
3702 * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
3703 * sysdeps/x86_64/tst-mallocalign1.c: New file.
3704
37052012-05-17 Andreas Jaeger <aj@suse.de>
3706 Carlos O'Donell <carlos_odonell@mentor.com>
3707
3708 [BZ #14059]
3709 * sysdeps/x86_64/multiarch/init-arch.h
3710 (bit_YMM_Usable): Rename to...
3711 (bit_AVX_Usable): ... this.
3712 (bit_FMA4_Usable): New macro.
3713 (bit_XMM_state): New macro.
3714 (bit_YMM_state): New macro.
3715 [__ASSEMBLER__] (index_YMM_Usable): Rename to...
3716 [__ASSEMBLER__] (index_AVX_Usable): ... this.
3717 [__ASSEMBLER__] (index_FMA4_Usable): New macro.
3718 (CPUID_OSXSAVE): New macro.
3719 (CPUID_AVX): New macro.
3720 (CPUID_FMA4): New macro.
3721 (index_YMM_Usable): Rename to...
3722 (index_AVX_Usable): ... this.
3723 (HAS_AVX): Use HAS_ARCH_FEATURE.
3724 (HAS_FMA4): Likewise.
3725 (HAS_YMM_USABLE): Remove.
3726 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3727 Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
3728 are present.
3729 * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
3730 * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
3731 * sysdeps/x86_64/multiarch/Makefile: Likewise.
3732 * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
3733 * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
3734
37352012-05-17 Chris Metcalf <cmetcalf@tilera.com>
3736
3737 * math/libm-test.c: Support platforms without multiple rounding modes.
3738 * math/bug-nextafter.c: Support platforms without FP exceptions.
3739 * math/bug-nexttoward.c: Likewise.
3740 * math/test-fenv.c: Likewise.
3741 * math/test-misc.c: Likewise.
3742 * stdlib/bug-getcontext.c: Likewise.
3743
37442012-05-17 Andreas Jaeger <aj@suse.de>
3745
3746 * manual/examples/search.c (critter_cmp): Change signature to
3747 avoid warnings.
3748 * manual/string.texi (Collation Functions): Likewise.
3749
37502012-05-16 H.J. Lu <hongjiu.lu@intel.com>
3751
3752 * bits/types.h: Fold copyright years.
3753 * bits/typesizes.h: Likewise.
3754 * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
3755 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
3756 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
3757 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
3758 * time/time.h: Likewise.
3759
37602012-05-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3761
3762 [BZ #208]
3763 * malloc.c (int_mallinfo): Add parameter to accumulate statistics
3764 in instead of returning them. Return void.
3765 (__libc_mallinfo): Accumulate over all arenas.
3766 (__malloc_stats): Adjust for change in int_mallinfo interface.
3767
37682012-05-16 Roland McGrath <roland@hack.frob.com>
3769
3770 [BZ #10375]
3771 * configure.in (NM): Add AC_CHECK_TOOL for it.
3772 (libc_extra_cflags): New substituted variable.
3773 Check for -fstack-protector being used implicitly.
3774 * configure: Regenerated.
3775 * config.make.in (config-extra-cflags): New variable,
3776 gets @libc_extra_cflags@.
3777 * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
3778
3779 [BZ #10375]
3780 * configure.in: Check for _FORTIFY_SOURCE being predefined.
3781 (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
3782 * configure: Regenerated.
3783 * config.make.in (CPPUNDEFS): New substituted variable.
3784 * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
3785 * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
3786 * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
3787
37882012-05-16 H.J. Lu <hongjiu.lu@intel.com>
3789
3790 * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
3791 (mq_attr): Use __syscall_slong_t.
3792
37932012-05-16 H.J. Lu <hongjiu.lu@intel.com>
3794
3795 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
3796 Check __x86_64__ instead of __WORDSIZE.
3797 (_STAT_VER_LINUX): Likewise.
3798 (stat): Check __x86_64__ instead of __WORDSIZE. Use
3799 __syscall_ulong_t and __syscall_slong_t.
3800 (stat64): Likewise.
3801
38022012-05-16 H.J. Lu <hongjiu.lu@intel.com>
3803
3804 * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
3805
38062012-05-16 H.J. Lu <hongjiu.lu@intel.com>
3807
3808 * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
3809
38102012-05-16 H.J. Lu <hongjiu.lu@intel.com>
3811
3812 * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
3813 __syscall_ulong_t.
3814
3815 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
3816 include <bits/wordsize.h>. Check __x86_64__ instead of
3817 __WORDSIZE.
3818 (greg_t): Use "__extension__ long long int" if __x86_64__ is
3819 defined.
3820 (mcontext_t): Replace "unsigned long" with "unsigned long long".
3821
3822 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
3823 include <bits/wordsize.h>. Check __x86_64__ instead of
3824 __WORDSIZE.
3825 (user_regs_struct): Use "__extension__ unsigned long long"
3826 instead of "unsigned long" if __x86_64__ is defined.
3827 (user): Likewise. Pad after pointer field if __ILP32__ is
3828 defined.
3829
38302012-05-16 Joseph Myers <joseph@codesourcery.com>
3831
3832 * configure.in (makeinfo): Require version 4.5 or later. Allow
3833 versions 5 to 9.
3834 * configure: Regenerated.
3835 * manual/install.texi (texinfo): Increase version requirement to
3836 4.5 or later.
3837 * INSTALL: Regenerated.
3838
3839 * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
3840
38412012-05-16 H.J. Lu <hongjiu.lu@intel.com>
3842
3843 * sysdeps/x86_64/x32/gmp-mparam.h: New file.
3844
3845 * sysdeps/x86_64/x32/ffs.c: New file.
3846
3847 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
3848 __syscall_ulong_t.
3849 (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
3850 defined. Use __syscall_ulong_t.
3851 (shminfo): Use __syscall_ulong_t.
3852 (shm_info): Likewise.
3853
3854 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
3855 __syscall_ulong_t.
3856
3857 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
3858 <bits/wordsize.h>.
3859 (msgqnum_t): Use __syscall_ulong_t.
3860 (msglen_t): Likewise.
3861 (msqid_ds): Check __x86_64__ instead of __WORDSIZE. Use
3862 __syscall_ulong_t.
3863
3864 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
3865 <bits/wordsize.h>. Check __x86_64__ instead of __WORDSIZE.
3866
3867 * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
3868
3869 * sysdeps/x86_64/x32/divdi3.c: New dummy file.
3870 * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
3871
3872 * sysvipc/sys/msg.h (msgbuf): Replace long int with
3873 __syscall_slong_t.
3874
3875 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
3876 include <bits/wordsize.h>. Check __x86_64__ instead of
3877 __WORDSIZE.
3878
3879 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
3880 "unsigned long long int" if __x86_64__ is defined.
3881 (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
3882
3883 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
3884 <bits/wordsize.h>. Check __x86_64__ instead of __WORDSIZE.
3885 (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
3886
3887 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
3888 <stdint.h>.
3889 (GET_PC): Cast to uintptr_t first.
3890 (GET_FRAME): Likewise.
3891 (GET_STACK): Likewise.
3892
3893 * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
3894 * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
3895 * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
3896 * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
3897 * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
3898 * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
3899 * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
3900 * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
3901 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
3902 * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
3903 * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
3904 * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
3905 * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3906 * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
3907 * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
3908 * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
3909 * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
3910 * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
3911 * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
3912 * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
3913 * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
3914 * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
3915 * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
3916 * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
3917 * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
3918 * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
3919 * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
3920 * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
3921 * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
3922
39232012-05-16 Andreas Schwab <schwab@linux-m68k.org>
3924
3925 * Makerules (+depfiles): Also collect depfiles from .oS in
3926 $(extra-objs).
3927 * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
3928 .oS, $(libnldbl-routines)).
3929
3930 * Makerules (native-compile-mkdep-flags): Define.
3931 * sunrpc/Makefile (extra-objs): Add $(addprefix
3932 cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
3933 ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
3934 of $(compile-mkdep-flags). Depend on $(before-compile) instead of
3935 calling $(make-target-directory).
3936
39372012-05-15 H.J. Lu <hongjiu.lu@intel.com>
3938
3939 * bits/types.h (__snseconds_t): Removed.
3940 * time/time.h (struct timespec): Replace __snseconds_t with
3941 __syscall_slong_t.
3942 * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
3943 * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
3944 Likewise.
3945 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3946 (__SNSECONDS_T_TYPE): Likewise.
3947 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3948 (__SNSECONDS_T_TYPE): Likewise.
3949 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3950 (__SNSECONDS_T_TYPE): Likewise.
3951
39522012-05-15 H.J. Lu <hongjiu.lu@intel.com>
3953
3954 * sysdeps/mach/hurd/bits/typesizes.h
3955 (__SYSCALL_SLONG_TYPE): New macro.
3956 (__SYSCALL_ULONG_TYPE): Likewise.
3957
39582012-05-15 H.J. Lu <hongjiu.lu@intel.com>
3959
3960 * bits/types.h (__syscall_slong_t): New type.
3961 (__syscall_ulong_t): Likewise.
3962
3963 * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
3964 (__SYSCALL_ULONG_TYPE): Likewise.
3965 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3966 (__SYSCALL_SLONG_TYPE): Likewise.
3967 (__SYSCALL_ULONG_TYPE): Likewise.
3968 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3969 (__SYSCALL_SLONG_TYPE): Likewise.
3970 (__SYSCALL_ULONG_TYPE): Likewise.
3971 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3972 (__SYSCALL_SLONG_TYPE): Likewise.
3973 (__SYSCALL_ULONG_TYPE): Likewise.
3974
39752012-05-15 H.J. Lu <hongjiu.lu@intel.com>
3976
3977 * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
3978 Add sigaltstack-offsets.sym.
3979 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
3980 <sigaltstack-offsets.h>.
3981 (CALL_FAIL): Use RSP_LP to operate on stack. Use RDI_LP on
3982 longjmp_msg pointer.
3983 (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC. Use
3984 R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
3985 signal stack.
3986 * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
3987
39882012-05-15 Joseph Myers <joseph@codesourcery.com>
3989
3990 * elf/stackguard-macros.h: Remove file.
3991 * sysdeps/generic/stackguard-macros.h: New file.
3992 * sysdeps/i386/stackguard-macros.h: Likewise.
3993 * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
3994 * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
3995 * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
3996 * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
3997 * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
3998 * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
3999 * sysdeps/x86_64/stackguard-macros.h: Likewise.
4000 * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
4001 <elf/stackguard-macros.h>.
4002
4003 [BZ #14109]
4004 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
4005 __aligned__ in attribute.
4006 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
4007 (gregset_t): Likewise.
4008
40092012-05-15 H.J. Lu <hongjiu.lu@intel.com>
4010
4011 * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
4012 * sysdeps/x86_64/64/Implies-after: Here. New file.
4013 * sysdeps/x86_64/x32/Implies-after: New file.
4014
40152012-05-15 H.J. Lu <hongjiu.lu@intel.com>
4016
4017 * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
4018 and access return value for _dl_profile_fixup. Use R10_LP to
4019 load frame size.
4020
40212012-05-15 H.J. Lu <hongjiu.lu@intel.com>
4022
4023 * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
4024
40252012-05-15 H.J. Lu <hongjiu.lu@intel.com>
4026
4027 * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
4028 * sysdeps/x86_64/x32/sysdep.h: New file.
4029
40302012-05-15 H.J. Lu <hongjiu.lu@intel.com>
4031
4032 * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
4033 * sysdeps/x86_64/setjmp.S: Likewise.
4034
40352012-05-15 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
4036
4037 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
4038 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
4039 * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
4040 * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
4041 remove unused global constant.
4042
40432012-05-15 Chris Metcalf <cmetcalf@tilera.com>
4044
4045 * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
4046 include of <not-cancel.h>.
4047
40482012-05-15 Roland McGrath <roland@hack.frob.com>
4049
4050 * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
4051
40522012-05-15 Jeff Law <law@redhat.com>
4053 Andreas Jaeger <aj@suse.de>
4054
4055 [BZ #13594]
4056 * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
4057 out from...
4058 * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
4059 * nscd/nscd-client.h: Add __nscd_acquire_maplock.
4060 * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
4061 code changing __hst_map_handle.map.
4062
40632012-05-15 Roland McGrath <roland@hack.frob.com>
4064
4065 * configure.in (sysnames): Look for Implies-before and Implies-after
4066 files.
4067 * configure: Regenerated.
4068
40692012-05-15 H.J. Lu <hongjiu.lu@intel.com>
4070
4071 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
4072 8-byte data alignment with LP_SIZE alignment.
4073
40742012-05-15 H.J. Lu <hongjiu.lu@intel.com>
4075
4076 * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
4077 into R10_LP.
4078
40792012-05-15 H.J. Lu <hongjiu.lu@intel.com>
4080
4081 * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
4082
40832012-05-15 H.J. Lu <hongjiu.lu@intel.com>
4084
4085 * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
4086 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
4087 * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
4088 Likewise.
4089 * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4090
40912012-05-15 H.J. Lu <hongjiu.lu@intel.com>
4092
4093 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
4094 (stackinfo_sub_sp): Likewise.
4095
40962012-05-15 H.J. Lu <hongjiu.lu@intel.com>
4097
4098 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
4099 RAX_LP.
4100
41012012-05-15 H.J. Lu <hongjiu.lu@intel.com>
4102
4103 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
4104 into R*_LP.
4105
41062012-05-15 H.J. Lu <hongjiu.lu@intel.com>
4107
4108 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
4109 sizes into R*_LP.
4110
41112012-05-15 H.J. Lu <hongjiu.lu@intel.com>
4112
4113 * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
4114
41152012-05-15 H.J. Lu <hongjiu.lu@intel.com>
4116
4117 * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
4118 into R11_LP and load __x86_64_shared_cache_size_half into
4119 R8_LP.
4120
41212012-05-15 H.J. Lu <hongjiu.lu@intel.com>
4122
4123 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
4124 R8_LP.
4125
41262012-05-15 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
4127
4128 * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
4129 logb for POWER7.
4130 * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
4131 logbf for POWER7.
4132 * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
4133 logbl for POWER7.
4134 * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
4135 powerpc32/power7/fpu/s_logb.c via #include.
4136 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
4137 powerpc32/power7/fpu/s_logbf.c via #include.
4138 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
4139 powerpc32/power7/fpu/s_logbl.c via #include.
4140
41412012-05-15 Joseph Myers <joseph@codesourcery.com>
4142
4143 * README.libm: Remove file.
4144
41452012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4146
4147 * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
4148 count for x32. Use R*_LP and omit operand-size suffix.
4149
41502012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4151
4152 * shlib-versions: Move x86_64-.*-linux.* entries to ...
4153 * sysdeps/x86_64/64/shlib-versions: Here. New file.
4154 * sysdeps/x86_64/x32/shlib-versions: New file.
4155
41562012-05-14 Roland McGrath <roland@hack.frob.com>
4157
4158 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
4159 * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
4160 Use _dl_fatal_printf instead.
4161
41622012-05-14 Joseph Myers <joseph@codesourcery.com>
4163
4164 * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
4165 set if not set by the user. Do not allow for being unset.
4166 * sysdeps/unix/sysv/linux/configure: Regenerated.
4167
41682012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4169
4170 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
4171 the `q' suffix from lea and replace .quad with ASM_ADDR.
4172
41732012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4174
4175 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
4176 the `q' suffix from xor/rol instructions. Use $2*LP_SIZE+1
4177 instead of $17.
4178 (PTR_DEMANGLE): Likewise.
4179
41802012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4181
4182 * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
4183 (LP_OP): Likewise.
4184 (ASM_ADDR): Likewise.
4185 (RAX_LP): Likewise.
4186 (RBP_LP): Likewise.
4187 (RBX_LP): Likewise.
4188 (RCX_LP): Likewise.
4189 (RDI_LP): Likewise.
4190 (RSI_LP): Likewise.
4191 (RSP_LP): Likewise.
4192 (R8_LP): Likewise.
4193 (R9_LP): Likewise.
4194 (R10_LP): Likewise.
4195 (R10_LP): Likewise.
4196 (R11_LP): Likewise.
4197 (R12_LP): Likewise.
4198 (R13_LP): Likewise.
4199 (R14_LP): Likewise.
4200 (R15_LP): Likewise.
4201
42022012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4203
4204 * sysdeps/x86_64/x32/dl-machine.h: New file.
4205
42062012-05-14 Andreas Jaeger <aj@suse.de>
4207
4208 * manual/Makefile (subdir): Remove export of subdir.
4209 (all): Remove target.
4210 (.PHONY): Remove all from list.
4211 (mkinstalldirs): Remove.
4212 (.PHONY): Remove installdirs from list.
4213 ($(inst_infodir)/libc.info): Use make-target-directory.
4214 (installdirs): Remove.
4215 (subdir_%): Remove.
4216 (glibc-targets): Remove.
4217 (lib): Remove.
4218 (stubs): Remove.
4219 ($(objpfx)stubs ../po/manual.pot): Remove.
4220 ($(objpfx)stamp%): Remove.
4221 (make-target-directory): Remove.
4222 (subdir_install): Remove.
4223 (routines): Remove.
4224 (aux): Remove.
4225 (sources): Remove.
4226 (objects): Remove.
4227 (headers): Remove.
4228
4229 [BZ #13750]
4230 * manual/.gitignore: Remove, it's not needed anymore.
4231 * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
4232 all files in it.
4233 * manual/Makefile (dvi, pdf, info, html): Depend on files in build
4234 directory.
4235 (texis): Renamed to $(objpfx)texis.
4236 (texis-path): New, contains path to generated files.
4237 (chapters.%): Use texis-path for complete path, add extra argument
4238 libc-texinfo.sh.
4239 (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
4240 (libc/index.html, summary.texi): Add $(objpfx) as prefix.
4241 (summary,texi, stamp-summary): Use complete path of
4242 files. Generate files in build dir.
4243 (dir-add.texi): Build in build dir.
4244 (libm-err.texi,stamp-libm-err): Likewise.
4245 (version.texi, stamp-version): Likewise.
4246 (.%c.texi): Likewise.
4247 (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
4248 (mostlyclean): Remove target.
4249 (realclean): Remove target.
4250 (generated): Add new variable with contents from mostlyclean and
4251 realclean, remove entries duplicated in common-mostlyclean, add
4252 stamp-libm-err and stamp-version.
4253 (generated-dirs): Add libc directory.
4254 ($(inst_infodir)/libc.info): Install files from build dir.
4255
4256 * manual/install.texi (Configuring and compiling): Adjust since
4257 the info files are not part of the tar ball anymore.
4258
42592012-05-14 Andreas Jaeger <aj@suse.de>
4260
4261 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
4262 variable.
4263
42642012-05-14 Joseph Myers <joseph@codesourcery.com>
4265
4266 [BZ #13717]
4267 * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4268 to 2.2.0 where earlier.
4269 * sysdeps/unix/sysv/linux/configure: Regenerated.
4270 * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
4271 Remove conditional code.
4272 [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
4273 * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
4274 Remove conditional code.
4275 [!__NR_lchown]: Likewise.
4276 [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
4277 [__NR_lchown]: Likewise.
4278 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
4279 comment referencing __ASSUME_LCHOWN_SYSCALL.
4280 * sysdeps/unix/sysv/linux/i386/sigaction.c
4281 [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4282 [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4283 * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
4284 Remove conditional code.
4285 [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
4286 (__protocol_available): Remove #if 0 code.
4287 * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
4288 conditional code.
4289 [__ASSUME_SIOCGIFNAME]: Make code unconditional.
4290 * sysdeps/unix/sysv/linux/kernel-features.h
4291 (__ASSUME_GETCWD_SYSCALL): Don't define.
4292 (__ASSUME_REALTIME_SIGNALS): Likewise.
4293 (__ASSUME_PREAD_SYSCALL): Likewise.
4294 (__ASSUME_PWRITE_SYSCALL): Likewise.
4295 (__ASSUME_POLL_SYSCALL): Likewise.
4296 (__ASSUME_LCHOWN_SYSCALL): Likewise.
4297 (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
4298 non-SPARC.
4299 (__ASSUME_SIOCGIFNAME): Don't define.
4300 (__ASSUME_MSG_NOSIGNAL): Likewise.
4301 (__ASSUME_SENDFILE): Define unconditionally.
4302 (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
4303 * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
4304 conditional code.
4305 [__ASSUME_POLL_SYSCALL]: Make code unconditional.
4306 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
4307 [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
4308 (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
4309 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
4310 [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
4311 (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
4312 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
4313 [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
4314 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4315 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
4316 [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
4317 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4318 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
4319 [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4320 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4321 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
4322 [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4323 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4324 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
4325 [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
4326 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4327 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
4328 [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
4329 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4330 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
4331 [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4332 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4333 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
4334 [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4335 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4336 * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
4337 Remove conditional code.
4338 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4339 * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
4340 Remove conditional code.
4341 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4342 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
4343 [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
4344 * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
4345 Remove conditional code.
4346 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4347 * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
4348 Remove conditional code.
4349 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4350 * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
4351 Remove conditional code.
4352 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4353 * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
4354 Remove conditional code.
4355 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
4356 * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
4357 Remove conditional code.
4358 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4359 * sysdeps/unix/sysv/linux/sh/pwrite64.c
4360 [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
4361 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
4362 * sysdeps/unix/sysv/linux/sigaction.c
4363 [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4364 [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4365 * sysdeps/unix/sysv/linux/sigpending.c
4366 [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4367 [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4368 * sysdeps/unix/sysv/linux/sigprocmask.c
4369 [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4370 [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4371 * sysdeps/unix/sysv/linux/sigsuspend.c
4372 [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
4373 [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
4374 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4375 (__libc_missing_rt_sigs): Remove.
4376 (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
4377 (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
4378 * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
4379 Remove conditional code.
4380 [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
4381 * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
4382 return 1.
4383 * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
4384 [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
4385 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
4386 [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
4387
43882012-05-14 Andreas Jaeger <aj@suse.de>
4389
4390 * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
4391 it's not used in glibc.
4392 (__coshm1): Likewise.
4393 (__acosh1p): Likewise.
4394 (__sgn): Likewise.
4395
4396 * manual/string.texi (Copying and Concatenation): Add missing
4397 variable in concat example.
4398 Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
4399
44002012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4401
4402 [BZ #14103]
4403 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
4404 __builtin_clzl with __builtin_clzll.
4405
44062012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4407
4408 [BZ #14104]
4409 * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
4410 libc_freeres_ptr.
4411
44122012-05-14 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
4413
4414 * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
4415 * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
4416 * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
4417 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
4418
44192012-05-14 Mike Frysinger <vapier@gentoo.org>
4420
4421 * NEWS: Update ia64 info.
4422
44232012-05-12 Andreas Schwab <schwab@linux-m68k.org>
4424
4425 * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
4426 used as bcopy.
4427
44282012-05-12 Thomas Schwinge <thomas@codesourcery.com>
4429
4430 * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
4431 * sysdeps/unix/syscalls.list (dup3): Likewise.
4432 * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
4433 * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
4434
44352012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4436
4437 * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
4438 "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
4439
44402012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4441
4442 * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
4443 thread pointer.
4444 (TLS_IE): Use mov/add instead of movq/addq to load thread
4445 pointer.
4446 (TLS_GD_PREFIX): New.
4447 (TLS_GD): Use it.
4448
44492012-05-11 David S. Miller <davem@davemloft.net>
4450
4451 * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
4452 * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
4453 (_FPU_SETCW): Likewise.
4454
44552012-05-10 H.J. Lu <hongjiu.lu@intel.com>
4456
4457 * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
4458 is 32-byte aligned.
4459
44602012-05-11 Andreas Schwab <schwab@linux-m68k.org>
4461
4462 [BZ #11837]
4463 * iconvdata/gb18030.c: Update tables.
4464 (BODY for FROM_LOOP): Update. Handle two-byte encoded non-BMP
4465 characters specially.
4466 (BODY for TO_LOOP): Add encoding of missing ranges.
4467
44682012-05-11 Thomas Schwinge <thomas@codesourcery.com>
4469
4470 [BZ #13673]
4471 * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
4472 * sysdeps/mach/hurd/dup3.c: Likewise.
4473 * sysdeps/mach/hurd/readlinkat.c: Likewise.
4474 * sysdeps/powerpc/memmove.c:: Likewise.
4475
44762012-05-10 H.J. Lu <hongjiu.lu@intel.com>
4477
4478 * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
4479 R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
4480
44812012-05-10 H.J. Lu <hongjiu.lu@intel.com>
4482
4483 * elf/elf.h (R_X86_64_RELATIVE64): New.
4484 (R_X86_64_NUM): Updated.
4485 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
4486 R_X86_64_RELATIVE64. Always use Elf64_Addr with R_X86_64_64.
4487 (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
4488 * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
4489 tst-quad1pie tst-quad2pie
4490 (modules-names): Add tst-quadmod1 tst-quadmod2.
4491 ($(objpfx)tst-quad1): New dependency.
4492 ($(objpfx)tst-quad2): Likewise.
4493 ($(objpfx)tst-quad1pie): Likewise.
4494 ($(objpfx)tst-quad2pie): Likewise.
4495 * sysdeps/x86_64/tst-quad1.c: New file.
4496 * sysdeps/x86_64/tst-quad1pie.c: New file.
4497 * sysdeps/x86_64/tst-quad2.c: Likewise.
4498 * sysdeps/x86_64/tst-quad2pie.c: Likewise.
4499 * sysdeps/x86_64/tst-quadmod1.S: Likewise.
4500 * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
4501 * sysdeps/x86_64/tst-quadmod2.S: Likewise.
4502 * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
4503
45042012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4505
4506 * io/fcntl.h (mode_t, off_t, pid_t): Define types.
4507 (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
4508 * streams/stropts.h (t_scalar_t): Define type.
4509
4510 * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
4511 (_PATH_PRESERVE): Set to "/var/lib".
4512 (_PATH_RWHODIR): Set to "/var/spool/rwho".
4513
4514 * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
4515 instead of int.
4516
4517 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
4518 if __dir_mkfile succeeded.
4519
4520 * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
4521 checking for _hurd_dtablesize. Unlock it right after having
4522 finished _hurd_dtable allocation.
4523
45242012-05-10 Thomas Schwinge <thomas@schwinge.name>
4525
4526 * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
4527 * sysdeps/mach/hurd/configure: Regenerated.
4528 * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
4529 special-casing to...
4530 * sysdeps/gnu/configure.in: ... this new file.
4531 * sysdeps/unix/sysv/linux/configure: Regenerated.
4532 * sysdeps/gnu/configure: New generated file.
4533
4534 * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
4535 for Linux: use nsec instead of usec, as well as:
4536 [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
4537 members of type struct timespec.
4538 [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
4539 New macros.
4540 (struct stat64): Likewise.
4541 (_STATBUF_ST_NSEC): New macro.
4542 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
4543
4544 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4545 __strtoul_internal rather than strtoul.
4546
45472012-05-10 Pino Toscano <toscano.pino@tiscali.it>
4548
4549 * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
4550 and reject them.
4551
45522012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4553
4554 * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
4555 which preserves existing values.
4556 * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
4557
45582012-05-10 Pino Toscano <toscano.pino@tiscali.it>
4559
4560 * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
4561 TIMEOUT values. Return EINVAL for NFDS values either negative or
4562 greater than FD_SETSIZE.
4563
45642012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4565
4566 * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
4567 allocated, call __vm_protect to finish enabling the existing space, and
4568 pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
4569 allocate the remainder.
4570
45712012-05-10 Pino Toscano <toscano.pino@tiscali.it>
4572
4573 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
4574 address port. Set ADDR_LEN to 0 when not filling ADDRARG.
4575
45762012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4577
4578 * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
4579 sysdeps/mach/hurd/readlink.c.
4580
4581 * posix/tst-sysconf.c (posix_options): Only use
4582 _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
4583 _POSIX_SYNCHRONIZED_IO when they are defined
4584 * sysdeps/mach/hurd/bits/posix_opt.h:
4585 (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
4586 (_XOPEN_REALTIME): Undefine macro.
4587 (_XOPEN_REALTIME_THREADS): Undefine macro.
4588 (_XOPEN_SHM): Undefine macro.
4589 [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
4590 macro to -1.
4591 [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
4592 macro to -1.
4593 (_POSIX_ASYNC_IO): Undefine macro.
4594 (_POSIX_PRIORITIZED_IO): Undefine macro.
4595 (_POSIX_SPIN_LOCKS): Define macro to -1.
4596
4597 * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
4598 SA_NODEFER, SA_RESETHAND.
4599 * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
4600 O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
4601 F_DUPFD_CLOEXEC.
4602
46032012-05-10 Thomas Schwinge <thomas@schwinge.name>
4604
4605 * elf/Makefile (pldd-modules): Define unconditionally.
4606
46072012-05-10 Thomas Schwinge <thomas@schwinge.name>
4608
4609 * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
4610
46112012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4612
4613 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
4614 Return ENOENT when name is empty.
4615 * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
4616
46172012-05-10 Thomas Schwinge <thomas@schwinge.name>
4618
4619 * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
4620
4621 * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
4622
46232012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4624
4625 Fix mlock in all cases except non-readable pages.
4626 * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
4627 instead of VM_PROT_ALL as parameter to __vm_wire function.
4628
4629 * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
4630 (__mkdir): When path is `/', just fail with EEXIST.
4631 * sysdeps/mach/hurd/mkdirat.c: Likewise.
4632
46332012-05-10 Thomas Schwinge <thomas@schwinge.name>
4634
4635 * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
4636 <sys/uio.h> (for writev).
4637 * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
4638 and <sys/param.h> (for MIN).
4639
46402012-05-10 Pino Toscano <toscano.pino@tiscali.it>
4641
4642 * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
4643 REQUESTED_TIME. Properly set the remaining time and return EINTR
4644 if interrupted.
4645
46462012-05-10 Thomas Schwinge <thomas@schwinge.name>
4647
4648 * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
4649 Depend on against $(link-rpcuserlibs).
4650
46512012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4652
4653 * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
4654 (__libc_stack_end): Do not use attribute_relro.
4655 * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
4656 * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
4657 to libthread-provided value.
4658 * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
4659 attribute_relro.
4660
46612012-05-10 Thomas Schwinge <thomas@schwinge.name>
4662
4663 [BZ #3748]
4664 * bits/libc-lock.h (__libc_once_get): New macro.
4665 * sysdeps/mach/bits/libc-lock.h: Likewise.
4666 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
4667 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
4668 instead of using implementation details.
4669
4670 * libio/fileops.c: Unconditionally include <kernel-features.h>.
4671 * libio/freopen.c: Likewise.
4672 * libio/freopen64.c: Likewise.
4673 * misc/syslog.c: Likewise.
4674 * nscd/connections.c: Likewise.
4675 * nscd/netgroupcache.c: Likewise.
4676 * sysdeps/posix/getcwd.c: Likewise.
4677
46782012-05-10 Roland McGrath <roland@hack.frob.com>
4679
4680 * math/w_ilogbf.c: Add #include <limits.h>.
4681
46822012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4683
4684 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
4685 path instead of returning without unlocking.
4686
4687 * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
4688 immediate-write ioctls.
4689 * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
4690
46912012-05-10 Thomas Schwinge <thomas@schwinge.name>
4692
4693 * sysdeps/mach/hurd/i386/init-first.c (init): Use
4694 __builtin_frame_address instead of making assumptions about the
4695 location of the return address relative to DATA. Force early load of
4696 the return address.
4697 (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
4698 __builtin_frame_address.
4699
4700 dup3 for GNU Hurd.
4701 * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
4702 * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c. Evolve it to
4703 implement dup3 and do some further code clean-ups.
4704 * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
4705 * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
4706
47072012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4708
4709 * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
4710
4711 * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
4712 HURD_CRITICAL_END around holding _hurd_dtable_lock.
4713 * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
4714 * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
4715 HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
4716 d->port.lock.
4717
4718 * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
4719 instead of setjmp/longjmp to restore the signal mask. Call sigsetjmp
4720 when handler == SIG_ERR, not when handler != SIG_ERR.
4721
47222012-05-10 Thomas Schwinge <thomas@schwinge.name>
4723
4724 * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
4725 (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
4726 definitions.
4727
4728 accept4 for GNU Hurd.
4729 * include/sys/socket.h (__libc_accept4): New prototype.
4730 * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c. Evolve it
4731 to implement __libc_accept4.
4732 * sysdeps/mach/hurd/accept.c (accept): Reimplement using
4733 __libc_accept4.
4734 * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
4735
4736 * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
4737 * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
4738 * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
4739 signal-defines.sym.
4740
47412012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4742
4743 * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
4744
47452012-05-10 Thomas Schwinge <thomas@schwinge.name>
4746
4747 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
4748 assertion on O_CLOEXEC flag.
4749 * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
4750 * hurd/intern-fd.c: Likewise.
4751 * hurd/port2fd.c: Likewise.
4752
47532012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4754
4755 [BZ #3906]
4756 * bits/in.h (IPV6_PKTINFO): Define new macro.
4757 (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
4758
47592012-05-09 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
4760
4761 [BZ #13954]
4762 [BZ #13955]
4763 [BZ #13956]
4764 * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
4765 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4766 * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
4767 * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4768 * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4769 * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4770 * math/libm-test.inc (logb_test) : Additional logb tests.
4771
47722012-05-09 Andreas Schwab <schwab@linux-m68k.org>
4773 Andreas Jaeger <aj@suse.de>
4774
4775 * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
4776 * configure: Regenerated.
4777 * config.h.in (LINK_OBSOLETE_RPC): New macro.
4778 * config.make.in (link-obsolete-rpc): New substituted variable.
4779 * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
4780 libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
4781 * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
4782 (shared-only-routines): Don't set it under [link-obsolete-rpc],
4783 so that libc.a contains the symbols.
4784 * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
4785 * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
4786 * sunrpc/auth_none.c: Likewise.
4787 * sunrpc/auth_unix.c: Likewise.
4788 * sunrpc/authdes_prot.c: Likewise.
4789 * sunrpc/authuxprot.c: Likewise.
4790 * sunrpc/clnt_gen.c: Likewise.
4791 * sunrpc/clnt_perr.c: Likewise.
4792 * sunrpc/clnt_raw.c: Likewise.
4793 * sunrpc/clnt_simp.c: Likewise.
4794 * sunrpc/clnt_tcp.c: Likewise.
4795 * sunrpc/clnt_udp.c: Likewise.
4796 * sunrpc/clnt_unix.c: Likewise.
4797 * sunrpc/des_crypt.c: Likewise.
4798 * sunrpc/des_soft.c: Likewise.
4799 * sunrpc/get_myaddr.c: Likewise.
4800 * sunrpc/key_call.c: Likewise.
4801 * sunrpc/key_prot.c: Likewise.
4802 * sunrpc/netname.c: Likewise.
4803 * sunrpc/pm_getmaps.c: Likewise.
4804 * sunrpc/pm_getport.c: Likewise.
4805 * sunrpc/pmap_clnt.c: Likewise.
4806 * sunrpc/pmap_prot.c: Likewise.
4807 * sunrpc/pmap_prot2.c: Likewise.
4808 * sunrpc/pmap_rmt.c: Likewise.
4809 * sunrpc/publickey.c: Likewise.
4810 * sunrpc/rpc_cmsg.c: Likewise.
4811 * sunrpc/rpc_common.c: Likewise.
4812 * sunrpc/rpc_dtable.c: Likewise.
4813 * sunrpc/rpc_prot.c: Likewise.
4814 * sunrpc/rpc_thread.c: Likewise.
4815 * sunrpc/rtime.c: Likewise.
4816 * sunrpc/svc.c: Likewise.
4817 * sunrpc/svc_auth.c: Likewise.
4818 * sunrpc/svc_raw.c: Likewise.
4819 * sunrpc/svc_run.c: Likewise.
4820 * sunrpc/svc_tcp.c: Likewise.
4821 * sunrpc/svc_udp.c: Likewise.
4822 * sunrpc/svc_unix.c: Likewise.
4823 * sunrpc/svcauth_des.c: Likewise.
4824 * sunrpc/xcrypt.c: Likewise.
4825 * sunrpc/xdr.c: Likewise.
4826 * sunrpc/xdr_array.c: Likewise.
4827 * sunrpc/xdr_float.c: Likewise.
4828 * sunrpc/xdr_intXX_t.c: Likewise.
4829 * sunrpc/xdr_mem.c: Likewise.
4830 * sunrpc/xdr_rec.c: Likewise.
4831 * sunrpc/xdr_ref.c: Likewise.
4832 * sunrpc/xdr_sizeof.c: Likewise.
4833 * sunrpc/xdr_stdio.c: Likewise.
4834
48352012-05-10 Roland McGrath <roland@hack.frob.com>
4836
4837 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
4838 change. Update copyright years.
4839
48402012-05-10 Joseph Myers <joseph@codesourcery.com>
4841
4842 * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
4843
48442012-05-10 Maxim Kuvyrkov <maxim@codesourcery.com>
4845 Joseph Myers <joseph@codesourcery.com>
4846 Paul Pluzhnikov <ppluzhnikov@google.com>
4847
4848 [BZ #14012]
4849 * sunrpc/Makefile [cross-compiling] (headers): Enable additions
4850 requiring rpcgen.
4851 [cross-compiling] (extra-libs): Likewise.
4852 [cross-compiling] (extra-libs-others): Likewise.
4853 [cross-compiling] (librpcsvc-routines): Likewise.
4854 [cross-compiling] (librpcsvc-inhibit-o): Likewise.
4855 [cross-compiling] (omit-deps): Likewise.
4856 (sunrpc-CPPFLAGS): New variable.
4857 (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
4858 (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
4859 (cross-rpcgen-objs): New variable.
4860 (extra-objs): Append $(cross-rpcgen-objs).
4861 ($(cross-rpcgen-objs)): New rule.
4862 ($(objpfx)cross-rpcgen): Likewise.
4863 (rpcgen-cmd): Define to use $(built-program-file). Expand
4864 comment.
4865 ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
4866 ($(objpfx)x%.stmp): Likewise.
4867 * sunrpc/proto.h [IS_IN_build] (_): Define.
4868 [IS_IN_build] (_libc_intl_domainname): Likewise.
4869
48702012-05-10 H.J. Lu <hongjiu.lu@intel.com>
4871
4872 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
4873 Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
4874 and R_X86_64_TPOFF64.
4875
48762012-05-10 Joseph Myers <joseph@codesourcery.com>
4877
4878 * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
4879 sysdeps/unix/sysv/syscalls.list.
4880 (stime): Likewise.
4881 (utime): Likewise.
4882 * sysdeps/unix/sysv/syscalls.list: Remove file.
4883
48842012-05-10 Paul Eggert <eggert@cs.ucla.edu>
4885
4886 [BZ #3440]
4887 * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
4888 (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
4889 (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
4890 (__LC_IDENTIFICATION): Make these macros useful in #if
4891 expressions, as required by C99.
4892
48932012-05-10 Andreas Schwab <schwab@linux-m68k.org>
4894
4895 * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
4896 $(addsuffix .os,$(rpc-compat-routines)). Move include ../Rules
4897 after this.
4898
48992012-05-09 H.J. Lu <hongjiu.lu@intel.com>
4900
4901 * stdlib/longlong.h: Updated from GCC.
4902
49032012-05-09 Andreas Jaeger <aj@suse.de>
4904
4905 * nscd/nscd.c (run_modes): Make named enum, reorder so that
4906 default is first entry.
4907 (run_mode): Set type.
4908 (main): Remove informal message about syslog.
4909 (options): Fix typo.
4910
4911 [BZ #14053]
4912 * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
4913 to asm.
4914 (lrint): Likewise.
4915 (llrintf): Likewise.
4916 (llrint): Likewise.
4917 (rint): Likewise.
4918 (rintf): Likewise.
4919 (nearbyint): Likewise.
4920 (nearbyintf): Likewise.
4921
49222012-05-09 Andreas Jaeger <aj@suse.de>
4923 Pedro Alves <palves@redhat.com>
4924
4925 * nscd/nscd.c (run_mode): Use enum.
4926 (main): Cleanup coding style issue.
4927
49282012-05-09 Alexandre Oliva <aoliva@redhat.com>
4929 Andreas Jaeger <aj@suse.de>
4930
4931 * nscd/nscd.c (go_background): Replaced with...
4932 (run_mode): ... this.
4933 (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
4934 (options): Add -F --foreground.
4935 (main): Implement it.
4936 (parse_opt): Parse it.
4937
49382012-05-09 Andreas Jaeger <aj@suse.de>
4939
4940 [BZ #14083]
4941 * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
4942 !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
4943 -Wconversion warning.
4944 (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
4945 Likewise.
4946
49472012-05-09 Joseph Myers <joseph@codesourcery.com>
4948
4949 * conform/data/locale.h-data (NULL): Use macro-constant. Require
4950 == 0.
4951 (LC_ALL): Use macro-int-constant.
4952 (LC_COLLATE): Likewise.
4953 (LC_CTYPE): Likewise.
4954 (LC_MESSAGES): Likewise.
4955 (LC_MONETARY): Likewise.
4956 (LC_NUMERIC): Likewise.
4957 (LC_TIME): Likewise.
4958 [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
4959 (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
4960 [ISO || ISO99 || ISO11] (*_t): Do not allow.
4961 * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
4962 Specify type.
4963 [C99-based standards] (float_t): Expect type.
4964 [C99-based standards] (double_t): Expect type.
4965 [C99-based standards] (HUGE_VALF): Use macro-constant. Specify
4966 type.
4967 [C99-based standards] (HUGE_VALL): Likewise.
4968 [C99-based standards] (INFINITY): Likewise.
4969 [C99-based standards] (NAN): Likewise.
4970 [C99-based standards] (FP_INFINITE): Use macro-int-constant.
4971 [C99-based standards] (FP_NAN): Likewise.
4972 [C99-based standards] (FP_NORMAL): Likewise.
4973 [C99-based standards] (FP_SUBNORMAL): Likewise.
4974 [C99-based standards] (FP_ZERO): Likewise.
4975 [C99-based standards] (FP_FAST_FMA): Use
4976 optional-macro-int-constant. Specify type. Require == 1.
4977 [C99-based standards] (FP_FAST_FMAF): Likewise.
4978 [C99-based standards] (FP_FAST_FMAL): Likewise.
4979 [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
4980 [C99-based standards] (FP_ILOGBNAN): Likewise.
4981 [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
4982 Specify type.
4983 [C99-based standards] (MATH_ERREXCEPT): Likewise.
4984 [C99-based standards] (math_errhandling): Specify type.
4985 [ISO99 || ISO11] (signgam): Do not allow.
4986 [non-C99-based standards] (copysignf): Do not allow.
4987 [non-C99-based standards] (exp2f): Likewise.
4988 [non-C99-based standards] (log2f): Likewise.
4989 [non-C99-based standards] (modff): Allow.
4990 [non-C99-based standards] (erff): Do not allow.
4991 [non-C99-based standards] (erfcf): Likewise.
4992 [non-C99-based standards] (gammaf): Likewise.
4993 [non-C99-based standards] (hypotf): Likewise.
4994 [non-C99-based standards] (j0f): Likewise.
4995 [non-C99-based standards] (j1f): Likewise.
4996 [non-C99-based standards] (jnf): Likewise.
4997 [non-C99-based standards] (lgammaf): Likewise.
4998 [non-C99-based standards] (tgammaf): Likewise.
4999 [non-C99-based standards] (y0f): Likewise.
5000 [non-C99-based standards] (y1f): Likewise.
5001 [non-C99-based standards] (ynf): Likewise.
5002 [non-C99-based standards] (isnanf): Likewise.
5003 [non-C99-based standards] (acoshf): Likewise.
5004 [non-C99-based standards] (asinhf): Likewise.
5005 [non-C99-based standards] (atanhf): Likewise.
5006 [non-C99-based standards] (cbrtf): Likewise.
5007 [non-C99-based standards] (expm1f): Likewise.
5008 [non-C99-based standards] (ilogbf): Likewise.
5009 [non-C99-based standards] (log1pf): Likewise.
5010 [non-C99-based standards] (logbf): Likewise.
5011 [non-C99-based standards] (nextafterf): Likewise.
5012 [non-C99-based standards] (remainderf): Likewise.
5013 [non-C99-based standards] (rintf): Likewise.
5014 [non-C99-based standards] (scalbf): Likewise.
5015 [non-C99-based standards] (copysignl): Likewise.
5016 [non-C99-based standards] (exp2l): Likewise.
5017 [non-C99-based standards] (log2l): Likewise.
5018 [non-C99-based standards] (modfl): Allow.
5019 [non-C99-based standards] (erfl): Do not allow.
5020 [non-C99-based standards] (erfcl): Likewise.
5021 [non-C99-based standards] (gammal): Likewise.
5022 [non-C99-based standards] (hypotl): Likewise.
5023 [non-C99-based standards] (j0l): Likewise.
5024 [non-C99-based standards] (j1l): Likewise.
5025 [non-C99-based standards] (jnl): Likewise.
5026 [non-C99-based standards] (lgammal): Likewise.
5027 [non-C99-based standards] (tgammal): Likewise.
5028 [non-C99-based standards] (y0l): Likewise.
5029 [non-C99-based standards] (y1l): Likewise.
5030 [non-C99-based standards] (ynl): Likewise.
5031 [non-C99-based standards] (isnanl): Likewise.
5032 [non-C99-based standards] (acoshl): Likewise.
5033 [non-C99-based standards] (asinhl): Likewise.
5034 [non-C99-based standards] (atanhl): Likewise.
5035 [non-C99-based standards] (cbrtl): Likewise.
5036 [non-C99-based standards] (expm1l): Likewise.
5037 [non-C99-based standards] (ilogbl): Likewise.
5038 [non-C99-based standards] (log1pl): Likewise.
5039 [non-C99-based standards] (logbl): Likewise.
5040 [non-C99-based standards] (nextafterl): Likewise.
5041 [non-C99-based standards] (remainderl): Likewise.
5042 [non-C99-based standards] (rintl): Likewise.
5043 [non-C99-based standards] (scalbl): Likewise.
5044 [ISO || ISO99 || ISO11] (*_t): Do not allow.
5045 [non-C99-based standards] (FP_*): Do not allow.
5046 [C99-based standards] (FP_*): Change to
5047 FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
5048 * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5049 allow.
5050 * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
5051 (SIG_ERR): Likewise.
5052 [X/Open-based standards] (SIG_HOLD): Likewise.
5053 (SIG_IGN): Likewise.
5054 (SIGABRT): Use macro-int-constant. Specify type. Require
5055 positive value.
5056 (SIGFPE): Likewise.
5057 (SIGILL): Likewise.
5058 (SIGINT): Likewise.
5059 (SIGSEGV): Likewise.
5060 (SIGTER): Likewise.
5061 [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
5062 [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
5063 [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
5064 [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
5065 [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
5066 [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
5067 [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
5068 [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
5069 [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
5070 [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
5071 [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
5072 [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
5073 [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
5074 [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
5075 [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
5076 [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
5077 [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
5078 [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
5079 [X/Open-based standards] (SIGTRAP): Likewise.
5080 [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
5081 [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
5082 [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
5083 [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
5084 * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5085 allow.
5086
50872012-05-08 Ian Wienand <ianw@vmware.com>
5088
5089 [BZ #14080]
5090 * time/tzset.c (__tzset_parse_tz): Update default rules for
5091 daylight time changes in the Energy Policy Act of 2005.
5092
50932012-05-09 Andreas Jaeger <aj@suse.de>
5094
5095 [BZ #13983]
5096 * elf/ldconfig.c (parse_conf): Change string to make clear that
5097 ldconfig only issued a warning if ld.so.conf does not exist.
5098
50992012-05-08 David S. Miller <davem@davemloft.net>
5100
5101 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
5102 movxtod instead of popping the value on the stack.
5103
5104 * sysdeps/sparc/fpu/libm-test-ulps: Update.
5105
51062012-05-08 Carlos O'Donell <carlos_odonell@mentor.com>
5107
5108 * config.h.in: Add HAVE_ARM_PCS_VFP.
5109
51102012-05-08 Roland Mc Grath <roland@hack.frob.com>
5111
5112 [BZ #13979]
5113 * include/features.h: Warn if user requests __FORTIFY_SOURCE
5114 checking but the checks are disabled for any reason.
5115
51162012-05-08 H.J. Lu <hongjiu.lu@intel.com>
5117
5118 * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
5119 and ELF64_R_TYPE with ELFW(R_TYPE).
5120
51212012-05-08 Joseph Myers <joseph@codesourcery.com>
5122
5123 * sysdeps/unix/sysv/syscalls.list (pause): Remove.
5124 (ulimit): Likewise.
5125
5126 * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
5127 (settimeofday): Likewise.
5128
51292012-05-08 Mike Frysinger <vapier@gentoo.org>
5130
5131 * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1. Add
5132 a struct th_u2 inside the union, and move tu_block/tu_code into
5133 a new th_u3 union of tu_block/tu_code inside of that. Move
5134 th_data[1] into the th_u2 as tu_data[0]. Change tu_stuff[1] to
5135 tu_stuff[0]. Add a new tu_padding[4] to keep sizeof() the same.
5136 (th_block): Change to th_u1.th_u2.th_u3.tu_block.
5137 (th_code): Change to th_u1.th_u2.th_u3.tu_code.
5138 (th_stuff): Change to th_u1.tu_stuff.
5139 (th_data): Define.
5140 (th_msg): Change to th_u1.th_u2.tu_data.
5141
51422012-05-07 David S. Miller <davem@davemloft.net>
5143
5144 * sysdeps/sparc/fpu/libm-test-ulps: Update.
5145
5146 [BZ #14074]
5147 * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
5148 (SETUP_PIC_REG): Use it.
5149 (SETUP_PIC_REG_LEAF): Use it.
5150
51512012-05-07 Joseph Myers <joseph@codesourcery.com>
5152
5153 [BZ #13885]
5154 [BZ #13923]
5155 * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5156 USE_AS_EXPM1L.
5157 (EXPL_FINITE): Likewise.
5158 (FLDLOG): Likewise.
5159 (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
5160 * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
5161 e_expl.S.
5162 * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5163 USE_AS_EXPM1L.
5164 (EXPL_FINITE): Likewise.
5165 (FLDLOG): Likewise.
5166 (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
5167 * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
5168 e_expl.S.
5169 * math/libm-test.inc (expm1_test): Add more tests. Do not disable
5170 test of -max_value argument for long double.
5171 * sysdeps/i386/fpu/libm-test-ulps: Update.
5172 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5173
51742012-05-06 David S. Miller <davem@davemloft.net>
5175
5176 * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
5177 quad soft-float symbols whose references which are compiler
5178 generated.
5179 * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
5180
51812012-05-06 Joseph Myers <joseph@codesourcery.com>
5182
5183 [BZ #13884]
5184 [BZ #13914]
5185 * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5186 USE_AS_EXP10L.
5187 (EXPL_FINITE): Likewise.
5188 (FLDLOG): Likewise.
5189 (c0): Likewise.
5190 (c1): Likewise.
5191 (__ieee754_expl): Change to IEEE754_EXPL. Use FLDLOG macro.
5192 Adjust comments for base varying.
5193 (__expl_finite): Change alias to EXPL_FINITE.
5194 * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
5195 e_expl.S.
5196 * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
5197 * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
5198 * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
5199 * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
5200 * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5201 USE_AS_EXP10L.
5202 (EXPL_FINITE): Likewise.
5203 (FLDLOG): Likewise.
5204 (c0): Likewise.
5205 (c1): Likewise.
5206 (__ieee754_expl): Change to IEEE754_EXPL. Use FLDLOG macro.
5207 Adjust comments for base varying.
5208 (__expl_finite): Change alias to EXPL_FINITE.
5209 * math/libm-test.inc (exp10_test): Add more tests. Do not disable
5210 tests for bugs.
5211 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5212
5213 [BZ #14064]
5214 * math/libm-test.inc (check_float_internal): Correct ulp
5215 calculation for subnormal expected results.
5216
52172012-05-06 Andreas Jaeger <aj@suse.de>
5218
5219 * Makeconfig (+math-flags): New, set to -frounding-math.
5220 (+cflags): Add +math-flags so that all of glibc gets compiled with
5221 it.
5222
5223 * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
5224
52252012-05-05 Joseph Myers <joseph@codesourcery.com>
5226
5227 * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
5228 Disable one test.
5229
5230 [BZ #13787]
5231 [BZ #13922]
5232 [BZ #14036]
5233 * sysdeps/i386/fpu/e_expl.S (csat): New constant.
5234 (__ieee754_expl): Allow for and saturate large arguments.
5235 * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
5236 (u_threshold): Likewise.
5237 (__exp): Call __ieee754_exp before checking for overflow and
5238 underflow.
5239 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
5240 (u_threshold): Likewise.
5241 (__expf): Call __ieee754_expf before checking for overflow and
5242 underflow.
5243 * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
5244 (u_threshold): Likewise.
5245 (__expl): Call __ieee754_expl before checking for overflow and
5246 underflow.
5247 * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
5248 (__ieee754_expl): Allow for and saturate large arguments.
5249 * math/libm-test.inc (exp_test): Add another test. Do not allow
5250 missing overflow exception on overflow.
5251 (expm1_test): Do not allow missing overflow exception on overflow.
5252
5253 * sysdeps/i386/fpu/e_expl.c: Move to ...
5254 * sysdeps/i386/fpu/e_expl.S: ... here. Write directly in assembly
5255 rather than using inline asm.
5256 * sysdeps/x86_64/fpu/e_expl.c: Remove file.
5257 * sysdeps/x86_64/fpu/e_expl.S: Copy from
5258 sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
5259
5260 * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
5261 (nice): Likewise.
5262 (poll): Likewise.
5263 (signal): Likewise.
5264 (time): Likewise.
5265 (times): Likewise.
5266
52672012-05-04 Joseph Myers <joseph@codesourcery.com>
5268
5269 * sysdeps/unix/syscalls.list (adjtime): Add entry from
5270 sysdeps/unix/common/syscalls.list.
5271 (fchmod): Likewise.
5272 (fchown): Likewise.
5273 (ftruncate): Likewise.
5274 (getrusage): Likewise.
5275 (gettimeofday): Likewise.
5276 (setpgid): Likewise.
5277 (setregid): Likewise.
5278 (setreuid): Likewise.
5279 (sigaction): Likewise.
5280 (truncate): Likewise.
5281 (vhangup): Likewise.
5282 * sysdeps/unix/common/syscalls.list: Remove file.
5283 * sysdeps/unix/bsd/Implies: Don't include unix/common.
5284 * sysdeps/unix/sysv/linux/Implies: Likewise.
5285
52862012-05-04 H.J. Lu <hongjiu.lu@intel.com>
5287
5288 * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
5289 * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
5290 * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
5291 Moved to ...
5292 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
5293 Here.
5294 * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
5295 to ...
5296 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
5297 * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
5298 to ...
5299 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
5300 * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
5301 to ...
5302 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
5303 * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
5304 to ...
5305 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
5306 * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
5307 to ...
5308 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
5309 * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
5310 to ...
5311 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
5312 * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
5313 to ...
5314 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
5315 Here.
5316 * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
5317 to ...
5318 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
5319 Here.
5320 * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
5321 to ...
5322 * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
5323 * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
5324 Moved to ...
5325 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
5326 Here.
5327 * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
5328 to ...
5329 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
5330
53312012-05-04 Joseph Myers <joseph@codesourcery.com>
5332
5333 * sysdeps/unix/common/bits/dirent.h: Remove file.
5334 * sysdeps/unix/common/bits/fcntl.h: Likewise.
5335
5336 * sysdeps/unix/bsd/bits/dirent.h: Remove file.
5337 * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
5338 * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
5339 * sysdeps/unix/bsd/isatty.c: Likewise.
5340 * sysdeps/unix/bsd/tcdrain.c: Likewise.
5341 * sysdeps/unix/bsd/tcgetattr.c: Likewise.
5342 * sysdeps/unix/bsd/tcsetattr.c: Likewise.
5343
53442012-05-04 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
5345
5346 [BZ #13563]
5347 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
5348 long double comparison inaccuracies.
5349 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
5350 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5351
53522012-05-04 Andreas Schwab <schwab@linux-m68k.org>
5353
5354 * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
5355 * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
5356
53572012-05-04 Joseph Myers <joseph@codesourcery.com>
5358
5359 [BZ #14049]
5360 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
5361 nonzero digits before rounding a hex value.
5362 * stdlib/tst-strtod.c (tests): Add another test.
5363
53642012-05-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5365
5366 * sysdeps/s390/fpu/libm-test-ulps: Update.
5367
53682012-05-03 Andreas Jaeger <aj@suse.de>
5369
5370 * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
5371 does not get optimized out.
5372 (malloc_opt_barrier): New.
5373
53742012-05-03 Andreas Jaeger <aj@suse.de>
5375 Roland McGrath <roland@hack.frob.com>
5376
5377 * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
5378 intermediate file deletion.
5379 (generated): Add .symlist files.
5380
53812012-05-03 Joseph Myers <joseph@codesourcery.com>
5382
5383 [BZ #13775]
5384 * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
5385 Redirect under this condition.
5386 [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
5387 [__USE_GNU] (__dprintf_chk): Not under this condition.
5388 [__USE_GNU] (__vdprintf_chk): Likewise.
5389 * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
5390 under this condition.
5391 [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
5392 [__USE_XOPEN2K8] (dprintf): Define under this condition.
5393 [__USE_XOPEN2K8] (vdprintf): Likewise.
5394 [__USE_GNU] (__dprintf_chk): Not under this condition.
5395 [__USE_GNU] (__vdprintf_chk): Likewise.
5396 [__USE_GNU] (dprintf): Likewise.
5397 [__USE_GNU] (vdprintf): Likewise.
5398
53992012-05-03 Roland McGrath <roland@hack.frob.com>
5400
5401 * elf/Makefile (common-generated): Set this instead of generated for
5402 .dyn, .phdr, .jmprel files. Remove $(common-objpfx) from the
5403 $(all-built-dso)-derived lists.
5404
54052012-05-03 Andreas Jaeger <aj@suse.de>
5406
5407 * sysdeps/i386/fpu/libm-test-ulps: Update.
5408
5409 * FAQ: Removed.
5410 * FAQ.in: Likewise.
5411 * scripts/gen-FAQ.pl: Likewise.
5412 * manual/install.texi (Installation): Point to online location of
5413 FAQ.
5414 * Makefile (files-for-dist): Remove FAQ.
5415 (FAQ): Remove.
5416
54172012-05-02 Allan McRae <allan@archlinux.org>
5418
5419 * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
5420 (LDFLAGS-reldepmod5.so): Likewise.
5421 (LDFLAGS-reldep6mod1.so): Likewise.
5422 (LDFLAGS-reldep6mod4.so): Likewise.
5423 (LDFLAGS-reldep8mod3.so): Likewise.
5424 (LDFLAGS-unload4mod1.so): Likewise.
5425 (LDFLAGS-unload4mod2.so): Likewise.
5426 (LDFLAGS-tst-initorder): Likewise.
5427 (LDFLAGS-tst-initordera2.so): Likewise.
5428 (LDFLAGS-tst-initordera3.so): Likewise.
5429 (LDFLAGS-tst-initordera4.so): Likewise.
5430 (LDFLAGS-tst-initorderb2.so): Likewise.
5431 (LDFLAGS-noload): Likewise.
5432 (LDFLAGS-next): Likewise.
5433 (LDFLAGS-order2mod1.so): Likewise.
5434 (LDFLAGS-order2mod2.so): Likewise.
5435 (LDFLAGS-tst-initorder2): Likewise.
5436 (LDFLAGS-tst-initorder2a.so): Likewise.
5437 (LDFLAGS-tst-initorder2b.so): Likewise.
5438 (LDFLAGS-tst-initorder2c.so): Likewise.
5439 * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
5440
54412012-05-02 David S. Miller <davem@davemloft.net>
5442
5443 * sysdeps/sparc/fpu/libm-test-ulps: Update.
5444
54452012-05-02 Paul Pluzhnikov <ppluzhnikov@google.com>
5446
5447 [BZ #14055]
5448 * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
5449
54502012-05-02 Andreas Jaeger <aj@suse.de>
5451
5452 * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
5453 since we manipulate rounding mode.
5454 (CPPFLAGS-test-idouble.c): Likewise.
5455 (CPPFLAGS-test-ifloat.c): Likewise.
5456 (CFLAGS-test-ldouble.c): Likewise.
5457 (CFLAGS-test-double.c): Likewise.
5458 (CFLAGS-test-float.c): Likewise.
5459 (CFLAGS-test-misc.c): Likewise.
5460 (CFLAGS-test-test-fenv.c): Likewise.
5461
54622012-05-02 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
5463
5464 [BZ #2550]
5465 [BZ #2570]
5466 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
5467 comparisons to determine direction to adjust input.
5468
54692012-05-01 Roland McGrath <roland@hack.frob.com>
5470
5471 * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
5472 output to the target.
5473
5474 * scripts/localplt.awk: New file.
5475 * elf/Makefile ($(objpfx)check-localplt): Target removed.
5476 (check-localplt-CFLAGS): Variable removed.
5477 ($(all-built-dso:=.jmprel)): New static pattern rule.
5478 (generated): Add those targets.
5479 (localplt-built-dso): New variable.
5480 ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
5481
5482 * elf/check-localplt.c: File removed.
5483
5484 * scripts/check-execstack.awk: New file.
5485 * elf/Makefile ($(objpfx)check-execstack): Target removed.
5486 (check-execstack-CFLAGS): Variable removed.
5487 ($(objpfx)check-execstack.h): Target removed.
5488 ($(objpfx)execstack-default): New target.
5489 (generated): Add that instead of check-execstack.h.
5490 ($(all-built-dso:=.phdr)): New static pattern rule.
5491 (generated): Add those targets.
5492 * elf/check-execstack.c: File removed.
5493
5494 * scripts/check-textrel.awk: New file.
5495 * elf/Makefile ($(objpfx)check-textrel): Target removed.
5496 (check-textrel-CFLAGS): Variable removed.
5497 (all-built-dso): Use := to define.o
5498 ($(all-built-dso:=.dyn)): New static pattern rule.
5499 (generated): Add those targets.
5500 ($(objpfx)check-textrel.out): Use the script on the .dyn files.
5501 * config.make.in (READELF): New substituted variable.
5502 * elf/check-textrel.c: File removed.
5503
55042012-05-01 Joseph Myers <joseph@codesourcery.com>
5505
5506 * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5507 allow.
5508 * conform/data/ctype.h-data [C99-based standards] (isblank):
5509 Expect function.
5510 (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
5511 (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
5512 [ISO || ISO99 || ISO11] (*_t): Do not allow.
5513 * conform/data/errno.h-data (EDOM): Use macro-int-constant.
5514 Specify type. Require positive value.
5515 (EILSEQ): Likewise.
5516 (ERANGE): Likewise.
5517 [ISO || POSIX] (EILSEQ): Do not expect.
5518 [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
5519 Specify type. Require positive value.
5520 [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
5521 [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
5522 [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
5523 [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
5524 [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
5525 [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
5526 [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
5527 [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
5528 [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
5529 [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
5530 [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
5531 [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
5532 [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
5533 [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
5534 [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
5535 [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
5536 [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
5537 [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
5538 [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
5539 [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
5540 [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
5541 [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
5542 [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
5543 [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
5544 [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
5545 [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
5546 [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
5547 [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
5548 [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
5549 [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
5550 [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
5551 [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
5552 [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
5553 [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
5554 [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
5555 [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
5556 [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
5557 [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
5558 [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
5559 [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
5560 [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
5561 [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
5562 [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
5563 [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
5564 [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
5565 [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
5566 [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
5567 [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
5568 [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
5569 [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
5570 [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
5571 [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
5572 [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
5573 [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
5574 [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
5575 [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
5576 [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
5577 [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
5578 [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
5579 [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
5580 [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
5581 [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
5582 [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
5583 [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
5584 [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
5585 [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
5586 [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
5587 [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
5588 [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
5589 [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
5590 [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
5591 [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
5592 [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
5593 [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
5594 [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
5595 [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
5596 * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
5597 Require >= 2.
5598 (FLT_ROUNDS): Expect as macro, not constant.
5599 (FLT_MANT_DIG): Use macro-int-constant.
5600 (DBL_MANT_DIG): Likewise.
5601 (LDBL_MANT_DIG): Likewise.
5602 (FLT_DIG): Likewise.
5603 (DBL_DIG): Likewise.
5604 (LDBL_DIG): Likewise.
5605 (FLT_MIN_EXP): Use macro-int-constant. Require < 0.
5606 (DBL_MIN_EXP): Likewise.
5607 (LDBL_MIN_EXP): Likewise.
5608 (FLT_MAX_EXP): Use macro-int-constant.
5609 (DBL_MAX_EXP): Likewise.
5610 (LDBL_MAX_EXP): Likewise.
5611 (FLT_MAX_10_EXP): Likewise.
5612 (DBL_MAX_10_EXP): Likewise.
5613 (LDBL_MAX_10_EXP): Likewise.
5614 (FLT_MAX): Use macro-constant.
5615 (DBL_MAX): Likewise.
5616 (LDBL_MAX): Likewise.
5617 (FLT_EPSILON): Use macro-constant. Give upper bound.
5618 (DBL_EPSILON): Likewise.
5619 (LDBL_EPSILON): Likewise.
5620 (FLT_MIN): Likewise.
5621 (DBL_MIN): Likewise.
5622 (LDBL_MIN): Likewise.
5623 [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
5624 [C99-based standards] (FLT_EVAL_METHOD): Likewise.
5625 [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
5626 [ISO11] (FLT_HAS_SUBNORM): Likewise.
5627 [ISO11] (LDBL_HAS_SUBNORM): Likewise.
5628 [ISO11] (DBL_DECIMAL_DIG): Likewise.
5629 [ISO11] (FLT_DECIMAL_DIG): Likewise.
5630 [ISO11] (LDBL_DECIMAL_DIG): Likewise.
5631 [ISO11] (DBL_TRUE_MIN): Use macro-constant.
5632 [ISO11] (FLT_TRUE_MIN): Likewise.
5633 [ISO11] (LDBL_TRUE_MIN): Likewise.
5634 [ISO || ISO99 || ISO11] (*_t): Do not allow.
5635 * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
5636 (SCHAR_MIN): Use macro-int-constant. Specify type.
5637 (SCHAR_MAX): Likewise.
5638 (UCHAR_MAX): Likewise.
5639 (CHAR_MIN): Likewise.
5640 (CHAR_MAX): Likewise.
5641 (MB_LEN_MAX): Use macro-int-constant.
5642 (SHRT_MIN): Use macro-int-constant. Specify type.
5643 (SHRT_MAX): Likewise.
5644 (USHRT_MAX): Likewise.
5645 (INT_MAX): Likewise.
5646 (INT_MIN): Use macro-int-constant. Specify type. Make upper
5647 bound negative.
5648 (UINT_MAX): Use macro-int-constant. Specify type. Suffix lower
5649 bound with "U".
5650 (LONG_MAX): Use macro-int-constant. Specify type. Suffix lower
5651 bound with "L".
5652 (LONG_MIN): Use macro-int-constant. Specify type. Make upper
5653 bound negative. Suffix upper bound with "L".
5654 (ULONG_MAX): Use macro-int-constant. Specify type. Suffix lower
5655 bound with "UL".
5656 [C99-based standards] (LLONG_MIN): Use macro-int-constant.
5657 Specify type.
5658 [C99-based standards] (LLONG_MAX): Likewise.
5659 [C99-based standards] (ULLONG_MAX): Likewise.
5660 * conform/data/stddef.h-data (NULL): Use macro-constant. Require
5661 == 0.
5662 [ISO11] (max_align_t): Require type.
5663 [ISO || ISO99 || ISO11] (*_t): Do not allow.
5664
5665 * conform/conformtest.pl ($CFLAGS_namespace): Define separately
5666 from $CFLAGS, without defining away __attribute__ calls.
5667 (checknamespace): Use $CFLAGS_namespace.
5668
5669 * conform/conformtest.pl (@keywords): Only include C99 keywords
5670 for standards based on C99 or C11.
5671
5672 * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
5673 Disable tests.
5674 * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
5675 UNIX98]: Likewise.
5676
5677 * conform/conformtest.pl: Handle "macro-int-constant" and test for
5678 usability of symbols in #if.
5679
5680 * conform/conformtest.pl: If macro or constant types start
5681 "promoted:", expect the symbol to be of the following type
5682 promoted by the integer promotions.
5683
5684 * conform/conformtest.pl: Parse all "constant" and "macro" lines
5685 in one place. Also handle "macro-constant".
5686
5687 * conform/conformtest.pl: Only accept expected macro values with
5688 "==". Parse all "macro" lines in one place.
5689 * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
5690
5691 * conform/conformtest.pl: Handle braced types on "constant" lines
5692 instead of handling "typed-constant".
5693 * conform/data/signal.h-data: Use "constant" instead of
5694 "typed-constant".
5695
5696 * conform/conformtest.pl: Handle "optional-" at start of lines in
5697 one place rather than duplicating several cases. Handle each
5698 format of "macro" line with initial "optional-".
5699
5700 * conform/conformtest.pl: Only accept expected constant or
5701 optional-constant values with "==". Parse all "constant" lines in
5702 one place. Parse all "optional-constant" lines in one place.
5703 * conform/data/cpio.h-data: Use "==" form on "constant" lines.
5704 * conform/data/fmtmsg.h-data: Likewise.
5705 * conform/data/netinet/in.h-data: Likewise.
5706 * conform/data/tar.h-data: Likewise.
5707 * conform/data/limits.h-data: Use "==" form on "constant" and
5708 "optional-constant" lines.
5709
5710 * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
5711 Use -std=c99 for XOPEN2K.
5712 (@knownproblems): Remove.
5713 (newtoken): Don't check %isknown.
5714
5715 * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
5716 Do not expect macro.
5717 [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
5718 [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
5719 [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
5720 [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
5721 [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
5722 [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
5723 [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
5724 [XPG3 || XPG4 || UNIX98] (isless): Likewise.
5725 [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
5726 [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
5727 [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
5728 [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
5729 [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
5730 [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
5731 [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
5732 [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
5733 [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
5734 [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
5735 [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
5736 [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
5737 [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
5738 [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
5739 [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
5740 [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
5741 [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
5742 [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
5743 [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
5744 [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
5745 [XPG3 || XPG4 || UNIX98] (log2): Likewise.
5746 [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
5747 [XPG3] (acosh): Likewise.
5748 [XPG3] (asinh): Likewise.
5749 [XPG3] (atanh): Likewise.
5750 [XPG3] (cbrt): Likewise.
5751 [XPG3] (expm1): Likewise.
5752 [XPG3] (ilogb): Likewise.
5753 [XPG3] (log1p): Likewise.
5754 [XPG3] (logb): Likewise.
5755 [XPG3] (nextafter): Likewise.
5756 [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
5757 [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
5758 [XPG3] (remainder): Likewise.
5759 [XPG3] (rint): Likewise.
5760 [XPG3 || XPG4 || UNIX98] (round): Likewise.
5761 [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
5762 [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
5763 [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
5764 [XPG3 || XPG4 || UNIX98] (lround): Likewise.
5765 [XPG3 || XPG4 || UNIX98] (llround): Likewise.
5766 [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
5767 [UNIX98 || XOPEN2K] (scalb): Expect.
5768 [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
5769 [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
5770 [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
5771 [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
5772 [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
5773 [XPG3 || XPG4 || UNIX98] (fma): Likewise.
5774 [XPG3 || XPG4 || UNIX98] (nan): Likewise.
5775 [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
5776 [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
5777 [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
5778 [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
5779 [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
5780 [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
5781 [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
5782 [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
5783 [XPG3 || XPG4 || UNIX98] (expf): Likewise.
5784 [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
5785 [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
5786 [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
5787 [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
5788 [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
5789 [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
5790 [XPG3 || XPG4 || UNIX98] (logf): Likewise.
5791 [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
5792 [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
5793 [XPG3 || XPG4 || UNIX98] (modff): Likewise.
5794 [XPG3 || XPG4 || UNIX98] (powf): Likewise.
5795 [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
5796 [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
5797 [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
5798 [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
5799 [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
5800 [XPG3 || XPG4 || UNIX98] (erff): Likewise.
5801 [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
5802 [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
5803 [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
5804 [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
5805 [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
5806 [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
5807 [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
5808 [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
5809 [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
5810 [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
5811 [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
5812 [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
5813 [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
5814 [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
5815 [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
5816 [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
5817 [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
5818 [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
5819 [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
5820 [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
5821 [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
5822 [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
5823 [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
5824 [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
5825 [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
5826 [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
5827 [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
5828 [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
5829 [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
5830 [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
5831 [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
5832 [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
5833 [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
5834 [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
5835 [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
5836 [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
5837 [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
5838 [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
5839 [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
5840 [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
5841 [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
5842 [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
5843 [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
5844 [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
5845 [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
5846 [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
5847 [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
5848 [XPG3 || XPG4 || UNIX98] (expl): Likewise.
5849 [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
5850 [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
5851 [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
5852 [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
5853 [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
5854 [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
5855 [XPG3 || XPG4 || UNIX98] (logl): Likewise.
5856 [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
5857 [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
5858 [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
5859 [XPG3 || XPG4 || UNIX98] (powl): Likewise.
5860 [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
5861 [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
5862 [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
5863 [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
5864 [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
5865 [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
5866 [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
5867 [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
5868 [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
5869 [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
5870 [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
5871 [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
5872 [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
5873 [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
5874 [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
5875 [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
5876 [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
5877 [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
5878 [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
5879 [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
5880 [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
5881 [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
5882 [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
5883 [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
5884 [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
5885 [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
5886 [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
5887 [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
5888 [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
5889 [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
5890 [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
5891 [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
5892 [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
5893 [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
5894 [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
5895 [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
5896 [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
5897 [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
5898 [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
5899 [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
5900 [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
5901 [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
5902 [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
5903 [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
5904 [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
5905
5906 * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
5907 _XOPEN_SOURCE_EXTENDED for XPG4.
5908
5909 * conform/conformtest.pl: Handle "symbol" lines for allow-header.
5910
5911 * Makeconfig (localtime): Remove variable.
5912 (inst_localtime-file): Likewise.
5913
59142012-05-01 Andreas Schwab <schwab@linux-m68k.org>
5915
5916 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
5917 Update.
5918 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5919 Update.
5920 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
5921 Update.
5922 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
5923 Update.
5924 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
5925 Update.
5926 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
5927 Update.
5928 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5929 Update.
5930 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
5931 Update.
5932 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
5933 Update.
5934
59352012-05-01 Joseph Myers <joseph@codesourcery.com>
5936
5937 [BZ #2550]
5938 [BZ #2570]
5939 * math/s_nexttowardf.c (__nexttowardf): Use floating-point
5940 comparisons to determine direction to adjust input.
5941 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
5942 * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
5943 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
5944 Likewise.
5945 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
5946 Likewise.
5947 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
5948 Likewise.
5949 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
5950 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
5951 Likewise.
5952 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
5953 Likewise.
5954 * math/libm-test.inc (nexttoward_test): Add more tests.
5955
59562012-05-01 Andreas Schwab <schwab@linux-m68k.org>
5957
5958 [BZ #14040]
5959 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
5960 in version GLIBC_2.1, not GLIBC_2.0.
5961 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
5962 Likewise.
5963
59642012-04-30 Joseph Myers <joseph@codesourcery.com>
5965
5966 [BZ #13942]
5967 * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
5968 (1 - x) * (1 + x).
5969 * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
5970 * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
5971 * math/libm-test.inc (acos_test): Add more tests.
5972 (asin_test): Likewise.
5973 * sysdeps/i386/fpu/libm-test-ulps: Update.
5974 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5975
5976 [BZ #14034]
5977 * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
5978 of square root.
5979 * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
5980 * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
5981 * math/libm-test.inc (acos_test_tonearest): New function.
5982 (acos_test_towardzero): Likewise.
5983 (acos_test_downward): Likewise.
5984 (acos_test_upward): Likewise.
5985 (asin_test_tonearest): Likewise.
5986 (asin_test_towardzero): Likewise.
5987 (asin_test_downward): Likewise.
5988 (asin_test_upward): Likewise.
5989 (main): Call the new functions.
5990 * sysdeps/i386/fpu/libm-test-ulps: Update.
5991 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5992
5993 [BZ #13884]
5994 [BZ #13924]
5995 * math/e_exp10.c: Include <float.h>.
5996 (__ieee754_exp10): Handle underflow here rather than multiplying
5997 large negative argument by M_LN10.
5998 * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
5999 of __ieee754_expf.
6000 * math/e_exp10l.c: Include <float.h>.
6001 (__ieee754_exp10l): Handle underflow here rather than multiplying
6002 large negative argument by M_LN10l.
6003 * math/libm-test.inc (exp10_test): Add another test. Do not allow
6004 spurious overflow exception on underflow.
6005
60062012-04-29 Marek Polacek <polacek@redhat.com>
6007
6008 * misc/sys/cdefs.h (__attribute_artificial__): New macro.
6009 (__fortify_function): New macro.
6010 (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
6011 * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
6012 __extern_always_inline.
6013 * libio/bits/stdio2.h: Likewise.
6014 * libio/bits/stdio.h: Likewise.
6015 * string/string.h: Likewise.
6016 * string/bits/string3.h: Likewise.
6017 * include/stdio.h: Likewise.
6018 * stdlib/bits/stdlib.h: Likewise.
6019 * stdlib/stdlib.h: Likewise.
6020 * rt/bits/mqueue2.h: Likewise.
6021 * rt/mqueue.h: Likewise.
6022 * posix/bits/unistd.h: Likewise.
6023 * posix/unistd.h: Likewise.
6024 * io/bits/poll2.h: Likewise.
6025 * io/bits/fcntl2.h: Likewise.
6026 * io/fcntl.h: Likewise.
6027 * io/sys/poll.h: Likewise.
6028 * misc/bits/syslog.h: Likewise.
6029 * misc/bits/syslog-ldbl.h: Likewise.
6030 * misc/sys/syslog.h: Likewise.
6031 * socket/bits/socket2.h: Likewise.
6032 * socket/sys/socket.h: Likewise.
6033 * debug/tst-chk1.c: Likewise.
6034 * wcsmbs/bits/wchar2.h: Likewise.
6035 * wcsmbs/bits/wchar-ldbl.h: Likewise.
6036 * wcsmbs/wchar.h: Likewise.
6037
60382012-04-29 Andreas Jaeger <aj@suse.de>
6039
6040 * Makerules (tests): Remove enable-check-abi protection.
6041 (check-abi-warn): Remove.
6042 (check-abi-%): Remove check-abi-warn usage.
6043
6044 * configure.in: Remove check-abi configure option.
6045 * configure: Regenerated.
6046 * config.make.in (enable-check-abi): Remove.
6047
60482012-04-28 Andreas Schwab <schwab@linux-m68k.org>
6049
6050 [BZ #14033]
6051 * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
6052 double functions to double *_finite functions.
6053
6054 [BZ #13941]
6055 * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
6056 (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
6057 LDBL_MIN_EXP.
6058 * stdio-common/Makefile (tests): Add tst-sprintf3.
6059 * stdio-common/tst-sprintf3.c: New file.
6060
6061 * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
6062 ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
6063
60642012-04-28 Joseph Myers <joseph@codesourcery.com>
6065
6066 * conform/conformtest.pl: Remove duplicate typed-constant
6067 handling.
6068
60692012-04-28 David S. Miller <davem@davemloft.net>
6070
6071 * Makerules (%.abilist): Add vpath on sysdep_dirs.
6072 (check-abi-%): Remove AWK script prerequisite and explicit
6073 abilist directory.
6074 (check-abi): Rewrite to just diff the symlist with the abilist.
6075 (config-tls, config-abi-config): Delete, no longer used.
6076 (update-abi-%): Remove AWK script and explicit abilist directory.
6077 (update-abi): Rewrite to simply compare and conditionally copy the
6078 symlist and the sysdep abilist file. Remove update-abi-config
6079 checks.
6080 * abilist/ld.abilist: Remove.
6081 * abilist/libBrokenLocale.abilist: Remove.
6082 * abilist/libanl.abilist: Remove.
6083 * abilist/libcrypt.abilist: Remove.
6084 * abilist/libdl.abilist: Remove.
6085 * abilist/librt.abilist: Remove.
6086 * abilist/libthread_db.abilist: Remove.
6087 * abilist/libutil.abilist: Remove.
6088 * scripts/extract-abilist.awk: Remove.
6089 * scripts/merge-abilist.awk: Remove.
6090 * sysdeps/generic/libcidn.abilist: New file.
6091 * sysdeps/generic/libnss_compat.abilist: New file.
6092 * sysdeps/generic/libnss_db.abilist: New file.
6093 * sysdeps/generic/libnss_dns.abilist: New file.
6094 * sysdeps/generic/libnss_files.abilist: New file.
6095 * sysdeps/generic/libnss_hesiod.abilist: New file.
6096 * sysdeps/generic/libnss_nis.abilist: New file.
6097 * sysdeps/generic/libnss_nisplus.abilist: New file.
6098 * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
6099 * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
6100 * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
6101 file.
6102 * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
6103 * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
6104 * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
6105 * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
6106 * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
6107 * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
6108 * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
6109 * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
6110 * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
6111 file.
6112 * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
6113 * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
6114 * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
6115 * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
6116 file.
6117 * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
6118 * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
6119 * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
6120 * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
6121 * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
6122 * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
6123 file.
6124 * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
6125 * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
6126 * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
6127 file.
6128 * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
6129 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
6130 New file.
6131 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
6132 New file.
6133 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
6134 New file.
6135 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
6136 New file.
6137 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
6138 New file.
6139 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
6140 New file.
6141 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
6142 New file.
6143 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
6144 New file.
6145 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
6146 New file.
6147 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
6148 New file.
6149 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
6150 New file.
6151 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
6152 New file.
6153 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
6154 New file.
6155 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
6156 file.
6157 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
6158 New file.
6159 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
6160 New file.
6161 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
6162 file.
6163 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
6164 New file.
6165 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
6166 New file.
6167 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
6168 file.
6169 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
6170 New file.
6171 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6172 New file.
6173 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
6174 New file.
6175 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
6176 New file.
6177 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
6178 New file.
6179 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
6180 New file.
6181 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
6182 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
6183 file.
6184 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
6185 New file.
6186 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
6187 file.
6188 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
6189 file.
6190 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
6191 file.
6192 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
6193 file.
6194 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
6195 file.
6196 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6197 New file.
6198 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
6199 file.
6200 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
6201 file.
6202 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
6203 New file.
6204 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
6205 file.
6206 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
6207 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
6208 file.
6209 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
6210 New file.
6211 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
6212 file.
6213 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
6214 file.
6215 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
6216 file.
6217 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
6218 file.
6219 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
6220 file.
6221 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6222 New file.
6223 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
6224 file.
6225 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
6226 file.
6227 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
6228 New file.
6229 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
6230 file.
6231 * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
6232 * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
6233 * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
6234 file.
6235 * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
6236 * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
6237 * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
6238 * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
6239 * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
6240 * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
6241 * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
6242 * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
6243 * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
6244 * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
6245 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
6246 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
6247 file.
6248 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
6249 New file.
6250 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
6251 file.
6252 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
6253 file.
6254 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
6255 file.
6256 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
6257 file.
6258 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
6259 file.
6260 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
6261 New file.
6262 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
6263 New file.
6264 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
6265 file.
6266 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
6267 New file.
6268 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
6269 file.
6270 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
6271 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
6272 file.
6273 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
6274 New file.
6275 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
6276 file.
6277 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
6278 file.
6279 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
6280 file.
6281 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
6282 file.
6283 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
6284 file.
6285 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
6286 New file.
6287 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
6288 New file.
6289 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
6290 file.
6291 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
6292 New file.
6293 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
6294 file.
6295
62962012-04-28 Joseph Myers <joseph@codesourcery.com>
6297
6298 * conform/conformtest.pl: Fix typo in handling typed-constant from
6299 allow-header.
6300
63012012-04-27 Joseph Myers <joseph@codesourcery.com>
6302
6303 * README: Cut down references to pre-2.6 Linux kernels and
6304 Linuxthreads. Update lists of configurations in libc and ports
6305 and sort alphabetically. Say "or newer" with Linux kernel version
6306 requirements.
6307
6308 * config.h.in [IS_IN_build]: Allow compiling without optimization.
6309
63102012-04-27 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
6311
6312 [BZ #887]
6313 * math/libm-test.inc (logb_test_downward): New test to expose
6314 erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
6315 rounding mode.
6316
63172012-04-27 Joseph Myers <joseph@codesourcery.com>
6318
6319 [BZ #14027]
6320 * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
6321 to be done.
6322 * math/fraiseexcpt.c (__feraiseexcept): Likewise.
6323 * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
6324
63252012-04-26 Joseph Myers <joseph@codesourcery.com>
6326
6327 * sysdeps/unix/i386/brk.S: Remove file.
6328 * sysdeps/unix/i386/dl-brk.S: Likewise.
6329 * sysdeps/unix/i386/pipe.S: Likewise.
6330 * sysdeps/unix/i386/sigreturn.S: Likewise.
6331 * sysdeps/unix/i386/syscall.S: Likewise.
6332 * sysdeps/unix/i386/vfork.S: Likewise.
6333 * sysdeps/unix/i386/wait.S: Likewise.
6334
6335 * sysdeps/unix/common/tcsendbrk.c: Move to ...
6336 * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
6337
6338 * configure.in (arm*-none*): Do not allow without
6339 --enable-hacker-mode.
6340 (netbsd*): Remove case setting base_os.
6341 (386bsd*): Likewise.
6342 (freebsd*): Likewise.
6343 (bsdi*): Likewise.
6344 (osf*): Likewise.
6345 (sunos*): Likewise.
6346 (ultrix*): Likewise.
6347 (newsos*): Likewise.
6348 (dynix*): Likewise.
6349 (*bsd*): Likewise.
6350 (sysv*): Likewise.
6351 (isc*): Likewise.
6352 (esix*): Likewise.
6353 (sco*): Likewise.
6354 (minix*): Likewise.
6355 (irix4*): Likewise.
6356 (irix6*): Likewise.
6357 (solaris[2-9]*): Likewise.
6358 (none): Likewise.
6359 * configure: Regenerated.
6360
63612012-04-26 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
6362
6363 [BZ #11521]
6364 * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
6365 overflow or cancellation in calculating denominator.
6366 * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
6367 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
6368 down expression to avoid unexpected rounding in newer GCCs.
6369 * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
6370
63712012-04-26 David S. Miller <davem@davemloft.net>
6372
6373 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
6374 long-double compat symbols.
6375 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
6376 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
6377 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
6378 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
6379 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
6380 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
6381 * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
6382 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
6383 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
6384 * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
6385 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
6386 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
6387 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
6388
63892012-04-25 David S. Miller <davem@davemloft.net>
6390
6391 * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
6392 HWCAP_* values only after the memory barriers have been defined.
6393 (atomic_full_barrier): Define.
6394 (atomic_read_barrier): Define.
6395 (atomic_write_barrier): Define.
6396
63972012-04-26 Siddhesh Poyarekar <siddhesh@redhat.com>
6398
6399 * shlib-versions: Add libgcc_s version information.
6400 * sysdeps/generic/libgcc_s.h: Remove.
6401 * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
6402 libgcc_s.h.
6403 * sysdeps/gnu/unwind-resume.c: Likewise.
6404 * scripts/test-installation.pl: Remove libgcc_s from link_libs.
6405
64062012-04-25 David S. Miller <davem@davemloft.net>
6407
6408 * sysdeps/unix/sparc/brk.S: Delete.
6409 * sysdeps/unix/sparc/dl-brk.S: Delete.
6410 * sysdeps/unix/sparc/pipe.S: Delete.
6411 * sysdeps/unix/sparc/sysdep.S: Delete.
6412 * sysdeps/unix/sparc/sysdep.h: Delete.
6413 * sysdeps/unix/sparc/vfork.S: Delete.
6414 * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
6415 SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
6416 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
6417 ret_ERRVAL, r0, r1, MOVE): Define.
6418 (JUMPTARGET): Remove.
6419 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
6420 sysdeps/unix/sparc/sysdep.h
6421 (ENTRY, END): Remove.
6422 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6423
64242012-04-25 Joseph Myers <joseph@codesourcery.com>
6425
6426 * Makerules (native-compile): Use $(BUILD_LDFLAGS).
6427 (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
6428 -DIS_IN_build.
6429
6430 * timezone/README: Update upstream location and email address for
6431 tzcode and tzdata.
6432 * timezone/zdump.c: Update from tzcode 2012b.
6433 * timezone/zic.c: Likewise.
6434
6435 * configure.in (libc_cv_as_needed): Remove test.
6436 * configure: Regenerated.
6437 * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
6438 conditional definition.
6439 [$(have-as-needed) != yes] (no-as-needed): Likewise.
6440 [$(have-as-needed) != yes] (libgcc_eh): Likewise.
6441 * config.make.in (have-as-needed): Remove variable.
6442
64432012-04-25 Siddhesh Poyarekar <siddhesh@redhat.com>
6444 Paul Pluzhnikov <ppluzhnikov@google.com>
6445
6446 * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
6447 strings correctly.
6448
64492012-04-25 Chung-Lin Tang <cltang@codesourcery.com>
6450
6451 * sysdeps/sh/memcpy.S: Remove include of endian.h, change
6452 preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
6453 * sysdeps/sh/strlen.S: Likewise.
6454
64552012-04-24 Joseph Myers <joseph@codesourcery.com>
6456
6457 * sysdeps/unix/fork.S: Remove file.
6458 * sysdeps/unix/i386/fork.S: Likewise.
6459 * sysdeps/unix/sparc/fork.S: Likewise.
6460
6461 * sysdeps/unix/system.c: Remove file.
6462 * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
6463
6464 * sysdeps/unix/getegid.S: Remove file.
6465 * sysdeps/unix/geteuid.S: Likewise.
6466
64672012-04-24 Roland McGrath <roland@hack.frob.com>
6468
6469 * scripts/check-localplt.awk: New file.
6470 * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
6471 of diff.
6472 * scripts/data/localplt-generic.data: Add a comment.
6473
6474 * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
6475 NODE when __dir_mkfile failed.
6476 * sysdeps/mach/hurd/symlinkat.c: Likewise.
6477 Reported by Ludovic Courtès <ludo@gnu.org>.
6478
64792012-04-24 Andreas Jaeger <aj@suse.de>
6480
6481 * Makerules (common-clean): Also remove gen-as-const-headers
6482 files.
6483
64842012-04-24 Joseph Myers <joseph@codesourcery.com>
6485
6486 * Makerules (native-compile): Do not change working directory for
6487 build. Use $(OUTPUT_OPTION) in command.
6488 (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
6489
64902012-04-24 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
6491
6492 [BZ #13886]
6493 * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
6494 sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
6495 * math/libm-test.inc (floor_test): Add more tests.
6496 * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
6497
64982012-04-24 Joseph Myers <joseph@codesourcery.com>
6499
6500 * sysdeps/unix/getdents.c: Remove file.
6501 * sysdeps/unix/sysv/getdents.c: Likewise.
6502 * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
6503
6504 * sysdeps/unix/syscalls.list (madvise): Add syscall from
6505 sysdeps/unix/mman/syscalls.list.
6506 (mmap): Likewise.
6507 (mprotect): Likewise.
6508 (msync): Likewise.
6509 (munmap): Likewise.
6510 * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
6511 * sysdeps/unix/mman/syscalls.list: Remove.
6512 * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
6513
6514 * configure.in (libc_cv_libgcc_s_suffix): Remove test.
6515 (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
6516 * configure: Regenerated.
6517 * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
6518 $(libgcc_s_suffix).
6519 * config.make.in (libgcc_s_suffix): Remove variable.
6520
65212012-04-23 Joseph Myers <joseph@codesourcery.com>
6522
6523 * sysdeps/unix/sysv/gethostname.c: Move to ...
6524 * sysdeps/posix/gethostname.c: ... here.
6525
6526 * sysdeps/unix/execve.S: Remove file.
6527
6528 * sysdeps/unix/_exit.S: Remove file.
6529
65302012-04-23 Andreas Jaeger <aj@suse.de>
6531
6532 [BZ #13739]
6533 * manual/Makefile: Remove make dist support, there's no
6534 need for a stand-alone documentation tar ball.
6535 (TEXI2DVI): Define always, it's not in Makeconfig.
6536 (dist): Removed.
6537 (tar-it): Removed.
6538 (edition): Removed.
6539 (glibc-doc-$(edition).tar): Removed
6540 (%.Z): Removed.
6541 (%.gz): Removed.
6542 (%.uu): Removed.
6543 (ETAGS): Remove, it's in Makeconfig.
6544 (move-if-change): Remove, it's in Makeconfig.
6545
65462013-04-23 Paul Eggert <eggert@cs.ucla.edu>
6547
6548 [BZ #13970]
6549 * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
6550 (strtod, strtof, strtold, strtol, strtoul, strtoq)
6551 (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
6552 (strtod_l, strtof_l, strtold_l): Remove __wur.
6553 It is not necessarily an error to ignore strtol's return value.
6554 One can reliably look at the stored endptr to decide whether
6555 the number had valid syntax.
6556
65572012-04-21 Andreas Jaeger <aj@suse.de>
6558
6559 [BZ #13739]
6560 * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
6561
65622012-04-21 Joseph Myers <joseph@codesourcery.com>
6563
6564 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
6565 * sysdeps/unix/sysv/Versions: Remove file.
6566
65672012-04-21 Markus Trippelsdorf <markus@trippelsdorf.de>
6568
6569 [BZ #13927]
6570 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6571
65722012-04-21 Nick Alcock <nick.alcock@oracle.com>
6573
6574 [BZ #7064]
6575 * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
6576 version from __vm86.
6577
65782012-04-20 Joseph Myers <joseph@codesourcery.com>
6579
6580 * sysdeps/unix/common/lxstat.c: Remove file.
6581 * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
6582
6583 * sysdeps/unix/sysv/Makefile: Remove file.
6584
6585 * sysdeps/unix/sysv/direct.h: Remove file.
6586
6587 * sysdeps/unix/sysv/bits/dirent.h: Remove file.
6588 * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
6589 * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
6590 * sysdeps/unix/sysv/bits/signum.h: Likewise.
6591 * sysdeps/unix/sysv/bits/stat.h: Likewise.
6592 * sysdeps/unix/sysv/bits/utmp.h: Likewise.
6593 * sysdeps/unix/sysv/bits/utsname.h: Likewise.
6594
6595 * sysdeps/unix/sysv/setrlimit.c: Remove file.
6596
6597 * sysdeps/unix/xmknod.c: Remove file.
6598 * sysdeps/unix/syscalls.list (sys_mknod): Remove.
6599
6600 * sysdeps/unix/sysv/settimeofday.c: Remove file.
6601
6602 * sysdeps/unix/sysv/i386/time.S: Remove file.
6603
6604 * sysdeps/unix/fxstat.c: Remove file.
6605 * sysdeps/unix/xstat.c: Likewise.
6606 * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
6607
6608 * sysdeps/unix/sysv/sigaction.c: Remove file.
6609
6610 * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
6611 (sysdep_headers): Remove variable.
6612 [termio.h not in sysdep_headers] (generated): Likewise.
6613 [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
6614 * sysdeps/unix/sysv/sysv_termio.h: Remove file.
6615 * sysdeps/unix/sysv/tcdrain.c: Likewise.
6616 * sysdeps/unix/sysv/tcflow.c: Likewise.
6617 * sysdeps/unix/sysv/tcflush.c: Likewise.
6618 * sysdeps/unix/sysv/tcgetattr.c: Likewise.
6619 * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
6620 * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
6621 * sysdeps/unix/sysv/tcsetattr.c: Likewise.
6622 * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
6623
6624 * sysdeps/unix/siglist.c: Remove file.
6625
6626 * sysdeps/unix/getppid.S: Remove file.
6627
6628 * sysdeps/unix/mkdir.c: Remove file.
6629 * sysdeps/unix/rmdir.c: Likewise.
6630
66312012-04-19 Andreas Schwab <schwab@linux-m68k.org>
6632
6633 * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
6634 ERR_MAX value.
6635 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
6636 errlist-compat value.
6637
66382012-04-18 David S. Miller <davem@davemloft.net>
6639
6640 * sysdeps/generic/memcopy.h (reg_char): Delete.
6641 * debug/strcat_chk.c: Use char, not reg_char.
6642 * debug/strcpy_chk.c: Likewise.
6643 * debug/strncat_chk.c: Likewise.
6644 * debug/strncpy_chk.c: Likewise.
6645 * string/memchr.c: Likewise.
6646 * string/memrchr.c: Likewise.
6647 * string/rawmemchr.c: Likewise.
6648 * string/strcat.c: Likewise.
6649 * string/strchr.c: Likewise.
6650 * string/strchrnul.c: Likewise.
6651 * string/strcmp.c: Likewise.
6652 * string/strcpy.c: Likewise.
6653 * string/strncat.c: Likewise.
6654 * string/strncmp.c: Likewise.
6655 * string/strncpy.c: Likewise.
6656
66572012-04-18 Will Schmidt <will_schmidt@vnet.ibm.com>
6658
6659 * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
6660 __builtin_memcopy is called when src and dest ranges are known to not
6661 overlap.
6662
66632012-04-18 Will Schmidt <will_schmidt@vnet.ibm.com>
6664
6665 * sysdeps/powerpc/powerpc64/power6/wordcopy.c
6666 (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
6667 fwd_align_merge macro call.
6668 (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
6669 bwd_align_merge macro call.
6670 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
6671
66722012-04-18 Will Schmidt <will_schmidt@vnet.ibm.com>
6673
6674 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
6675 bwd_align_merge macros.
6676 (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
6677 (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
6678 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
6679
66802012-04-18 David S. Miller <davem@davemloft.net>
6681
6682 * sysdeps/sparc/sparc64/memcopy.h: Delete.
6683
66842012-04-18 Andreas Jaeger <aj@suse.de>
6685
6686 [BZ# 6794]
6687 * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
6688 * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
6689 Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
6690
6691 * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
6692 * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
6693 Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
6694
6695 * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
6696 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
6697 Adjust for changed ldbl-128 files.
6698
6699 * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
6700 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
6701 Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
6702
67032012-04-17 David S. Miller <davem@davemloft.net>
6704
6705 * sysdeps/sparc/sparc32/memcopy.h: Delete.
6706
67072012-04-17 Andreas Schwab <schwab@linux-m68k.org>
6708
6709 * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
6710 * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
6711 * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
6712 * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
6713 * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
6714 * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
6715
67162012-04-17 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
6717
6718 [BZ #6794]
6719 * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
6720 * math/libm-test.inc: Add ilogb errno and exception tests.
6721 * math/w_ilogb.c: New file: ilogb wrapper.
6722 * math/w_ilogbf.c: New file: ilogbf wrapper.
6723 * math/w_ilogbl.c: New file: ilogbl wrapper.
6724 * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
6725 * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
6726 * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
6727 exception being thrown with 0.0 as argument.
6728 * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
6729 * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
6730 exception being thrown with 0.0 as argument.
6731 * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
6732 * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
6733 exception being thrown with 0.0 as argument.
6734 * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
6735 * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
6736 exception being thrown with 0.0 as argument.
6737 * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
6738 * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
6739 * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
6740 * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
6741 * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
6742 * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
6743 * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
6744 * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
6745 * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
6746
67472012-04-17 Petr Baudis <pasky@ucw.cz>
6748
6749 * include/sys/uio.h: Change __vector to __iovec to avoid clash
6750 with altivec.
6751
67522012-04-16 Marek Polacek <polacek@redhat.com>
6753
6754 * elf/pldd-xx.c: Rename static_assert to pldd_assert.
6755
67562012-04-16 Marek Polacek <polacek@redhat.com>
6757
6758 * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
6759 operands of fdivp instruction.
6760
67612012-04-13 H.J. Lu <hongjiu.lu@intel.com>
6762
6763 * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
6764 * elf/tst-auditmod3b.c: Likewise.
6765 * elf/tst-auditmod4b.c: Likewise.
6766 * elf/tst-auditmod5b.c: Likewise.
6767 * elf/tst-auditmod6b.c: Likewise.
6768 * elf/tst-auditmod6c.c: Likewise.
6769 * elf/tst-auditmod7b.c: Likewise.
6770 * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
6771 * sysdeps/x86_64/preconfigure.in: Likewise.
6772 * sysdeps/x86_64/preconfigure: Regenerated.
6773
67742012-04-13 H.J. Lu <hongjiu.lu@intel.com>
6775
6776 * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
6777 __ILP32__.
6778
67792012-04-13 Antoine Balestrat <merkil33@gmail.com>
6780
6781 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6782 (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
6783
67842012-04-13 Chris Leonard <cjlhomeaddress@gmail.com>
6785
6786 [BZ #13973]
6787 * locale/iso-639.def: Fix gl language name. Spotted by
6788 Yaron Shahrabani.
6789
67902012-04-12 Roland McGrath <roland@hack.frob.com>
6791
6792 [BZ #2074]
6793 * libio/libio.h (__io_write_fn): Update comment.
6794
67952012-04-12 Petr Baudis <pasky@ucw.cz>
6796
6797 [BZ #2074]
6798 * stdio.texi (Hook Functions): The user provided writer function
6799 is not allowed to return -1.
6800
68012012-04-11 David S. Miller <davem@davemloft.net>
6802
6803 * sysdeps/sparc/fpu/libm-test-ulps: Update.
6804
68052012-04-11 Mike Frysinger <vapier@gentoo.org>
6806
6807 * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
6808 Add a leading slash to rtkaio.
6809
68102012-04-11 Jim Meyering <meyering@redhat.com>
6811
6812 [BZ #11959]
6813 * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
6814 It is not necessarily an error to ignore fwrite's return
6815 value. One can reliably use ferror to test for errors after
6816 the fact.
6817
68182012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6819
6820 * bits/types.h (__snseconds_t): New type.
6821 * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
6822
6823 * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
6824 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6825 (__SNSECONDS_T_TYPE): Likewise.
6826 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6827 (__SNSECONDS_T_TYPE): Likewise.
6828 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6829 (__SNSECONDS_T_TYPE): Likewise.
6830
68312012-04-10 Andreas Jaeger <aj@suse.de>
6832
6833 [BZ #2636]
6834 * manual/time.texi (Processor Time): Return type of times is
6835 elapsed real time since an arbitrary point in the past.
6836 (CPU Time): Move CLK_TCK from here...
6837 (Processor Time): ...to here. Correct description.
6838 * manual/conf.texi (Constants for Sysconf): Correct description of
6839 _SC_CLK_TCK.
6840
68412012-04-10 David S. Miller <davem@davemloft.net>
6842
6843 [BZ #13967]
6844 * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
6845 where the is a gap between DT_REL(A) and DT_JMPREL.
6846
68472012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6848
6849 * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
6850 (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
6851 (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
6852
68532012-04-10 Siddhesh Poyarekar <siddhesh@redhat.com>
6854
6855 * elf/dl-support.c (_dl_inhibit_cache): New variable.
6856 * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
6857 (dl_main): Handle --inhibit-cache.
6858 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
6859 _dl_inhibit_cache.
6860 * elf/dl-load.c (_dl_map_object): Use it.
6861 * elf/Makefile: Define SYSCONFDIR when building rtld.c.
6862
68632012-04-09 Joseph Myers <joseph@codesourcery.com>
6864
6865 [BZ #13872]
6866 * sysdeps/i386/fpu/e_powl.S (p78): New object.
6867 (__ieee754_powl): Saturate large exponents rather than testing for
6868 overflow of y*log2(x).
6869 * sysdeps/x86_64/fpu/e_powl.S: Likewise.
6870 * math/libm-test.inc (pow_test): Do not permit spurious overflow
6871 exceptions.
6872
6873 [BZ #11521]
6874 * math/s_ctan.c: Include <float.h>.
6875 (__ctan): Avoid internal overflow or cancellation in calculating
6876 denominator.
6877 * math/s_ctanf.c: Likewise.
6878 * math/s_ctanl.c: Likewise.
6879 * math/s_ctanh.c: Likewise.
6880 * math/s_ctanhf.c: Likewise.
6881 * math/s_ctanhl.c: Likewise.
6882 * math/libm-test.inc (ctan_test): Add more tests.
6883 (ctanh_test): Likewise.
6884 * sysdeps/i386/fpu/libm-test-ulps: Update.
6885 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6886
68872012-04-09 Andreas Jaeger <aj@suse.de>
6888
6889 [BZ #6894]
6890 * manual/filesys.texi (Directory Entries): Mention that d_namlen
6891 is an optional BSD extension.
6892
6893 [BZ #10254]
6894 * manual/stdio.texi (Opening Streams): Document additional fopen
6895 parameters.
6896
68972012-04-09 Roland McGrath <roland@hack.frob.com>
6898
6899 * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
6900 %eax without telling the compiler.
6901
69022012-04-09 Carlos O'Donell <carlos_odonell@mentor.com>
6903
6904 [BZ # 13963]
6905 * manual/install.texi: Use sourceware.org.
6906
69072012-04-09 Joseph Myers <joseph@codesourcery.com>
6908
6909 [BZ #13873]
6910 * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
6911 (__ieee754_pow): Generate overflow and underflow using huge*huge
6912 and tiny*tiny rather than just returning constant infinity or zero
6913 for large exponents.
6914 * math/libm-test.inc (pow_test): Require overflow exceptions for
6915 applicable cases of large exponents.
6916
6917 [BZ #706]
6918 * sysdeps/i386/fpu/e_pow.S (p10): New object.
6919 (__ieee754_pow): Use iterative multiplication algorithm only for
6920 integer exponents with absolute value below 1024. Check for odd
6921 integer exponents when using algorithm for real exponents.
6922 * math/libm-test.inc (pow_test): Add more tests.
6923 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6924
69252012-04-08 Joseph Myers <joseph@codesourcery.com>
6926
6927 [BZ #13705]
6928 * math/libm-test.inc (exp_test): Do not allow overflow exception
6929 on underflow test.
6930
69312012-04-08 Aurelien Jarno <aurelien@aurel32.net>
6932
6933 [BZ #13705]
6934 * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
6935 instead of __kernel_standard_f.
6936
69372012-04-08 Mike Frysinger <vapier@gentoo.org>
6938
6939 * sysdeps/i386/i686/memset_chk.S: Update copyright year.
6940 * sysdeps/x86_64/memset_chk.S: Likewise.
6941
69422012-04-08 Andreas Jaeger <aj@suse.de>
6943
6944 [BZ #10153]
6945 * manual/startup.texi (Environment Access): Describe return value
6946 for putenv and setenv.
6947
6948 [BZ #6895]
6949 * manual/filesys.texi (Directory Entries): Add description for
6950 DT_LNK.
6951
6952 [BZ #6890]
6953 * manual/filesys.texi (Directory Entries): Clarify that it's file
6954 system not operating system in the description of DT_UNKNOWN.
6955
6956 [BZ #6578]
6957 * manual/syslog.texi (closelog): Fix reference, it's openlog.
6958
69592012-04-08 Stephen Compall <s11@member.fsf.org>
6960
6961 [BZ #6649]
6962 * manual/llio.texi (Opening and Closing Files): Add cross
6963 reference to explain mode argument.
6964
69652012-04-07 Mike Frysinger <vapier@gentoo.org>
6966
6967 * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
6968 * sysdeps/x86_64/memset_chk.S: Likewise.
6969
69702012-04-07 David S. Miller <davem@davemloft.net>
6971
6972 * elf/elf.h (R_SPARC_WDISP10): Define.
6973 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
6974 R_SPARC_SIZE32.
6975 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
6976 R_SPARC_SIZE64 and R_SPARC_H34.
6977
69782012-04-07 Carlos O'Donell <carlos_odonell@mentor.com>
6979
6980 * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
6981 conditions and remove no longer applicable assertion.
6982
69832012-04-06 H.J. Lu <hongjiu.lu@intel.com>
6984
6985 * bits/byteswap.h: Include <features.h>.
6986 (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
6987 (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
6988
69892012-04-06 H.J. Lu <hongjiu.lu@intel.com>
6990
6991 * bits/byteswap.h (__bswap_16): Removed.
6992 Include <bits/byteswap-16.h> to get __bswap_16.
6993 * sysdeps/i386/bits/byteswap.h: Likewise.
6994 * sysdeps/s390/bits/byteswap.h: Likewise.
6995 * sysdeps/x86_64/bits/byteswap.h: Likewise.
6996 * bits/byteswap-16.h: New file.
6997 * sysdeps/i386/bits/byteswap-16.h: Likewise.
6998 * sysdeps/s390/bits/byteswap-16.h: Likewise.
6999 * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
7000 * string/Makefile (headers): Add bits/byteswap-16.h.
7001
70022012-04-06 Paul Pluzhnikov <ppluzhnikov@google.com>
7003
7004 [BZ #13895]
7005 * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
7006 extra indirection.
7007 * nss/Makefile (tests-static, tests): Add tst-nss-static.
7008 * nss/tst-nss-static.c: New.
7009
70102012-04-06 Robert Millan <rmh@gnu.org>
7011
7012 [BZ #6486]
7013 * manual/llio.texi (File Position Primitive): lseek
7014 refers to WHENCE when it really means OFFSET.
7015
70162012-04-06 Andreas Jaeger <aj@suse.de>
7017
7018 * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
7019 strncmp declarations.
7020
7021 * abilist/libc.abilist: Add __poll and __ppoll.
7022
70232012-04-05 David S. Miller <davem@davemloft.net>
7024
7025 * scripts/check-local-headers.sh: Accept a host triplet in the
7026 path matched by the exclude regexp.
7027
7028 * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
7029 definition.
7030 * sysdeps/powerpc/powerpc32/dl-machine.h
7031 (ELF_MACHINE_PLTREL_OVERLAP): Delete.
7032 * sysdeps/s390/s390-32/dl-machine.h
7033 (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7034 * sysdeps/sparc/sparc32/dl-machine.h
7035 (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7036 * sysdeps/sparc/sparc64/dl-machine.h
7037 (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7038
7039 * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
7040 lazy binding.
7041 * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
7042 undefined symbol errors.
7043
7044 * elf/rtld.c (dl_main): Skip VDSO when checking for unused
7045 DT_NEEDED entries.
7046
70472012-04-05 Michael Matz <matz@suse.de>
7048
7049 [BZ #13592]
7050 * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
7051
70522012-04-05 Andreas Jaeger <aj@suse.de>
7053
7054 [BZ #13908]
7055 * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
7056 comment.
7057
70582012-04-05 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
7059
7060 * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
7061 which ROUND is no valid rounding mode.
7062
70632012-04-05 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
7064
7065 * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
7066 read again.
7067 * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
7068
70692012-04-05 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
7070
7071 * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
7072 an exception using FPU order intentionally.
7073
70742012-04-05 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
7075
7076 * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
7077 * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
7078 * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
7079 * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
7080
70812012-04-05 Simon Josefsson <simon@josefsson.org>
7082
7083 [BZ #12340]
7084 * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
7085 EINVAL when BUFLEN is too smal.
7086
70872012-04-05 Thomas Schwinge <thomas@codesourcery.com>
7088
7089 [BZ #13553]
7090 * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
7091 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7092
70932012-04-03 Andreas Jaeger <aj@suse.de>
7094
7095 [BZ #13938]
7096 * manual/setjmp.texi (System V contexts): Fix sentence.
7097
7098 [BZ #13926]
7099 * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
7100 New macro for this case.
7101 [!__GNUC__] (__bswap_64): New inline function for this case.
7102 * sysdeps/x86_64/bits/byteswap.h: Likewise.
7103 * bits/byteswap.h: Likewise.
7104 * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
7105 ull, guard with __GLIBC_HAVE_LONG_LONG.
7106
7107 * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
7108 __GLIBC_HAVE_LONG_LONG.
7109
7110 * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
7111 Include <features.h> for __GLIBC_HAVE_LONG_LONG.
7112
71132012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
7114
7115 [BZ #13691]
7116 * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
7117 inptr and inend, rather than using last_ch.
7118
71192012-04-02 David S. Miller <davem@davemloft.net>
7120
7121 With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
7122 * stdio-common/printf-parse.h (read_int): Change return type to
7123 'int', return -1 on INT_MAX overflow.
7124 * stdio-common/vfprintf.c (vfprintf): Validate width and precision
7125 against overflow of INT_MAX. Set errno to EOVERFLOW when 'done'
7126 overflows INT_MAX. Check for overflow of in-format-string precision
7127 values properly. Use EOVERFLOW rather than ERANGE throughout. Use
7128 SIZE_MAX not INT_MAX for integer overflow test.
7129 * stdio-common/printf-parsemb.c: If read_int signals an overflow,
7130 skip the construct in the format string but do not record anything.
7131 * stdio-common/bug22.c: Adjust to test both width/prevision
7132 INT_MAX overflow as well as total length INT_MAX overflow. Check
7133 explicitly for proper errno values.
7134
71352012-04-02 Thomas Schwinge <thomas@codesourcery.com>
7136
7137 * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
7138 CHAR_MAX.
7139 * string/test-strcmp.c [! WIDE]: Likewise.
7140 * time/tst-mktime2.c: Likewise for INT_MAX.
7141 * string/test-string.h: #include <sys/param.h> for MIN.
7142
7143 * csu/init-first.c (__libc_init_first): Call __ctype_init.
7144 * sysdeps/i386/init-first.c (init): Likewise.
7145 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
7146 * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
7147 * sysdeps/sh/init-first.c (init): Likewise.
7148
71492012-04-01 Ulrich Drepper <drepper@gmail.com>
7150
7151 * po/ru.po: Update from translation team.
7152 * po/vi.po: Likewise.
7153
71542012-03-31 Siddhesh Poyarekar <siddhesh@redhat.com>
7155
7156 * resolv/nss_dns/dns-host.c: Merge copyright years.
7157
71582012-03-22 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
7159
7160 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
7161 Optimize memcpy with prefetch if
7162 DATA_CACHE_SIZE_HALF <= len < SHARED_CACHE_SIZE_HALF and
7163 src, dst pointers have unequal 16 byte alignments.
7164
71652012-03-30 Siddhesh Poyarekar <siddhesh@redhat.com>
7166
7167 [BZ #13928]
7168 * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
7169 from a CNAME entry and return the minimum ttl for the query.
7170 (gaih_getanswer_slice): Likewise.
7171
71722012-03-30 Jeff Law <law@redhat.com>
7173
7174 * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
7175 due to long keys.
7176 * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
7177 * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
7178
7179 * resolv/nss_dns/dns-host.c: Update copyright year.
7180
71812012-03-30 Ulrich Drepper <drepper@gmail.com>
7182
7183 * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
7184 requests to save a system call. Fix check that all bytes are sent.
7185
7186 * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
7187 comments for sendmmsg.
7188
71892012-03-30 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
7190
7191 [BZ #13691]
7192 * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
7193 with only 1 character between 0x0041 and 0x01b0.
7194 * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
7195 * wcsmbs/tst-mbsnrtowcs.c: New file.
7196
71972012-03-29 David S. Miller <davem@davemloft.net>
7198
7199 * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
7200 small copies by hand.
7201
72022012-03-28 Siddhesh Poyarekar <siddhesh@redhat.com>
7203
7204 [BZ #13761]
7205 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
7206 _nss_compat_initgroups_dyn): Fall back to malloc/free
7207 for large group memberships.
7208
72092012-03-28 David S. Miller <davem@davemloft.net>
7210
7211 * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
7212 that branches into memcpy.
7213 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
7214 * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
7215 * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
7216 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
7217 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
7218 bits.
7219 * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
7220 implementation too.
7221 * sysdeps/sparc/mempcpy.S: New file.
7222
7223 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
7224 the IFUNC routine in the libc case.
7225 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
7226
7227 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
7228 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
7229 * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
7230 * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
7231 * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
7232 * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
7233 * sysdeps/sparc/sparc64/rtld-memset.c: New file.
7234 * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
7235
7236 * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
7237 loop to 256 bytes instead of 64 bytes and fix test signedness.
7238
7239 * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
7240 * sysdeps/sparc/sparc32/Makefile: rather than here...
7241 * sysdeps/sparc/sparc64/Makefile: and here.
7242
72432012-03-28 Ulrich Drepper <drepper@gmail.com>
7244
7245 * malloc/mallocbug.c: Avoid warnings about unused variables.
7246
72472012-02-22 Siddhesh Poyarekar <siddhesh@redhat.com>
7248
7249 [BZ #13760]
7250 * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
7251 in the right place. Discard and retry query if response is
7252 larger than input buffer size.
7253
72542012-03-28 Joseph Myers <joseph@codesourcery.com>
7255
7256 [BZ #369]
7257 [BZ #2678]
7258 [BZ #3866]
7259 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
7260 x for large integer exponent.
7261 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
7262 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise. Adjust
7263 sign of result as needed afterwards.
7264 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7265 * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
7266 result for underflowing pow the same as for overflow.
7267 (__kernel_standard_l): Handle powl overflow and underflow here
7268 rather than calling __kernel_standard.
7269 * math/libm-test.inc (pow_test): Add more tests.
7270
7271 [BZ #3868]
7272 [BZ #13879]
7273 [BZ #13910]
7274 [BZ #13911]
7275 [BZ #13912]
7276 [BZ #13913]
7277 [BZ #13915]
7278 [BZ #13916]
7279 [BZ #13917]
7280 [BZ #13918]
7281 [BZ #13919]
7282 [BZ #13920]
7283 [BZ #13921]
7284 * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
7285 * sysdeps/ieee754/k_standard.c: Include <float.h>.
7286 (__kernel_standard_l): New function.
7287 * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
7288 __kernel_standard.
7289 * math/w_acosl.c (__acosl): Likewise.
7290 * math/w_asinl.c (__asinl): Likewise.
7291 * math/w_atan2l.c (__atan2l): Likewise.
7292 * math/w_atanhl.c (__atanhl): Likewise.
7293 * math/w_coshl.c (__coshl): Likewise.
7294 * math/w_exp10l.c (__exp10l): Likewise.
7295 * math/w_exp2l.c (__exp2l): Likewise.
7296 * math/w_fmodl.c (__fmodl): Likewise.
7297 * math/w_hypotl.c (__hypotl): Likewise.
7298 * math/w_j0l.c (__j0l, __y0l): Likewise.
7299 * math/w_j1l.c (__j1l, __y1l): Likewise.
7300 * math/w_jnl.c (__jnl, __ynl): Likewise.
7301 * math/w_lgammal.c (__lgammal): Likewise.
7302 * math/w_log10l.c (__log10l): Likewise.
7303 * math/w_log2l.c (__log2l): Likewise.
7304 * math/w_logl.c (__logl): Likewise.
7305 * math/w_powl.c (__powl): Likewise.
7306 * math/w_remainderl.c (__remainderl): Likewise.
7307 * math/w_scalbl.c (sysv_scalbl): Likewise.
7308 * math/w_sinhl.c (__sinhl): Likewise.
7309 * math/w_sqrtl.c (__sqrtl): Likewise.
7310 * math/w_tgammal.c (__tgammal): Likewise.
7311 * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
7312 * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
7313 * math/libm-test.inc (acos_test): Add more tests.
7314 (acosh_test): Likewise.
7315 (asin_test): Likewise.
7316 (atanh_test): Likewise.
7317 (exp_test): Likewise.
7318 (exp10_test): Likewise.
7319 (exp2_test): Likewise.
7320 (expm1_test): Likewise.
7321 (lgamma_test): Likewise.
7322 (log_test): Likewise.
7323 (log10_test): Likewise.
7324 (log1p_test): Likewise.
7325 (log2_test): Likewise.
7326 (pow_test): Do not allow some spurious overflow exceptions.
7327 (sqrt_test): Add more tests.
7328 (tgamma_test): Likewise.
7329 (y0_test): Likewise.
7330 (y1_test): Likewise.
7331 (yn_test): Likewise.
7332
73332012-03-27 Anton Blanchard <anton@samba.org>
7334
7335 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
7336 MAP_HUGETLB.
7337 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7338 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7339 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
7340
73412012-03-27 David S. Miller <davem@davemloft.net>
7342
7343 * conform/Makefile: Run run-conformtest.sh using $(BASH).
7344
7345 * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
7346 have-as-vis3 check.
7347
73482012-03-27 Andreas Jaeger <aj@suse.de>
7349
7350 * sysdeps/x86_64/elf/configure.in: Moved to ...
7351 * sysdeps/x86_64/configure.in: ... here.
7352 * sysdeps/x86_64/elf/start.S: Moved to ...
7353 * sysdeps/x86_64/start.S: ... here.
7354 * sysdeps/x86_64/elf/configure: Delete.
7355
7356 * sysdeps/x86_64/configure.in: Merge contents from
7357 sysdeps/i386/configure.in (without i686 check).
7358
7359 * sysdeps/i386/elf/Versions: Merge into ...
7360 * sysdeps/i386/Versions: ... this.
7361 * sysdeps/i386/elf/Versions: Delete file.
7362 * sysdeps/i386/elf/start.S: Moved to ...
7363 * sysdeps/i386/start.S: ...here.
7364 * sysdeps/i386/elf/configure.in: Merge into...
7365 * sysdeps/i386/configure.in: ...here.
7366 * sysdeps/i386/elf/configure.in: Delete file.
7367 * sysdeps/i386/elf/configure: Delete file.
7368
7369 * sysdeps/generic/elf/backtracesyms.c: Moved to ...
7370 * debug/backtracesyms.c: ... here.
7371 * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
7372 * debug/backtracesymsfd.c: ... here.
7373 * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
7374 * sysdeps/generic/ifunc-sel.h: ... here.
7375
7376 * sysdeps/unix/i386/start.c: Delete file.
7377 * sysdeps/unix/sparc/start.c: Delete file.
7378 * sysdeps/unix/start.c: Delete file.
7379
7380 * sysdeps/sh/elf/configure.in: Moved to ...
7381 * sysdeps/sh/configure.in: ... here.
7382 * sysdeps/sh/elf/start.S: Moved to ...
7383 * sysdeps/sh/start.S: ... here.
7384 * sysdeps/sh/elf/configure: Delete file.
7385
7386 * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
7387 * sysdeps/powerpc/powerpc64/bzero.S: ... here.
7388 * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
7389 * sysdeps/powerpc/powerpc64/entry.h: ... here.
7390 * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
7391 * sysdeps/powerpc/powerpc64/start.S: here.
7392 * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
7393 * sysdeps/powerpc/powerpc64/Makefile: ... this.
7394 * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
7395 * sysdeps/powerpc/powerpc64/configure.in: ... this.
7396 * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
7397
7398 * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
7399 * sysdeps/powerpc/powerpc32/bzero.S: ... here.
7400 * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
7401 * sysdeps/powerpc/powerpc32/start.S: ... here.
7402 * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
7403 * sysdeps/powerpc/powerpc32/configure.in: ... this.
7404 * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
7405
7406 * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
7407 * sysdeps/powerpc/ifunc-sel.h: ... here.
7408 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
7409 * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
7410
7411 * sysdeps/sparc/elf/configure.in: Moved to ...
7412 * sysdeps/sparc/configure.in: ... here.
7413 * sysdeps/sparc/elf/configure: Delete file.
7414 * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
7415 * sysdeps/sparc/sparc32/start.S: ... here.
7416 * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
7417 * sysdeps/sparc/sparc64/start.S: ... here.
7418 * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
7419 * sysdeps/sparc/sparc32/Makefile: ... this.
7420 * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
7421 * sysdeps/sparc/sparc64/Makefile: ... this.
7422
7423 * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
7424 * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
7425 * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
7426 * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
7427 * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
7428 * sysdeps/s390/s390-32/setjmp.S: ... here.
7429 * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
7430 * sysdeps/s390/s390-32/configure.in: ... here.
7431 * sysdeps/s390/s390-32/elf/configure: Delete file.
7432 * sysdeps/s390/s390-32/elf/start.S: Moved to ...
7433 * sysdeps/s390/s390-32/start.S: ... here.
7434
7435 * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
7436 * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
7437 * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
7438 * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
7439 * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
7440 * sysdeps/s390/s390-64/setjmp.S: ... here.
7441 * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
7442 * sysdeps/s390/s390-64/configure.in: ... here
7443 * sysdeps/s390/s390-64/elf/configure: Delete file.
7444 * sysdeps/s390/s390-64/elf/start.S: Moved to ...
7445 * sysdeps/s390/s390-64/start.S: ... here.
7446 * sysdeps/s390/s390-64/elf/configure: Delete.
7447
7448 * configure.in: Remove support for elf directories in sysdeps.
7449
7450 * configure: Regenerated.
7451 * sysdeps/i386/configure: Regenerated.
7452 * sysdeps/powerpc/powerpc32/configure: Regenerated.
7453 * sysdeps/powerpc/powerpc64/configure: Regenerated.
7454 * sysdeps/s390/s390-32/configure: Regenerated.
7455 * sysdeps/s390/s390-64/configure: Regenerated.
7456 * sysdeps/sh/configure: Regenerated.
7457 * sysdeps/sparc/configure: Regenerated.
7458 * sysdeps/x86_64/configure: Regenerated.
7459
74602012-03-26 Andreas Schwab <schwab@linux-m68k.org>
7461
7462 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7463
7464 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
7465 denormal result into account.
7466
74672012-03-25 Roland McGrath <roland@hack.frob.com>
7468
7469 * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
7470 Reported by Allan McRae <allan@archlinux.org>.
7471
74722012-03-23 Jeff Law <law@redhat.com>
7473
7474 * nss/getnssent.c (__nss_getent): Fix typo.
7475
74762012-03-23 David S. Miller <davem@davemloft.net>
7477
7478 * sysdeps/sparc/fpu/libm-test-ulps: Update.
7479
74802012-03-23 H.J. Lu <hongjiu.lu@intel.com>
7481
7482 * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
7483 to pad to uint64_t for each field.
7484 (dl_tls_index): Replace unsigned long with uint64_t.
7485
74862012-03-23 Daniel Jacobowitz <dmj@google.com>
7487 Paul Pluzhnikov <ppluzhnikov@google.com>
7488
7489 [BZ #6528]
7490 * grp/Makefile (otherlibs): Don't set it.
7491 * inet/Makefile (otherlibs): Likewise.
7492 * login/Makefile (otherlibs): Likewise.
7493 * nscd/Makefile (otherlibs): Likewise.
7494 * posix/Makefile (otherlibs): Likewise.
7495 * pwd/Makefile (otherlibs): Likewise.
7496 * rt/Makefile (otherlibs): Likewise.
7497 * sunrpc/Makefile (otherlibs): Likewise.
7498 * nss/Makefile (otherlibs): Likewise.
7499 Add libnss_files to routines and static-only-routines.
7500 ($(objpfx)getent): Remove rule.
7501 * resolv/Makefile: Add libnss_dns and libresolv to routines and
7502 static-only-routines.
7503
75042012-03-22 Joseph Myers <joseph@codesourcery.com>
7505
7506 [BZ #13892]
7507 * math/s_cexp.c: Include <float.h>.
7508 (__cexp): Handle exp result overflowing not necessarily
7509 overflowing both real and imaginary parts of result.
7510 * math/s_cexpf.c: Likewise.
7511 * math/s_cexpl.c: Likewise.
7512 * math/libm-test.inc (cexp_test): Add more tests.
7513 * sysdeps/i386/fpu/libm-test-ulps: Update.
7514 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7515
75162012-03-22 H.J. Lu <hongjiu.lu@intel.com>
7517
7518 * include/link.h (ELFW): New macro.
7519 * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
7520 Replace ELF64_R_TYPE with ELFW(R_TYPE).
7521
75222012-03-22 H.J. Lu <hongjiu.lu@intel.com>
7523
7524 * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
7525 with uint64_t.
7526
75272012-03-22 H.J. Lu <hongjiu.lu@intel.com>
7528
7529 * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
7530 declaration.
7531 (struct La_x32_retval): Likewise.
7532
75332012-03-22 H.J. Lu <hongjiu.lu@intel.com>
7534
7535 * sysdeps/x86_64/preconfigure.in: New file.
7536 * sysdeps/x86_64/preconfigure: New generated file.
7537
75382012-03-22 Joseph Myers <joseph@codesourcery.com>
7539
7540 [BZ #13824]
7541 * math/e_exp2l.c: Include <float.h>.
7542 (__ieee754_exp2l): Handle overflow and underflow cases
7543 separately. Only pass fractional part of argument to
7544 __ieee754_expl.
7545 * math/libm-test.inc (exp2_test): Add more tests.
7546
7547 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
7548 negating x to take absolute value.
7549 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
7550 Likewise.
7551 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
7552 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
7553 Likewise.
7554 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
7555 computing low part if x was negated.
7556 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
7557
75582012-03-21 H.J. Lu <hongjiu.lu@intel.com>
7559
7560 * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
7561 la_x32_gnu_pltexit.
7562 (pltexit): Cast int_retval to ptrdiff_t.
7563 * elf/tst-auditmod3b.c: Likewise.
7564 * elf/tst-auditmod4b.c: Likewise.
7565 * elf/tst-auditmod5b.c: Likewise.
7566 * elf/tst-auditmod6b.c: Likewise.
7567 * elf/tst-auditmod6c.c: Likewise.
7568 * elf/tst-auditmod7b.c: Likewise.
7569
7570 * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
7571 and x32_gnu_pltexit.
7572
7573 * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
7574 __ELF_NATIVE_CLASS.
7575 (La_x32_regs): New macro.
7576 (La_x32_retval): Likewise.
7577 (la_x32_gnu_pltenter): New function prototype.
7578 (la_x32_gnu_pltexit): Likewise.
7579
75802012-03-21 Andreas Schwab <schwab@linux-m68k.org>
7581
7582 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
7583 exponent.
7584
7585 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7586
7587 * configure.in (libc_cv_cc_nofma): Check for option to disable
7588 generation of FMA instructions.
7589 * configure: Regenerate.
7590 * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
7591 * sysdeps/ieee754/dbl-64/Makefile: New file.
7592 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7593 Remove brandred-fma4.
7594 (CFLAGS-brandred-fma4.c): Remove.
7595 * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
7596 * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
7597 define.
7598 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
7599 define.
7600
76012012-03-21 H.J. Lu <hongjiu.lu@intel.com>
7602
7603 * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7604 LLONG_MAX != LONG_MAX.
7605 (_itoa_word): Use _ITOA_WORD_TYPE on value.
7606 (_fitoa_word): Likewise.
7607 * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
7608 LLONG_MAX != LONG_MAX.
7609 * stdio-common/_itowa.h: Include <_itoa.h>.
7610 (_itowa_word): Use _ITOA_WORD_TYPE on value.
7611 (_itowa): New macro. Defined only if _ITOA_NEEDED is false.
7612 * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro. Defined
7613 only if not defined.
7614 (_ITOA_WORD_TYPE): Likewise.
7615 (_itoa_word): Use _ITOA_WORD_TYPE on value.
7616 Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
7617
76182012-03-21 David S. Miller <davem@davemloft.net>
7619
7620 * sysdeps/sparc/fpu/libm-test-ulps: Update.
7621
76222012-03-21 H.J. Lu <hongjiu.lu@intel.com>
7623
7624 * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
7625 of x86_64 when setting libc_cv_slibdir, libdir and
7626 libc_cv_localedir.
7627 * sysdeps/unix/sysv/linux/configure: Regenerated.
7628
76292012-03-21 Joseph Myers <joseph@codesourcery.com>
7630
7631 * manual/lang.texi (Old Varargs): Remove section.
7632 (How Variadic): Update menu.
7633 (va_start): Do not mention varargs.h.
7634
76352012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7636 Joseph Myers <joseph@codesourcery.com>
7637
7638 * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
7639 link test.
7640 * configure: Regenerated.
7641
76422012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7643
7644 * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
7645 * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
7646 conformtest.pl
7647
76482012-03-21 Joseph Myers <joseph@codesourcery.com>
7649
7650 * NOTES: Remove.
7651 * Makefile (files-for-dist): Remove NOTES.
7652 (NOTES): Remove rule.
7653 * README: Don't refer to NOTES.
7654 * manual/creature.texi: Don't include macros.texi.
7655 * manual/intro.texi (creature.texi): Remove comment referring to
7656 NOTES.
7657
7658 * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
7659 * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
7660 * configure: Regenerated.
7661 * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
7662 LIBC_TRY_CC_OPTION.
7663 (libc_cv_as_i686): Likewise.
7664 (libc_cv_cc_avx): Likewise.
7665 (libc_cv_cc_sse2avx): Likewise.
7666 (libc_cv_cc_fma4): Likewise.
7667 (libc_cv_cc_novzeroupper): Likewise.
7668 * sysdeps/i386/configure: Regenerated.
7669
7670 [BZ #13883]
7671 * sysdeps/i386/fpu/s_cexp.S: Remove.
7672 * sysdeps/i386/fpu/s_cexpf.S: Likewise.
7673 * sysdeps/i386/fpu/s_cexpl.S: Likewise.
7674 * math/libm-test.inc (cexp_test): Add more tests.
7675 * sysdeps/i386/fpu/libm-test-ulps: Update.
7676 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7677
76782012-03-21 Allan McRae <allan@archlinux.org>
7679
7680 * timezone/Makefile: Do not install iso3166.tab and zone.tab
7681
76822012-03-21 Joseph Myers <joseph@codesourcery.com>
7683
7684 [BZ #13871]
7685 * math/w_exp2.c: Do not include <float.h>.
7686 (o_threshold, u_threshold): Remove.
7687 (__exp2): Calculate result before checking finiteness and calling
7688 __kernel_standard.
7689 * math/w_exp2f.c: Likewise.
7690 * math/w_exp2l.c: Likewise.
7691 * math/libm-test.inc (exp2_test): Require overflow exception for
7692 1e6 input.
7693
7694 [BZ #3866]
7695 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
7696 range of signed 64-bit integers before using fistpll. Remove
7697 checks for whether integers fit in mantissa bits.
7698 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
7699 the range of signed 32-bit integers before using fistpl. Remove
7700 checks for whether integers fit in mantissa bits.
7701 * sysdeps/i386/fpu/e_powl.S (p64): New object.
7702 (__ieee754_powl): Test for y outside the range of signed 64-bit
7703 integers before using fistpll. Reduce 64-bit values to 63-bit
7704 ones as needed.
7705 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
7706 divide-by-zero is raised for zero to large negative powers.
7707 * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
7708 (__ieee754_powl): Test for y outside the range of signed 64-bit
7709 integers before using fistpll. Reduce 64-bit values to 63-bit
7710 ones as needed.
7711 * math/libm-test.inc (pow_test): Add more tests.
7712
77132012-03-20 H.J. Lu <hongjiu.lu@intel.com>
7714
7715 * debug/backtracesymsfd.c: Include <_itoa.h> instead of
7716 <stdio-common/_itoa.h>.
7717 * debug/segfault.c: Likewise.
7718 * elf/dl-cache.c: Likewise.
7719 * elf/dl-minimal.c: Likewise.
7720 * elf/dl-misc.c: Likewise.
7721 * elf/dl-sysdep.c: Likewise.
7722 * elf/dl-version.c: Likewise.
7723 * elf/rtld.c: Likewise.
7724 * hurd/hurdsock.c: Likewise.
7725 * hurd/lookup-retry.c: Likewise.
7726 * malloc/malloc.c: Likewise.
7727 * malloc/mtrace.c: Likewise.
7728 * nscd/nscd_getgr_r.c: Likewise.
7729 * nscd/nscd_getpw_r.c: Likewise.
7730 * nscd/nscd_getserv_r.c: Likewise.
7731 * posix/getopt_init.c: Likewise.
7732 * posix/wordexp.c: Likewise.
7733 * stdio-common/_itoa.c: Likewise.
7734 * stdio-common/printf_fphex.c: Likewise.
7735 * stdio-common/vfprintf.c: Likewise.
7736 * string/_strerror.c: Likewise.
7737 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
7738 * sysdeps/i386/i686/hp-timing.h: Likewise.
7739 * sysdeps/mach/_strerror.c: Likewise.
7740 * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
7741 * sysdeps/mach/hurd/sethostid.c: Likewise.
7742 * sysdeps/mach/hurd/xmknodat.c: Likewise.
7743 * sysdeps/mach/xpg-strerror.c: Likewise.
7744 * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
7745 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
7746 * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
7747 * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
7748 * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
7749 * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
7750 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
7751 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
7752 * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
7753 * sysdeps/unix/sysv/linux/futimes.c: Likewise.
7754 * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
7755 * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
7756 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
7757 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
7758 * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
7759 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
7760 * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
7761 * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
7762 * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7763 * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7764 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
7765
7766 * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
7767
7768 * stdio-common/_itoa.h: Moved to ...
7769 * sysdeps/generic/_itoa.h: Here.
7770
7771 * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
7772
7773 * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
7774 instead of "_itoa.h" and "_itowa.h".
7775 * stdio-common/vfprintf.: Likewise.
7776
77772012-03-20 H.J. Lu <hongjiu.lu@intel.com>
7778
7779 * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
7780 <bits/wordsize.h>.
7781 (__signbitf): Check __x86_64__ instead of __WORDSIZE.
7782 (__signbit): Likwise.
7783 (llrintf): Likwise.
7784 (llrint): Likwise.
7785
77862012-03-20 H.J. Lu <hongjiu.lu@intel.com>
7787
7788 * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
7789 __WORDSIZE != 64.
7790
77912012-03-20 Joseph Myers <joseph@codesourcery.com>
7792
7793 * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
7794 OVERFLOW_EXCEPTION_OK.
7795 * math/libm-test.inc ("Philosophy"): Update comment about
7796 exception testing.
7797 (OVERFLOW_EXCEPTION): Define.
7798 (OVERFLOW_EXCEPTION_OK): Likewise.
7799 (INVALID_EXCEPTION_OK): Renumber.
7800 (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
7801 (IGNORE_ZERO_INF_SIGN): Likewise.
7802 (test_exceptions): Handle FE_OVERFLOW.
7803 (exp10_test): Expect overflow exceptions.
7804 (exp2_test): Likewise.
7805 (expm1_test): Likewise.
7806 (nextafter_test): Likewise.
7807 (pow_test): Likewise.
7808 (scalbn_test): Likewise.
7809 (scalbln_test): Likewise.
7810
78112012-03-19 H.J. Lu <hongjiu.lu@intel.com>
7812
7813 * sysdeps/x86_64/bits/atomic.h
7814 (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
7815 64bit integer.
7816 (atomic_exchange_acq): Likewise.
7817 (__arch_exchange_and_add_body): Likewise.
7818 (__arch_add_body): Likewise.
7819 (atomic_add_negative): Likewise.
7820 (atomic_add_zero): Likewise.
7821
78222012-03-19 H.J. Lu <hongjiu.lu@intel.com>
7823
7824 * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
7825 (fenv_t): Check __x86_64__ instead of __WORDSIZE.
7826
78272012-03-19 H.J. Lu <hongjiu.lu@intel.com>
7828
7829 * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
7830 Check __x86_64__ instead of __WORDSIZE.
7831
78322012-03-19 H.J. Lu <hongjiu.lu@intel.com>
7833
7834 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
7835
78362012-03-19 David S. Miller <davem@davemloft.net>
7837
7838 * sysdeps/sparc/fpu/libm-test-ulps: Update.
7839
7840 * sysdeps/sparc/fpu/fenv_private.h: New file.
7841 * sysdeps/sparc/fpu/math_private.h: Use it.
7842 (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
7843 Remove.
7844 (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
7845 (libc_feholdexcept_setroundl): Remove.
7846 (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
7847 Remove.
7848 (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
7849 (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
7850
78512012-03-19 H.J. Lu <hongjiu.lu@intel.com>
7852
7853 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
7854 int64_t instead of long int.
7855 (INSERT_WORDS64): Likwise.
7856
78572012-03-19 H.J. Lu <hongjiu.lu@intel.com>
7858
7859 * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
7860 _Unwind_GetCFA return to _Unwind_Ptr first.
7861
78622012-03-19 Joseph Myers <joseph@codesourcery.com>
7863
7864 [BZ #13629]
7865 * math/s_clog.c: Include <float.h>.
7866 (__clog): Scale large or subnormal inputs.
7867 * math/s_clogf.c: Likewise.
7868 * math/s_clogl.c: Likewise.
7869 * math/s_clog10.c: Include <float.h>.
7870 (M_LOG10_2): Define.
7871 (__clog10): Scale large or subnormal inputs.
7872 * math/s_clog10f.c: Likewise.
7873 * math/s_clog10l.c: Likewise.
7874 * math/libm-test.inc (clog_test): Add more tests.
7875 (clog10_test): Likewise.
7876 * sysdeps/i386/fpu/libm-test-ulps: Update.
7877 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7878
7879 [BZ #11451]
7880 * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
7881 x and y.
7882 * math/libm-test.inc (atan2_test): Add another test.
7883
7884 * Makerules (common-objdir-compile): Remove.
7885 * sysdeps/unix/Makefile (config-generated): Do not add
7886 $(unix-generated) to variable.
7887 [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
7888 [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
7889 Remove rule.
7890 [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
7891 Likewise.
7892 [generic bits/local_lim.h] (before-compile): Do not append to
7893 variable.
7894 [generic bits/local_lim.h] (common-generated): Likewise.
7895 [generic sys/param.h] (before-compile): Do not append to variable.
7896 [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
7897 [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
7898 [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
7899 [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
7900 include.
7901 [generic sys/param.h] (sys/param.h-includes): Remove variable.
7902 [generic sys/param.h] (sys/param.h-includes): Remove rule.
7903 [generic sys/param.h] ($(addprefix
7904 $(common-objpfx),$(sys/param.h-includes))): Likewise.
7905 [generic sys/param.h] (common-generated): Do not append to
7906 variable.
7907 [generic sys/param.h] (sysdep_headers): Likewise.
7908 [generic bits/errno.h] (before-compile): Do not append to
7909 variable.
7910 [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
7911 rule.
7912 [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
7913 [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
7914 [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
7915 [generic bits/errno.h] (common-generated): Do not append to
7916 variable.
7917 [generic bits/ioctls.h] (before-compile): Do not append to
7918 variable.
7919 [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
7920 rule.
7921 [generic bits/ioctls.h] (ioctl-includes): Remove variable.
7922 [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
7923 [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
7924 rule.
7925 [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
7926 [generic bits/ioctls.h] (bits_termios.h): Remove variable.
7927 [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
7928 [generic bits/ioctls.h] (common-generated): Do not append to
7929 variable.
7930 [generic sys/syscall.h] (syscall.h): Remove variable.
7931 [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
7932 rule.
7933 [generic sys/syscall.h] (before-compile): Do not append to
7934 variable.
7935 [generic sys/syscall.h] (common-generated): Likewise.
7936 * sysdeps/unix/errnos-tmpl.c: Remove file.
7937 * sysdeps/unix/errnos.awk: Likewise.
7938 * sysdeps/unix/ioctls-tmpl.c: Likewise.
7939 * sysdeps/unix/ioctls.awk: Likewise.
7940 * sysdeps/unix/mk-local_lim.c: Likewise.
7941 * sysdeps/unix/snarf-ioctls: Likewise.
7942
79432012-03-19 Richard Henderson <rth@twiddle.net>
7944
7945 * sysdeps/i386/fpu/fenv_private.h: New file.
7946 * sysdeps/i386/fpu/math_private.h: Use it.
7947 (math_opt_barrier, math_force_eval): Remove.
7948 (libc_feholdexcept_setround_53bit): Remove.
7949 (libc_feupdateenv_53bit): Remove.
7950 * sysdeps/x86_64/fpu/math_private.h: Likewise.
7951 (math_opt_barrier, math_force_eval): Remove.
7952 (libc_feholdexcept): Remove.
7953 (libc_feholdexcept_setround): Remove.
7954 (libc_fetestexcept, libc_fesetenv): Remove.
7955 (libc_feupdateenv_test): Remove.
7956 (libc_feupdateenv, libc_feholdsetround): Remove.
7957 (libc_feresetround): Remove.
7958
7959 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
7960 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
7961
7962 * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
7963 (libc_feupdateenv_test, libc_feupdateenv_testf): New.
7964 (libc_feupdateenv_testl): New.
7965 * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
7966 (libc_feupdateenv_testf): New.
7967 (libc_feupdateenv): Use libc_feupdateenv_test.
7968 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
7969 * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
7970
7971 * sysdeps/generic/math_private.h (libc_feholdsetround): New.
7972 (libc_feholdsetroundf, libc_feholdsetroundl): New.
7973 (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
7974 (libc_feresetround_noex): New.
7975 (libc_feresetround_noexf): New.
7976 (libc_feresetround_noexl): New.
7977 (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
7978 (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
7979 (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
7980 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
7981 SET_RESTORE_ROUND.
7982 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
7983 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
7984 (__cos): Likewise.
7985 * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
7986 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
7987 SET_RESTORE_ROUND_NOEX.
7988 * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
7989 SET_RESTORE_ROUND_NOEXF.
7990 * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
7991 * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
7992 (libc_feholdsetroundf): New.
7993 (libc_feresetround, libc_feresetroundf): New.
7994
7995 * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
7996 (libc_feholdexcept_setround_53bit): Convert from macro to function.
7997 (libc_feupdateenv_53bit): Likewise. Don't force _FPU_EXTENDED.
7998
7999 * sysdeps/generic/math_private.h: Include <fenv.h>.
8000 (default_libc_feholdexcept): New.
8001 (default_libc_feholdexcept_setround): New.
8002 (default_libc_fesetenv, default_libc_feupdateenv): New.
8003 (libc_feholdexcept): Only define if undefined.
8004 (libc_feholdexceptf, libc_feholdexceptl): Likewise.
8005 (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
8006 (libc_feholdexcept_setroundl): Likewise.
8007 (libc_feholdexcept_setround_53bit): Likewise.
8008 (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
8009 (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
8010 (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
8011 (libc_feupdateenv_53bit): Likewise.
8012 * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
8013 (libc_feholdexcept): Convert from macro to inline function.
8014 (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
8015 (libc_fesetenv, libc_feupdateenv): Likewise.
8016
8017 * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
8018 not previously defined.
8019 (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
8020 (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
8021 (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
8022 * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
8023 * sysdeps/ieee754/flt-32/math_private.h: New file.
8024 * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
8025 math_private.h below SET_FLOAT_WORD.
8026 (__isnan, __isinf_ns, __finite): Remove.
8027 (__isnanf, __isinf_nsf, __finitef): Remove.
8028
80292012-03-18 Andreas Schwab <schwab@linux-m68k.org>
8030
8031 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8032
80332012-03-17 David S. Miller <davem@davemloft.net>
8034
8035 [BZ #6471]
8036 * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
8037 for 2.16.
8038
80392012-03-16 David S. Miller <davem@davemloft.net>
8040
8041 * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
8042 warnings.
8043
8044 [BZ #6471]
8045 * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
8046 properly.
8047 * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
8048 * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
8049 sysdep_routines when subdir is sysvipc.
8050 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
8051 __getshmlba helper.
8052
8053 * sysdeps/sparc/fpu/libm-test/ulps: Update.
8054
80552012-03-16 H.J. Lu <hongjiu.lu@intel.com>
8056
8057 * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
8058 [__LP64__].
8059
80602012-03-16 H.J. Lu <hongjiu.lu@intel.com>
8061
8062 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
8063 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
8064 (__lround): Renamed to ...
8065 (__llround): This. Replace long int with long long int.
8066 Define lround functions as aliases of llround functions.
8067 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
8068
80692012-03-16 H.J. Lu <hongjiu.lu@intel.com>
8070
8071 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
8072 Use greg_t on sp. Use unsigned int on idx_uc_link. Cast
8073 adresses to uintptr_t. Replace "long int" and "unsigned long
8074 int" with "greg_t" on va_arg.
8075
80762012-03-16 H.J. Lu <hongjiu.lu@intel.com>
8077
8078 * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
8079 * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
8080
8081 * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
8082 Move e_machine check before EI_CLASS check. Handle x32
8083 libraries. Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
8084 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
8085 SKIP_EM_IA_64 and include
8086 <sysdeps/unix/sysv/linux/i386/readelflib.c>.
8087
8088 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
8089 Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
8090 (add_system_dir): New macro.
8091
8092 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
8093 (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
8094
80952012-03-16 Joseph Myers <joseph@codesourcery.com>
8096
8097 [BZ #2551]
8098 [BZ #2552]
8099 [BZ #2553]
8100 [BZ #2554]
8101 [BZ #2562]
8102 [BZ #2563]
8103 [BZ #2565]
8104 [BZ #2566]
8105 [BZ #2576]
8106 * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
8107 (y0): Likewise.
8108 * math/w_j0f.c (j0f): Likewise.
8109 (y0f): Likewise.
8110 * math/w_j0l.c (__j0l): Likewise.
8111 (__y0l): Likewise.
8112 * math/w_j1.c (j1): Likewise.
8113 (y1): Likewise.
8114 * math/w_j1f.c (j1f): Likewise.
8115 (y1f): Likewise.
8116 * math/w_j1l.c (__j1l): Likewise.
8117 (__y1l): Likewise.
8118 * math/w_jn.c (jn): Likewise.
8119 (yn): Likewise.
8120 * math/w_jnf.c (jnf): Likewise.
8121 (ynf): Likewise.
8122 * math/w_jnl.c (__jnl): Likewise.
8123 (__ynl): Likewise.
8124 * math/libm-test.inc (j0_test): Add more tests.
8125 (j1_test): Likewise.
8126 (jn_test): Likewise. Add trailing semicolon to existing test.
8127 (y0_test): Likewise.
8128 (y1_test): Likewise.
8129 * sysdeps/i386/fpu/libm-test-ulps: Update.
8130 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8131
8132 [BZ #13851]
8133 [BZ #13854]
8134 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
8135 libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
8136 * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
8137 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
8138 (__tanl): Set errno for infinite argument.
8139 * sysdeps/i386/fpu/mptan.c: Remove.
8140 * sysdeps/i386/fpu/s_tan.S: Likewise.
8141 * sysdeps/i386/fpu/s_tanl.S: Likewise.
8142 * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
8143 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
8144 * math/libm-test.inc (tan_test): Add more tests and enable more
8145 tests for double and long double.
8146 * sysdeps/i386/fpu/libm-test-ulps: Update.
8147 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8148
81492012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8150
8151 * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
8152 (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
8153
81542012-03-16 Roland McGrath <roland@hack.frob.com>
8155
8156 * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
8157 * configure.in: Use it for both main tree and add-ons.
8158 * configure: Regenerated.
8159
81602012-03-16 H.J. Lu <hongjiu.lu@intel.com>
8161
8162 * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
8163
81642012-03-16 Joseph Myers <joseph@codesourcery.com>
8165
8166 * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
8167 in comment.
8168
8169 [BZ #13851]
8170 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
8171 * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
8172 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
8173 * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
8174 * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
8175 infinite argument.
8176 * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
8177 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
8178 != 0 for prec == 2.
8179 * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
8180 * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
8181 * sysdeps/i386/fpu/s_cosl.S: Likewise.
8182 * sysdeps/i386/fpu/s_sincosl.S: Likewise.
8183 * sysdeps/i386/fpu/s_sinl.S: Likewise.
8184 * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
8185 * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
8186 * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
8187 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
8188 * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
8189 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
8190 * math/libm-test.inc (cos_test): Add more tests and enable more
8191 tests for long double.
8192 (sin_test): Likewise.
8193 (sincos_test): Likewise.
8194 * sysdeps/i386/fpu/libm-test-ulps: Update.
8195 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8196
81972012-03-16 David S. Miller <davem@davemloft.net>
8198
8199 * sysdeps/sparc/fpu/math_private.h: New file.
8200
82012012-03-15 David S. Miller <davem@davemloft.net>
8202
8203 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
8204 file.
8205 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
8206 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
8207 file.
8208 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
8209 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
8210 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
8211 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
8212 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
8213 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
8214 sysdep routines.
8215 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
8216
8217 * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
8218 * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
8219
8220 * sysdeps/sparc/sparc-ifunc.h: New file.
8221 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
8222 sparc-ifunc.h
8223 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
8224 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
8225 Likewise.
8226 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
8227 Likewise.
8228 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
8229 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
8230 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8231 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
8232 Likewise.
8233 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8234 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
8235 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8236 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
8237 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
8238 Likewise.
8239 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
8240 Likewise.
8241 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8242 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
8243 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
8244 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
8245 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
8246 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
8247 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
8248 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
8249 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
8250 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
8251 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
8252 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
8253 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
8254 * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
8255 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
8256 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
8257 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
8258 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
8259 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
8260 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
8261 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
8262 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
8263 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
8264 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
8265
82662012-03-15 Andreas Schwab <schwab@linux-m68k.org>
8267
8268 * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
8269 scaling.
8270 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8271
82722012-03-15 Andreas Jaeger <aj@suse.de>
8273
8274 [BZ #13852]
8275 * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
8276 ieee754/flt-32 implementation for sin, cos and sincos.
8277 * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
8278 * sysdeps/i386/fpu/s_cosf.S: Likewise.
8279 * sysdeps/i386/fpu/s_sincosf.S: Likewise.
8280 * sysdeps/i386/fpu/s_sinf.S: Likewise.
8281 * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
8282 ieee754/flt-32 implementation for tan.
8283
8284 * math/libm-test.inc (cos_test): Enable some large input tests for
8285 float as well
8286 (sin_test): Likewise.
8287 (sincos_test): Likewise.
8288 (tan_test): Add tests for large input.
8289
8290 * sysdeps/i386/fpu/libm-test-ulps: Update.
8291
82922012-03-15 Andreas Jaeger <aj@suse.de>
8293
8294 [BZ #13658]
8295 * math/libm-test.inc (cos_test): Add more test cases.
8296 (sin_test): Likewise.
8297 (sincos_test): Likewise.
8298
82992012-03-15 Andreas Jaeger <aj@suse.de>
8300
8301 [BZ #13837]
8302 * math/libm-test.inc (cos_test): Add a test case for large input
8303 value.
8304 (sin_test): Likewise.
8305 (sincos_test): Likewise.
8306
83072012-03-15 Andreas Jaeger <aj@suse.de>,
8308 Joseph Myers <joseph@codesourcery.com>
8309
8310 [BZ #13658]
8311 * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
8312 x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
8313 * sysdeps/i386/fpu/branred.c: Likewise.
8314 * sysdeps/i386/fpu/dosincos.c: Likewise.
8315 * sysdeps/i386/fpu/mpa.c: Likewise.
8316 * sysdeps/i386/fpu/s_cos.S: Likewise.
8317 * sysdeps/i386/fpu/s_sin.S: Likewise.
8318 * sysdeps/i386/fpu/s_sincos.S: Likewise.
8319 * sysdeps/i386/fpu/sincos32.c: Likewise.
8320
8321 * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
8322 Define.
8323 (libc_feupdateenv_53bit): Define.
8324 * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
8325 Define.
8326 (libc_feupdateenv_53bit): Define.
8327
8328 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
8329 53 bit (without extend i386 double precision).
8330
8331 * math/libm-test.inc (sincos_test): Add tests for large input.
8332 (sin): Likewise.
8333 (cos): Likewise.
8334
8335 * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
8336
83372012-03-15 Andreas Schwab <schwab@linux-m68k.org>
8338
8339 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8340
83412012-03-15 David S. Miller <davem@davemloft.net>
8342
8343 * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
8344 * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
8345 * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
8346 * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
8347 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
8348 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
8349 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
8350 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
8351 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
8352 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
8353 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
8354 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
8355 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
8356 * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
8357 * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
8358 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
8359 file.
8360 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
8361 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
8362 file.
8363 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
8364 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
8365 file.
8366 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
8367 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
8368 file.
8369 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
8370 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
8371 fmin/fmax sysdep routines.
8372 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
8373
83742012-03-14 David S. Miller <davem@davemloft.net>
8375
8376 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
8377 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
8378 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
8379 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
8380 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
8381 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
8382 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
8383 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
8384 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
8385 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
8386 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
8387 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
8388 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
8389 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
8390 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
8391 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
8392 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
8393 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
8394 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
8395 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
8396 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
8397 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
8398 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
8399 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
8400 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
8401 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
8402 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
8403 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
8404 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
8405 routines.
8406 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
8407 file.
8408 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
8409 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
8410 file.
8411 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
8412 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
8413 file.
8414 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
8415 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
8416 file.
8417 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
8418 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
8419 file.
8420 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
8421 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
8422 file.
8423 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
8424 file.
8425 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
8426 file.
8427 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
8428 file.
8429 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
8430 New file.
8431 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
8432 file.
8433 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
8434 file.
8435 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
8436 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
8437 file.
8438 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
8439 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
8440 file.
8441 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
8442 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
8443 file.
8444 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
8445 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
8446 VIS3 routines.
8447
8448 * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
8449 New file.
8450
8451 * sysdeps/sparc/fpu/libm-test-ulps: Update.
8452
8453 * sysdeps/sparc/configure.in: New file.
8454 * sysdeps/sparc/configure: Generate.
8455 * configure.in (libc_cv_sparc_as_vis3): Substitute.
8456 * configure: Regenerate.
8457 * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
8458 * config.make.in (have-as-vis3): New.
8459 * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
8460 available use -Av9d instead of -Av9a.
8461 * sysdeps/sparc/sparc64/Makefile: Likewise.
8462 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
8463 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
8464 New file.
8465 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
8466 file.
8467 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
8468 New file.
8469 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
8470 file.
8471 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
8472 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
8473 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
8474 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
8475 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
8476
8477 * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
8478 fzeros/fnegs to load 0x80000000 into a float register instead of
8479 using the stack.
8480 * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
8481
84822012-03-14 Joseph Myers <joseph@codesourcery.com>
8483
8484 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8485 bits/syscall.h.
8486 ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
8487 ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
8488 ($(inst_includedir)/bits/syscall.h): Remove rule.
8489 ($(objpfx)bits/syscall.d): Include instead of
8490 $(objpfx)syscall-list.d.
8491 (generated): Change syscall-list.h and syscall-list.d to
8492 bits/syscall.h and bits/syscall.d.
8493
84942012-03-14 Roland McGrath <roland@hack.frob.com>
8495
8496 [BZ #13846]
8497 * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
8498
84992012-03-14 Joseph Myers <joseph@codesourcery.com>
8500
8501 [BZ #13841]
8502 * math/s_csqrt.c: Include <float.h>.
8503 (__csqrt): Scale large or subnormal inputs.
8504 * math/s_csqrtf.c: Likewise.
8505 * math/s_csqrtl.c: Likewise.
8506 * math/libm-test.inc (csqrt_test): Add more tests.
8507 * sysdeps/i386/fpu/libm-test-ulps: Update.
8508 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8509
8510 [BZ #13840]
8511 * math/libm-test.inc (hypot_test): Add more tests.
8512
85132012-03-13 David S. Miller <davem@davemloft.net>
8514
8515 [BZ #13840]
8516 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
8517 double-precision for the calculation instead of scaling.
8518
85192012-03-13 Joseph Myers <joseph@codesourcery.com>
8520
8521 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
8522 manipulate bits before adding and subtracting TWO52[sx].
8523 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
8524 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8525 Likewise.
8526 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
8527
85282012-03-13 David S. Miller <davem@davemloft.net>
8529
8530 * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
8531 * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
8532 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
8533 rtld-global-offsets.h
8534 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8535
8536 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
8537 large parameters.
8538
8539 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
8540
8541 * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
8542 'err' in the ifdef scope in which it is actually used.
8543
8544 * nss/nss_db/db-init.c: Include string.h
8545
85462012-03-12 David S. Miller <davem@davemloft.net>
8547
8548 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
8549 masking out of the most significant byte of random value used.
8550 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
8551 Fix coding style in previous change.
8552
8553 * sysdeps/unix/sysv/linux/kernel-features.h
8554 (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
8555 (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
8556 expression.
8557 (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
8558 later.
8559
85602012-03-11 David S. Miller <davem@davemloft.net>
8561
8562 * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
8563 (__makecontext): Fix signedness of pointer casts setting up 'sp'.
8564 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
8565 for 'resultvar' otherwise things get truncated on 64-bit.
8566
8567 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
8568 Fix masking out of the most significant byte of random value used.
8569
8570 * sysdeps/sparc/fpu/libm-test-ulps: Update.
8571
85722012-03-10 Andreas Schwab <schwab@linux-m68k.org>
8573
8574 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8575
85762012-03-09 David S. Miller <davem@davemloft.net>
8577
8578 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
8579 variables with appropriate CPP guards.
8580 * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
8581 frame pointer, not the stack pointer. Correct layout comments. Fix test
8582 on resulting framesize and the management of the outregs buffer for pltexit.
8583 Preserve floating point return values across _dl_call_pltexit call.
8584 * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
8585 framesize and the management of the outregs buffer for pltexit.
8586 Preserve floating point return values across _dl_call_pltexit
8587 call.
8588 * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
8589 la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
8590 (print_exit): Fix format string for return register value.
8591
85922012-03-10 Joseph Myers <joseph@codesourcery.com>
8593
8594 * sunrpc/Makefile (others): Add rpcgen.
8595 ($(objpfx)rpcgen): Remove special build rule and dependency on
8596 libc.
8597 * sunrpc/rpcgen.c: New file.
8598
85992012-03-09 Paul Eggert <eggert@cs.ucla.edu>
8600
8601 [BZ #13673]
8602 * posix/bug-regex33.c: Replace FSF snail mail address with URL.
8603 * stdio-common/bug-vfprintf-nargs.c: Likewise.
8604 * sysdeps/i386/crti.S: Likewise.
8605 * sysdeps/i386/crtn.S: Likewise.
8606 * sysdeps/powerpc/powerpc32/crti.S: Likewise.
8607 * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
8608 * sysdeps/powerpc/powerpc64/crti.S: Likewise.
8609 * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
8610 * sysdeps/sh/crti.S: Likewise.
8611 * sysdeps/sh/crtn.S: Likewise.
8612 * sysdeps/x86_64/fpu/e_expf.S: Likewise.
8613
8614 [BZ #13673]
8615 * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
8616 with URL.
8617 * locale/programs/locfile-kw.gperf: Likewise.
8618 * locale/programs/charmap-kw.h: Regenerated.
8619 * locale/programs/locfile-kw.h: Likewise.
8620
8621 [BZ #13673]
8622 * intl/plural.y: Replace FSF snail mail address with URL.
8623 * intl/plural.c: Regenerated.
8624
86252012-03-09 Richard Henderson <rth@twiddle.net>
8626
8627 * include/math_private.h: Remove file.
8628 * math/math_private.h: Move file ...
8629 * sysdeps/generic/math_private.h: ... here.
8630
8631 * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
8632 * sysdeps/powerpc/fpu/math_private.h: Likewise.
8633 * sysdeps/x86_64/fpu/math_private.h: Likewise.
8634
8635 * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
8636 and <math_private.h>.
8637 * sysdeps/i386/fpu/s_isinfl.c: Likewise.
8638 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
8639 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
8640 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
8641 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
8642 * sysdeps/ieee754/dbl-64/branred.c: Likewise.
8643 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
8644 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8645 * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
8646 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
8647 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8648 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8649 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
8650 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8651 * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
8652 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
8653 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
8654 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
8655 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
8656 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
8657 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8658 * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
8659 * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
8660 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8661 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
8662 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
8663 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
8664 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
8665 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8666 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
8667 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
8668 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8669 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8670 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
8671 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8672 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
8673 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
8674 * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
8675 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
8676 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8677 * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
8678 * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
8679 * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
8680 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
8681 * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
8682 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
8683 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
8684 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
8685 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
8686 * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
8687 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
8688 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
8689 * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
8690 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
8691 * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
8692 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
8693 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8694 * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
8695 * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
8696 * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
8697 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
8698 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
8699 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8700 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
8701 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
8702 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
8703 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
8704 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
8705 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
8706 * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
8707 * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
8708 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
8709 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
8710 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8711 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
8712 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
8713 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
8714 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
8715 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
8716 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
8717 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
8718 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
8719 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
8720 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
8721 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8722 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
8723 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
8724 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
8725 * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
8726 * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
8727 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
8728 * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
8729 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8730 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
8731 * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
8732 * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
8733 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
8734 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8735 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8736 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8737 * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
8738 * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
8739 * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
8740 * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
8741 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8742 * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
8743 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
8744 * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
8745 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8746 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8747 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8748 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
8749 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
8750 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
8751 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8752 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
8753 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8754 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
8755 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
8756 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
8757 * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
8758 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
8759 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
8760 * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
8761 * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
8762 * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
8763 * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
8764 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
8765 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
8766 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
8767 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
8768 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
8769 * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
8770 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
8771 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
8772 * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
8773 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
8774 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
8775 * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
8776 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
8777 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8778 * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
8779 * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
8780 * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
8781 * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
8782 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
8783 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
8784 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
8785 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
8786 * sysdeps/ieee754/k_standard.c: Likewise.
8787 * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
8788 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
8789 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8790 * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
8791 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
8792 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
8793 * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
8794 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
8795 * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
8796 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8797 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8798 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
8799 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
8800 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
8801 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
8802 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
8803 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
8804 * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
8805 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
8806 * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
8807 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
8808 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
8809 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
8810 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
8811 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
8812 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
8813 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
8814 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8815 * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
8816 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
8817 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
8818 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
8819 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
8820 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
8821 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
8822 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
8823 * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
8824 * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
8825 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
8826 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
8827 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
8828 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
8829 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
8830 * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
8831 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
8832 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
8833 * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
8834 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8835 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
8836 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
8837 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
8838 * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
8839 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
8840 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8841 * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
8842 * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
8843 * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
8844 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
8845 * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
8846 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
8847 * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
8848 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8849 * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
8850 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
8851 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
8852 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
8853 * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
8854 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
8855 * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
8856 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
8857 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
8858 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8859 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
8860 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
8861 * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
8862 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
8863 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
8864 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
8865 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
8866 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
8867 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
8868 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
8869 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
8870 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
8871 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
8872 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8873 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
8874 * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
8875 * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
8876 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
8877 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
8878 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
8879 * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
8880 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
8881 * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
8882 * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
8883 * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
8884 * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
8885 * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
8886 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
8887 * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
8888 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
8889 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
8890 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
8891 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
8892 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
8893 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
8894 * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
8895 * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
8896 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
8897 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
8898 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
8899 * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
8900 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
8901 * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
8902 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
8903 * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
8904 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
8905 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
8906 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
8907 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8908 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8909 * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
8910 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
8911 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
8912 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
8913 * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
8914 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8915 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
8916 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
8917 * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
8918 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
8919 * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
8920 * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
8921 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
8922 * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
8923 * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
8924 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
8925 * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
8926 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
8927 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
8928 * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
8929 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
8930 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
8931 * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
8932 * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
8933 * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
8934 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
8935 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
8936 * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
8937 * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
8938 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8939 * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
8940 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
8941 * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
8942 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
8943 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
8944 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
8945 * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
8946 * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
8947 * sysdeps/ieee754/s_lib_version.c: Likewise.
8948 * sysdeps/ieee754/s_matherr.c: Likewise.
8949 * sysdeps/ieee754/s_signgam.c: Likewise.
8950 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
8951 * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
8952 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
8953 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8954 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
8955 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8956 * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
8957 * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
8958 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
8959 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
8960 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
8961 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8962 * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
8963 * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
8964 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
8965 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
8966 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
8967 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
8968 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
8969 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
8970 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
8971
89722012-03-09 Joseph Myers <joseph@codesourcery.com>
8973
8974 * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
8975 * sunrpc/rpc_main.c: Likewise.
8976 * sunrpc/rpc_svcout.c: Likewise.
8977
89782012-03-09 David S. Miller <davem@davemloft.net>
8979
8980 * include/math_private.h: New file.
8981
89822012-03-09 Joseph Myers <joseph@codesourcery.com>
8983
8984 * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
8985 * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
8986 * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
8987 from <bits/socket_type.h>.
8988 (enum __socket_type): Don't define here.
8989 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
8990 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8991 bits/socket_type.h.
8992
8993 [BZ #13566]
8994 * libio/stdio.h (gets): Always declare for C++ up to C++11 without
8995 checking __USE_GNU.
8996
8997 * Makerules ($(inst_includedir)/%.h): New rule.
8998 * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
8999 (install-others): Remove variable setting.
9000 ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
9001
90022012-03-08 Richard Henderson <rth@twiddle.net>
9003
9004 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
9005 from macro to inline function; merge with the
9006 !__LIBC_INTERNAL_MATH_INLINES version.
9007 (__ieee754_sqrtf): Likewise.
9008
9009 * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
9010 to inline function.
9011 (__rintf, __floor, __floorf): Likewise.
9012
9013 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
9014 macro to inline function.
9015 (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
9016
9017 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
9018 not <math/math_private.h>.
9019
90202012-03-08 David S. Miller <davem@davemloft.net>
9021
9022 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
9023 copyright year.
9024 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
9025
90262012-03-08 Thomas Schwinge <thomas@codesourcery.com>
9027
9028 * resolv/gai_misc.c (handle_requests): Fix struct timespec
9029 normalization.
9030 * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
9031 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
9032
90332012-03-08 Ulrich Drepper <drepper@gmail.com>
9034
9035 * stdio-common/tst-fphex.c: Various cleanups. The macros cannot
9036 be defined individually, they must be defined as a block. Define
9037 S for printing a string instead of hidint the different by using a
9038 macro for adding the 'l'.
9039 * stdio-common/tst-fphex-wide.c: Adjust.
9040
90412012-03-07 Marek Polacek <polacek@redhat.com>
9042
9043 * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
9044
90452012-03-08 Marek Polacek <polacek@redhat.com>
9046
9047 [BZ #13806]
9048 * stdio-common/Makefile (tests): Add tst-fphex-wide.
9049 * stdio-common/tst-fphex.c: Define a few macros to make the
9050 test reusable. Use them.
9051 * stdio-common/tst-fphex-wide.c: New file.
9052
90532012-03-08 Joseph Myers <joseph@codesourcery.com>
9054
9055 [BZ #6911]
9056 * manual/macros.texi (gnusystems): New macro.
9057 (nongnusystems): Likewise.
9058 (gnulinuxhurdsystems): Likewise.
9059 (gnuhurdsystems): Likewise..
9060 (gnulinuxsystems): Likewise.
9061 * manual/charset.texi: Use new macros or @theglibc{} to refer to
9062 variants of the GNU system, not "GNU system".
9063 * manual/conf.texi: Likewise.
9064 * manual/errno.texi: Likewise. Update example of errno macro
9065 expansion.
9066 * manual/filesys.texi: Likewise.
9067 (getumask): Document as specific to GNU/Hurd.
9068 * manual/install.texi: Likewise. Reword some references to
9069 GNU/Linux.
9070 * manual/intro.texi: Likewise.
9071 * manual/io.texi: Likewise.
9072 (File Name Portability): Detail which constraints are inapplicable
9073 to all GNU systems and which are only inapplicable to GNU/Hurd.
9074 * manual/job.texi: Likewise.
9075 * manual/llio.texi: Likewise.
9076 (O_NOCTTY): Document as present on GNU/Linux.
9077 * manual/maint.texi: Likewise.
9078 * manual/memory.texi: Likewise.
9079 * manual/pattern.texi: Likewise.
9080 * manual/pipe.texi: Likewise.
9081 * manual/process.texi: Likewise.
9082 * manual/resource.texi: Likewise.
9083 (RUSAGE_CHILDREN): Remove statement about specifying a particular
9084 child on GNU/Hurd.
9085 * manual/setjmp.texi: Likewise.
9086 * manual/signal.texi: Likewise.
9087 * manual/startup.texi: Likewise.
9088 * manual/stdio.texi: Likewise.
9089 * manual/terminal.texi: Likewise.
9090 (ONLCR): Document as POSIX.
9091 (OXTABS): Document availability on GNU/Linux as XTABS.
9092 (ONOEOT): Document availability separately from other bits.
9093 (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
9094 * manual/time.texi: Likewise.
9095 * manual/users.texi: Likewise.
9096 * INSTALL: Regenerated.
9097 * sysdeps/gnu/errlist.c: Regenerated.
9098
9099 * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
9100 * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
9101 (libc_cv_ctors_header): Likewise. Use asm ("") instead of calling
9102 puts.
9103 * configure: Regenerated.
9104
91052012-03-07 Joseph Myers <joseph@codesourcery.com>
9106
9107 * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
9108 default includes instead of AC_HEADER_CHECK.
9109 * sysdeps/i386/configure: Regenerated.
9110
9111 [BZ #10716]
9112 * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
9113 * math/s_cacoshf.c (__cacoshf): Likewise.
9114 * math/s_cacoshl.c (__cacoshl): Likewise.
9115 * math/s_casinh.c (__casinh): Set signs of result from argument.
9116 * math/s_casinhf.c (__casinhf): Likewise.
9117 * math/s_casinhl.c (__casinhl): Likewise.
9118 * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
9119 (casinh_test): Add more tests.
9120 * sysdeps/i386/fpu/libm-test-ulps: Update.
9121 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9122
91232012-03-07 Ulrich Drepper <drepper@gmail.com>
9124
9125 * po/zh_TW.po: Update from translation team.
9126
9127 * login/Makefile (distribute): Remove variable.
9128 * catgets/Makefile: Likewise.
9129 * mach/Makefile: Likewise.
9130 * malloc/Makefile: Likewise.
9131 * misc/Makefile: Likewise.
9132 * iconv/Makefile: Likewise.
9133 * nscd/Makefile: Likewise.
9134 * hurd/Makefile: Likewise.
9135 * manual/Makefile: Likewise.
9136 * locale/Makefile: Likewise.
9137 * intl/Makefile: Likewise.
9138 * conform/Makefile: Likewise.
9139 * nss/Makefile: Likewise.
9140 * time/Makefile: Likewise.
9141 * soft-fp/Makefile: Likewise.
9142 * dirent/Makefile: Likewise.
9143 * gmon/Makefile: Likewise.
9144 * po/Makefile: Likewise.
9145 * rt/Makefile: Likewise.
9146 * socket/Makefile: Likewise.
9147 * math/Makefile: Likewise.
9148 * signal/Makefile: Likewise.
9149 * debug/Makefile: Likewise.
9150 * elf/Makefile: Likewise.
9151 * timezone/Makefile: Likewise.
9152 * stdlib/Makefile: Likewise.
9153 * iconvdata/Makefile: Likewise.
9154 * sunrpc/Makefile: Likewise.
9155 * io/Makefile: Likewise.
9156 * argp/Makefile: Likewise.
9157 * inet/Makefile: Likewise.
9158 * hesiod/Makefile: Likewise.
9159 * grp/Makefile: Likewise.
9160 * csu/Makefile: Likewise.
9161 * wctype/Makefile: Likewise.
9162 * crypt/Makefile: Likewise.
9163 * libio/Makefile: Likewise.
9164 * string/Makefile: Likewise.
9165 * nis/Makefile: Likewise.
9166 * resolv/Makefile: Likewise.
9167 * stdio-common/Makefile: Likewise.
9168 * wcsmbs/Makefile: Likewise.
9169 * dlfcn/Makefile: Likewise.
9170 * posix/Makefile: Likewise.
9171
9172 [BZ #6959]
9173 * timezone/Makefile: Don't install timezone files, just the programs
9174 and scripts.
9175
91762012-03-06 Ulrich Drepper <drepper@gmail.com>
9177
9178 * nss/databases.def: Add missing gshadow entry.
9179
9180 * stdio-common/vfprintf.c: Fix formatting. Missing copyright update.
9181
91822012-03-06 Marek Polacek <polacek@redhat.com>
9183
9184 [BZ #13726]
9185 * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
9186 * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
9187 * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
9188 * stdio-common/tst-long-dbl-fphex.c: New file.
9189
91902012-03-06 David S. Miller <davem@davemloft.net>
9191
9192 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9193 (set_obp_int): New function.
9194 (get_obp_int): New function.
9195 (__get_clockfreq_via_dev_openprom): Likewise.
9196 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
9197 Avoid unused variable warnings on 'val' and use builtin_expect.
9198 (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
9199 __builtin_expect.
9200 (INLINE_CLONE_SYSCALL): Likewise.
9201
92022012-03-05 David S. Miller <davem@davemloft.net>
9203
9204 * sysdeps/sparc/fpu/libm-test-ulps: Update.
9205
92062012-03-05 Andreas Schwab <schwab@linux-m68k.org>
9207
9208 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9209
9210 * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
9211 only for |x| >= 40.
9212 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9213
92142012-03-05 H.J. Lu <hongjiu.lu@intel.com>
9215
9216 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
9217 Replace gettimeofday with __vdso_gettimeofday.
9218
9219 * sysdeps/unix/sysv/linux/x86_64/init-first.c
9220 (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
9221 __vdso_clock_gettime and __vdso_getcpu.
9222
9223 * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
9224 time with __vdso_time.
9225
92262012-03-05 Joseph Myers <joseph@codesourcery.com>
9227
9228 * manual/lang.texi (size_t): Note types to which size_t may be
9229 equivalent with the GNU C Library, but do not describe when
9230 differences between them are significant.
9231
92322012-03-05 Andreas Jaeger <aj@suse.de>
9233
9234 * sysdeps/i386/fpu/libm-test-ulps: Update.
9235
92362012-03-05 Joseph Myers <joseph@codesourcery.com>
9237
9238 [BZ #3976]
9239 * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
9240 (__ieee754_pow): Save and restore rounding mode and use
9241 round-to-nearest for main computations.
9242 * math/libm-test.inc (pow_test_tonearest): New function.
9243 (pow_test_towardzero): Likewise.
9244 (pow_test_downward): Likewise.
9245 (pow_test_upward): Likewise.
9246 (main): Call the new functions.
9247 * sysdeps/i386/fpu/libm-test-ulps: Update.
9248 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9249
9250 [BZ #3976]
9251 * math/libm-test.inc (cosh_test_tonearest): New function.
9252 (cosh_test_towardzero): Likewise.
9253 (cosh_test_downward): Likewise.
9254 (cosh_test_upward): Likewise.
9255 (sinh_test_tonearest): Likewise.
9256 (sinh_test_towardzero): Likewise.
9257 (sinh_test_downward): Likewise.
9258 (sinh_test_upward): Likewise.
9259 (main): Call the new functions.
9260 * sysdeps/i386/fpu/libm-test-ulps: Update.
9261 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9262
92632012-03-05 Tom de Vries <tom@codesourcery.com>
9264
9265 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
9266 default stack guard is set in last bytes.
9267 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
9268
92692012-03-05 Kees Cook <keescook@chromium.org>
9270
9271 * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
9272
9273 [BZ #13656]
9274 * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
9275 possibly allocate from heap instead of stack.
9276 * stdio-common/bug-vfprintf-nargs.c: New file.
9277 * stdio-common/Makefile (tests): Add nargs overflow test.
9278
92792012-03-03 Andreas Schwab <schwab@linux-m68k.org>
9280
9281 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9282
92832012-03-03 Marek Polacek <polacek@redhat.com>
9284
9285 * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
9286 * math/math_private.h: Likewise.
9287 * stdlib/tst-strtod.c: Likewise.
9288 * sysdeps/i386/i486/bits/atomic.h: Likewise.
9289 * sysdeps/x86_64/bits/atomic.h: Likewise.
9290
92912012-03-02 David S. Miller <davem@davemloft.net>
9292
9293 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
9294 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
9295 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
9296 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
9297 * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
9298 * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
9299 * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
9300 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
9301
93022012-03-02 Roland McGrath <roland@hack.frob.com>
9303
9304 [BZ #13792]
9305 * manual/examples/README: New file, says the example source files
9306 can be used under GPL>=2.
9307 * manual/Makefile (%.c.texi): Eat the leading part of the file until a
9308 line containing just "*/".
9309 * manual/examples/add.c: Add copyright header (GPL>=2).
9310 * manual/examples/argp-ex1.c: Likewise.
9311 * manual/examples/argp-ex2.c: Likewise.
9312 * manual/examples/argp-ex3.c: Likewise.
9313 * manual/examples/argp-ex4.c: Likewise.
9314 * manual/examples/atexit.c: Likewise.
9315 * manual/examples/db.c: Likewise.
9316 * manual/examples/dir.c: Likewise.
9317 * manual/examples/dir2.c: Likewise.
9318 * manual/examples/execinfo.c: Likewise.
9319 * manual/examples/filecli.c: Likewise.
9320 * manual/examples/filesrv.c: Likewise.
9321 * manual/examples/fmtmsgexpl.c: Likewise.
9322 * manual/examples/genpass.c: Likewise.
9323 * manual/examples/inetcli.c: Likewise.
9324 * manual/examples/inetsrv.c: Likewise.
9325 * manual/examples/isockad.c: Likewise.
9326 * manual/examples/longopt.c: Likewise.
9327 * manual/examples/memopen.c: Likewise.
9328 * manual/examples/memstrm.c: Likewise.
9329 * manual/examples/mkfsock.c: Likewise.
9330 * manual/examples/mkisock.c: Likewise.
9331 * manual/examples/mygetpass.c: Likewise.
9332 * manual/examples/pipe.c: Likewise.
9333 * manual/examples/popen.c: Likewise.
9334 * manual/examples/rprintf.c: Likewise.
9335 * manual/examples/search.c: Likewise.
9336 * manual/examples/select.c: Likewise.
9337 * manual/examples/setjmp.c: Likewise.
9338 * manual/examples/sigh1.c: Likewise.
9339 * manual/examples/sigusr.c: Likewise.
9340 * manual/examples/stpcpy.c: Likewise.
9341 * manual/examples/strdupa.c: Likewise.
9342 * manual/examples/strftim.c: Likewise.
9343 * manual/examples/strncat.c: Likewise.
9344 * manual/examples/subopt.c: Likewise.
9345 * manual/examples/swapcontext.c: Likewise.
9346 * manual/examples/termios.c: Likewise.
9347 * manual/examples/testopt.c: Likewise.
9348 * manual/examples/testpass.c: Likewise.
9349 * manual/examples/timeval_subtract.c: Likewise.
9350
9351 [BZ #13792]
9352 * manual/time.texi (Elapsed Time): Move timeval_subtract example
9353 function to ...
9354 * manual/timeval_subtract.c.texi: ... here, new file.
9355
93562012-03-02 David S. Miller <davem@davemloft.net>
9357
9358 * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
9359
93602012-03-02 Joseph Myers <joseph@codesourcery.com>
9361
9362 [BZ #3976]
9363 * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
9364 (__sin): Save and restore rounding mode and use round-to-nearest
9365 for all computations.
9366 (__cos): Save and restore rounding mode and use round-to-nearest
9367 for all computations.
9368 * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
9369 <fenv.h>.
9370 (tan): Save and restore rounding mode and use round-to-nearest for
9371 all computations.
9372 * math/libm-test.inc (cos_test_tonearest): New function.
9373 (cos_test_towardzero): Likewise.
9374 (cos_test_downward): Likewise.
9375 (cos_test_upward): Likewise.
9376 (sin_test_tonearest): Likewise.
9377 (sin_test_towardzero): Likewise.
9378 (sin_test_downward): Likewise.
9379 (sin_test_upward): Likewise.
9380 (tan_test_tonearest): Likewise.
9381 (tan_test_towardzero): Likewise.
9382 (tan_test_downward): Likewise.
9383 (tan_test_upward): Likewise.
9384 (main): Call the new functions.
9385 * sysdeps/i386/fpu/libm-test-ulps: Update.
9386 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9387
9388 [BZ #10135]
9389 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
9390 small n, then large n, before computing and testing k+n.
9391 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
9392 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
9393 Likewise.
9394 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
9395 Likewise.
9396 * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
9397 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
9398 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
9399 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
9400 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
9401 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
9402 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
9403 * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
9404 * math/libm-test.inc (scalbn_test): Add more tests.
9405 (scalbln_test): Likewise.
9406
9407 * manual/filesys.texi (mode_t): Describe constraints on size and
9408 signedness, not exact equivalence to a particular type.
9409 (ino_t): Likewise.
9410 (ino64_t): Likewise.
9411 (dev_t): Likewise.
9412 (nlink_t): Likewise.
9413 (blkcnt_t): Likewise.
9414 (blkcnt64_t): Likewise.
9415 * manual/llio.texi (off_t): Likewise.
9416
9417 [BZ #3976]
9418 * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
9419 (__ieee754_exp): Save and restore rounding mode and use
9420 round-to-nearest for all computations.
9421 * math/libm-test.inc (exp_test_tonearest): New function.
9422 (exp_test_towardzero): Likewise.
9423 (exp_test_downward): Likewise.
9424 (exp_test_upward): Likewise.
9425 (main): Call the new functions.
9426 * sysdeps/i386/fpu/libm-test-ulps: Update.
9427 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9428
94292012-03-01 Chris Demetriou <cgd@google.com>
9430
9431 * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
9432 have predictable order.
9433
94342012-03-01 David S. Miller <davem@davemloft.net>
9435
9436 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
9437
9438 * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
9439 * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
9440 * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
9441 * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
9442
9443 * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
9444 * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
9445 * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
9446 * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
9447 * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
9448 * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
9449 * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
9450 * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
9451 * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
9452
9453 * sysdeps/sparc/fpu/libm-test-ulps: Update.
9454
9455 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
9456 * sysdeps/sparc/fpu/libm-test-ulps: to here.
9457 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
9458
9459 * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
9460 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9461 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
9462 * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
9463 * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
9464 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
9465 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
9466 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9467 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
9468 * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
9469 * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
9470 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
9471 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
9472 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
9473 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
9474 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9475 * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
9476 * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
9477 * sysdeps/sparc/elf/configure: Regenerated.
9478
94792012-03-01 Joseph Myers <joseph@codesourcery.com>
9480
9481 * configure.in (AS, LD): Require binutils 2.20 or later.
9482 * configure: Regenerated.
9483 * manual/install.texi (Tools for Compilation): Give binutils 2.20
9484 as required minimum version.
9485 * INSTALL: Regenerated.
9486
9487 [BZ #2541]
9488 [BZ #4108]
9489 * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
9490 before squaring exponent.
9491 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
9492 bottom long double and 27 bits of top long double before squaring
9493 exponent.
9494 * math/libm-test.inc (erfc_test): Add more tests.
9495 * sysdeps/i386/fpu/libm-test-ulps: Update.
9496 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
9497 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9498
94992012-03-01 Kai Tietz <ktietz@redhat.com>
9500
9501 * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
9502 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
9503 containing bit-fields.
9504 * soft-fp/extended.h (_FP_UNION_E): Likewise.
9505 * soft-fp/single.h (_FP_UNION_S): Likewise.
9506 * soft-fp/double.h (_FP_UNION_D): Likewise.
9507
95082012-02-29 Joseph Myers <joseph@codesourcery.com>
9509
9510 [BZ #13786]
9511 * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
9512 not include ../strcmp.S.
9513 [USE_AS_STRNCASECMP_L]: Likewise.
9514 * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
9515 (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
9516 * sysdeps/i386/i686/multiarch/strncase_l-c.c
9517 (__strncasecmp_l_ia32): Define as alias to
9518 __strncasecmp_l_nonascii.
9519
9520 [BZ #5794]
9521 * math/libm-test.inc (expm1_test): Add test for bug 5794.
9522 * sysdeps/i386/fpu/libm-test-ulps: Update.
9523 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9524
9525 * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
9526 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9527
95282012-02-29 Jeff Law <law@redhat.com>
9529
9530 * resolv/res_query.c (__libc_res_nquerydomain): Avoid
9531 out of bounds read.
9532
95332012-02-29 Marek Polacek <polacek@redhat.com>
9534
9535 [BZ #13706]
9536 * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
9537 * elf/Makefile: Add rules to run tst-unused-dep.out.
9538
95392012-02-28 David S. Miller <davem@davemloft.net>
9540
9541 * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
9542 * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
9543 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
9544 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
9545 * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
9546 * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
9547
95482012-02-29 Joseph Myers <joseph@codesourcery.com>
9549
9550 * math/libm-test.inc (llround_test): Move one test from
9551 lround_test. Use TEST_f_L in moved test.
9552 (lround_test): Move misplaced test to llround_test. Add testcase
9553 from bug 2561.
9554
95552012-02-28 Ulrich Drepper <drepper@gmail.com>
9556
9557 * sysdeps/x86_64/fpu/e_expf.S: New file.
9558 Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
9559
95602012-02-28 Stanislav Brabec <sbrabec@suse.cz>
9561
9562 [BZ #13637]
9563 * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
9564 of remain_len that may cause incomplete multi-byte character and
9565 false match.
9566 * posix/bug-regex33.c: New file.
9567 * posix/Makefile (tests): Add bug-regex33.
9568
95692012-02-28 Joseph Myers <joseph@codesourcery.com>
9570
9571 * manual/macros.texi: New file.
9572 * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
9573 * manual/libc.texinfo: Include macros.texi.
9574 * manual/creatute.texi: Likewise.
9575 * manual/install.texi: Likewise.
9576 * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
9577 @glibcadj{} in references to the GNU C Library.
9578 * manual/charset.texi: Likewise.
9579 * manual/conf.texi: Likewise.
9580 * manual/contrib.texi: Likewise. Consistently use "GNU C Library"
9581 when not using those macros.
9582 * manual/creature.texi: Likewise.
9583 * manual/crypt.texi: Likewise.
9584 * manual/errno.texi: Likewise.
9585 * manual/filesys.texi: Likewise.
9586 * manual/header.texi: Likewise.
9587 * manual/install.texi: Likewise.
9588 * manual/intro.texi: Likewise.
9589 * manual/io.texi: Likewise.
9590 * manual/job.texi: Likewise.
9591 * manual/lang.texi: Likewise.
9592 * manual/libc.texiinfo: Likewise.
9593 * manual/llio.texi: Likewise.
9594 * manual/locale.texi: Likewise.
9595 * manual/maint.texi: Likewise.
9596 * manual/math.texi: Likewise.
9597 * manual/memory.texi: Likewise.
9598 * manual/message.texi: Likewise.
9599 * manual/nss.texi: Likewise.
9600 * manual/pattern.texi: Likewise.
9601 * manual/process.texi: Likewise.
9602 * manual/resource.texi: Likewise.
9603 * manual/search.texi: Likewise.
9604 * manual/setjmp.texi: Likewise.
9605 * manual/signal.texi: Likewise.
9606 * manual/socket.texi: Likewise.
9607 * manual/startup.texi: Likewise.
9608 * manual/stdio.texi: Likewise.
9609 * manual/string.texi: Likewise.
9610 * manual/sysinfo.texi: Likewise.
9611 * manual/syslog.texi: Likewise.
9612 * manual/terminal.texi: Likewise.
9613 * manual/time.texi: Likewise.
9614 * manual/users.texi: Likewise.
9615 * INSTALL: Regenerated.
9616 * NOTES: Regenerated.
9617 * sysdeps/gnu/errlist.c: Regenerated.
9618
96192012-02-28 Andreas Schwab <schwab@linux-m68k.org>
9620
9621 * include/dirent.h: Include <dirstream.h> before
9622 <dirent/dirent.h>.
9623
96242012-02-28 David S. Miller <davem@davemloft.net>
9625
9626 * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
9627 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
9628 * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
9629 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
9630
96312012-02-27 David S. Miller <davem@davemloft.net>
9632
9633 * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
9634 * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
9635 * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
9636 * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
9637
9638 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
9639 frame pointer instead of stack pointer relative arg slot.
9640 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
9641 * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
9642 * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
9643
96442012-02-27 Carlos O'Donell <carlos_odonell@mentor.com>
9645
9646 [BZ #3992]
9647 * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
9648
96492012-02-27 David S. Miller <davem@davemloft.net>
9650
9651 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
9652 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
9653 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9654 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
9655 * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
9656 * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
9657 * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
9658 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
9659
96602012-02-27 Joseph Myers <joseph@codesourcery.com>
9661
9662 * configure.in (CC): Restrict allowed GCC versions to 4.3 and
9663 later. Allow versions 5-9.
9664 * configure: Regenerated.
9665 * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
9666 required minimum version and 4.6 as recommended version. Do not
9667 mention bugs in GCC 2.7 and 2.8.
9668 * INSTALL: Regenerated.
9669
96702012-02-27 David S. Miller <davem@davemloft.net>
9671
9672 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
9673 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
9674 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
9675 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
9676 * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
9677 * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
9678 * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
9679 * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
9680
9681 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
9682 manipulate bits before adding and subtracting TWO112[sx].
9683 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
9684
96852012-02-27 Roland McGrath <roland@hack.frob.com>
9686
9687 [BZ #13775]
9688 * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
9689 [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
9690 * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
9691 being in POSIX, because they are in 1003.1-2008.
9692
9693 * rt/tst-aio.c: Include <fcntl.h>.
9694 * rt/tst-aio7.c: Likewise.
9695 * rt/tst-aio64.c: Likewise.
9696
9697 * stdio-common/tst-fmemopen.c (main): Remove spurious const.
9698
96992012-02-27 Joseph Myers <joseph@codesourcery.com>
9700
9701 * manual/install.texi (--with-headers): Describe headers as
9702 interface headers, not private headers.
9703 (Specific advice for GNU/Linux systems): Describe use of headers
9704 from "make headers_install", not private headers from older
9705 kernels.
9706 * INSTALL: Regenerated.
9707 * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
9708 Change to 2.6.19.
9709 * sysdeps/unix/sysv/linux/configure: Regenerated.
9710
9711 * manual/llio.texi (fclean): Remove documentation.
9712
9713 * manual/Makefile (libc-texi-generated): New variable. Include
9714 version.texi.
9715 (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
9716 $(libc-texi-generated), not duplicated list of files.
9717 (version.texi, stamp-version): New rules.
9718 (realclean): Remove $(libc-texi-generated), not individual files
9719 from that list. Do not remove dir-add.texinfo.
9720 * manual/libc.texinfo: Comment out uses of edition numbers and
9721 references to printed manual. Remove last-updated dates.
9722 (EDITION): Comment out.
9723 (ISBN): Likewise.
9724 (VERSION, UPDATED): Remove.
9725 (version.texi): Include.
9726
97272012-02-27 Andreas Schwab <schwab@linux-m68k.org>
9728
9729 * sysdeps/posix/spawni.c: Include <signal.h>.
9730 * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
9731 * sysdeps/pthread/aio_fsync.c: Likewise.
9732
97332012-02-26 Ulrich Drepper <drepper@gmail.com>
9734
9735 * conform/Makefile (tests): Run only when not cross-compiling and
9736 when fast-check is not defined.
9737
9738 * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
9739 * conform/data/limits.h-data: Fixes for POSIX2008.
9740 * conform/run-conformtest.sh: Run all tests.
9741 * include/arpa/inet.h: Changes to allow conformtest.pl to use the
9742 headers.
9743 * include/bits/dlfcn.h: Likewise.
9744 * include/langinfo.h: Likewise.
9745 * include/monetary.h: Likewise.
9746 * include/sys/poll.h: Likewise.
9747
9748 * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
9749 for __USE_GNU.
9750 * posix/spawn.h: Define __need_sigset_t.
9751 * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
9752 * posix/unistd.h: Declare ctermid only for XPG before XPG6.
9753 * rt/aio.h: Don't include fcntl.h and signal.h. Use bits/siginfo.h
9754 to get sigevent_t only.
9755 * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
9756 only for __USE_GNU.
9757 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9758 * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
9759 process_vm_writev only for __USE_GNU.
9760 * termios/termios.h: Declare tcgetsid also for POSIX2008.
9761
9762 * conform/Makefile: For now ignore errors from run-conformtest.
9763 * conform/conformtest.pl: Simplify code. Add -ansi to CFLAGS for
9764 POSIX to avoid namespace pollution. Don't prepend headers.
9765 * conform/data/aio.h-data: Fixes for POSIX testing.
9766 * conform/data/fcntl.h-data: Likewise.
9767 * conform/data/glob.h-data: Likewise.
9768 * conform/data/grp.h-data: Likewise.
9769 * conform/data/pthread.h-data: Likewise.
9770 * conform/data/pwd.h-data: Likewise.
9771 * conform/data/signal.h-data: Likewise.
9772 * conform/data/spawn.h-data: Likewise.
9773 * conform/data/stdio.h-data: Likewise.
9774 * conform/data/stdlib.h-data: Likewise.
9775 * conform/data/stropts.h-data: Likewise.
9776 * conform/data/sys/mman.h-data: Likewise.
9777 * conform/data/sys/stat.h-data: Likewise.
9778 * conform/data/sys/types.h-data: Likewise.
9779 * conform/data/sys/wait.h-data: Likewise.
9780 * conform/data/time.h-data: Likewise.
9781 * conform/data/unistd.h-data: Likewise.
9782 * conform/data/utime.h-data: Likewise.
9783
9784 * io/sys/stat.h: fchmod was always in POSIX.
9785 * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
9786 * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
9787 * rt/aio.h: Define __need_timespec before including <time.h>.
9788 * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
9789 struct. Add forward declaration of pthread_attr_t and use it in
9790 sigevent.
9791 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9792 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9793 * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
9794 always remove CLK_TCK definition.
9795
97962012-02-26 Andreas Schwab <schwab@linux-m68k.org>
9797
9798 * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
9799
98002012-02-25 Ulrich Drepper <drepper@gmail.com>
9801
9802 * conform/run-conformtest.sh: New file.
9803 * conform/Makefile: Run run-conformtest for tests.
9804 * conform/conformtest.pl: Many bug fixes. Add ISO C99, ISO C11
9805 support.
9806
9807 * conform/data/uchar.h-data: New file.
9808 * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
9809 * conform/data/arpa/inet.h-data: Likewise.
9810 * conform/data/assert.h-data: Likewise.
9811 * conform/data/complex.h-data: Likewise.
9812 * conform/data/cpio.h-data: Likewise.
9813 * conform/data/ctype.h-data: Likewise.
9814 * conform/data/dirent.h-data: Likewise.
9815 * conform/data/dlfcn.h-data: Likewise.
9816 * conform/data/errno.h-data: Likewise.
9817 * conform/data/fcntl.h-data: Likewise.
9818 * conform/data/float.h-data: Likewise.
9819 * conform/data/fmtmsg.h-data: Likewise.
9820 * conform/data/fnmatch.h-data: Likewise.
9821 * conform/data/ftw.h-data: Likewise.
9822 * conform/data/glob.h-data: Likewise.
9823 * conform/data/grp.h-data: Likewise.
9824 * conform/data/iconv.h-data: Likewise.
9825 * conform/data/inttypes.h-data: Likewise.
9826 * conform/data/langinfo.h-data: Likewise.
9827 * conform/data/libgen.h-data: Likewise.
9828 * conform/data/limits.h-data: Likewise.
9829 * conform/data/locale.h-data: Likewise.
9830 * conform/data/math.h-data: Likewise.
9831 * conform/data/monetary.h-data: Likewise.
9832 * conform/data/mqueue.h-data: Likewise.
9833 * conform/data/ndbm.h-data: Likewise.
9834 * conform/data/net/if.h-data: Likewise.
9835 * conform/data/netdb.h-data: Likewise.
9836 * conform/data/netinet/in.h-data: Likewise.
9837 * conform/data/nl_types.h-data: Likewise.
9838 * conform/data/poll.h-data: Likewise.
9839 * conform/data/pthread.h-data: Likewise.
9840 * conform/data/pwd.h-data: Likewise.
9841 * conform/data/regex.h-data: Likewise.
9842 * conform/data/sched.h-data: Likewise.
9843 * conform/data/search.h-data: Likewise.
9844 * conform/data/semaphore.h-data: Likewise.
9845 * conform/data/setjmp.h-data: Likewise.
9846 * conform/data/signal.h-data: Likewise.
9847 * conform/data/spawn.h-data: Likewise.
9848 * conform/data/stdarg.h-data: Likewise.
9849 * conform/data/stdio.h-data: Likewise.
9850 * conform/data/stdlib.h-data: Likewise.
9851 * conform/data/string.h-data: Likewise.
9852 * conform/data/strings.h-data: Likewise.
9853 * conform/data/stropts.h-data: Likewise.
9854 * conform/data/sys/ipc.h-data: Likewise.
9855 * conform/data/sys/mman.h-data: Likewise.
9856 * conform/data/sys/msg.h-data: Likewise.
9857 * conform/data/sys/resource.h-data: Likewise.
9858 * conform/data/sys/select.h-data: Likewise.
9859 * conform/data/sys/sem.h-data: Likewise.
9860 * conform/data/sys/shm.h-data: Likewise.
9861 * conform/data/sys/socket.h-data: Likewise.
9862 * conform/data/sys/stat.h-data: Likewise.
9863 * conform/data/sys/statvfs.h-data: Likewise.
9864 * conform/data/sys/time.h-data: Likewise.
9865 * conform/data/sys/timeb.h-data: Likewise.
9866 * conform/data/sys/times.h-data: Likewise.
9867 * conform/data/sys/types.h-data: Likewise.
9868 * conform/data/sys/uio.h-data: Likewise.
9869 * conform/data/sys/un.h-data: Likewise.
9870 * conform/data/sys/utsname.h-data: Likewise.
9871 * conform/data/sys/wait.h-data: Likewise.
9872 * conform/data/syslog.h-data: Likewise.
9873 * conform/data/tar.h-data: Likewise.
9874 * conform/data/termios.h-data: Likewise.
9875 * conform/data/utime.h-data: Likewise.
9876 * conform/data/utmpx.h-data: Likewise.
9877 * conform/data/varargs.h-data: Likewise.
9878 * conform/data/wchar.h-data: Likewise.
9879 * conform/data/wctype.h-data: Likewise.
9880 * conform/data/wordexp.h-data: Likewise.
9881
9882 * include/stropts.h: New file.
9883 * include/uchar.h: New file.
9884 * include/aio.h: Changes to allow conformtest.pl to use the headers.
9885 * include/assert.h: Likewise.
9886 * include/ctype.h: Likewise.
9887 * include/dirent.h: Likewise.
9888 * include/dlfcn.h: Likewise.
9889 * include/fcntl.h: Likewise.
9890 * include/fnmatch.h: Likewise.
9891 * include/glob.h: Likewise.
9892 * include/grp.h: Likewise.
9893 * include/libio.h: Likewise.
9894 * include/locale.h: Likewise.
9895 * include/math.h: Likewise.
9896 * include/net/if.h: Likewise.
9897 * include/netdb.h: Likewise.
9898 * include/netinet/in.h: Likewise.
9899 * include/pthread.h: Likewise.
9900 * include/pwd.h: Likewise.
9901 * include/regex.h: Likewise.
9902 * include/sched.h: Likewise.
9903 * include/search.h: Likewise.
9904 * include/setjmp.h: Likewise.
9905 * include/signal.h: Likewise.
9906 * include/stdio.h: Likewise.
9907 * include/stdlib.h: Likewise.
9908 * include/string.h: Likewise.
9909 * include/sys/cdefs.h: Likewise.
9910 * include/sys/mman.h: Likewise.
9911 * include/sys/msg.h: Likewise.
9912 * include/sys/resource.h: Likewise.
9913 * include/sys/select.h: Likewise.
9914 * include/sys/socket.h: Likewise.
9915 * include/sys/stat.h: Likewise.
9916 * include/sys/statvfs.h: Likewise.
9917 * include/sys/time.h: Likewise.
9918 * include/sys/times.h: Likewise.
9919 * include/sys/uio.h: Likewise.
9920 * include/sys/utsname.h: Likewise.
9921 * include/sys/wait.h: Likewise.
9922 * include/termios.h: Likewise.
9923 * include/time.h: Likewise.
9924 * include/ulimit.h: Likewise.
9925 * include/unistd.h: Likewise.
9926 * include/utime.h: Likewise.
9927 * include/wchar.h: Likewise.
9928 * include/wctype.h: Likewise.
9929 * include/wordexp.h: Likewise.
9930
9931 * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
9932
9933 * time/time.h: TIME_UTC must be a macro.
9934 Make timespec_get available for ISO C11 only as well.
9935
99362012-02-24 Ulrich Drepper <drepper@gmail.com>
9937
9938 * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
9939 Reported by Peng Haitao <penght@cn.fujitsu.com>.
9940
99412012-02-24 Joseph Myers <joseph@codesourcery.com>
9942
9943 * configure.in: Use -o not -a in test for unsupported multi-arch.
9944
99452012-02-24 Joseph Myers <joseph@codesourcery.com>
9946
9947 * manual/texinfo.tex: Update to version 2012-01-19.16.
9948
99492012-02-24 Joseph Myers <joseph@codesourcery.com>
9950
9951 * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
9952
99532012-02-24 Roland McGrath <roland@hack.frob.com>
9954
9955 [BZ #13738]
9956 * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
9957 * manual/fdl-1.3.texi: New file.
9958 * manual/fdl-1.1.texi: File removed.
9959
9960 [BZ #13738]
9961 * manual/libc.texinfo (FDL_VERSION): New @set.
9962 Use it for mention of FDL in cover text.
9963 (Documentation License): Use it in @include file name.
9964
99652012-02-22 Joseph Myers <joseph@codesourcery.com>
9966 Roland McGrath <roland@hack.frob.com>
9967
9968 [BZ #5461]
9969 * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
9970 not LONG_LONG_MAX and LONG_LONG_MIN.
9971 * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
9972 LLONG_MIN. Refer to LONG_LONG_MIN only as older GCC-specific
9973 name.
9974 (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
9975
99762012-02-22 Joseph Myers <joseph@codesourcery.com>
9977
9978 [BZ #2547]
9979 [BZ #11365]
9980 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
9981 manipulate bits before adding and subtracting TWO23[sx].
9982 * math/libm-test.inc (nearbyint_test): Add more tests.
9983
99842012-02-22 Joseph Myers <joseph@codesourcery.com>
9985
9986 [BZ #2548]
9987 * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
9988 bits before adding and subtracting TWO23[sx].
9989 * math/libm-test.inc (rint_test): Add more tests.
9990 (rint_test_tonearest): Likewise.
9991 (rint_test_towardzero): Likewise.
9992 (rint_test_downward): Likewise.
9993 (rint_test_upward: Likewise.
9994
99952012-02-22 Joseph Myers <joseph@codesourcery.com>
9996
9997 [BZ #10110]
9998 * include/stdc-predef.h: New file. Extracted from features.h.
9999 * include/features.h: Include stdc-predef.h.
10000 * Makefile (headers): Add stdc-predef.h.
10001 * CONFORMANCE (Compiler limitations): Update.
10002
100032012-02-22 Joseph Myers <joseph@codesourcery.com>
10004
10005 * manual/libc.texinfo (VERSION, UPDATED): Revert.
10006
100072012-02-21 David S. Miller <davem@davemloft.net>
10008
10009 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
10010 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
10011
100122012-02-20 David S. Miller <davem@davemloft.net>
10013
10014 * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
10015 using a normal save/restore sequence, rather than allocating a
10016 dummy stack frame just to store a frame pointer and restore.
10017 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10018
100192012-02-21 Joseph Myers <joseph@codesourcery.com>
10020
10021 * manual/install.texi: Fix stray word in line-wrapped comment.
10022
100232012-02-20 David S. Miller <davem@davemloft.net>
10024
10025 * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
10026 both binutils and gcc support GOTDATA.
10027
10028 * sysdeps/unix/sparc/sysdep.h: Document why we don't use
10029 "rd %pc" in the PIC register setup sequences.
10030
10031 * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
10032 * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
10033 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10034 * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
10035 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10036 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10037 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10038 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10039 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
10040 (SYSCALL_ERROR_HANDLER): Likewise.
10041 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10042 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10043 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
10044 (SYSCALL_ERROR_HANDLER): Likewise.
10045
10046 * config.h.in (HAVE_BINUTILS_GOTDATA): New.
10047 (HAVE_GCC_GOTDATA): New.
10048 * sysdeps/sparc/elf/configure.in: Test for GOTDATA
10049 relocation support in both binutils and gcc.
10050 * sysdeps/sparc/elf/configure: Regenerate.
10051
10052 * sysdeps/sparc/sparc32/elf/configure.in: Delete.
10053 * sysdeps/sparc/sparc32/elf/configure: Delete.
10054 * sysdeps/sparc/sparc64/elf/configure.in: Delete.
10055 * sysdeps/sparc/sparc64/elf/configure: Delete.
10056 * sysdeps/sparc/elf/configure.in: New file.
10057 * sysdeps/sparc/elf/configure: Generate.
10058
10059 * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
10060 * sysdeps/sparc/sparc32/elf/configure: Regenerate.
10061 * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
10062 * sysdeps/sparc/sparc64/elf/configure: Regenerate.
10063 * config.h.in (BROKEN_SPARC_WDISP22): Remove.
10064
100652012-02-21 Joseph Myers <joseph@codesourcery.com>
10066
10067 * manual/install.texi: Do not mention specific glibc version
10068 numbers.
10069 * manual/libc.texinfo (VERSION, UPDATED): Update.
10070 (@copying): Use @copyright{} and range of years.
10071
100722012-02-21 Joseph Myers <joseph@codesourcery.com>
10073
10074 [BZ #13695]
10075 * csu/Makefile (distribute): Remove initfini.c and defs.awk.
10076 [crti.S not in sysdirs] (generated): Do not append.
10077 [crti.S not in sysdirs] (omit-deps): Likewise.
10078 [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
10079 [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
10080 [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
10081 [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
10082 [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
10083 Likewise.
10084 [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
10085 [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
10086 [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
10087 * csu/defs.awk: Remove file.
10088 * sysdeps/generic/initfini.c: Likewise.
10089 * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
10090 variable.
10091 * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
10092 Likewise.
10093
100942012-02-20 Joseph Myers <joseph@codesourcery.com>
10095
10096 * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
10097 * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
10098 * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
10099 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
10100 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
10101 * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
10102 <bits/epoll.h>.
10103 (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
10104 (__EPOLL_PACKED): Define to empty if not defined by
10105 <bits/epoll.h>.
10106 (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
10107 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10108 bits/epoll.h.
10109
101102012-02-20 Joseph Myers <joseph@codesourcery.com>
10111
10112 * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
10113 * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
10114 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
10115 * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
10116 <bits/timerfd.h>.
10117 (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
10118 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10119 bits/timerfd.h.
10120
101212012-02-20 Joseph Myers <joseph@codesourcery.com>
10122
10123 * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
10124 in C locale.
10125 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10126 * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
10127 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
10128 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10129
101302012-02-20 Aurelien Jarno <aurelien@aurel32.net>
10131
10132 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10133 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
10134
101352012-02-19 Andreas Schwab <schwab@linux-m68k.org>
10136
10137 * manual/errno.texi (Error Codes): Add EHWPOISON entry.
10138 * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
10139 defined.
10140 * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
10141 Likewise.
10142 * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
10143 entry for 2.16.
10144
101452012-02-19 Aurelien Jarno <aurelien@aurel32.net>
10146
10147 * math/w_acos.c: Use non-signaling floating-point comparisons.
10148 * math/w_acosf.c: Likewise.
10149 * math/w_acosh.c: Likewise.
10150 * math/w_acoshf.c: Likewise.
10151 * math/w_acoshl.c: Likewise.
10152 * math/w_acosl.c: Likewise.
10153 * math/w_asin.c: Likewise.
10154 * math/w_asinf.c: Likewise.
10155 * math/w_asinl.c: Likewise.
10156 * math/w_atanh.c: Likewise.
10157 * math/w_atanhf.c: Likewise.
10158 * math/w_atanhl.c: Likewise.
10159 * math/w_exp2.c: Likewise.
10160 * math/w_exp2f.c: Likewise.
10161 * math/w_exp2l.c: Likewise.
10162 * math/w_j0.c: Likewise.
10163 * math/w_j0f.c: Likewise.
10164 * math/w_j0l.c: Likewise.
10165 * math/w_j1.c: Likewise.
10166 * math/w_j1f.c: Likewise.
10167 * math/w_j1l.c: Likewise.
10168 * math/w_jn.c: Likewise.
10169 * math/w_jnf.c: Likewise.
10170 * math/w_log.c: Likewise.
10171 * math/w_log10.c: Likewise.
10172 * math/w_log10f.c: Likewise.
10173 * math/w_log10l.c: Likewise.
10174 * math/w_log2.c: Likewise.
10175 * math/w_log2f.c: Likewise.
10176 * math/w_log2l.c: Likewise.
10177 * math/w_logf.c: Likewise.
10178 * math/w_logl.c: Likewise.
10179 * math/w_sqrt.c: Likewise.
10180 * math/w_sqrtf.c: Likewise.
10181 * math/w_sqrtl.c: Likewise.
10182 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10183 * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
10184 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10185 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
10186 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
10187
101882012-02-19 Joseph Myers <joseph@codesourcery.com>
10189
10190 [BZ #9739]
10191 * manual/string.texi (strnlen): Use correct parameter name in
10192 equivalent expression.
10193
101942012-02-19 Joseph Myers <joseph@codesourcery.com>
10195
10196 [BZ #11174]
10197 * manual/users.texi (seteuid): Consistently use neweuid for
10198 argument name.
10199
102002012-02-19 Joseph Myers <joseph@codesourcery.com>
10201
10202 [BZ #13704]
10203 * manual/nss.texi (Services in the NSS configuration): Correct
10204 list of services in example configuration file.
10205
102062012-02-19 Nick Bowler <nbowler@draconx.ca>
10207
10208 [BZ #11322]
10209 * manual/arith.texi: Remove statements about negative zero
10210 behaving identically to zero.
10211
102122012-02-18 Joseph Myers <joseph@codesourcery.com>
10213
10214 [BZ #5993]
10215 * manual/install.texi: Do not document upgrading from libc5.
10216
102172012-02-18 Joseph Myers <joseph@codesourcery.com>
10218
10219 [BZ #4596]
10220 * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
10221
102222012-02-18 David S. Miller <davem@davemloft.net>
10223
10224 * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
10225 (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
10226 %o7 across the call.
10227 (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
10228 instead.
10229 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
10230 SETUP_PIC_REG_LEAF.
10231 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10232 * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
10233 * sysdeps/sparc/crtn.S: Likewise.
10234
102352012-02-17 Ulrich Drepper <drepper@gmail.com>
10236
10237 * aout/Makefile: Remove.
10238
102392012-02-18 Rafe Kettler <rafe.kettler@gmail.com>
10240
10241 [BZ #13058]
10242 * manual/examples/argp-ex1.c (main): Format definition in GNU
10243 style.
10244 * manual/examples/argp-ex2.c (main): Likewise.
10245 * manual/examples/argp-ex3.c (main): Likewise.
10246 * manual/examples/argp-ex4.c (main): Likewise.
10247 * manual/examples/longopt.c (main): Use new-style prototype
10248 definition.
10249 * manual/examples/strncat.c (main): Specify return type and use
10250 (void) for arguments.
10251 * manual/examples/subopt.c (main): Use char **argv argument.
10252
102532012-02-17 Joseph Myers <joseph@codesourcery.com>
10254
10255 [BZ #5077]
10256 * manual/lang.texi (FLT_EPSILON): Avoid description depending on
10257 rounding modes.
10258
102592012-02-17 Fabrice Bauzac <fabrice.bauzac@wanadoo.fr>
10260
10261 [BZ #6907]
10262 * manual/string.texi (strchr): Change when strchrnul is
10263 recommended.
10264
102652012-02-17 Dwayne Grant McConnell <decimal@us.ibm.com>
10266
10267 [BZ #174]
10268 * manual/locale.texi (setlocale): Document LOCPATH.
10269
102702012-02-17 Joseph Myers <joseph@codesourcery.com>
10271
10272 [BZ #10210]
10273 * manual/process.texi (execle): Move @dots{} before last argument.
10274
102752012-02-17 Paul Bolle <pebolle@tiscali.nl>
10276
10277 [BZ #12047]
10278 * manual/charset.texi (Generic Charset Conversion): Fix typo
10279 (LC_TYPE -> LC_CTYPE).
10280
102812012-02-17 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
10282
10283 [BZ #5805]
10284 * manual/arith.texi (scalbn): Use @var{} on parameter names.
10285 (scalbnf): Likewise.
10286 (scalbnl): Likewise.
10287 (scalbln): Likewise.
10288 (scalblnf): Likewise.
10289 (scalblnl): Likewise.
10290 * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
10291 (vwarnx): Likewise.
10292 (verr): Likewise.
10293 (verrx): Likewise.
10294 * manual/filesys.texi (telldir): Use braces around return type.
10295 * manual/llio.texi (mmap): Add space after comma.
10296 (mmap64): Likewise.
10297 * manual/math.texi (jn): Use @var{} on parameter names.
10298 (jnf): Likewise.
10299 (jnl): Likewise.
10300 (yn): Likewise.
10301 (ynf): Likewise.
10302 (ynl): Likewise.
10303 * manual/memory.texi (alloca): Remove semicolon on @deftypefun
10304 line.
10305 * manual/resource.texi (ulimit): Use @dots{} instead of literal
10306 "...".
10307 (sched_get_priority_min): Remove semicolon on @deftypefun line.
10308 (sched_get_priority_max): Likewise.
10309 * manual/signal.texi (sigvec): Add space after comma.
10310 * manual/socket.texi (if_nametoindex): Use @var{} on parameter
10311 names.
10312 (if_indextoname): Likewise.
10313 (if_freenameindex): Likewise.
10314 (sendto): Use ',' instead of '.' in prototype.
10315 * manual/startup.texi (syscall): Use @dots{} instead of literal
10316 "...".
10317 * manual/stdio.texi (__fpending): Separate initial words of
10318 paragraph from @deftypefun line.
10319 * manual/syslog.texi (syslog): Use @dots{} instead of literal
10320 "...".
10321 (vsyslog): Use @var{} on parameter names.
10322 * manual/terminal.texi (stty): Use @var{} on parameter names.
10323 * manual/users.texi (getutmp): Use @var{} on parameter names.
10324 (getutmpx): Likewise.
10325
103262012-02-17 Joseph Myers <joseph@codesourcery.com>
10327
10328 [BZ #6884]
10329 * manual/stdio.texi (fopen): Fix typos in description of
10330 ",ccs=STRING".
10331
103322012-02-17 Aurelien Jarno <aurelien@aurel32.net>
10333
10334 [BZ #4026]
10335 * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
10336 get clock_id definition.
10337
103382012-02-17 Thomas Schwinge <thomas@schwinge.name>
10339
10340 [BZ #4822]
10341 * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
10342 (madvise): Cast every argument to void on its own.
10343
103442012-02-17 Joseph Myers <joseph@codesourcery.com>
10345
10346 [BZ #9902]
10347 * manual/startup.texi (Exit Status): Fix typo.
10348
103492012-02-17 Joseph Myers <joseph@codesourcery.com>
10350
10351 [BZ #10140]
10352 * manual/examples/argp-ex1.c: Include <stdlib.h>.
10353 * manual/examples/argp-ex2.c: Likewise.
10354 * manual/examples/argp-ex3.c: Likewise.
10355
103562012-02-16 Richard Henderson <rth@redhat.com>
10357
10358 * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
10359 * sysdeps/s390/s390-32/initfini.c: Remove.
10360 * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
10361 * sysdeps/s390/s390-64/initfini.c: Remove.
10362
103632012-02-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10364
10365 * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
10366 compiler output for sysdeps/generic/initfini.c.
10367 * sysdeps/sh/elf/initfini.c: Remove file.
10368
103692012-02-16 David S. Miller <davem@davemloft.net>
10370
10371 [BZ #11494]
10372 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
10373
10374 * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
10375 * sysdeps/sparc/crti.S: New file.
10376 * sysdeps/sparc/crtn.S: New file.
10377 * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
10378 * sysdeps/sparc/sparc64/Makefile: Likewise.
10379
103802012-02-15 Mike Frysinger <vapier@gentoo.org>
10381
10382 [BZ #3335]
10383 * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
10384
103852012-02-15 Roland McGrath <roland@hack.frob.com>
10386
10387 [BZ #4822]
10388 * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
10389
10390 * mach/devstream.c (cookie_io_functions_t): Macro removed.
10391 (write, read, close): Likewise.
10392 Patch by Aurelien Jarno <aurelien@aurel32.net>.
10393
103942012-02-15 Joseph Myers <joseph@codesourcery.com>
10395
10396 * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
10397 * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
10398 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
10399 * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
10400 <bits/signalfd.h>.
10401 (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
10402 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10403 bits/signalfd.h.
10404
104052012-02-14 Marek Polacek <polacek@redhat.com>
10406
10407 * sysdeps/x86_64/crti.S: New file.
10408 * sysdeps/x86_64/crtn.S: New file.
10409 * sysdeps/x86_64/elf/initfini.c: Remove file.
10410
104112012-02-13 Joseph Myers <joseph@codesourcery.com>
10412
10413 * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
10414 * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
10415 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
10416 * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
10417 <bits/inotify.h>.
10418 (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
10419 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10420 bits/inotify.h.
10421
104222012-02-13 Joseph Myers <joseph@codesourcery.com>
10423
10424 * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
10425 * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
10426 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
10427 * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
10428 <bits/eventfd.h>.
10429 (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
10430 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10431 bits/eventfd.h.
10432
104332012-02-10 Thomas Schwinge <thomas@codesourcery.com>
10434
10435 * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
10436 __feraiseexcept instead of feraiseexcept.
10437
10438 * rt/tst-cpuclock1.c: Add a few comments, and error checking for
10439 nanosleep invocations.
10440 * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
10441 strings, and add error checking for a nanosleep invocations.
10442
104432012-02-09 Paul Eggert <eggert@cs.ucla.edu>
10444
10445 Replace FSF snail mail address with URLs, as per GNU coding standards.
10446 Most of the snail mail addresses were wrong anyway, and omitting
10447 them makes the source code easier to maintain. Almost all of the
10448 changes are to license notices and to locale LC_IDENTIFICATION
10449 addresses, except for this one:
10450 * manual/libc.texinfo: In "Published by", give the FSF's URL,
10451 not its snail mail address.
10452
104532012-02-09 Richard Henderson <rth@twiddle.net>
10454
10455 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
10456 of kernel-features.h.
10457
10458 * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
10459
104602012-02-08 Marek Polacek <polacek@redhat.com>
10461
10462 * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
10463 * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
10464 * sysdeps/gnu/_G_config.h: Likewise.
10465 * sysdeps/generic/_G_config.h: Likewise.
10466
104672012-02-08 Andreas Schwab <schwab@linux-m68k.org>
10468
10469 * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
10470 tests.
10471 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10472
10473 * sysdeps/powerpc/powerpc32/crti.S: New file.
10474 * sysdeps/powerpc/powerpc32/crtn.S: New file.
10475 * sysdeps/powerpc/powerpc64/crti.S: New file.
10476 * sysdeps/powerpc/powerpc64/crtn.S: New file.
10477
10478 * Makeconfig (have-initfini): Don't set.
10479 * config.make.in (have-initfini, need-nopic-initfini): Don't set.
10480 * configure.in (nopic_initfini): Don't substitute.
10481 * config.h.in (HAVE_INITFINI): Don't #undef.
10482 * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
10483 * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
10484
104852012-02-08 Joseph Myers <joseph@codesourcery.com>
10486
10487 Support crti.S and crtn.S provided directly by architectures.
10488 * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
10489 [crti.S in sysdirs] (omit-deps): Likewise.
10490 [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
10491 [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
10492 [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
10493 [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
10494 [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
10495 [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
10496 [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
10497 [crti.S in sysdirs] (initfini.c): Remove vpath directive.
10498 * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
10499 compiler output for sysdeps/generic/initfini.c.
10500 * sysdeps/i386/elf/Makefile: Remove file.
10501 * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
10502
105032012-02-07 Marek Polacek <polacek@redhat.com>
10504
10505 * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
10506 * sysdeps/gnu/_G_config.h: Likewise.
10507 * sysdeps/mach/hurd/_G_config.h: Likewise.
10508
105092012-02-07 Marek Polacek <polacek@redhat.com>
10510
10511 * math/Makefile (tests): Add tst-CMPLX2.
10512 * math/tst-CMPLX2.c: New file.
10513
105142012-02-07 Andreas Schwab <schwab@linux-m68k.org>
10515
10516 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10517
10518 * math/libm-test.inc (jn_test): Add missing L suffix.
10519
105202012-02-06 Marek Polacek <polacek@redhat.com>
10521
10522 * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
10523 * sysdeps/i386/fpu/e_powf.S: Likewise.
10524 * sysdeps/i386/fpu/e_atanhf.S: Likewise.
10525 * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10526 * sysdeps/i386/fpu/e_acosh.S: Likewise.
10527 * sysdeps/i386/fpu/e_pow.S: Likewise.
10528 * sysdeps/i386/fpu/s_asinhl.S: Likewise.
10529 * sysdeps/i386/fpu/e_acoshl.S: Likewise.
10530 * sysdeps/i386/fpu/s_expm1.S: Likewise.
10531 * sysdeps/i386/fpu/s_frexpf.S: Likewise.
10532 * sysdeps/i386/fpu/e_log2.S: Likewise.
10533 * sysdeps/i386/fpu/e_log2l.S: Likewise.
10534 * sysdeps/i386/fpu/e_scalb.S: Likewise.
10535 * sysdeps/i386/fpu/e_powl.S: Likewise.
10536 * sysdeps/i386/fpu/s_log1p.S: Likewise.
10537 * sysdeps/i386/fpu/e_log10f.S: Likewise.
10538 * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
10539 * sysdeps/i386/fpu/e_logl.S: Likewise.
10540 * sysdeps/i386/fpu/s_cbrt.S: Likewise.
10541 * sysdeps/i386/fpu/s_expm1l.S: Likewise.
10542 * sysdeps/i386/fpu/s_frexpl.S: Likewise.
10543 * sysdeps/i386/fpu/s_expm1f.S: Likewise.
10544 * sysdeps/i386/fpu/e_log2f.S: Likewise.
10545 * sysdeps/i386/fpu/e_acoshf.S: Likewise.
10546 * sysdeps/i386/fpu/e_log.S: Likewise.
10547 * sysdeps/i386/fpu/s_cexp.S: Likewise.
10548 * sysdeps/i386/fpu/e_scalbf.S: Likewise.
10549 * sysdeps/i386/fpu/s_log1pl.S: Likewise.
10550 * sysdeps/i386/fpu/e_logf.S: Likewise.
10551 * sysdeps/i386/fpu/e_log10l.S: Likewise.
10552 * sysdeps/i386/fpu/e_atanh.S: Likewise.
10553 * sysdeps/i386/fpu/s_log1pf.S: Likewise.
10554 * sysdeps/i386/fpu/s_asinhf.S: Likewise.
10555 * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10556 * sysdeps/i386/fpu/e_log10.S: Likewise.
10557 * sysdeps/i386/fpu/s_frexp.S: Likewise.
10558 * sysdeps/i386/fpu/e_atanhl.S: Likewise.
10559 * sysdeps/i386/fpu/s_asinh.S: Likewise.
10560 * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
10561 * sysdeps/i386/fpu/e_scalbl.S: Likewise.
10562 * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
10563 * sysdeps/i386/asm-syntax.h: Likewise.
10564 * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
10565 * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10566 * sysdeps/x86_64/fpu/e_logl.S: Likewise.
10567 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
10568 * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
10569 * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
10570 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
10571 * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
10572 * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
10573 * sysdeps/powerpc/sysdep.h: Likewise.
10574 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
10575 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10576
105772012-02-06 Joseph Myers <joseph@codesourcery.com>
10578
10579 [BZ #411]
10580 * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
10581
105822012-02-06 Joseph Myers <joseph@codesourcery.com>
10583
10584 * sysdeps/i386/sysdep.h: Include <features.h>.
10585 (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
10586 version.
10587
105882012-02-05 Joseph Myers <joseph@codesourcery.com>
10589
10590 * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
10591 Define.
10592 * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
10593 LOAD_PIC_REG_STR.
10594
105952012-02-03 Joseph Myers <joseph@codesourcery.com>
10596
10597 * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
10598 (SETUP_PIC_REG): Use GET_PC_THUNK.
10599 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
10600 macro.
10601
106022012-02-03 Joseph Myers <joseph@codesourcery.com>
10603
10604 * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
10605 for non-PIC compilation.
10606 (SETUP_PIC_REG): Add .p2align directive.
10607 * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
10608 * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
10609 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
10610 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
10611 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
10612 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
10613 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
10614 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
10615 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
10616 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
10617 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
10618 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
10619 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
10620 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
10621 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
10622 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
10623 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
10624 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
10625 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
10626 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
10627 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
10628 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
10629 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
10630 * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
10631 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
10632 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
10633 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10634 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
10635 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
10636 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
10637 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
10638 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
10639 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
10640 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
10641 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
10642 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
10643 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
10644 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
10645 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
10646 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
10647 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
10648
106492012-02-03 Joseph Myers <joseph@codesourcery.com>
10650
10651 * math/tst-CMPLX.c: Include <stdio.h>.
10652
106532012-01-31 Joseph Myers <joseph@codesourcery.com>
10654
10655 * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
10656 float.
10657 * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
10658 * sysdeps/sparc/bits/mathdef.h: Likewise.
10659
106602012-01-31 Marek Polacek <polacek@redhat.com>
10661
10662 * libio/libio.h: Don't define _PARAMS.
10663 * locale/programs/config.h: Don't define PARAMS.
10664 * stdlib/strtol_l.c: Likewise.
10665 (__strtol_l): Remove PARAMS from the prototype.
10666
106672012-01-31 Ulrich Drepper <drepper@gmail.com>
10668
10669 * malloc/malloc.c: Remove name translation. Don't use mixed-cap
10670 names. Just use the correct names. Remove unnecessary wrapper
10671 functions.
10672 * malloc/arena.c: Likewise.
10673 * malloc/hooks.c: Likewise.
10674
10675 * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
10676 ARENA_TEST says not to. Simplify test for creation of a new arena.
10677 Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
10678
106792012-01-30 Ulrich Drepper <drepper@gmail.com>
10680
10681 * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
10682 into tail calls.
10683 (update_get_addr): New function.
10684 (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
10685 GET_ADDR_MODULE parameter.
10686
106872012-01-30 Joseph Myers <joseph@codesourcery.com>
10688
10689 * crypt/cert.c: Remove __STDC__ conditionals.
10690 * crypt/crypt-entry.c: Likewise.
10691 * crypt/crypt_util.c: Likewise.
10692 * libio/filedoalloc.c: Likewise.
10693 * libio/fileops.c: Likewise.
10694 * libio/genops.c: Likewise.
10695 * libio/iofclose.c: Likewise.
10696 * libio/iofdopen.c: Likewise.
10697 * libio/iofopen.c: Likewise.
10698 * libio/iofopen64.c: Likewise.
10699 * libio/iogetdelim.c: Likewise.
10700 * libio/iopopen.c: Likewise.
10701 * libio/obprintf.c: Likewise.
10702 * libio/oldfileops.c: Likewise.
10703 * libio/oldiofclose.c: Likewise.
10704 * libio/oldiofdopen.c: Likewise.
10705 * libio/oldiofopen.c: Likewise.
10706 * libio/oldiopopen.c: Likewise.
10707 * libio/wfiledoalloc.c: Likewise.
10708 * libio/wgenops.c: Likewise.
10709 * locale/programs/xmalloc.c: Likewise.
10710 * misc/syslog.c: Likewise.
10711 * stdio-common/xbug.c: Likewise.
10712 * string/memchr.c: Likewise.
10713 * string/memcmp.c: Likewise.
10714 * string/memrchr.c: Likewise.
10715 * string/rawmemchr.c: Likewise.
10716 * sysdeps/posix/getcwd.c: Likewise.
10717 * time/strftime_l.c: Likewise.
10718
107192012-01-30 Joseph Myers <joseph@codesourcery.com>
10720
10721 * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
10722 * config.make.in (config-cflags-sse2avx): Define.
10723 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
10724 Fix typo.
10725
107262012-01-29 Chris Metcalf <cmetcalf@tilera.com>
10727
10728 * scripts/config.guess: Update from upstream config git repository.
10729 * scripts/config.sub: Likewise.
10730
107312012-01-28 Chris Metcalf <cmetcalf@tilera.com>
10732
10733 * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
10734 (EM_NUM): Update.
10735 (R_TILEPRO_*, R_TILEGX_*): New macros.
10736
10737 * scripts/firstversions.awk: Fix bug in version range handling.
10738
10739 * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
10740
10741 * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
10742
10743 * include/sys/epoll.h: New file.
10744 * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
10745 libc_hidden_def.
10746
107472012-01-28 Ulrich Drepper <drepper@gmail.com>
10748
10749 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
10750 Avoid unnecessary __WORDSIZE == 64 test.
10751 (fmaxf): Use VEX format if possible.
10752 (fmax): Likewise.
10753 (fminf): Likewise.
10754 (fmin): Likewise.
10755
10756 * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
10757 * math/math_private.h: Remove libc_fegetround* and
10758 libc_fesetround*.
10759 * sysdeps/i386/configure.in: Check for -msse2avx.
10760 * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
10761 also if SSE2AVX is defined.
10762 Remove libc_fegetround* and libc_fesetround*.
10763 * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
10764 if config-cflags-sse2avx is yes. Also add -DSSE2AVX to defines.
10765 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
10766 of HAS_YMM_USABLE.
10767 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10768 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10769 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10770 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10771 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10772
10773 * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
10774
107752012-01-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
10776
10777 * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
10778 size is not set.
10779 * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
10780
107812012-01-27 Ulrich Drepper <drepper@gmail.com>
10782
10783 [BZ #13618]
10784 * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
10785 relocation.
10786 * Makeconfig (libm): Define.
10787 * elf/Makefile: Add rules to build and run tst-relsort1.
10788 * elf/tst-relsort1.c: New file.
10789 * elf/tst-relsort1mod1.c: New file.
10790 * elf/tst-relsort1mod2.c: New file.
10791
107922012-01-27 Joseph Myers <joseph@codesourcery.com>
10793
10794 * math/s_ldexp.c: Remove __STDC__ conditionals.
10795 * math/s_ldexpf.c: Likewise.
10796 * math/s_ldexpl.c: Likewise.
10797 * math/s_nextafter.c: Likewise.
10798 * math/s_nexttowardf.c: Likewise.
10799 * math/s_significand.c: Likewise.
10800 * math/s_significandf.c: Likewise.
10801 * math/s_significandl.c: Likewise.
10802 * math/w_jnl.c: Likewise.
10803 * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10804 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10805 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10806 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10807 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10808 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10809 * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
10810 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10811 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10812 * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10813 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10814 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10815 * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10816 * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10817 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10818 * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10819 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10820 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10821 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10822 * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10823 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10824 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10825 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10826 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10827 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10828 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10829 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10830 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10831 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10832 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10833 * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10834 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10835 * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10836 * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10837 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10838 * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10839 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10840 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10841 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10842 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10843 * sysdeps/ieee754/k_standard.c: Likewise.
10844 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10845 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10846 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10847 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10848 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10849 * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10850 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10851 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10852 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10853 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10854 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10855 * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10856 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10857 * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10858 * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10859 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10860 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10861 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10862 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10863 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10864 * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10865 * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10866 * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10867 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10868 * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10869 * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10870 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10871 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10872 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10873 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10874 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10875 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
10876 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10877 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10878 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10879 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10880 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10881 * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10882 * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10883 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
10884 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10885 * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10886 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
10887 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
10888 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10889 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
10890 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
10891 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10892 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10893 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
10894 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
10895 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10896 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10897 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10898 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10899 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10900 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
10901 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10902 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10903 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10904 * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10905 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10906 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10907 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10908 * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10909 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10910 * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10911 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10912 * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10913 * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10914 * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10915 * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10916 * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10917 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10918 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10919 * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10920 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10921 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10922 * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10923 * sysdeps/ieee754/s_matherr.c: Likewise.
10924 * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10925 * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10926 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10927 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10928
109292012-01-26 Joseph Myers <joseph@codesourcery.com>
10930
10931 * crypt/md5.h: Remove __STDC__ conditionals.
10932 * libio/libioP.h: Likewise.
10933 * locale/programs/config.h: Likewise.
10934 * sysdeps/generic/sysdep.h: Likewise.
10935 * sysdeps/i386/asm-syntax.h: Likewise.
10936 * sysdeps/s390/asm-syntax.h: Likewise.
10937 * sysdeps/unix/sysdep.h: Likewise.
10938 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10939 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10940
109412012-01-26 Joseph Myers <joseph@codesourcery.com>
10942
10943 * libio/libio.h: Remove __STDC__ conditionals.
10944 * malloc/obstack.h: Likewise.
10945 * math/complex.h: Likewise.
10946 * math/math.h: Likewise.
10947 * sysdeps/generic/_G_config.h: Likewise.
10948 * sysdeps/gnu/_G_config.h: Likewise.
10949 * sysdeps/mach/hurd/_G_config.h: Likewise.
10950 * sysdeps/powerpc/bits/mathdef.h: Likewise.
10951 * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
10952 * sysdeps/sparc/bits/mathdef.h: Likewise.
10953
109542012-01-26 Ulrich Drepper <drepper@gmail.com>
10955
10956 [BZ #13583]
10957 * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
10958 Clean up HAS_* macros.
10959 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
10960 bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
10961 possible.
10962 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
10963 HAS_AVX.
10964 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10965 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10966 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10967 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10968 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10969
109702012-01-25 Joseph Myers <joseph@codesourcery.com>
10971
10972 * elf/tst-unique3.cc (gets): Remove declaration.
10973 * elf/tst-unique3lib.cc (gets): Likewise.
10974 * elf/tst-unique3lib2.cc (gets): Likewise.
10975 * elf/tst-unique4.cc (gets): Likewise.
10976
109772012-01-24 Ulrich Drepper <drepper@gmail.com>
10978
10979 * include/stdio.h: Add C++ protection. Add gets declarations and
10980 definitions.
10981 * debug/tst-chk1.c: Don't declare gets here.
10982 * stdio-common/tst-gets.c: Likewise.
10983
109842012-01-24 Joseph Myers <joseph@codesourcery.com>
10985
10986 * posix/glob: Remove directory.
10987
109882012-01-24 Joseph Myers <joseph@codesourcery.com>
10989
10990 * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
10991
109922012-01-22 Pino Toscano <toscano.pino@tiscali.it>
10993
10994 * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
10995 of the non-standard EPFNOSUPPORT.
10996
109972011-12-26 Samuel Thibault <samuel.thibault@ens-lyon.org>
10998
10999 * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
11000 __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
11001 ANYWHERE set to 1 only on KERN_NO_SPACE error.
11002
110032012-01-21 Ulrich Drepper <drepper@gmail.com>
11004
11005 * wcsmbs/uchar.h: Test __STDC_VERSION__.
11006
110072012-01-20 Ulrich Drepper <drepper@gmail.com>
11008
11009 * nscd/aicache.c (addhstaiX): Do not cache negative results of
11010 transient errors.
11011 * nscd/grpcache.c (cache_addgr): Likewise.
11012 * nscd/hstcache.c (cache_addhst): Likewise.
11013 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11014 * nscd/pwdcache.c (cache_addpw): Likewise.
11015 * nscd/servicescache.c (cache_addserv): Likewise.
11016
110172012-01-16 Ulrich Drepper <drepper@gmail.com>
11018
11019 * malloc/malloc.c: Various cleanups.
11020 * malloc/hooks.c: Likewise.
11021
11022 * stdlib/Makefile (tests): Add bug-fmtmsg1.
11023 * stdlib/bug-fmtmsg1.c: New file.
11024
11025 * stdlib/fmtmsg.c (init): Add missing unlock.
11026 Patch by Peng Haitao <penght@cn.fujitsu.com>.
11027
110282012-01-12 Marek Polacek <polacek@redhat.com>
11029
11030 * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
11031 and _GNU_SOURCE.
11032
110332012-01-04 Will Schmidt <will_schmidt@vnet.ibm.com>
11034
11035 * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
11036 * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
11037 macro to ensure uniqueness of label name.
11038 * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
11039 * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
11040
110412012-01-11 Ulrich Drepper <drepper@gmail.com>
11042
11043 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
11044
11045 * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
11046 * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11047 * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11048 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
11049
110502012-01-10 Ulrich Drepper <drepper@gmail.com>
11051
11052 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
11053
11054 * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
11055 * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11056 * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11057
11058 * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
11059
11060 * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
11061 * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11062 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11063 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
11064
11065 * math/bits/math-finite.h: Add ldexp support.
11066
110672012-01-10 Marek Polacek <polacek@redhat.com>
11068
11069 * locale/programs/localedef.h (show_archive_content): Add noreturn
11070 attribute.
11071
110722012-01-09 Ulrich Drepper <drepper@gmail.com>
11073
11074 * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
11075
110762012-01-08 Ulrich Drepper <drepper@gmail.com>
11077
11078 * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
11079
11080 * io/Makefile (headers): Add bits/poll2.h.
11081
110822011-01-05 Will Schmidt <will_schmidt@vnet.ibm.com>
11083
11084 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
11085 typo #include statement.
11086
110872012-01-08 Ulrich Drepper <drepper@gmail.com>
11088
11089 * include/sys/cdefs.h: Define __attribute_alloc_size.
11090 * catgets/gencat.c: Add alloc_size attribute and apply consistently
11091 the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
11092 * elf/pldd.c: Likewise.
11093 * iconv/iconv_charmap.c: Likewise.
11094 * iconv/iconvconfig.c: Likewise.
11095 * iconv/strtab.c: Likewise.
11096 * locale/programs/locale.c: Likewise.
11097 * locale/programs/localedef.h: Likewise.
11098 * locale/programs/simple-hash.c: Likewise.
11099 * nscd/nscd.h: Likewise.
11100 * nss/makedb.c: Likewise.
11101 * sysdeps/generic/ldconfig.h: Likewise.
11102 * locale/programs/localedef.c: Remove xmalloc prototype.
11103 * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
11104
111052012-01-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11106
11107 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
11108 appropriate.
11109
111102012-01-08 Ulrich Drepper <drepper@gmail.com>
11111
11112 * math/Makefile (tests): Add tst-CMPLX.
11113 * math/tst-CMPLX.c: New file.
11114
11115 * math/complex.h (CMPLXL): Fix typo.
11116
11117 * debug/Makefile (routines): Add poll_chk and ppoll_chk.
11118 * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
11119 GLIBC_2.16.
11120 * debug/tst-chk1.c: Add poll and ppoll tests.
11121 * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
11122 * include/sys/poll.h: Add hidden proto for ppoll.
11123 * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
11124 * sysdeps/mach/hurd/ppoll.c: Likewise.
11125 * io/ppoll.c: Likewise.
11126 * debug/poll_chk.c: New file.
11127 * debug/ppoll_chk.c: New file.
11128 * include/bits/poll2.h: New file.
11129 * io/bits/poll2.h: New file.
11130
11131 [BZ #1350]
11132 * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
11133
11134 * configure.in: static is always set to yes. Remove.
11135 * config.make.in: Don't set build-static.
11136 * Makeconfig: Remove use of build-static.
11137 * dlfcn/Makefile: Likewise.
11138 * elf/Makefile: Likewise.
11139 * math/Makefile: Likewise.
11140 * misc/Makefile: Likewise.
11141 * nptl/Makefile: Likewise.
11142 * sysdeps/mach/hurd/Makefile: Likewise.
11143
11144 * configure.in: PWD_P is not used anymore.
11145 * config.make.in: Remove PWD_P entry.
11146
11147 * configure.in: Remove last remnants of RANLIB.
11148 No need to check for signed size_t anymore.
11149 Don't set libc_commonpagesize and libc_relro_required here for Alpha
11150 and IA-64.
11151 Remove __builtin_expect test because we require at least gcc 3.4.
11152 * aclocal.m4: Likewise.
11153
11154 * wcsmbs/mbrtoc16.c: Implement using towc function.
11155 * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
11156 * wcsmbs/wcsmbsload.c: Likewise.
11157 * iconv/gconv_simple.c: Likewise.
11158 * iconv/gconv_int.h: Likewise.
11159 * iconv/gconv_builtin.h: Likewise.
11160 * iconv/iconv_prog.c: Remove CHAR16 handling.
11161
11162 * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
11163
11164 * wcsmbs/mbrtowc.c: Better check for invalid inputs.
11165
11166 * configure.in: Remove --with-elf and --enable-bounded options.
11167 Dont set base_machine for ia64. More non-ELF conditions removed.
11168 Remove testing and setting of leading underscore information.
11169 * config.make.in (build-bounded): Set to no.
11170 * config.h.in: Remove NO_UNDERSCORES entry.
11171 * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS. ELF has
11172 them.
11173 * csu/start.c: Remove !NO_UNDERSCORE code.
11174 * locale/localeinfo.h: Likewise.
11175 * sysdeps/generic/machine-gmon.h: Likewise.
11176 * sysdeps/generic/sysdep.h: Likewise.
11177 * sysdeps/i386/sysdep.h: Likewise.
11178 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
11179 * sysdeps/mach/sysdep.h: Likewise.
11180 * sysdeps/s390/s390-32/sysdep.h: Likewise.
11181 * sysdeps/s390/s390-64/sysdep.h: Likewise.
11182 * sysdeps/sh/sysdep.h: Likewise.
11183 * sysdeps/sparc/sparc32/alloca.S: Likewise.
11184 * sysdeps/unix/i386/sysdep.S: Likewise.
11185 * sysdeps/unix/sparc/start.c: Likewise.
11186 * sysdeps/unix/sparc/sysdep.S: Likewise.
11187 * sysdeps/unix/sparc/sysdep.h: Likewise.
11188 * sysdeps/unix/start.c: Likewise.
11189 * sysdeps/unix/x86_64/sysdep.S: Likewise.
11190 * sysdeps/x86_64/sysdep.h: Likewise.
11191
111922012-01-07 Ulrich Drepper <drepper@gmail.com>
11193
11194 [BZ #13553]
11195 * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
11196 for non-gcc.
11197 * argp/argp-fmtstream.h: Use const instead __const.
11198 * argp/argp.h: Likewise.
11199 * assert/assert.h: Likewise.
11200 * bits/fenv.h: Likewise.
11201 * bits/sched.h: Likewise.
11202 * bits/sigset.h: Likewise.
11203 * bits/sigthread.h: Likewise.
11204 * catgets/nl_types.h: Likewise.
11205 * conform/data/pthread.h-data: Likewise.
11206 * crypt/crypt-private.h: Likewise.
11207 * crypt/crypt.h: Likewise.
11208 * crypt/crypt_util.c: Likewise.
11209 * ctype/ctype.h: Likewise.
11210 * debug/execinfo.h: Likewise.
11211 * debug/mbsnrtowcs_chk.c: Likewise.
11212 * debug/mbsrtowcs_chk.c: Likewise.
11213 * debug/wcsnrtombs_chk.c: Likewise.
11214 * debug/wcsrtombs_chk.c: Likewise.
11215 * debug/wcstombs_chk.c: Likewise.
11216 * dirent/dirent.h: Likewise.
11217 * dlfcn/dlfcn.h: Likewise.
11218 * elf/neededtest4.c: Likewise.
11219 * grp/grp.h: Likewise.
11220 * gshadow/gshadow.h: Likewise.
11221 * iconv/gconv.h: Likewise.
11222 * iconv/gconv_int.h: Likewise.
11223 * iconv/gconv_simple.c: Likewise.
11224 * iconv/iconv.h: Likewise.
11225 * iconv/loop.c: Likewise.
11226 * iconv/skeleton.c: Likewise.
11227 * include/aio.h: Likewise.
11228 * include/aliases.h: Likewise.
11229 * include/argz.h: Likewise.
11230 * include/arpa/inet.h: Likewise.
11231 * include/assert.h: Likewise.
11232 * include/dirent.h: Likewise.
11233 * include/dlfcn.h: Likewise.
11234 * include/execinfo.h: Likewise.
11235 * include/fcntl.h: Likewise.
11236 * include/fenv.h: Likewise.
11237 * include/glob.h: Likewise.
11238 * include/grp.h: Likewise.
11239 * include/libintl.h: Likewise.
11240 * include/mntent.h: Likewise.
11241 * include/netdb.h: Likewise.
11242 * include/pwd.h: Likewise.
11243 * include/rpc/netdb.h: Likewise.
11244 * include/sched.h: Likewise.
11245 * include/search.h: Likewise.
11246 * include/shadow.h: Likewise.
11247 * include/signal.h: Likewise.
11248 * include/stdio.h: Likewise.
11249 * include/stdlib.h: Likewise.
11250 * include/string.h: Likewise.
11251 * include/sys/socket.h: Likewise.
11252 * include/sys/stat.h: Likewise.
11253 * include/sys/statfs.h: Likewise.
11254 * include/sys/statvfs.h: Likewise.
11255 * include/sys/syslog.h: Likewise.
11256 * include/sys/time.h: Likewise.
11257 * include/sys/uio.h: Likewise.
11258 * include/time.h: Likewise.
11259 * include/unistd.h: Likewise.
11260 * include/utmp.h: Likewise.
11261 * include/wchar.h: Likewise.
11262 * include/wctype.h: Likewise.
11263 * inet/aliases.h: Likewise.
11264 * inet/arpa/inet.h: Likewise.
11265 * inet/netinet/ether.h: Likewise.
11266 * inet/netinet/in.h: Likewise.
11267 * intl/libintl.h: Likewise.
11268 * io/bits/fcntl2.h: Likewise.
11269 * io/fcntl.h: Likewise.
11270 * io/ftw.h: Likewise.
11271 * io/sys/poll.h: Likewise.
11272 * io/sys/stat.h: Likewise.
11273 * io/sys/statfs.h: Likewise.
11274 * io/sys/statvfs.h: Likewise.
11275 * io/utime.h: Likewise.
11276 * libio/bits/stdio.h: Likewise.
11277 * libio/bits/stdio2.h: Likewise.
11278 * libio/libio.h: Likewise.
11279 * libio/libioP.h: Likewise.
11280 * libio/stdio.h: Likewise.
11281 * locale/lc-ctype.c: Likewise.
11282 * locale/locale.h: Likewise.
11283 * login/utmp.h: Likewise.
11284 * malloc/arena.c: Likewise.
11285 * malloc/malloc.c: Likewise.
11286 * malloc/malloc.h: Likewise.
11287 * malloc/mcheck.c: Likewise.
11288 * malloc/mtrace.c: Likewise.
11289 * math/bits/mathcalls.h: Likewise.
11290 * math/fenv.h: Likewise.
11291 * math/math_private.h: Likewise.
11292 * misc/bits/error.h: Likewise.
11293 * misc/bits/syslog.h: Likewise.
11294 * misc/err.h: Likewise.
11295 * misc/error.h: Likewise.
11296 * misc/fstab.h: Likewise.
11297 * misc/mntent.h: Likewise.
11298 * misc/regexp.h: Likewise.
11299 * misc/search.h: Likewise.
11300 * misc/sgtty.h: Likewise.
11301 * misc/sys/mman.h: Likewise.
11302 * misc/sys/syslog.h: Likewise.
11303 * misc/sys/uio.h: Likewise.
11304 * misc/sys/xattr.h: Likewise.
11305 * misc/ttyent.h: Likewise.
11306 * nis/rpcsvc/ypclnt.h: Likewise.
11307 * nss/nss.h: Likewise.
11308 * posix/bits/unistd.h: Likewise.
11309 * posix/fnmatch.h: Likewise.
11310 * posix/glob.h: Likewise.
11311 * posix/sched.h: Likewise.
11312 * posix/spawn.h: Likewise.
11313 * posix/sys/wait.h: Likewise.
11314 * posix/unistd.h: Likewise.
11315 * posix/wordexp.h: Likewise.
11316 * pwd/pwd.h: Likewise.
11317 * resolv/netdb.h: Likewise.
11318 * resource/sys/resource.h: Likewise.
11319 * rt/aio.h: Likewise.
11320 * rt/bits/mqueue2.h: Likewise.
11321 * rt/mqueue.h: Likewise.
11322 * shadow/shadow.h: Likewise.
11323 * signal/signal.h: Likewise.
11324 * socket/send.c: Likewise.
11325 * socket/sendto.c: Likewise.
11326 * socket/sys/socket.h: Likewise.
11327 * stdio-common/printf.h: Likewise.
11328 * stdlib/bits/stdlib.h: Likewise.
11329 * stdlib/fmtmsg.h: Likewise.
11330 * stdlib/monetary.h: Likewise.
11331 * stdlib/stdlib.h: Likewise.
11332 * stdlib/ucontext.h: Likewise.
11333 * streams/stropts.h: Likewise.
11334 * string/argz.h: Likewise.
11335 * string/bits/string2.h: Likewise.
11336 * string/string.h: Likewise.
11337 * string/strings.h: Likewise.
11338 * sunrpc/rpc/auth.h: Likewise.
11339 * sunrpc/rpc/auth_des.h: Likewise.
11340 * sunrpc/rpc/clnt.h: Likewise.
11341 * sunrpc/rpc/netdb.h: Likewise.
11342 * sunrpc/rpc/pmap_clnt.h: Likewise.
11343 * sunrpc/rpc/xdr.h: Likewise.
11344 * sysdeps/generic/inttypes.h: Likewise.
11345 * sysdeps/generic/net/if.h: Likewise.
11346 * sysdeps/generic/sys/swap.h: Likewise.
11347 * sysdeps/gnu/net/if.h: Likewise.
11348 * sysdeps/gnu/utmpx.h: Likewise.
11349 * sysdeps/i386/fpu/bits/fenv.h: Likewise.
11350 * sysdeps/i386/i486/bits/string.h: Likewise.
11351 * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
11352 * sysdeps/s390/bits/string.h: Likewise.
11353 * sysdeps/s390/fpu/bits/fenv.h: Likewise.
11354 * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
11355 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11356 * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
11357 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11358 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11359 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11360 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
11361 * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
11362 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
11363 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
11364 * sysdeps/unix/sysv/linux/preadv.c: Likewise.
11365 * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
11366 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
11367 * sysdeps/unix/sysv/linux/readv.c: Likewise.
11368 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
11369 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
11370 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11371 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
11372 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
11373 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
11374 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
11375 * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
11376 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
11377 * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
11378 * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
11379 * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
11380 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11381 * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
11382 * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
11383 * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
11384 * sysvipc/sys/ipc.h: Likewise.
11385 * sysvipc/sys/msg.h: Likewise.
11386 * sysvipc/sys/sem.h: Likewise.
11387 * sysvipc/sys/shm.h: Likewise.
11388 * termios/termios.h: Likewise.
11389 * time/sys/time.h: Likewise.
11390 * time/time.h: Likewise.
11391 * wcsmbs/bits/wchar2.h: Likewise.
11392 * wcsmbs/uchar.h: Likewise.
11393 * wcsmbs/wchar.h: Likewise.
11394 * wctype/wctype.h: Likewise.
11395
11396 [BZ #13551]
11397 * Makeconfig: Remove all but ELF support including AIX support.
11398 * Makerules: Likewise.
11399 * config.h.in: Likewise.
11400 * config.make.in: Likewise.
11401 * configure: Likewise.
11402 * configure.in: Likewise.
11403 * csu/Makefile: Likewise.
11404 * csu/version.c: Likewise.
11405 * debug/Makefile: Likewise.
11406 * dlfcn/Makefile: Likewise.
11407 * elf/Makefile: Likewise.
11408 * extra-lib.mk: Likewise.
11409 * iconv/Makefile: Likewise.
11410 * include/libc-symbols.h: Likewise.
11411 * include/shlib-compat.h: Likewise.
11412 * resolv/Makefile: Likewise.
11413 * resolv/res_libc.c: Likewise.
11414 * rt/Makefile: Likewise.
11415 * sysdeps/i386/asm-syntax.h: Likewise.
11416 * sysdeps/i386/sysdep.h: Likewise.
11417 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
11418 * sysdeps/mach/sysdep.h: Likewise.
11419 * sysdeps/powerpc/powerpc32/Makefile: Likewise.
11420 * sysdeps/powerpc/powerpc64/Makefile: Likewise.
11421 * sysdeps/s390/asm-syntax.h: Likewise.
11422 * sysdeps/s390/s390-32/sysdep.h: Likewise.
11423 * sysdeps/s390/s390-64/sysdep.h: Likewise.
11424 * sysdeps/sh/sysdep.h: Likewise.
11425 * sysdeps/unix/sparc/sysdep.h: Likewise.
11426 * sysdeps/wordsize-32/divdi3.c: Likewise.
11427 * sysdeps/x86_64/sysdep.h: Likewise.
11428
11429 * argp/Versions: Remove _argp_unlock_xxx.
11430
11431 [BZ #13559]
11432 * abilist/ld.abilist: Update. Adjust for removal of tls option.
11433 * abilist/libBrokenLocale.abilist: Likewise.
11434 * abilist/libanl.abilist: Likewise.
11435 * abilist/libc.abilist: Likewise.
11436 * abilist/libcrypt.abilist: Likewise.
11437 * abilist/libdl.abilist: Likewise.
11438 * abilist/libm.abilist: Likewise.
11439 * abilist/libnsl.abilist: Likewise.
11440 * abilist/libpthread.abilist: Likewise.
11441 * abilist/libresolv.abilist: Likewise.
11442 * abilist/librt.abilist: Likewise.
11443 * abilist/libthread_db.abilist: Likewise.
11444 * abilist/libutil.abilist: Likewise.
11445 * abilist/libnss_db.abilist: New file.
11446
11447 * scripts/abilist.awk: Add support for indirect functions.
11448
11449 * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
11450
11451 * sysdeps/generic/ldsodefs.h: Remove Alpha support.
11452
11453 * shlib-versions: Remove entries for ports architectures.
11454
11455 * elf/tls-macros.h: Remove support for Alpha and IA-64. Should be in
11456 files in ports.
11457 * elf/stackguard-macros.h: Remove support for IA-64.
11458 * elf/tst-auditmod1.c: Likewise.
11459 * sysdeps/generic/ldsodefs.h: Likewise.
11460
11461 * sysdeps/unix/sysv/linux/configure.in: Ports should define
11462 libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
11463 configure files.
11464
11465 [BZ #13552]
11466 * configure.in: Remove --enable-omitfp support.
11467 * FAQ.in: Adjust.
11468 * config.make.in: Likewise.
11469 * Makeconfig: Likewise.
11470 * manual/install.texi: Likewise.
11471
11472 In case anyone cares, the IA-64 architecture could move to ports.
11473 * sysdeps/ia64/*: Removed.
11474 * sysdeps/unix/sysv/linux/ia64/*: Removed.
11475 * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
11476
11477 [BZ #13555]
11478 * configure.in: Remove entries for unsupported architectures.
11479
11480 [BZ #13533]
11481 * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
11482 * iconv/gconv_simple.c: Rename char16_t routines. Add char16_t<->utf8
11483 routines.
11484 * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
11485 * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
11486 * wcsmbs/c16rtomb.c: Fix a few problems. Disable all the code and
11487 fall back to using wcrtomb.
11488 * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
11489 * wcsmbs/wcsmbsload.c: Make char16 routines optional. Adjust for
11490 renaming.
11491 * wcsmbs/Makefile (tests): Add tst-c16c32-1:
11492 * wcsmbs/tst-c16c32-1.c: New file.
11493
11494 * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
11495 local variable.
11496
11497 * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
11498
11499 * elf/tst-unique3.cc: Add explicit declaration of gets.
11500 * elf/tst-unique3lib.cc: Likewise.
11501 * elf/tst-unique3lib2.cc: Likewise.
11502 * elf/tst-unique4.cc: Likewise.
11503
11504 * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
11505
115062012-01-06 Joseph Myers <joseph@codesourcery.com>
11507
11508 [BZ #13566]
11509 * assert/assert.h (static_assert): Don't define for C++.
11510 * libio/stdio.h (gets): Do declare for C++ <= C++11.
11511 * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
11512
115132012-01-03 Ulrich Drepper <drepper@gmail.com>
11514
11515 * iconv/loop.c (single loop): Fix assertion in storing of
11516 remaining bytes.
11517
11518 * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
11519
115202012-01-01 Ulrich Drepper <drepper@gmail.com>
11521
11522 * posix/getconf.c: Update copyright year.
11523 * nss/getent.c: Likewise.
11524 * nss/makedb.c: Likewise.
11525 * iconv/iconvconfig.c: Likewise.
11526 * iconv/iconv_prog.c: Likewise.
11527 * elf/ldconfig.c: Likewise.
11528 * elf/pldd.c: Likewise.
11529 * elf/sotruss.ksh: Likewise.
11530 * catgets/gencat.c: Likewise.
11531 * csu/version.c: Likewise.
11532 * elf/ldd.bash.in: Likewise.
11533 * elf/sprof.c (print_version): Likewise.
11534 * locale/programs/locale.c: Likewise.
11535 * locale/programs/localedef.c: Likewise.
11536 * login/programs/pt_chown.c: Likewise.
11537 * nscd/nscd.c (print_version): Likewise.
11538 * debug/xtrace.sh: Likewise.
11539 * malloc/memusage.sh: Likewise.
11540 * malloc/mtrace.pl: Likewise.
11541 * debug/catchsegv.sh: Likewise.
11542
115432011-12-30 Jakub Jelinek <jakub@redhat.com>
11544
11545 * posix/regex_internal.c (re_string_fetch_byte_case): Remove
11546 pure attribute.
11547
115482011-12-24 Ulrich Drepper <drepper@gmail.com>
11549
11550 [BZ #13533]
11551 * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
11552 * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
11553 transformations.
11554 * iconv/gconv_int.h: Likewise.
11555 * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
11556 * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
11557 from libc for GLIBC_2.16.
11558 * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
11559 * wcsmbs/wcrtomb.c: Define c32rtomb alias.
11560 * wcsmbs/uchar.h: Really define mbstate_t.
11561 * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
11562 * wcsmbs/c16rtomb.c: New file.
11563 * wcsmbs/mbrtoc16.c: New file.
11564 * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
11565 for C/POSIX locale.
11566 (__wcsmbs_load_conv): Do not fill in c16 routines yet.
11567 * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
11568
11569 * wcsmbs/wchar.h: Add missing __restrict.
11570
115712011-12-23 Ulrich Drepper <drepper@gmail.com>
11572
11573 [BZ #13532]
11574 * time/Makefile (routines): Add timespec_get.
11575 * time/Versions: Export timespec_get from libc for GLIBC_2.16.
11576 * time/time.h: Define TIME_UTC and declare timespec_get. Define
11577 timespec for ISO C11.
11578 * time/timespec_get.c: New file.
11579 * sysdeps/unix/sysv/linux/timespec_get.c: New file.
11580 * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
11581
11582 [BZ #13531]
11583 * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
11584 * stdlib/stdlib.h: Declare aligned_alloc.
11585 * Versions.def: Add GLIBC_2.16 for libc.
11586 * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
11587
11588 [BZ 13527]
11589 * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
11590 ISO C11.
11591
11592 * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
11593 code.
11594
11595 [BZ #13528]
11596 * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
11597
11598 [BZ #13529]
11599 * assert/assert.h (static_assert): Define.
11600
11601 * version.h: Update for 2.16 development version.
11602
11603 [BZ #13526]
11604 * include/features.h: Handle __STDC_VERSION__ >= 201112 and
11605 _ISOC11_SOURCE.
11606
11607 * version.h (RELEASE): Bump for 2.15 release.
11608 * include/features.h (__GLIBC_MINOR__): Bump to 15.
11609
11610 * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
11611 Patch by Marek Polacek <mpolacek@redhat.com>.
11612
11613 * bits/byteswap.h: Protect long long constants with __extension__.
11614 * sysdeps/i386/bits/byteswap.h: Likewise.
11615 * sysdeps/ia64/bits/byteswap.h: Likewise.
11616 * sysdeps/s390/bits/byteswap.h: Likewise.
11617 * sysdeps/x86_64/bits/byteswap.h: Likewise.
11618
116192011-12-23 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
11620
11621 [BZ #13540]
11622 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
11623 destination buffer.
11624 * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
11625
116262011-12-23 Marek Polacek <polacek@redhat.com>
11627
11628 * elf/dl-addr.c (determine_info): Add inline keyword.
11629 * elf/tst-auditmod4b.c (check_avx): Likewise.
11630 * elf/tst-auditmod6b.c (check_avx): Likewise.
11631 * elf/tst-auditmod6c.c (check_avx): Likewise.
11632 * elf/tst-auditmod7b.c (check_avx): Likewise.
11633
116342011-12-23 Ulrich Drepper <drepper@gmail.com>
11635
11636 * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
11637 !__SSE_MATH__.
11638
116392011-12-23 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
11640
11641 [BZ #13540]
11642 * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
11643 processing for last bytes.
11644
116452011-08-06 Bruno Haible <bruno@clisp.org>
11646
11647 [BZ #13061]
11648 * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
11649 U+0385, not to U+1FEE.
11650
11651 [BZ #13062]
11652 * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
11653 entry for U+00A5 U+0301.
11654
116552011-12-22 Ulrich Drepper <drepper@gmail.com>
11656
11657 [BZ #13166]
11658 * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
11659 buffer for the output is too small.
11660
11661 * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
11662 optimization.
11663
11664 [BZ #13185]
11665 * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
11666 SSE flags if possible.
11667
116682011-12-22 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
11669
11670 [BZ #13540]
11671 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
11672 processing for last bytes.
11673
116742011-12-22 Joseph Myers <joseph@codesourcery.com>
11675
11676 * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
11677 (syscall-list-default-options, syscall-list-default-condition)
11678 (syscall-list-includes): Define.
11679 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
11680 list of ABIs and options and #if conditions for each ABI. Do not
11681 handle common syscalls between ABIs specially.
11682 * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
11683 Remove.
11684 (syscall-list-variants, syscall-list-32bit-options)
11685 (syscall-list-32bit-condition, syscall-list-64bit-options)
11686 (syscall-list-64bit-condition): Define.
11687 * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
11688 (syscall-list-variants, syscall-list-32bit-options)
11689 (syscall-list-32bit-condition, syscall-list-64bit-options)
11690 (syscall-list-64bit-condition): Define.
11691 * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
11692 Remove.
11693 (syscall-list-variants, syscall-list-32bit-options)
11694 (syscall-list-32bit-condition, syscall-list-64bit-options)
11695 (syscall-list-64bit-condition): Define.
11696 * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
11697 Remove.
11698 (syscall-list-variants, syscall-list-32bit-options)
11699 (syscall-list-32bit-condition, syscall-list-64bit-options)
11700 (syscall-list-64bit-condition): Define.
11701
117022011-12-22 Ulrich Drepper <drepper@gmail.com>
11703
11704 * locale/iso-639.def: Add brx entry.
11705
11706 [BZ #13328]
11707 * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
11708 Proposed by Mariusz_Cukr <marcukr@op.pl>.
11709
11710 * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
11711 __feraiseexcept_renamed.
11712
117132011-12-21 Ulrich Drepper <drepper@gmail.com>
11714
11715 [BZ #13538]
11716 * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
11717 EPOLLET with unsigned values.
11718 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
11719 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
11720
11721 * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
11722 to large cancellation.
11723 * math/s_cacoshf.c: Likewise.
11724 * math/s_cacoshl.c: Likewise.
11725
117262011-11-18 Richard B. Kreckel <kreckel@ginac.de>
11727
11728 [BZ #13305]
11729 [BZ #12786]
11730 * math/s_cacosh.c: Fix rare miscomputation in cacosh().
11731 * math/s_cacoshf.c: Likewise.
11732 * math/s_cacoshl.c: Likewise.
11733
117342011-12-21 Ulrich Drepper <drepper@gmail.com>
11735
11736 [BZ #13439]
11737 * iconv/gconv.h: Define __GCONV_SWAP.
11738 * iconvdata/unicode.c: The swap bit must be stored in __flags.
11739 * iconvdata/utf-16.c: Likewise.
11740 * iconvdata/utf-32.c: Likewise.
11741
117422011-12-21 Andreas Schwab <schwab@linux-m68k.org>
11743
11744 [BZ #13524]
11745 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
11746 numerator after shifting it by one limb.
11747
117482011-12-19 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
11749
11750 * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
11751 under [__USE_EXTERN_INLINES].
11752
117532011-12-17 Ulrich Drepper <drepper@gmail.com>
11754
11755 [BZ #13446]
11756 * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
11757
117582011-11-22 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
11759
11760 * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
11761 * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
11762 optimized code.
11763 * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
11764 * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
11765 * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
11766 * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
11767 for strncasecmp/strncasecmp_l compilation.
11768 * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
11769 * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
11770
117712011-12-08 Marek Polacek <mpolacek@redhat.com>
11772
11773 [BZ #13484]
11774 * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
11775 of __asm__.
11776
117772011-12-17 Ulrich Drepper <drepper@gmail.com>
11778
11779 [BZ #13506]
11780 * time/tzfile.c (__tzfile_read): Check values from file header.
11781
117822011-11-21 Will Schmidt <will_schmidt@vnet.ibm.com>
11783
11784 * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
11785 * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
11786 * powerpc/powerpc32/dl-start.S: Likewise.
11787 * powerpc/powerpc32/elf/start.S: Likewise.
11788 * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
11789 * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
11790 * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
11791 * powerpc/powerpc32/fpu/s_floor.S: Likewise.
11792 * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
11793 * powerpc/powerpc32/fpu/s_lround.S: Likewise.
11794 * powerpc/powerpc32/fpu/s_rint.S: Likewise.
11795 * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
11796 * powerpc/powerpc32/fpu/s_round.S: Likewise.
11797 * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
11798 * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
11799 * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
11800 * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
11801 * powerpc/powerpc32/memset.S: Likewise.
11802 * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
11803 * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
11804 * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
11805 * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
11806 * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
11807 * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
11808 * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
11809 * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
11810 * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
11811 * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
11812 * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
11813 * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
11814 * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
11815
118162011-11-18 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
11817
11818 * math/libm-test.inc: Added more nearbyint tests.
11819 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
11820 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
11821 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
11822 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
11823
118242011-11-21 Ross Lagerwall <rosslagerwall@gmail.com>
11825
11826 * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
11827 FD_CLOEXEC.
11828
118292011-11-14 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
11830
11831 * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
11832 Add wcscpy-ssse3 wcscpy-c.
11833 * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
11834 * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
11835 * sysdeps/x86_64/multiarch/wcscpy.S: New file.
11836 * sysdeps/x86_64/wcschr.S: New file.
11837 * sysdeps/x86_64/wcsrchr.S: New file.
11838 * string/test-strcmp.c: Remove checking of wcscmp function for
11839 wrong alignments.
11840 * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
11841 (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
11842 wcsrchr-sse2 wcsrchr-c.
11843 * sysdeps/i386/i686/multiarch/wcschr.S: New file.
11844 * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
11845 * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
11846 * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
11847 * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
11848 * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
11849 * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
11850 * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
11851 * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
11852 * wcsmbc/wcschr.c (WCSCHR): New macro.
11853
118542011-11-17 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
11855
11856 * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
11857 * wcsmbs/test-wcsrchr.c: New file.
11858 * string/test-strrchr.c: Add wcsrchr support.
11859 (WIDE): New macro.
11860 * wcsmbs/test-wcscpy.c: New file.
11861 * string/test-strcpy.c: Add wcscpy support.
11862 (WIDE): New macro.
11863
118642011-12-10 Ulrich Drepper <drepper@gmail.com>
11865
11866 * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
11867 the inner loop.
11868
118692011-12-06 Andreas Schwab <schwab@linux-m68k.org>
11870
11871 [BZ #13472]
11872 * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
11873
118742011-12-04 Ulrich Drepper <drepper@gmail.com>
11875
11876 * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
11877 Minor optimizations.
11878
11879 * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
11880 * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
11881 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
11882
118832011-12-03 Ulrich Drepper <drepper@gmail.com>
11884
11885 * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
11886 IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
11887 IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
11888 for gcc to avoid warnings.
11889 * inet/Makefile (tests): Add tst-checks.
11890 * inet/tst-checks.c: New file.
11891
11892 * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
11893 warning.
11894
11895 * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
11896 __wmemcmp_sse2.
11897
11898 * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
11899 * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
11900
11901 * malloc/mcheck.h: Fix use of incorrect encoding in comment.
11902
119032011-12-02 Ulrich Drepper <drepper@gmail.com>
11904
11905 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
11906 problem.
11907
11908 * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
11909
119102011-11-29 Joseph Myers <joseph@codesourcery.com>
11911
11912 * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
11913 conditional on GCC version.
11914 (__arch_compare_and_exchange_val_8_acq)
11915 (__arch_compare_and_exchange_val_16_acq)
11916 (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
11917 (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
11918 (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
11919
119202011-12-02 Joseph Myers <joseph@codesourcery.com>
11921
11922 * sysdeps/sh/backtrace.c: New file.
11923
119242011-12-02 Andreas Schwab <schwab@redhat.com>
11925
11926 * misc/bits/select2.h (__FD_ELT): Mark as extension. Add
11927 parenthesis.
11928
119292011-12-01 Andreas Schwab <schwab@redhat.com>
11930
11931 * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
11932 falling back to utime.
11933
119342011-11-30 Andreas Schwab <schwab@redhat.com>
11935
11936 * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
11937 expectations for float.
11938
119392011-11-29 Andreas Schwab <schwab@redhat.com>
11940
11941 * locale/weight.h (findidx): Add parameter len.
11942 * locale/weightwc.h (findidx): Likewise.
11943 * posix/fnmatch_loop.c (FCT): Adjust caller.
11944 * posix/regcomp.c (build_equiv_class): Likewise.
11945 * posix/regex_internal.h (re_string_elem_size_at): Likewise.
11946 * posix/regexec.c (check_node_accept_bytes): Likewise.
11947 * string/strcoll_l.c (STRCOLL): Likewise.
11948 * string/strxfrm_l.c (STRXFRM): Likewise.
11949
119502011-11-17 Ulrich Drepper <drepper@gmail.com>
11951
11952 * Makefile.in: Remove CVSOPT handling.
11953 * configure.in: Remove use of AC_REVISION.
11954 * iconvdata/Makefile (distribute): No need to filter out CVS.
11955 * scripts/list-sources.sh: Remove CVS, subversion and monotone
11956 handling.
11957
119582011-11-16 Andreas Schwab <schwab@redhat.com>
11959
11960 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
11961 [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
11962 [USE_AS_STRNCASECMP_L]: Likewise.
11963 (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
11964 NO_TLS_DIRECT_SEG_REFS.
11965 * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
11966 Fix argument offsets for non-PIC.
11967 [USE_AS_STRNCASECMP_L]: Likewise.
11968 (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
11969 NO_TLS_DIRECT_SEG_REFS.
11970
119712011-11-15 Ulrich Drepper <drepper@gmail.com>
11972
11973 * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
11974 O_CLOEXEC.
11975 * locale/loadlocale.c (_nl_load_locale): Likewise.
11976
119772011-11-15 Andreas Schwab <schwab@redhat.com>
11978
11979 * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
11980 [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
11981 * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
11982 (SYSCALL_GETTIME): Set errno on error.
11983
11984 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
11985 count references to noai6ai_cached.
11986
119872011-11-15 Ulrich Drepper <drepper@gmail.com>
11988
11989 * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
11990
11991 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
11992 FD_CLOEXEC for /proc/self/maps.
11993
11994 * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
11995 FD_CLOEXEC for /proc/meminfo.
11996
11997 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
11998 gai.conf.
11999
12000 * resolv/res_query.c (res_hostalias): Don't allow cancellation and set
12001 FD_CLOEXEC for given file.
12002
12003 * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
12004
12005 * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
12006 FD_CLOEXEC for /etc/hosts.
12007 (_gethtent): Likewise.
12008
12009 * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
12010
12011 * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
12012 cancellation and set FD_CLOEXEC for /etc/netgroup.
12013
12014 * nss/nss_files/files-key.c (search): Don't allow cancellation when
12015 reading /etc/publickey.
12016
12017 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
12018 allow cancellation when reading /etc/group.
12019
12020 * nss/nss_files/files-alias.c (internal_setent): Don't allow
12021 cancellation.
12022 (get_next_alias): Likewise for included file. Also set FD_CLOEXEC.
12023
12024 * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
12025 when using data file.
12026
12027 * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
12028
12029 * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
12030 (write_nis_obj): Use "c" and "e" in fopen.
12031
12032 * misc/mntent_r.c (__setmntent): Also append e to fopen format.
12033
12034 * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
12035
12036 * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
12037
12038 * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
12039
12040 * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
12041 locale.alias.
12042
12043 * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
12044
12045 * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
12046
12047 * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
12048
12049 * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
12050 file parsing and set FD_CLOEXEC.
12051
120522011-11-14 Ulrich Drepper <drepper@gmail.com>
12053
12054 * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
12055
120562011-11-14 Andreas Schwab <schwab@redhat.com>
12057
12058 * malloc/arena.c (arena_get2): Don't call reused_arena when
12059 _int_new_arena failed.
12060
120612011-11-14 Ulrich Drepper <drepper@gmail.com>
12062
12063 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
12064 (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
12065 * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
12066 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12067 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12068 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
12069 to compile strcasecmp and strncasecmp.
12070 * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
12071 * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
12072
12073 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
12074
120752011-11-13 Ulrich Drepper <drepper@gmail.com>
12076
12077 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
12078 locale-defines.sym to gen-as-const-headers.
12079 (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
12080 strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
12081 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
12082 to compile strcasecmp and strncasecmp.
12083 * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
12084 strcasecmp_l and strncasecmp_l.
12085 * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
12086 * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
12087 * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
12088 * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
12089 * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
12090 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
12091 * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
12092 * sysdeps/i386/i686/multiarch/strncase.S: New file.
12093 * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
12094 * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
12095 * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
12096
120972011-11-12 Ulrich Drepper <drepper@gmail.com>
12098
12099 * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
12100 result of SYSDEP_GETTIME_CPU to retval.
12101 * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
12102 parameter list to macro. Remove trailing semicolon. Adjust users.
12103
12104 * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
12105 variable.
12106
12107 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
12108 mantissa words.
12109 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
12110
12111 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
12112 from unused variable.
12113
12114 * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
12115 DWARF definitions.
12116 * sysdeps/generic/dwarf2.h: Don't define enums when using the file
12117 for assembling.
12118
12119 * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
12120 over namespaces.
12121
12122 * sunrpc/rpc_prot.c (rejected): Fix case value.
12123
12124 * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
12125 unsigned long long int to avoid warnings in shift.
12126
12127 * posix/regex_internal.c (re_string_reconstruct): Actually use result
12128 of use of trans.
12129 * posix/regex_internal.h (re_string_wchar_at): Remove temporary
12130 variable tmp.
12131
12132 * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
12133 * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
12134 * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
12135
12136 * nis/nis_table.c (nis_list): Use variable of correct type for
12137 result of __follow_path call.
12138
121392011-11-07 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
12140
12141 * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
12142 of math functions ceil, trunc, floor, round, and sqrt, when
12143 avaliable on the platform.
12144 * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
12145 name clash.
12146 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12147 * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
12148 * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
12149
121502011-10-30 Marek Polacek <mpolacek@redhat.com>
12151
12152 * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
12153 * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
12154
121552011-11-11 Roland McGrath <roland@hack.frob.com>
12156
12157 * include/unistd.h: Fix __readlink return type.
12158 Reported by Chris Metcalf <cmetcalf@tilera.com>.
12159
121602011-11-11 Ulrich Drepper <drepper@gmail.com>
12161
12162 * stdlib/ucontext.h: Undo last change for makecontext.
12163
121642011-11-11 Andreas Schwab <schwab@redhat.com>
12165
12166 * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
12167
12168 * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
12169 * setjmp/setjmp.h: Mark functions as non-leaf.
12170 * setjmp/bits/setjmp2.h: Likewise.
12171 * stdlib/ucontext.h: Likewise.
12172
121732011-11-10 Andreas Schwab <schwab@redhat.com>
12174
12175 * malloc/arena.c (_int_new_arena): Don't increment narenas.
12176 (reused_arena): Don't check arena limit.
12177 (arena_get2): Atomically check arena limit.
12178
121792011-11-08 Ulrich Drepper <drepper@gmail.com>
12180
12181 * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
12182 * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
12183
12184 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
12185 instructions.
12186
121872011-11-07 Andreas Schwab <schwab@redhat.com>
12188
12189 * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
12190 handler when locking.
12191
12192 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12193 Fix size of allocated buffer.
12194
121952011-11-04 Andreas Schwab <schwab@redhat.com>
12196
12197 [BZ #10103]
12198 * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
12199 declarations for long double functions.
12200 * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
12201
12202 * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
12203
122042011-11-03 Andreas Schwab <schwab@redhat.com>
12205
12206 * nscd/nscd.c (main): Don't start AVC thread until credentials are
12207 installed.
12208
12209 * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
12210 is disabled.
12211
122122011-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12213
12214 * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
12215
122162011-11-01 Andreas Schwab <schwab@linux-m68k.org>
12217
12218 * include/alloca.h (stackinfo_alloca_round): Define.
12219 (extend_alloca): Use it.
12220 [_STACK_GROWS_UP]: Correct check for adjacent allocation.
12221 * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
12222 here.
12223
12224 * scripts/check-local-headers.sh: Ignore libaudit.h.
12225
12226 * nscd/Makefile (extra-objs): Make recursively expanded.
12227
122282011-11-01 Ulrich Drepper <drepper@gmail.com>
12229
12230 * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
12231 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
12232
12233 * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
12234 * posix/tst-rfc3484-2.c: Likewise.
12235 * posix/tst-rfc3484-3.c: Likewise.
12236
12237 * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12238 process_vm_writev.
12239 * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
12240 process_vm_writev.
12241 * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
12242 process_vm_writev from libc using GLIBC_2.15 version.
12243
12244 * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
12245
122462011-10-31 Paul Pluzhnikov <ppluzhnikov@google.com>
12247
12248 * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
12249 stack usage.
12250
122512011-10-31 Ulrich Drepper <drepper@gmail.com>
12252
12253 [BZ #13367]
12254 * nss/getent.c (initgroups_keys): Show error message in case no group
12255 names are given.
12256
12257 * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
12258 * inet/check_pf.c: Provide dummy versions of __free_in6ai and
12259 __bump_nl_timestamp.
12260 * nscd/connections (nscd_init): When host database is served open
12261 netlink socket and request notification about configuration changes.
12262 (main_loop_poll): Track netlink file descriptor and bump timestamp
12263 in case data becomes available.
12264 (main_loop_epoll): Likewise.
12265 * nscd/nscd-client.h (DB_VERSION): Bump to 2.
12266 (database_pers_head): Add extra_data fileds.
12267 Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
12268 * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
12269 * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
12270 Adjust caller.
12271 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
12272 in6ai data, call __free_in6ai.
12273 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
12274 Add -DHAVE_NETLINK.
12275 * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite. Cache the
12276 interface information. Reuse previous data if netlink timestamp
12277 is not changed.
12278 (__bump_nl_timestamp): New function.
12279 (__free_in6ai): New function.
12280
122812011-10-30 Ulrich Drepper <drepper@gmail.com>
12282
12283 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
12284 close_not_cancel_no_status here.
12285 (__check_pf): Reorganize code a bit to not call close twice if OOM.
12286
122872011-10-29 Ulrich Drepper <drepper@gmail.com>
12288
12289 [BZ #13276]
12290 * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
12291 return value.
12292
12293 * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
12294 * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
12295 asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
12296
122972011-07-03 Andreas Jaeger <aj@suse.de>
12298
12299 [BZ #10709]
12300 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
12301 of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
12302 * math/libm-test.inc (sin_test): Add test case.
12303
123042011-10-29 Ulrich Drepper <drepper@gmail.com>
12305
12306 [BZ #13337]
12307 * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
12308 Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
12309
12310 * elf/chroot_canon.c (chroot_canon): Cleanups.
12311
12312 * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
12313
12314 [BZ #13335]
12315 * elf/chroot_canon.c (chroot_canon): Fix readlink call.
12316 Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
12317
12318 * string/test-strchr.c: Make usable for strchrnul testing.
12319 * string/test-strchrnul.c: New file.
12320 * string/Makefile (strop-tests): Add strchrnul.
12321
12322 * po/it.po: Update from translation team.
12323 * po/es.po: Likewise.
12324
123252011-10-28 Ulrich Drepper <drepper@gmail.com>
12326
12327 * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
12328 the three constants needed as parameters. Drop the others.
12329 (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
12330 __m128i_strloadu_tolower.
12331 Create and initialize variable zero and use it in all the places
12332 where _mm_setzero_si128 was used.
12333
12334 * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
12335 doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
12336 mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
12337 * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
12338 anymore.
12339 * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
12340 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
12341 * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
12342 __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
12343 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
12344 __mpranred, __mptan.
12345 * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
12346 * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
12347 * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
12348 * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
12349 * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
12350 * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
12351 * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
12352 * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
12353 * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
12354
123552011-10-28 Andreas Schwab <schwab@redhat.com>
12356
12357 * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
12358 redefine if SHARED.
12359 * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
12360
12361 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
12362 wide char related routines to wcsmbs subdir.
12363
123642011-10-27 Andreas Schwab <schwab@redhat.com>
12365
12366 [BZ #13344]
12367 * misc/sys/cdefs.h (__THROWNL): Define.
12368 * posix/unistd.h: Use __THREADNL instead of __THREAD
12369 for memory synchronization functions.
12370
123712011-10-26 Roland McGrath <roland@hack.frob.com>
12372
12373 [BZ #13349]
12374 * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
12375 doesn't exist.
12376 * manual/stdio.texi (Obstack Streams): Node removed.
12377
123782011-10-26 Andreas Schwab <schwab@redhat.com>
12379
12380 * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
12381 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12382 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12383
12384 * math/math_private.h (math_force_eval): Allow non-addressable
12385 arguments.
12386 * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
12387
123882011-10-25 Ulrich Drepper <drepper@gmail.com>
12389
12390 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
12391 file is not needed.
12392
12393 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
12394 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
12395 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12396 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12397 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12398 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12399 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12400 * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
12401 Add AVX variants.
12402 * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
12403 * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
12404 * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
12405 * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
12406 * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
12407 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
12408 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
12409 * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
12410 * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
12411 * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
12412 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
12413 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
12414 * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
12415 * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
12416 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
12417 * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
12418 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
12419 * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
12420 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
12421
12422 * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
12423 all the time. Define bit_AVX. Define HAS_* macros using bit_* macros.
12424
12425 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
12426 place. Use VEX encoding when compiling for AVX.
12427
124282011-10-25 Andreas Schwab <schwab@redhat.com>
12429
12430 * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
12431 * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
12432
12433 * string/test-strchr.c (do_test): Don't generate NUL bytes.
12434
124352011-10-25 Ulrich Drepper <drepper@gmail.com>
12436
12437 * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
12438 useless if() expression.
12439 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12440 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12441 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12442 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12443 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12444 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12445 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12446 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12447 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12448 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12449 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12450 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12451 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12452 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12453 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12454 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12455 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12456 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12457 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12458
12459 * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
12460
124612011-10-25 Andreas Schwab <schwab@redhat.com>
12462
12463 * elf/dl-deps.c (_dl_map_object_deps): Remove always true
12464 condition.
12465 * elf/dl-fini.c (_dl_sort_fini): Likewise.
12466
124672011-10-25 Ulrich Drepper <drepper@gmail.com>
12468
12469 * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
12470 .text section. Avoid duplicate constants.
12471 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12472 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12473 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12474 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12475 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12476 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12477 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12478 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12479 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
12480 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
12481 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
12482 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
12483 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
12484 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
12485 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
12486 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
12487 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
12488 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
12489 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12490 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12491 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12492 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12493 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12494 * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
12495 * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
12496 * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
12497 * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
12498 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
12499 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
12500 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
12501 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
12502 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
12503 * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
12504 * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
12505 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
12506 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
12507 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
12508 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
12509 * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
12510 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
12511 * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
12512 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
12513 * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
12514 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
12515 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
12516
125172011-10-24 Ulrich Drepper <drepper@gmail.com>
12518
12519 * sysdeps/x86_64/dla.h: Move to ...
12520 * sysdeps/x86_64/fpu/dla.h: ...here.
12521 (DLA_FMS): Some compilers fail to inline __builtin_fma in some
12522 situations. Use __builtin_fma only for gcc 4.6 and up.
12523
12524 * config.make.in: Add have-mfma4 entry.
12525 * configure.in: Substitute libc_cv_cc_fma4.
12526 * math/Makefile (dbl-only-routines): Add sincostab.
12527 * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
12528 Use __sincostab not sincos.
12529 * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
12530 name is a macro.
12531 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12532 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12533 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12534 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise. Define singArctan2
12535 using __copysign.
12536 * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr. Don't define
12537 __cr and __cpymn. Define __cpy unless NO___CPY is defined. Define
12538 norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
12539 * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
12540 and __inv.
12541 * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
12542 * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
12543 __copysign.
12544 * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos. Don't
12545 define aliases when function name is a macro.
12546 * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
12547 sysdeps/ieee754/dbl-64/sincos.tbl.
12548 * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
12549 fma4-enabled routines.
12550 * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
12551 * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
12552 * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
12553 * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
12554 * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
12555 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
12556 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
12557 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
12558 * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
12559 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
12560 * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
12561 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
12562 * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
12563 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
12564 * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
12565 * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
12566 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
12567 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
12568 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
12569 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
12570 * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
12571 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
12572 * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
12573 * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
12574 * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
12575 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
12576 * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
12577 * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
12578 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
12579 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
12580
12581 * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
12582 rename.
12583 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12584 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12585 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12586 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12587 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12588 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12589 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12590 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12591
125922011-10-24 Andreas Schwab <schwab@redhat.com>
12593
12594 * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
12595
125962011-10-23 Ulrich Drepper <drepper@gmail.com>
12597
12598 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
12599
12600 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
12601 prediction.
12602 * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
12603
12604 * string/strnlen.c: Don't define STRNLEN, reverse logic.
12605 Remove unused variable magic_bits.
12606 * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
12607
12608 * string/strnlen.c: Define and use STRNLEN macro.
12609 * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
12610 Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
12611 * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
12612 * wcsmbs/wcslen.c: Define and use WCSLEN.
12613 * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
12614 * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
12615 * sysdeps/i386/i686/multiarch/strnlen.S: New file.
12616 * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
12617 * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
12618 * sysdeps/i386/i686/multiarch/wcslen.S: New file.
12619 Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
12620
126212011-10-20 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
12622
12623 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12624 strnlen-sse2-no-bsf.
12625 Rename strlen-no-bsf to strlen-sse2-no-bsf.
12626 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
12627 * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
12628 Add strnlen support.
12629 (USE_AS_STRNLEN): New macro.
12630 * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
12631 * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
12632 Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
12633 * sysdeps/x86_64/wcslen.S: New file.
12634
126352011-10-20 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
12636
12637 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
12638 XMM-moves are used for copying on small sizes.
12639
126402011-10-19 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
12641
12642 * wcsmbs/Makefile (strop-tests): Add wcschr.
12643 * wcsmbs/test-wcschr.c: New file.
12644 * string/test-strchr.c: Update.
12645 Add wcschr support.
12646 (WIDE): New macro.
12647
126482011-10-18 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
12649
12650 * wcsmbs/Makefile (strop-tests): Add wcslen.
12651 * wcsmbs/test-wcslen.c: New file.
12652 * string/test-strlen.c: Update.
12653 Add wcslen support.
12654 (WIDE): New macro.
12655
126562011-10-23 Ulrich Drepper <drepper@gmail.com>
12657
12658 * po/it.po: Update from translation team.
12659
126602011-09-22 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
12661
12662 * sysdeps/x86_64/wcscmp.S: Update.
12663 Fix wrong comparison semantics.
12664 wcscmp shall use signed comparison not unsigned.
12665 Don't use substraction to avoid overflow bug.
12666 * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
12667 * wcsmbc/wcscmp.c: Likewise.
12668 * string/test-strcmp.c: Likewise.
12669 Add new tests to check cases with negative values.
12670
126712011-10-23 Ulrich Drepper <drepper@gmail.com>
12672
12673 * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
12674 * sysdeps/x86_64/dla.h: ...here. New file.
12675 * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
12676 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12677 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12678 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12679 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12680 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12681 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12682 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12683 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12684
126852011-10-23 Andreas Schwab <schwab@linux-m68k.org>
12686
12687 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
12688 __ynl_finite aliases.
12689
126902011-10-22 Ulrich Drepper <drepper@gmail.com>
12691
12692 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12693
12694 * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
12695 define DLA_FMA.
12696 [DLA_FMA] (EMULV): Use DLA_FMA.
12697 [DLA_FMA] (MUL12): Use EMULV.
12698 * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
12699 that are not needed.
12700 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12701 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12702 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12703 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12704 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12705 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12706 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12707
127082011-10-22 Andreas Schwab <schwab@linux-m68k.org>
12709
12710 * math/s_nan.c: Undef __nan.
12711 * math/s_nanf.c: Undef __nanf.
12712 * math/s_nanl.c: Undef __nanl.
12713 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
12714 "math_private.h".
12715
127162011-10-22 Ulrich Drepper <drepper@gmail.com>
12717
12718 * math/s_catan.c: Add branch predictions.
12719 * math/s_catanf.c: Likewise.
12720 * math/s_catanh.c: Likewise.
12721 * math/s_catanhf.c: Likewise.
12722 * math/s_catanhl.c: Likewise.
12723 * math/s_catanl.c: Likewise.
12724 * math/s_cexp.c: Likewise.
12725 * math/s_cexpf.c: Likewise.
12726 * math/s_cexpl.c: Likewise.
12727 * math/s_clog.c: Likewise.
12728 * math/s_clog10.c: Likewise.
12729 * math/s_clog10f.c: Likewise.
12730 * math/s_clog10l.c: Likewise.
12731 * math/s_clogf.c: Likewise.
12732 * math/s_clogl.c: Likewise.
12733 * math/s_csqrt.c: Likewise.
12734 * math/s_csqrtf.c: Likewise.
12735 * math/s_csqrtl.c: Likewise.
12736 * math/s_ctanf.c: Likewise.
12737 * math/s_ctanh.c: Likewise.
12738 * math/s_ctanhf.c: Likewise.
12739 * math/s_ctanhl.c: Likewise.
12740 * math/s_ctanl.c: Likewise.
12741
12742 * math/math_private.h: Define __nan, __nanf, __nanl.
12743 * math/s_cacosh.c: Include <math_private.h>.
12744 * math/s_cacoshl.c: Likewise.
12745 * math/s_casinh.c: Likewise.
12746 * math/s_casinhf.c: Likewise.
12747 * math/s_casinhl.c: Likewise.
12748 * math/s_ccos.c: Rely entire on ccosh.
12749 * math/s_ccosf.c: Rely entire on ccoshf.
12750 * math/s_ccosl.c: Rely entirely on ccoshl.
12751 * math/s_ccosh.c: Add branch predicion helpers. Add branch prediction.
12752 Remove tests for FE_INVALID.
12753 * math/s_ccoshf.c: Likewise.
12754 * math/s_ccoshl.c: Likewise.
12755 * math/s_csin.c: Likewise.
12756 * math/s_csinf.c: Likewise.
12757 * math/s_csinh.c Likewise.
12758 * math/s_csinhf.c: Likewise.
12759 * math/s_csinhl.c: Likewise.
12760 * math/s_csinl.c: Likewise.
12761 * math/s_ctan.c: Likewise.
12762 * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
12763 * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
12764 * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
12765
127662011-10-21 Ulrich Drepper <drepper@gmail.com>
12767
12768 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
12769 compilation problems.
12770
12771 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
12772 __builtin_expect.
12773
127742011-10-20 Ulrich Drepper <drepper@gmail.com>
12775
12776 * sysdeps/i386/configure.in: Test for -mfma4 option.
12777 * config.h.in: Add HAVE_FMA4_SUPPORT entry.
12778 * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
12779 COMMON_CPUID_INDEX_80000001.
12780 * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
12781 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
12782 use it if FMA3 is not supported.
12783 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
12784
12785 * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
12786 * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
12787
127882011-10-20 Andreas Schwab <schwab@redhat.com>
12789
12790 [BZ #12892]
12791 * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
12792 it would create a cycle with a link time dependency.
12793
127942011-10-19 Ulrich Drepper <drepper@gmail.com>
12795
12796 * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
12797 instruction.
12798 * string/Makefile (strop-tests): Add rawmemchr.
12799 * string/test-rawmemchr.c: New file.
12800
12801 * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
12802 * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file. Split out from...
12803 * sysdeps/x86_64/multiarch/strcmp.S: ...here. Include strcmp-sse42.S
12804 when compiling str{,n}casecmp and when AVX is available. Hook up
12805 new optimized code in initializers.
12806
128072011-10-19 Andreas Schwab <schwab@redhat.com>
12808
12809 * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
12810 __feraiseexcept instead of feraiseexcept.
12811
128122011-10-18 Ulrich Drepper <drepper@gmail.com>
12813
12814 * math/math_private.h: Define defaults for libc_fetestexcept and
12815 libc_feupdateenv.
12816 * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
12817 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12818 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12819 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12820 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12821 * sysdeps/x86_64/fpu/math_private.h: Define special versions of
12822 libc_fetestexcept and libc_feupdateenv.
12823
12824 * math/math_private.h: Define defaults for libc_feholdexcept_setround,
12825 libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
12826 * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
12827 * sysdeps/x86_64/fpu/math_private.h: Define special version of
12828 libc_feholdexcept_setround.
12829
12830 * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
12831 Add s_nearbyint-c and s_nearbyintf-c.
12832 * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
12833 nearbyintf inlines.
12834 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
12835 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
12836 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
12837 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
12838
12839 * math/math_private.h: Define defaults for libc_fegetround,
12840 libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
12841 libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
12842 libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
12843 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
12844 libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
12845 standard functions.
12846 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12847 Remove comments and hacks for old compiler versions.
12848 * sysdeps/x86_64/fpu/math_private.h: Define special versions of
12849 libc_fegetround, libc_fesetround, libc_feholdexcept, and
12850 libc_feholdexceptl.
12851
128522011-10-18 Andreas Schwab <schwab@redhat.com>
12853
12854 * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
12855 (__feraiseexcept_renamed): Add __NTH.
12856 (feraiseexcept): Add __NTH. Rename local variables to fix
12857 namespace violations.
12858
128592011-10-17 Ulrich Drepper <drepper@gmail.com>
12860
12861 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
12862
12863 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
12864
12865 * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
12866 recently added interfaces.
12867 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
12868
12869 * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
12870 about macro parameter expansion.
12871
12872 * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
12873 __NO_MATH_INLINES is defined. Cleanups.
12874
12875 * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
12876 and __floorf is target has SSE4.1.
12877 * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
12878 * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
12879 * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
12880 * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
12881
12882 * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
12883 name.
12884 (floorf): Likewise.
12885
12886 * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
12887
128882011-10-17 Andreas Schwab <schwab@redhat.com>
12889
12890 * misc/sys/cdefs.h: Fix last change.
12891
12892 * grp/initgroups.c (internal_getgrouplist): Fix initgroups
12893 database lookup.
12894
128952011-10-16 Ulrich Drepper <drepper@gmail.com>
12896
12897 * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
12898
12899 * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
12900 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12901 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12902 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12903 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12904 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12905 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12906 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12907 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12908 * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
12909 * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
12910 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
12911 * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
12912 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
12913 * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
12914 * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
12915 * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
12916 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
12917 * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
12918 * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
12919 * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
12920 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
12921
12922 * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
12923 ceil, ceilf, floor, floorf.
12924
12925 * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
12926 Perform IRELATIVE relocations last.
12927
12928 * elf/do-rel.h: Add another parameter nrelative, replacing the
12929 local variable with the same name. Change name of the function
12930 to end in Rel or Rela (uppercase).
12931 * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
12932 nrelative to ranges. Only nonzero for DT_REL/DT_RELA. Pass to the
12933 elf_dynamic_do_##reloc function.
12934
129352011-10-15 Ulrich Drepper <drepper@gmail.com>
12936
12937 * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
12938 is sufficient, at least on modern CPUs.
12939
12940 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
12941
12942 * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
12943 * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
12944
12945 * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
12946 __expl_finite.
12947 * math/bits/math-finite.h: Add entries for exp.
12948 * math/e_expl.c: Add __*_finite alias.
12949 * sysdeps/i386/fpu/e_exp.S: Likewise.
12950 * sysdeps/i386/fpu/e_expf.S: Likewise.
12951 * sysdeps/i386/fpu/e_expl.c: Likewise.
12952 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12953 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12954 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12955 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
12956 * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
12957 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12958 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12959
12960 * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
12961 is sufficient, at least on modern CPUs.
12962
12963 * ctype/ctype-info.c (__ctype_init): Define.
12964 * include/ctype.h (__ctype_init): Declare.
12965 (__ctype_b_loc): The variable is always initialized.
12966 (__ctype_toupper_loc): Likewise.
12967 (__ctype_tolower_loc): Likewise.
12968 * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
12969 * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
12970
129712011-10-15 Andreas Schwab <schwab@linux-m68k.org>
12972
12973 * wcsmbs/wmemcmp.c (WMEMCMP): Define.
12974
12975 * configure.in: Also look in $cxxmachine/include for C++ system
12976 headers.
12977
129782011-09-27 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
12979
12980 * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
12981 memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
12982 * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
12983 * sysdeps/x86_64/multiarch/memcmp.S: Update. Add __memcmp_ssse3.
12984 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
12985 (USE_AS_WMEMCMP): New macro.
12986 Fixing indents.
12987 * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
12988 * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
12989 * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
12990 * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
12991 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12992 wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
12993 * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
12994 * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
12995 * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
12996 * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
12997 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
12998 (USE_AS_WMEMCMP): New macro.
12999 * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
13000 * sysdeps/string/test-memcmp.c: Update.
13001 Fix simple_wmemcmp.
13002 Add new tests.
13003 * wcsmbs/wmemcmp.c: Update.
13004 (WMEMCMP): New macro.
13005 Fix overflow bug.
13006
130072011-10-12 Andreas Jaeger <aj@suse.de>
13008
13009 [BZ #13268]
13010 * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
13011
130122011-10-15 Ulrich Drepper <drepper@gmail.com>
13013
13014 * libio/iofwide.c (do_length): Avoid warning.
13015
13016 * ctype/ctype.h (__isctype_f): Add missing __THROW.
13017
130182011-10-14 Ulrich Drepper <drepper@gmail.com>
13019
13020 * elf/pldd-xx.c (find_maps): Remove leftover debug message.
13021
13022 * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
13023 * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
13024 * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
13025 * sysdeps/i386/i686/fpu/e_log.S: New file.
13026 * sysdeps/i386/i686/fpu/e_logf.S: New file.
13027 * sysdeps/i386/i686/fpu/e_logl.S: New file.
13028
13029 * ctype/ctype.h: Add support for inlined isXXX functions when
13030 compiling C++ code.
13031
130322011-10-14 Andreas Schwab <schwab@redhat.com>
13033
13034 * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13035
13036 * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
13037
130382011-10-13 Roland McGrath <roland@hack.frob.com>
13039
13040 [BZ #13291]
13041 * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
13042
130432011-10-13 Andreas Schwab <schwab@redhat.com>
13044
13045 * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
13046 * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
13047 feraiseexcept.
13048
13049 * sysdeps/x86_64/memrchr.S: Check for zero size.
13050
13051 * string/stratcliff.c: Add memrchr tests.
13052
130532011-10-12 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
13054
13055 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13056 memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
13057 rawmemchr-sse2 rawmemchr-sse2-bsf.
13058 * sysdeps/i386/i686/multiarch/memchr.S: New file.
13059 * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
13060 * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
13061 * sysdeps/i386/i686/multiarch/memrchr.S: New file.
13062 * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
13063 * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
13064 * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
13065 * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
13066 * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
13067 * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
13068 * string/memrchr.c (MEMRCHR): New macro.
13069
130702011-10-12 Ulrich Drepper <drepper@gmail.com>
13071
13072 Add integration with gcc's -ffinite-math-only and optimize wrapper
13073 functions in libm.
13074 * Versions.def: Define GLIBC_2.15 version for libm.
13075 * math/Makefile (headers): Add bits/math-finite.h.
13076 * math/bits/math-finite.h: New file.
13077 * sysdeps/ia64/fpu/bits/math-finite.h: New file.
13078 * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
13079 * math/e_acoshl.c: Add __*_finite alias.
13080 * math/e_acosl.c: Likewise.
13081 * math/e_asinl.c: Likewise.
13082 * math/e_atan2l.c: Likewise.
13083 * math/e_atanhl.c: Likewise.
13084 * math/e_coshl.c: Likewise.
13085 * math/e_exp10.c: Likewise.
13086 * math/e_exp10f.c: Likewise.
13087 * math/e_exp10l.c: Likewise.
13088 * math/e_exp2l.c: Likewise.
13089 * math/e_fmodl.c: Likewise.
13090 * math/e_gammal_r.c: Likewise.
13091 * math/e_hypotl.c: Likewise.
13092 * math/e_j0l.c: Likewise.
13093 * math/e_j1l.c: Likewise.
13094 * math/e_jnl.c: Likewise.
13095 * math/e_lgammal_r.c: Likewise.
13096 * math/e_log10l.c: Likewise.
13097 * math/e_log2l.c: Likewise.
13098 * math/e_logl.c: Likewise.
13099 * math/e_powl.c: Likewise.
13100 * math/e_sinhl.c: Likewise.
13101 * math/e_sqrtl.c: Likewise.
13102 * math/e_scalb.c: Completely rewritten and optimized.
13103 * math/e_scalbf.c: Likewise.
13104 * math/e_scalbl.c: Likewise.
13105 * math/w_acos.c: Likewise.
13106 * math/w_acosf.c: Likewise.
13107 * math/w_acosl.c: Likewise.
13108 * math/w_acosh.c: Likewise.
13109 * math/w_acoshf.c: Likewise.
13110 * math/w_acoshl.c: Likewise.
13111 * math/w_asin.c: Likewise.
13112 * math/w_asinf.c: Likewise.
13113 * math/w_asinl.c: Likewise.
13114 * math/w_atan2.c: Likewise.
13115 * math/w_atan2f.c: Likewise.
13116 * math/w_atan2l.c: Likewise.
13117 * math/w_atanh.c: Likewise.
13118 * math/w_atanhf.c: Likewise.
13119 * math/w_atanhl.c: Likewise.
13120 * math/w_exp10.c: Likewise.
13121 * math/w_exp10f.c: Likewise.
13122 * math/w_exp10l.c: Likewise.
13123 * math/w_fmod.c: Likewise.
13124 * math/w_fmodf.c: Likewise.
13125 * math/w_fmodl.c: Likewise.
13126 * math/w_j0.c: Likewise.
13127 * math/w_j0f.c: Likewise.
13128 * math/w_j0l.c: Likewise.
13129 * math/w_j1.c: Likewise.
13130 * math/w_j1f.c: Likewise.
13131 * math/w_j1l.c: Likewise.
13132 * math/w_jn.c: Likewise.
13133 * math/w_jnf.c: Likewise.
13134 * math/w_log.c: Likewise.
13135 * math/w_logf.c: Likewise.
13136 * math/w_logl.c: Likewise.
13137 * math/w_log10.c: Likewise.
13138 * math/w_log10f.c: Likewise.
13139 * math/w_log10l.c: Likewise.
13140 * math/w_log2.c: Likewise.
13141 * math/w_log2f.c: Likewise.
13142 * math/w_log2l.c: Likewise.
13143 * math/w_pow.c: Likewise.
13144 * math/w_powf.c: Likewise.
13145 * math/w_powl.c: Likewise.
13146 * math/w_remainder.c: Likewise.
13147 * math/w_remainderf.c: Likewise.
13148 * math/w_remainderl.c: Likewise.
13149 * math/w_scalb.c: Likewise.
13150 * math/w_scalbf.c: Likewise.
13151 * math/w_scalbl.c: Likewise.
13152 * math/w_sqrt.c: Likewise.
13153 * math/w_sqrtf.c: Likewise.
13154 * math/w_sqrtl.c: Likewise.
13155 * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
13156 are declared. Include <bits/math-finite.h> if -ffinite-math-only is
13157 used.
13158 * math/math_private.h: Declare __kernel_standard_f.
13159 * math/w_cosh.c: Remove cruft and optimize a bit.
13160 * math/w_coshf.c: Likewise.
13161 * math/w_coshl.c: Likewise.
13162 * math/w_exp2.c: Likewise.
13163 * math/w_exp2f.c: Likewise.
13164 * math/w_exp2l.c: Likewise.
13165 * math/w_hypot.c: Likewise.
13166 * math/w_hypotf.c: Likewise.
13167 * math/w_hypotl.c: Likewise.
13168 * math/w_lgamma.c: Likewise.
13169 * math/w_lgamma_r.c: Likewise.
13170 * math/w_lgammaf.c: Likewise.
13171 * math/w_lgammaf_r.c: Likewise.
13172 * math/w_lgammal.c: Likewise.
13173 * math/w_lgammal_r.c: Likewise.
13174 * math/w_sinh.c: Likewise.
13175 * math/w_sinhf.c: Likewise.
13176 * math/w_sinhl.c: Likewise.
13177 * math/w_tgamma.c: Likewise.
13178 * math/w_tgammaf.c: Likewise.
13179 * math/w_tgammal.c: Likewise.
13180 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13181 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13182 * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
13183 Minor optimizations. Pretty printing. Remove cruft.
13184 * sysdeps/i386/fpu/e_acosf.S: Likewise.
13185 * sysdeps/i386/fpu/e_acosh.S: Likewise.
13186 * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13187 * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13188 * sysdeps/i386/fpu/e_acosl.c: Likewise.
13189 * sysdeps/i386/fpu/e_asin.S: Likewise.
13190 * sysdeps/i386/fpu/e_asinf.S: Likewise.
13191 * sysdeps/i386/fpu/e_atan2.S: Likewise.
13192 * sysdeps/i386/fpu/e_atan2f.S: Likewise.
13193 * sysdeps/i386/fpu/e_atan2l.c: Likewise.
13194 * sysdeps/i386/fpu/e_atanh.S: Likewise.
13195 * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13196 * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13197 * sysdeps/i386/fpu/e_exp10.S: Likewise.
13198 * sysdeps/i386/fpu/e_exp10f.S: Likewise.
13199 * sysdeps/i386/fpu/e_exp10l.S: Likewise.
13200 * sysdeps/i386/fpu/e_exp2.S: Likewise.
13201 * sysdeps/i386/fpu/e_exp2f.S: Likewise.
13202 * sysdeps/i386/fpu/e_exp2l.S: Likewise.
13203 * sysdeps/i386/fpu/e_fmod.S: Likewise.
13204 * sysdeps/i386/fpu/e_fmodf.S: Likewise.
13205 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
13206 * sysdeps/i386/fpu/e_hypot.S: Likewise.
13207 * sysdeps/i386/fpu/e_hypotf.S: Likewise.
13208 * sysdeps/i386/fpu/e_log.S: Likewise.
13209 * sysdeps/i386/fpu/e_log10.S: Likewise.
13210 * sysdeps/i386/fpu/e_log10f.S: Likewise.
13211 * sysdeps/i386/fpu/e_log10l.S: Likewise.
13212 * sysdeps/i386/fpu/e_log2.S: Likewise.
13213 * sysdeps/i386/fpu/e_log2f.S: Likewise.
13214 * sysdeps/i386/fpu/e_log2l.S: Likewise.
13215 * sysdeps/i386/fpu/e_logf.S: Likewise.
13216 * sysdeps/i386/fpu/e_logl.S: Likewise.
13217 * sysdeps/i386/fpu/e_pow.S: Likewise.
13218 * sysdeps/i386/fpu/e_powf.S: Likewise.
13219 * sysdeps/i386/fpu/e_powl.S: Likewise.
13220 * sysdeps/i386/fpu/e_remainder.S: Likewise.
13221 * sysdeps/i386/fpu/e_remainderf.S: Likewise.
13222 * sysdeps/i386/fpu/e_remainderl.S: Likewise.
13223 * sysdeps/i386/fpu/e_scalb.S: Likewise.
13224 * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13225 * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13226 * sysdeps/i386/fpu/e_sqrt.S: Likewise.
13227 * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
13228 * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
13229 * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
13230 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13231 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13232 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
13233 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13234 * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
13235 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13236 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
13237 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13238 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13239 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13240 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
13241 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13242 * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
13243 * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
13244 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13245 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
13246 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13247 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13248 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13249 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
13250 * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
13251 * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13252 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13253 * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
13254 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
13255 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13256 * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
13257 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13258 * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
13259 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13260 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13261 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13262 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
13263 * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
13264 * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
13265 * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
13266 * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
13267 * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
13268 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13269 * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
13270 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
13271 * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
13272 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
13273 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13274 * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
13275 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
13276 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
13277 * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
13278 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13279 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
13280 * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
13281 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13282 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13283 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
13284 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
13285 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
13286 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
13287 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
13288 * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
13289 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
13290 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
13291 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13292 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13293 * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
13294 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
13295 * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
13296 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
13297 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13298 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
13299 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
13300 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
13301 * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
13302 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
13303 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
13304 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13305 * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
13306 * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
13307 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13308 * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
13309 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13310 * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
13311 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13312 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13313 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13314 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
13315 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13316 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
13317 * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
13318 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13319 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13320 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13321 * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
13322 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13323 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13324 * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13325 * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13326 * sysdeps/s390/fpu/e_sqrt.c: Likewise.
13327 * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
13328 * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
13329 * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
13330 * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
13331 * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
13332 * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
13333 * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13334 * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13335 * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13336 * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13337 * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
13338 * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13339 * sysdeps/x86_64/fpu/e_sqrt.c: Likewise. Fix parameter order
13340 * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
13341 * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
13342 (__isnanf): Likewise.
13343 (__isinf_ns): Likewise.
13344 (__isinf_nsf): Likewise.
13345 (__finite): Likewise.
13346 (__finitef): Likewise.
13347 (__ieee754_sqrt): Define as macro.
13348 (__ieee754_sqrtf): Define as macro.
13349 (__ieee754_sqrtl): Define as macro.
13350 * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
13351 inlined copy.
13352 * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
13353 __FINITE_MATH_ONLY__ consistent.
13354 * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
13355
133562011-10-10 Andreas Schwab <schwab@linux-m68k.org>
13357
13358 * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
13359 of rawmemchr.
13360
13361 * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
13362
133632011-10-09 Ulrich Drepper <drepper@gmail.com>
13364
13365 * po/ja.po: Update from translation team.
13366
133672011-10-08 Roland McGrath <roland@hack.frob.com>
13368
13369 * locale/programs/locarchive.c (prepare_address_space): New function.
13370 (create_archive, enlarge_archive, open_archive): Use it.
13371
13372 * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
13373 inside [SHARED], where it is used.
13374
13375 * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
13376
13377 * nss/getent.c (netgroup_keys): Remove unused variable.
13378 * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
13379
133802011-10-08 Ulrich Drepper <drepper@gmail.com>
13381
13382 * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
13383 * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
13384 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
13385 * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
13386 * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
13387 * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
13388 * math/Makefile (libm-calls): Add s_isinf_ns.
13389 * math/divtc3.c: Use __isinf_nsl instead of isinf.
13390 * math/multc3.c: Likewise.
13391 * math/s_casin.c: Likewise.
13392 * math/s_casinf.c: Likewise.
13393 * math/s_casinl.c: Likewise.
13394 * math/s_ccos.c: Likewise.
13395 * math/s_ccosf.c: Likewise.
13396 * math/s_ccosl.c: Likewise.
13397 * math/s_ctan.c: Likewise.
13398 * math/s_ctanf.c: Likewise.
13399 * math/s_ctanh.c: Likewise.
13400 * math/s_ctanhf.c: Likewise.
13401 * math/s_ctanhl.c: Likewise.
13402 * math/s_ctanl.c: Likewise.
13403 * math/w_fmod.c: Likewise.
13404 * math/w_fmodf.c: Likewise.
13405 * math/w_fmodl.c: Likewise.
13406 * math/w_remainder.c: Likewise.
13407 * math/w_remainderf.c: Likewise.
13408 * math/w_remainderl.c: Likewise.
13409 * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
13410 * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
13411 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
13412 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
13413 * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
13414 * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
13415 * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
13416 __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
13417
13418 * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
13419 of the number.
13420 * stdio-common/printf_fphex.c: Likewise.
13421 * stdio-common/printf_size.c: Likewise.
13422
13423 * math/e_exp10.c: Include math_private.h using <...> not "...".
13424 * math/e_exp10f.c: Likewise.
13425 * math/e_exp10l.c: Likewise.
13426 * math/e_exp2l.c: Likewise.
13427 * math/e_j0l.c: Likewise.
13428 * math/e_j1l.c: Likewise.
13429 * math/e_jnl.c: Likewise.
13430 * math/e_lgammal_r.c: Likewise.
13431 * math/e_rem_pio2l.c: Likewise.
13432 * math/e_scalb.c: Likewise.
13433 * math/e_scalbf.c: Likewise.
13434 * math/e_scalbl.c: Likewise.
13435 * math/k_cosl.c: Likewise.
13436 * math/k_sinl.c: Likewise.
13437 * math/k_tanl.c: Likewise.
13438 * math/s_cacoshf.c: Likewise.
13439 * math/s_catan.c: Likewise.
13440 * math/s_catanf.c: Likewise.
13441 * math/s_catanh.c: Likewise.
13442 * math/s_catanhf.c: Likewise.
13443 * math/s_catanhl.c: Likewise.
13444 * math/s_catanl.c: Likewise.
13445 * math/s_ccosh.c: Likewise.
13446 * math/s_ccoshf.c: Likewise.
13447 * math/s_ccoshl.c: Likewise.
13448 * math/s_cexp.c: Likewise.
13449 * math/s_cexpf.c: Likewise.
13450 * math/s_cexpl.c: Likewise.
13451 * math/s_clog.c: Likewise.
13452 * math/s_clog10.c: Likewise.
13453 * math/s_clog10f.c: Likewise.
13454 * math/s_clog10l.c: Likewise.
13455 * math/s_clogf.c: Likewise.
13456 * math/s_clogl.c: Likewise.
13457 * math/s_csin.c: Likewise.
13458 * math/s_csinf.c: Likewise.
13459 * math/s_csinh.c: Likewise.
13460 * math/s_csinhf.c: Likewise.
13461 * math/s_csinhl.c: Likewise.
13462 * math/s_csinl.c: Likewise.
13463 * math/s_csqrt.c: Likewise.
13464 * math/s_csqrtf.c: Likewise.
13465 * math/s_csqrtl.c: Likewise.
13466 * math/s_ctan.c: Likewise.
13467 * math/s_ctanf.c: Likewise.
13468 * math/s_ctanh.c: Likewise.
13469 * math/s_ctanhf.c: Likewise.
13470 * math/s_ctanhl.c: Likewise.
13471 * math/s_ctanl.c: Likewise.
13472 * math/s_ldexp.c: Likewise.
13473 * math/s_ldexpf.c: Likewise.
13474 * math/s_ldexpl.c: Likewise.
13475 * math/s_significand.c: Likewise.
13476 * math/s_significandf.c: Likewise.
13477 * math/s_significandl.c: Likewise.
13478 * math/w_acos.c: Likewise.
13479 * math/w_acosf.c: Likewise.
13480 * math/w_acosh.c: Likewise.
13481 * math/w_acoshf.c: Likewise.
13482 * math/w_acoshl.c: Likewise.
13483 * math/w_acosl.c: Likewise.
13484 * math/w_asin.c: Likewise.
13485 * math/w_asinf.c: Likewise.
13486 * math/w_asinl.c: Likewise.
13487 * math/w_atan2.c: Likewise.
13488 * math/w_atan2f.c: Likewise.
13489 * math/w_atan2l.c: Likewise.
13490 * math/w_atanh.c: Likewise.
13491 * math/w_atanhf.c: Likewise.
13492 * math/w_atanhl.c: Likewise.
13493 * math/w_cosh.c: Likewise.
13494 * math/w_coshf.c: Likewise.
13495 * math/w_coshl.c: Likewise.
13496 * math/w_dremf.c: Likewise.
13497 * math/w_exp10.c: Likewise.
13498 * math/w_exp10f.c: Likewise.
13499 * math/w_exp10l.c: Likewise.
13500 * math/w_exp2.c: Likewise.
13501 * math/w_exp2f.c: Likewise.
13502 * math/w_fmod.c: Likewise.
13503 * math/w_fmodf.c: Likewise.
13504 * math/w_fmodl.c: Likewise.
13505 * math/w_hypot.c: Likewise.
13506 * math/w_hypotf.c: Likewise.
13507 * math/w_hypotl.c: Likewise.
13508 * math/w_j0.c: Likewise.
13509 * math/w_j0f.c: Likewise.
13510 * math/w_j0l.c: Likewise.
13511 * math/w_j1.c: Likewise.
13512 * math/w_j1f.c: Likewise.
13513 * math/w_j1l.c: Likewise.
13514 * math/w_jn.c: Likewise.
13515 * math/w_jnf.c: Likewise.
13516 * math/w_jnl.c: Likewise.
13517 * math/w_lgamma.c: Likewise.
13518 * math/w_lgamma_r.c: Likewise.
13519 * math/w_lgammaf.c: Likewise.
13520 * math/w_lgammaf_r.c: Likewise.
13521 * math/w_lgammal.c: Likewise.
13522 * math/w_lgammal_r.c: Likewise.
13523 * math/w_log.c: Likewise.
13524 * math/w_log10.c: Likewise.
13525 * math/w_log10f.c: Likewise.
13526 * math/w_log10l.c: Likewise.
13527 * math/w_log2.c: Likewise.
13528 * math/w_log2f.c: Likewise.
13529 * math/w_log2l.c: Likewise.
13530 * math/w_logf.c: Likewise.
13531 * math/w_logl.c: Likewise.
13532 * math/w_pow.c: Likewise.
13533 * math/w_powf.c: Likewise.
13534 * math/w_powl.c: Likewise.
13535 * math/w_remainder.c: Likewise.
13536 * math/w_remainderf.c: Likewise.
13537 * math/w_remainderl.c: Likewise.
13538 * math/w_scalb.c: Likewise.
13539 * math/w_scalbf.c: Likewise.
13540 * math/w_scalbl.c: Likewise.
13541 * math/w_sinh.c: Likewise.
13542 * math/w_sinhf.c: Likewise.
13543 * math/w_sinhl.c: Likewise.
13544 * math/w_sqrt.c: Likewise.
13545 * math/w_sqrtf.c: Likewise.
13546 * math/w_sqrtl.c: Likewise.
13547 * math/w_tgamma.c: Likewise.
13548 * math/w_tgammaf.c: Likewise.
13549 * math/w_tgammal.c: Likewise.
13550
13551 * po/ja.po: Update from translation team.
13552
135532011-09-29 Andreas Jaeger <aj@suse.de>
13554
13555 [BZ #13179]
13556 * sunrpc/netname.c (netname2host): Fix logic.
13557
13558 [BZ #6779]
13559 [BZ #6783]
13560 * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
13561 correctly.
13562 * math/w_remainder.c (__remainder): Likewise.
13563 * math/w_remainderf.c (__remainderf): Likewise.
13564 * math/libm-test.inc (remainder_test): Add test cases.
13565
135662011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13567
13568 * stdlib/longlong.h: Update from GCC. Fix zarch smul_ppmm and
13569 sdiv_qrnnd.
13570
135712011-10-07 Ulrich Drepper <drepper@gmail.com>
13572
13573 * string/test-memcmp.c: Avoid unncessary #defines.
13574 Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
13575
135762011-08-31 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
13577
13578 * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
13579 Use new sse2 version for core i3 - i7 as it's faster
13580 than sse42 version.
13581 (bit_Prefer_PMINUB_for_stringop): New.
13582 * sysdeps/x86_64/rawmemchr.S: Update.
13583 Replace with faster SSE2 version.
13584 * sysdeps/x86_64/memrchr.S: New file.
13585 * sysdeps/x86_64/memchr.S: Update.
13586 Replace with faster SSE2 version.
13587
135882011-09-12 Marek Polacek <mpolacek@redhat.com>
13589
13590 * elf/dl-load.c (lose): Add cast to avoid warning.
13591
135922011-10-07 Ulrich Drepper <drepper@gmail.com>
13593
13594 * po/ca.po: Update from translation team.
13595
13596 * inet/getnetgrent_r.c: Hook up nscd.
13597 * nscd/Makefile (routines): Add nscd_netgroup.
13598 (nscd-modules): Add netgroupcache.
13599 (CFLAGS-netgroupcache.c): Define.
13600 * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
13601 (cache_search): Add const to second parameter.
13602 * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
13603 INNETGR.
13604 (dbs): Add netgrdb entry.
13605 (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
13606 (verify_persistent_db): Handle netgrdb.
13607 (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
13608 * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
13609 GETFDNETGR.
13610 (netgroup_response_header): Define.
13611 (innetgroup_response_header): Define.
13612 (datahead): Add netgroup_response_header and innetgroup_response_header
13613 elements.
13614 * nscd/nscd.conf: Add entries for netgroup cache.
13615 * nscd/nscd.h (dbtype): Add netgrdb.
13616 (_PATH_NSCD_NETGROUP_DB): Define.
13617 (netgroup_iov_disabled): Declare.
13618 (xmalloc, xcalloc, xrealloc): Move declarations here.
13619 (cache_search): Adjust prototype.
13620 Add netgroup-related prototypes.
13621 * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
13622 * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
13623 (__nscd_innetgr): Declare.
13624 * nscd/selinux.c (perms): Use access_vector_t as element type and
13625 add netgroup-related initializers.
13626 * nscd/netgroupcache.c: New file.
13627 * nscd/nscd_netgroup.c: New file.
13628 * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
13629 * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
13630 For four parameters use innetgr.
13631 * nss/nss_files/files-init.c: Add definition and callback for netgr.
13632 * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
13633 (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
13634 * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
13635
13636 * nscd/connections.c (register_traced_file): Don't register file
13637 for disabled databases.
13638
136392011-10-06 Ulrich Drepper <drepper@gmail.com>
13640
13641 * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
13642
13643 * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
13644 from tree and freeing node.
13645
136462011-09-25 Jiri Olsa <jolsa@redhat.com>
13647
13648 * nss/nsswitch.c (__nss_database_lookup): Handle
13649 nss_parse_service_list out of memory case.
13650
136512011-09-15 Jiri Olsa <jolsa@redhat.com>
13652
13653 * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
13654 out of memory case.
13655
136562011-10-04 Andreas Schwab <schwab@redhat.com>
13657
13658 * include/dlfcn.h (__RTLD_NOIFUNC): Define.
13659 * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
13660 pass it down.
13661 * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
13662 elf_machine_rela, elf_machine_lazy_rel.
13663 (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
13664 (ELF_DYNAMIC_DO_REL): Likewise.
13665 (ELF_DYNAMIC_DO_RELA): Likewise.
13666 (ELF_DYNAMIC_RELOCATE): Likewise.
13667 * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
13668 to ELF_DYNAMIC_DO_REL.
13669 * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
13670 (dl_main): In trace mode always set __RTLD_NOIFUNC.
13671 * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
13672 elf_machine_rela.
13673 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
13674 skip_ifunc, don't call ifunc function if non-zero.
13675 (elf_machine_rela): Likewise.
13676 (elf_machine_lazy_rel): Likewise.
13677 (elf_machine_lazy_rela): Likewise.
13678 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13679 (elf_machine_lazy_rel): Likewise.
13680 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13681 Likewise.
13682 (elf_machine_lazy_rel): Likewise.
13683 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13684 Likewise.
13685 (elf_machine_lazy_rel): Likewise.
13686 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
13687 (elf_machine_lazy_rel): Likewise.
13688 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
13689 (elf_machine_lazy_rel): Likewise.
13690 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13691 (elf_machine_lazy_rel): Likewise.
13692 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
13693 (elf_machine_lazy_rel): Likewise.
13694 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
13695 (elf_machine_lazy_rel): Likewise.
13696 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13697 (elf_machine_lazy_rel): Likewise.
13698
136992011-09-28 Ulrich Drepper <drepper@gmail.com>
13700
13701 * nss/nss_files/files-init.c (_nss_files_init): Use static
13702 initialization for all the *_traced_file variables.
13703
137042011-09-28 Andreas Schwab <schwab@redhat.com>
13705
13706 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13707
137082011-09-27 Roland McGrath <roland@hack.frob.com>
13709
13710 [BZ #13226]
13711 * manual/signal.texi (Longjmp in Handler): Grammar fixes.
13712
137132011-09-27 Andreas Schwab <schwab@redhat.com>
13714
13715 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13716 Reread the line before reparsing it.
13717
137182011-09-26 Andreas Schwab <schwab@redhat.com>
13719
13720 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
13721
137222011-09-21 Chung-Lin Tang <cltang@codesourcery.com>
13723 Maxim Kuvyrkov <maxim@codesourcery.com>
13724 Joseph Myers <joseph@codesourcery.com>
13725
13726 * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
13727 if needed for __stack_chk_guard.
13728
137292011-09-19 Roland McGrath <roland@hack.frob.com>
13730
13731 * sysdeps/posix/spawni.c (script_execute): Always define it.
13732 It will be optimized away if unused.
13733 (maybe_script_execute): New function.
13734 (__spawni): Call it.
13735
13736 * Makerules: Don't include tls.make.
13737 (config-tls): Always set to thread.
13738 * tls.make.c: File removed.
13739
137402011-09-19 Mike Frysinger <vapier@gentoo.org>
13741
13742 * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
13743 * config.make.in (CPPFLAGS-config): New substituted variable.
13744
137452011-09-15 Ulrich Drepper <drepper@gmail.com>
13746
13747 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
13748
13749 [BZ #13192]
13750 * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
13751 Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
13752
137532011-09-15 Roland McGrath <roland@hack.frob.com>
13754
13755 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
13756 (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
13757 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
13758 (CALL_FAIL): Likewise.
13759 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
13760 (CALL_FAIL): Macro removed.
13761 Patch mostly by Mike Frysinger <vapier@gentoo.org>.
13762
137632011-09-15 Ulrich Drepper <drepper@gmail.com>
13764
13765 * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
13766 for __FINITE_MATH_ONLY__ == 1.
13767
137682011-09-15 Andreas Schwab <schwab@redhat.com>
13769
13770 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
13771 __ieee754_sqrt instead of sqrt.
13772 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
13773 __ieee754_sqrtf instead of sqrtf.
13774 * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
13775 __floorf instead of floorf.
13776 * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
13777 __floorf, __truncf instead of floorf, truncf.
13778
137792011-09-14 Ulrich Drepper <drepper@gmail.com>
13780
13781 * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
13782
13783 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
13784 __extern_always_inline.
13785 Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
13786 32-bit.
13787
137882011-09-14 Andreas Schwab <schwab@redhat.com>
13789
13790 * elf/rtld.c (dl_main): Also relocate in dependency order when
13791 doing symbol dependency testing.
13792
137932011-09-13 Andreas Schwab <schwab@linux-m68k.org>
13794
13795 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13796 Always define `refsym'.
13797
137982011-09-13 Andreas Schwab <schwab@redhat.com>
13799
13800 * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
13801 (__FD_ELT): Renamed from __FDELT.
13802 * misc/bits/select2.h (__FD_ELT): Likewise.
13803 * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
13804 __FD_MASK instead of __FDELT, __FDMASK.
13805 * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
13806 Likewise.
13807 * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
13808 Likewise.
13809
13810 * elf/Makefile (gen-ldd): Fix pattern.
13811
13812 * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
13813 (init_tls): Likewise.
13814
138152011-09-12 Ulrich Drepper <drepper@gmail.com>
13816
13817 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
13818
138192011-09-12 Andreas Schwab <schwab@redhat.com>
13820
13821 * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
13822 `struct cmsghdr *' instead of `void *'.
13823 * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
13824 Likewise.
13825
138262011-09-11 Andreas Schwab <schwab@linux-m68k.org>
13827
13828 * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
13829 if non-absolute.
13830 * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
13831 ldd_rewrite_script.
13832
138332011-09-11 Ulrich Drepper <drepper@gmail.com>
13834
13835 * configure.in: Remove --with-tls option.
13836 * config.h.in: Remove HAVE_TLS_SUPPORT entry.
13837 * sysdeps/i386/elf/configure.in: Always test for TLS support and err
13838 out in case it is missing.
13839 * sysdeps/ia64/elf/configure.in: Likewise.
13840 * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
13841 * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
13842 * sysdeps/s390/s390-32/elf/configure.in: Likewise.
13843 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
13844 * sysdeps/sh/elf/configure.in: Likewise.
13845 * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
13846 * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
13847 * sysdeps/x86_64/elf/configure.in: Likewise.
13848 * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
13849 * sysdeps/mach/hurd/tls.h: Likewise.
13850
13851 [BZ #13067]
13852 * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
13853
13854 [BZ #13090]
13855 * configure.in: Fix use of AC_INIT.
13856
13857 * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
13858
138592011-09-10 Ulrich Drepper <drepper@gmail.com>
13860
13861 * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
13862 __set_errno.
13863 * malloc/hooks.c: Likewise.
13864
13865 [BZ #11929]
13866 * malloc/arena.c (ptmalloc_init_minimal): Removed. Initialize all
13867 variables statically.
13868 (narenas): Initialize.
13869 (list_lock): Initialize.
13870 (ptmalloc_init): Don't call ptmalloc_init_minimal. Remove
13871 initializtion of main_arena and list_lock. Small cleanups.
13872 Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
13873 * malloc/malloc.c: Remove malloc_getpagesize. Include <ldsodefs.h>.
13874 Add initializers to main_arena and mp_.
13875 (malloc_state): Remove pagesize member. Change all users to use
13876 GLRO(dl_pagesize).
13877
13878 * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
13879 * sysdeps/unix/sysv/linux/getpagesize.c: Simplify. GLRO(dl_pagesize)
13880 is always initialized.
13881
13882 * malloc/malloc.c: Removed unused configurations and dead code.
13883 * malloc/arena.c: Likewise.
13884 * malloc/hooks.c: Likewise.
13885 * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
13886
13887 * include/tls.h: Removed. USE___THREAD must always be defined.
13888 * bits/libc-tsd.h: Don't handle !USE___THREAD.
13889 * elf/dl-libc.c: Likewise.
13890 * elf/dl-tsd.c: Likewise.
13891 * include/errno.h: Likewise.
13892 * include/netdb.h: Likewise.
13893 * include/resolv.h: Likewise.
13894 * inet/herrno-loc.c: Likewise.
13895 * inet/herrno.c: Likewise.
13896 * malloc/arena.c: Likewise.
13897 * malloc/hooks.c: Likewise.
13898 * malloc/malloc.c: Likewise.
13899 * resolv/res-state.c: Likewise.
13900 * resolv/res_libc.c: Likewise.
13901 * sysdeps/i386/dl-machine.h: Likewise.
13902 * sysdeps/ia64/dl-machine.h: Likewise.
13903 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
13904 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13905 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13906 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13907 * sysdeps/sh/dl-machine.h: Likewise.
13908 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13909 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13910 * sysdeps/unix/i386/sysdep.S: Likewise.
13911 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
13912 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
13913 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
13914 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
13915 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
13916 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
13917 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
13918 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
13919 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13920 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
13921 * sysdeps/unix/x86_64/sysdep.S: Likewise.
13922 * sysdeps/x86_64/dl-machine.h: Likewise.
13923 * tls.make.c: Likewise.
13924
13925 * configure.in: Remove --with-__thread option. Make tests for
13926 --no-whole-archive, __builtin_expect, symbol redirection, __thread,
13927 tls_model attribute fail if no support is available. Remove
13928 USE_IN_LIBIO.
13929 * Makeconfig: Adjust for dropped configure option. All features are
13930 now mandatory.
13931 * Makerules: Likewise.
13932 * Versions.def: Likewise.
13933 * argp/argp-fmtstream.c: Likewise.
13934 * argp/argp-fmtstream.h: Likewise.
13935 * argp/argp-help.c: Likewise.
13936 * assert/assert.c: Likewise.
13937 * config.h.in: Likewise.
13938 * config.make.in: Likewise.
13939 * configure: Likewise.
13940 * configure.in: Likewise.
13941 * csu/Versions: Likewise.
13942 * csu/init.c: Likewise.
13943 * elf/tst-audit2.c: Likewise.
13944 * elf/tst-tls10.c: Likewise.
13945 * elf/tst-tls10.h: Likewise.
13946 * elf/tst-tls11.c: Likewise.
13947 * elf/tst-tls12.c: Likewise.
13948 * elf/tst-tls14.c: Likewise.
13949 * elf/tst-tlsmod11.c: Likewise.
13950 * elf/tst-tlsmod12.c: Likewise.
13951 * elf/tst-tlsmod13.c: Likewise.
13952 * elf/tst-tlsmod13a.c: Likewise.
13953 * elf/tst-tlsmod14a.c: Likewise.
13954 * elf/tst-tlsmod15b.c: Likewise.
13955 * elf/tst-tlsmod16a.c: Likewise.
13956 * elf/tst-tlsmod16b.c: Likewise.
13957 * elf/tst-tlsmod7.c: Likewise.
13958 * elf/tst-tlsmod8.c: Likewise.
13959 * elf/tst-tlsmod9.c: Likewise.
13960 * gmon/gmon.c: Likewise.
13961 * grp/fgetgrent_r.c: Likewise.
13962 * grp/putgrent.c: Likewise.
13963 * hurd/fopenport.c: Likewise.
13964 * include/libc-symbols.h: Likewise.
13965 * include/tls.h: Likewise.
13966 * intl/gettextP.h: Likewise.
13967 * intl/loadinfo.h: Likewise.
13968 * locale/global-locale.c: Likewise.
13969 * locale/localeinfo.h: Likewise.
13970 * mach/devstream.c: Likewise.
13971 * malloc/arena.c: Likewise.
13972 * malloc/set-freeres.c: Likewise.
13973 * misc/err.c: Likewise.
13974 * misc/getttyent.c: Likewise.
13975 * misc/mntent_r.c: Likewise.
13976 * posix/getopt.c: Likewise.
13977 * posix/wordexp.c: Likewise.
13978 * pwd/fgetpwent_r.c: Likewise.
13979 * resolv/Versions: Likewise.
13980 * resolv/res_hconf.c: Likewise.
13981 * shadow/fgetspent_r.c: Likewise.
13982 * shadow/putspent.c: Likewise.
13983 * stdio-common/printf_fphex.c: Likewise.
13984 * stdio-common/tmpfile.c: Likewise.
13985 * stdlib/abort.c: Likewise.
13986 * stdlib/fmtmsg.c: Likewise.
13987 * sunrpc/auth_unix.c: Likewise.
13988 * sunrpc/clnt_perr.c: Likewise.
13989 * sunrpc/clnt_tcp.c: Likewise.
13990 * sunrpc/clnt_udp.c: Likewise.
13991 * sunrpc/clnt_unix.c: Likewise.
13992 * sunrpc/openchild.c: Likewise.
13993 * sunrpc/svc_simple.c: Likewise.
13994 * sunrpc/svc_tcp.c: Likewise.
13995 * sunrpc/svc_udp.c: Likewise.
13996 * sunrpc/svc_unix.c: Likewise.
13997 * sunrpc/xdr.c: Likewise.
13998 * sunrpc/xdr_array.c: Likewise.
13999 * sunrpc/xdr_rec.c: Likewise.
14000 * sunrpc/xdr_ref.c: Likewise.
14001 * sunrpc/xdr_stdio.c: Likewise.
14002
140032011-09-09 Ulrich Drepper <drepper@gmail.com>
14004
14005 * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14006
140072011-07-03 Andreas Jaeger <aj@suse.de>
14008
14009 * math/libm-test.inc (jn_test): Add tests for BZ#11589.
14010 * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
14011 regenerate with gen-libm-tests.pl.
14012
140132010-05-12 Petr Baudis <pasky@suse.cz>
14014
14015 [BZ #11589]
14016 * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
14017 around j0() zero points by switching to j1().
14018 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14019 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14020 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14021 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14022
140232011-09-09 Ulrich Drepper <drepper@gmail.com>
14024
14025 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
14026 instead of 0.
14027 * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
14028 instead of 0. .
14029 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14030 Patch in part by Pavel Roskin <proski@gnu.org>.
14031
14032 [BZ #13138]
14033 * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
14034 realloc.
14035 (_IO_vfscanf_internal): Remove reteof. Use errout after setting done.
14036 Free memory block if necessary.
14037
14038 [BZ #12847]
14039 * libio/genops.c (INTDEF): For string streams the _lock pointer can
14040 be NULL. Don't lock in this case.
14041
140422011-09-09 Roland McGrath <roland@hack.frob.com>
14043
14044 * elf/elf.h (ELFOSABI_GNU): New macro.
14045 (ELFOSABI_LINUX): Define to that.
14046
140472011-07-29 Denis Zaitceff <zaitceff@gmail.com>
14048
14049 * string/strncat.c (strncat): Undef the symbol in case it has been
14050 defined in bits/string.h.
14051
140522011-09-09 Ulrich Drepper <drepper@gmail.com>
14053
14054 * elf/sotruss.ksh: Clean up, fix, and complete help messages.
14055
14056 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
14057 link map.
14058
140592011-08-17 Andreas Jaeger <aj@suse.de>
14060
14061 * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
14062
140632011-08-18 Paul Pluzhnikov <ppluzhnikov@google.com>
14064 Ian Lance Taylor <iant@google.com>
14065
14066 * math/libm-test.inc (lround_test): New testcase.
14067 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
14068
140692011-09-08 Ulrich Drepper <drepper@gmail.com>
14070
14071 * Makefile: Remove support for automatic cvs check-ins.
14072 * Makerules: Likewise.
14073 * config.make.in: Likewise.
14074 * configure.in: Likewise.
14075 * intl/Makefile: Likewise.
14076 * locale/Makefile: Likewise.
14077 * po/Makefile: Likewise.
14078 * posix/Makefile: Likewise.
14079 * sysdeps/gnu/Makefile: Likewise.
14080 * sysdeps/mach/hurd/Makefile: Likewise.
14081 * sysdeps/sparc/sparc32/Makefile: Likewise.
14082
14083 [BZ #13118]
14084 * posix/Makefile (bug-regex32-ENV): Define.
14085 Patch by John Stanley <jpsinthemix@verizon.net>.
14086
14087 * misc/Makefile (headers): Add bits/select2.h.
14088 * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
14089 * misc/bits/select2.h: New file.
14090 * include/bits/select2.h: New file.
14091 * debug/Makefile (routines): Add fdelt_chk.
14092 * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
14093 * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
14094 FD_ISSET.
14095 * debug/fdelt_chk.c: New file.
14096
14097 * wcsmbs/test-wcscmp.c: Moved from string/*. Adjust.
14098 * wcsmbs/test-wmemcmp.c: Likewise.
14099 * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
14100 * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
14101
141022011-09-08 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
14103
14104 * string/Makefile (strop-tests): Add memcmp.
14105 * string/test-wmemcmp.c: New file.
14106 * string/test-memcmp.c: Add wmemcmp support.
14107
141082011-09-08 Roland McGrath <roland@hack.frob.com>
14109
14110 [BZ #13153]
14111 * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
14112 2011-07-19 change.
14113
14114 * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
14115 garbage value in a __mach_port_mod_refs call in the cases of the
14116 task-self and thread-self ports.
14117
141182011-09-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14119
14120 * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
14121
141222011-09-08 Andreas Schwab <schwab@redhat.com>
14123
14124 * elf/dl-load.c (lose): Check for non-null L.
14125
141262011-09-07 Ulrich Drepper <drepper@gmail.com>
14127
14128 * elf/dl-load.c (open_verify): Use O_CLOEXEC.
14129
14130 * elf/dl-libc.c (dlerror_run): Pass back error code from
14131 dl_catch_error.
14132
14133 [BZ #13123]
14134 * elf/dl-load.c (lose): Free l_origin if it is valid.
14135
14136 * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
14137 names.
14138 * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
14139 * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
14140 * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
14141 * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
14142 * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
14143 Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
14144
141452011-08-01 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
14146
14147 * sysdeps/powerpc/fpu/e_hypot.c: New file.
14148 * sysdeps/powerpc/fpu/e_hypotf.c: New file.
14149 * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
14150 * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
14151 * sysdeps/powerpc/fpu/k_cosf.c: New file.
14152 * sysdeps/powerpc/fpu/k_sinf.c: New file.
14153 * sysdeps/powerpc/fpu/s_cosf.c: New file.
14154 * sysdeps/powerpc/fpu/s_sinf.c: New file.
14155 * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
14156 * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
14157
141582011-08-15 Alan Modra <amodra@gmail.com>
14159
14160 [BZ #13092]
14161 * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
14162 * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
14163 * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here. Add
14164 ppc_mcount to static-only-routines.
14165 * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
14166 __mcount_internal.
14167 * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
14168 __mcount_internal with usual JUMPTARGET. Remove useless nop.
14169
141702011-08-18 David Flaherty <flaherty@linux.vnet.ibm.com>
14171
14172 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
14173 for finite and infinity parameters.
14174
141752011-08-04 Will Schmidt <will_schmidt@vnet.ibm.com>
14176
14177 * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
14178 and add nop instructions for throughput optimization.
14179 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14180
141812011-07-28 Will Schmidt <will_schmidt@vnet.ibm.com>
14182
14183 * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
14184 aligned copy for power7 with vector-scalar instructions.
14185 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
14186
141872011-07-24 H.J. Lu <hongjiu.lu@intel.com>
14188
14189 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
14190 AVX check.
14191
141922011-09-07 Andreas Schwab <schwab@redhat.com>
14193
14194 [BZ #13144]
14195 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
14196 last change.
14197
141982011-09-07 Ulrich Drepper <drepper@gmail.com>
14199
14200 * sysdeps/unix/sysv/linux/x86_64/init-first.c
14201 (_libc_vdso_platform_setup): If vDSO is not present store pointer to
14202 syscall wrapper around clock_gettime in __vdso_clock_gettime.
14203 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
14204 clock_gettime.
14205
142062011-09-06 Ulrich Drepper <drepper@gmail.com>
14207
14208 * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
14209 Forgot to demangle the pointer.
14210
14211 * sysdeps/i386/sysdep.h: Define atom_text_section.
14212 * sysdeps/x86_64/sysdep.h: Likewise.
14213 * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
14214 section with atom_text_section.
14215 * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
14216 * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
14217 * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
14218 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
14219 * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
14220
14221 * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
14222 * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
14223 already be defined. Change to take two parameters and don't assign
14224 result to variable. Adjust all users.
14225 Define INTERNAL_GETTIME if not already defined.
14226 Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
14227 call.
14228 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
14229 HAVE_CLOCK_GETTIME_VSYSCALL.
14230 * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
14231
14232 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
14233 gettimeofday vsyscall, just use time.
14234
142352011-09-06 Andreas Schwab <schwab@redhat.com>
14236
14237 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
14238 <errno.h>.
14239
142402011-09-06 Ulrich Drepper <drepper@gmail.com>
14241
14242 * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
14243 syscall on x86-64.
14244 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
14245 syscall.
14246 * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
14247 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
14248 syscall if possible.
14249
142502011-09-05 Ulrich Drepper <drepper@gmail.com>
14251
14252 * elf/pldd.c (get_process_info): Don't read whole ELF header, just
14253 e_ident. Don't pass to find_mapsXX.
14254 * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
14255
142562011-07-20 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
14257
14258 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14259 strchr-sse2-no-bsf strrchr-sse2-no-bsf
14260 * sysdeps/x86_64/multiarch/strchr.S: Update.
14261 Check bit_slow_BSF bit.
14262 * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
14263 * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
14264 * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
14265
142662011-09-05 Ulrich Drepper <drepper@gmail.com>
14267
14268 [BZ #13134]
14269 * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
14270 before glibc 2.15.
14271 (tryshell): Define.
14272 (__spawni): Change last parameter to be flag. Test
14273 SPAWN_XFLAGS_USE_PATH flag to use path or not.
14274 Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
14275 * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
14276 * posix/spawni.c: Likewise.
14277 * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
14278 * posix/spawnp.c: Likewise. Change normal version to use
14279 SPAWN_XFLAGS_USE_PATH.
14280 * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
14281 SPAWN_XFLAGS_TRY_SHELL.
14282
14283 [BZ #13150]
14284 * posix/glob.h: Remove gcc 1.x support.
14285
14286 [BZ #13068]
14287 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
14288
142892011-07-20 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
14290
14291 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14292 strchr-sse2 strrchr-sse2 strchr-sse2-bsf
14293 strrchr-sse2-bsf
14294 * sysdeps/i386/i686/multiarch/strchr.S: New file.
14295 * sysdeps/i386/i686/multiarch/strrchr.S: New file.
14296 * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
14297 * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
14298 * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
14299 * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
14300
143012011-08-29 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
14302
14303 * sysdeps/x86_64/wcscmp.S: New file.
14304
14305 * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
14306 wcscmp-c wcscmp-sse2
14307 * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
14308 * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
14309 * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
14310 * wcsmbs/wcscmp.c: Allow renaming.
14311
143122011-09-05 David S. Miller <davem@davemloft.net>
14313
14314 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
14315 stack slot, rather than the struct return pointer slot.
14316 * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
14317 * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
14318 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
14319 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
14320
143212011-09-05 Ulrich Drepper <drepper@gmail.com>
14322
14323 * po/ja.po: Update from translation team.
14324
14325 [BZ #13144]
14326 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
14327 kernel in 64-bit binaries.
14328
143292011-09-01 David S. Miller <davem@davemloft.net>
14330
14331 * elf/elf.h (HWCAP_SPARC_*): Move to..
14332 * sysdeps/sparc/sysdep.h: this new file and add new values.
14333 * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
14334 * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
14335 _DL_HWCAP_COUNT to 24.
14336 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
14337 entries.
14338 * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
14339 __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
14340 * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
14341 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
14342 instead of magic constants.
14343 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14344
143452011-08-31 David S. Miller <davem@davemloft.net>
14346
14347 * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
14348 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
14349 Reimplement to do errno handling inline.
14350 (SYSCALL_ERROR_HANDLER): New macro.
14351 (__SYSCALL_STRING): Do not do errno handling in asm.
14352 (__CLONE_SYSCALL_STRING): Delete.
14353 (__INTERNAL_SYSCALL_STRING): Delete.
14354 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
14355 sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
14356 (PSEUDO): Reimplement to do errno handling inline.
14357 (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
14358 (SYSCALL_ERROR_HANDLER): New macro.
14359 (__SYSCALL_STRING): Do not do errno handling in asm.
14360 (__CLONE_SYSCALL_STRING): Delete.
14361 (__INTERNAL_SYSCALL_STRING): Delete.
14362 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
14363 Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
14364 i386.
14365 (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
14366 (inline_syscall*): Add 'err' argument.
14367 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
14368 INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
14369 (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
14370 INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
14371
14372 * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
14373 * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
14374
143752011-08-30 Andreas Schwab <schwab@redhat.com>
14376
14377 * elf/rtld.c (dl_main): Relocate objects in dependency order.
14378
143792011-08-29 Jiri Olsa <jolsa@redhat.com>
14380
14381 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
14382 directive.
14383
143842011-08-24 David S. Miller <davem@davemloft.net>
14385
14386 * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
14387
143882011-08-24 Andreas Schwab <schwab@redhat.com>
14389
14390 * elf/Makefile: Add rules to build and run unload8 test.
14391 * elf/unload8.c: New file.
14392 * elf/unload8mod1.c: New file.
14393 * elf/unload8mod1x.c: New file.
14394 * elf/unload8mod2.c: New file.
14395 * elf/unload8mod3.c: New file.
14396
14397 * elf/dl-close.c (_dl_close_worker): Reset private search list if
14398 it wasn't used.
14399
144002011-08-23 David S. Miller <davem@davemloft.net>
14401
14402 * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
14403 subtract stack bias.
14404 * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
14405 %sp not %fp in calculations.
14406 (_JMPBUF_UNWINDS_ADJ): Likewise.
14407
14408 * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
14409 (aio_suspend): Call it to force an exception region around the
14410 AIO_MISC_WAIT() invocation.
14411
144122011-08-23 Andreas Schwab <schwab@redhat.com>
14413
14414 * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
14415 backslash.
14416
144172011-07-04 Aurelien Jarno <aurelien@aurel32.net>
14418
14419 * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
14420 protection macro.
14421 * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
14422 and <dl-machine.h>.
14423 (Elf64_FuncDesc): Remove.
14424
144252011-08-22 David S. Miller <davem@davemloft.net>
14426
14427 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
14428 sigaltstack check, add missing cfi directives.
14429 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
14430 missing cfi directives, and sigaltstack handling.
14431
144322011-08-16 Andreas Schwab <schwab@redhat.com>
14433
14434 [BZ #11724]
14435 * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
14436 object is seen twice.
14437 * elf/dl-fini.c (_dl_sort_fini): Likewise.
14438
14439 * elf/Makefile (distribute): Add tst-initorder2.c.
14440 (tests): Add tst-initorder2.
14441 (modules-names): Add tst-initorder2a tst-initorder2b
14442 tst-initorder2c tst-initorder2d. Add rules to build them.
14443 ($(objpfx)tst-initorder2.out): New rule.
14444 * elf/tst-initorder2.c: New file.
14445 * elf/tst-initorder2.exp: New file.
14446
144472011-08-22 Andreas Schwab <schwab@redhat.com>
14448
14449 * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
14450
14451 * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
14452 dependencies back to end of function.
14453
14454 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
14455 $(elfobjdir)/ld.so.
14456
144572011-08-21 Ulrich Drepper <drepper@gmail.com>
14458
14459 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
14460 * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
14461 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
14462 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
14463 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
14464 of __vdso_gettimeofday.
14465 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
14466 __vdso_gettimeofday and __vdso_time. Define __vdso_getcpu with
14467 attribute_hidden.
14468 (_libc_vdso_platform_setup): Remove initialization of
14469 __vdso_gettimeofday and __vdso_time.
14470
144712011-08-20 Ulrich Drepper <drepper@gmail.com>
14472
14473 * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
14474 and fgetc_unlocked.
14475 * nss/nss_files/files-key.c (search): Use fgets_unlocked and
14476 getc_unlocked.
14477
14478 * elf/dl-open.c (add_to_global): Report additions to the global scope
14479 for LD_DEBUG=scopes.
14480 (dl_open_worker): Also print scope of newly loaded dependencies.
14481 (_dl_show_scope): Indicate if there is no scope.
14482
14483 [BZ #13114]
14484 * stdio-common/Makefile (tests): Add bug24.
14485 * stdio-common/bug24.c: New file.
14486
144872011-08-19 Andreas Jaeger <aj@suse.de>
14488
14489 [BZ #13114]
14490 * libio/fileops.c (_IO_new_file_fopen): Fix handling of
14491 non-existant file when using close-on-exec mode.
14492
144932011-08-20 Ulrich Drepper <drepper@gmail.com>
14494
14495 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
14496 the very first instruction.
14497
14498 * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
14499 the CFI state in the end.
14500 * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
14501 inclusion of dl-trampoline.h.
14502 Based on a patch by Jiri Olsa <jolsa@redhat.com>.
14503
145042011-08-19 Andreas Schwab <schwab@redhat.com>
14505
14506 * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
14507 expectations for long double.
14508
14509 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
14510 from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
14511
145122011-08-14 David S. Miller <davem@davemloft.net>
14513
14514 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
14515 artificual limit depends upon the system page size.
14516
145172011-08-17 Ulrich Drepper <drepper@gmail.com>
14518
14519 * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
14520 * resolv/Makefile: Define CFLAGS-libresolv.
14521
145222011-08-17 Andreas Schwab <schwab@redhat.com>
14523
14524 * nss/makedb.c (compute_tables): Make variables used in nested
14525 function static.
14526
145272011-08-17 Ulrich Drepper <drepper@gmail.com>
14528
14529 * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
14530 * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
14531 if buffer was too small.
14532
14533 * elf/pldd.c (main): Attach to all threads in the process.
14534 Rewrite /proc handling to use *at functions.
14535
145362011-08-16 Ulrich Drepper <drepper@gmail.com>
14537
14538 * elf/dl-open.c (_dl_show_scope): Take additional parameter which
14539 specifies first scope to show.
14540 (dl_open_worker): Update callers. Move printing scope of new
14541 object to before the relocation.
14542 * elf/rtld.c (dl_main): Update _dl_show_scope call.
14543 * sysdeps/generic/ldsodefs.h: Update declaration.
14544
14545 * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
14546 string for the scope number.
14547
145482011-08-14 Ulrich Drepper <drepper@gmail.com>
14549
14550 * nscd/servicescache.c (cache_addserv): Make sure written is always
14551 initialized.
14552
145532011-08-14 Roland McGrath <roland@hack.frob.com>
14554
14555 * sysdeps/i386/i486/bits/atomic.h
14556 (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
14557 statement expression, so as to suppress "set but not used" warning.
14558 (__arch_c_compare_and_exchange_val_64_acq): Likewise.
14559
14560 * string/strncat.c (STRNCAT): Use prototype definition.
14561
14562 * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
14563 (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
14564 -Iprograms here.
14565 (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
14566 (localedef-modules): Add localedef.
14567 (locale-modules): Add locale.
14568
14569 * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
14570 * elf/rtld.c (dl_main): Invert order of assignment in last change,
14571 to avoid a warning.
14572
145732011-08-14 David S. Miller <davem@davemloft.net>
14574
14575 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
14576 RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
14577
145782011-08-13 Ulrich Drepper <drepper@gmail.com>
14579
14580 * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
14581 (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
14582 * elf/rtld.c (dl_main): Set l_name of vDSO.
14583 Call _dl_show_scope when DL_DEBUG_SCOPES.
14584 (process_dl_debug): Recognize scopes flag and also set it for all.
14585 * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
14586 Declare _dl_show_scope.
14587
14588 * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
14589 (do_dlopen): Pass caller_dlopen to dl_open.
14590 (__libc_dlopen_mode): Initialize caller_dlopen.
14591
14592 * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
14593 of libc. Make tolower call locale-independent. Optimize a bit by
14594 using isdigit instead of isalnum.
14595 * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
14596
145972011-08-12 Ulrich Drepper <drepper@gmail.com>
14598
14599 * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
14600 was a dependency or dynamically loaded.
14601
146022011-08-11 Ulrich Drepper <drepper@gmail.com>
14603
14604 * intl/l10nflist.c: Allow architecture-specific pop function.
14605 * sysdeps/x86_64/l10nflist.c: New file.
14606
14607 * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
14608 classification.
14609
146102011-08-10 Andreas Schwab <schwab@redhat.com>
14611
14612 * include/dirent.h: Add libc_hidden_proto for scandirat and
14613 scandirat64. Don't declare __scandirat64.
14614 * dirent/scandirat.c: Add libc_hidden_def.
14615 * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
14616 * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
14617
146182011-08-10 David S. Miller <davem@davemloft.net>
14619
14620 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
14621 enum.
14622 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14623 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14624 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14625
146262011-08-09 Ulrich Drepper <drepper@gmail.com>
14627
14628 * Versions.def [libc]: Add GLIBC_2.15.
14629 * dirent/Makefile (routines): Add scandirat and scandirat64.
14630 * dirent/Versions [libc]: Export scandirat and scandirat64 for
14631 GLIBC_2.15.
14632 * dirent/dirent.h: Declare scandirat and scandirat64.
14633 * dirent/scandirat.c: New file.
14634 * dirent/scandirat64.c: New file.
14635 * sysdeps/wordsize-64/scandirat.c: New file.
14636 * sysdeps/wordsize-64/scandirat64.c: New file.
14637 * dirent/opendir.c: Define opendirat.
14638 * dirent/scandir.c: Move code to scandirat.c. Implement scandir
14639 using scandirat.
14640 * dirent/scandir64.c: Adjust for scandir.c change.
14641 * include/dirent.h: Define scandir_cancel_struct. Declare __opendirat,
14642 __scandirat64, and __scandir_cancel_handler.
14643 * sysdeps/unix/opendir.c: Rename __opendir to __opendirat. Take
14644 additional parameter and use openat instead of open (outside of ld.so).
14645 Add new __opendir as wrapper around __opendirat.
14646 * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
14647 here without requiring old scandirat implementation.
14648
146492011-08-08 Ulrich Drepper <drepper@gmail.com>
14650
14651 * dirent/scandir.c (cancel_handler): Renamed to
14652 __scandir_cancel_handler. Do not define if SKIP_SCANDIR_CANCEL is
14653 defined. Adjust users.
14654 * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
14655 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
14656
146572011-08-04 Ulrich Drepper <drepper@gmail.com>
14658
14659 * string/test-string.h (IMPL): Use __STRING to expand name and then
14660 stringify it.
14661
14662 * string/test-strcmp.c: Unify most of the WIDE and !WIDE code. Lots
14663 of cleanups.
14664
146652011-07-22 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
14666
14667 * string/Makefile: Update.
14668 (strop-tests): Append strncat.
14669 * string/test-wcscmp.c: New file.
14670 New comprehensive test for wcscmp.
14671 * string/test-strcmp.c: Update.
14672 (WIDE): New define.
14673
146742011-07-22 Andreas Schwab <schwab@redhat.com>
14675
14676 * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
14677 line.
14678
146792011-07-26 Andreas Schwab <schwab@redhat.com>
14680
14681 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
14682 encoding to ACE if AI_IDN.
14683
146842011-08-01 Jakub Jelinek <jakub@redhat.com>
14685
14686 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
14687 to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
14688
146892011-07-22 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
14690
14691 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
14692 Fix overflow bug in strncat.
14693 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
14694
14695 * string/test-strncat.c: Update.
14696 Add new tests for checking overflow bugs.
14697
146982011-07-15 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
14699
14700 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14701 strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
14702 * sysdeps/i386/i686/multiarch/strcat.S: New file.
14703 * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
14704 * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
14705 * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
14706 * sysdeps/i386/i686/multiarch/strncat.S: New file.
14707 * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
14708 * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
14709
14710 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
14711 (USE_AS_STRCAT): Define.
14712 Add strcat and strncat support.
14713 * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
14714
147152011-07-25 Andreas Schwab <schwab@redhat.com>
14716
14717 * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
14718 __n bigger than INT_MAX+1.
14719 (__strncmp_g): Likewise.
14720
147212011-07-23 Ulrich Drepper <drepper@gmail.com>
14722
14723 * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
14724 * libio/stido.h: Likewise.
14725
14726 * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
14727 (AF_NFC): Define.
14728 * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
14729 (AF_NFC): Define.
14730
14731 * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
14732 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14733 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14734 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
14735 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14736
14737 [BZ #13021]
14738 * scripts/test-installation.pl: Don't expect libnss_test1 to be
14739 installed.
14740
14741 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
14742 typo.
14743 (_dl_x86_64_save_sse): Likewise.
14744
147452011-07-22 Ulrich Drepper <drepper@gmail.com>
14746
14747 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
14748 OSXSAVE.
14749 (_dl_x86_64_save_sse): Likewise.
14750
14751 * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
14752
14753 * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
14754
147552011-07-21 Andreas Schwab <schwab@redhat.com>
14756
14757 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
14758 change.
14759 (_dl_x86_64_save_sse): Use correct AVX check.
14760
147612011-07-21 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
14762
14763 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
14764 bug in strncpy/strncat.
14765 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
14766
147672011-07-21 Ulrich Drepper <drepper@gmail.com>
14768
14769 * string/tester.c (test_strcat): Add tests for different alignments
14770 of source and destination.
14771 (test_strncat): Likewise.
14772
147732011-07-20 Ulrich Drepper <drepper@gmail.com>
14774
14775 [BZ #12852]
14776 * posix/glob.c (glob): Check passed in values before using them in
14777 expressions to avoid some overflows.
14778 (glob_in_dir): Likewise.
14779
14780 [BZ #13007]
14781 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
14782 check for AVX enablement so that we don't crash with old kernels and
14783 new hardware.
14784 * elf/tst-audit4.c: Add same checks here.
14785 * elf/tst-audit6.c: Likewise.
14786
14787 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
14788
147892011-07-09 Andreas Schwab <schwab@linux-m68k.org>
14790
14791 * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
14792
147932011-07-20 Ulrich Drepper <drepper@gmail.com>
14794
14795 * po/cs.po: Update from translation team.
14796 * po/bg.po: Likewise.
14797
147982011-07-12 Marek Polacek <mpolacek@redhat.com>
14799
14800 * misc/sys/cdefs.h: Add support for const attribute.
14801 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
14802 to gnu_dev_{major,minor,makedev} functions.
14803
148042011-07-20 Marek Polacek <mpolacek@redhat.com>
14805
14806 * intl/dcigettext.c (get_output_charset): Add missing bracket.
14807
148082011-07-20 Andreas Schwab <schwab@redhat.com>
14809
14810 * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
14811 strlen results.
14812
148132011-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14814
14815 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
14816 (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
14817 register in order to avoid conflicts with the soft frame pointer
14818 being held in r11 when necessary.
14819 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
14820 (INTERNAL_VSYSCALL_NCS): Likewise.
14821
148222011-07-14 Marek Polacek <mpolacek@redhat.com>
14823
14824 * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
14825 * elf/dl-fini.c (_dl_fini): Adjust caller.
14826 * elf/dl-close.c (_dl_close_worker): Likewise.
14827 * sysdeps/generic/ldsodefs.h: Adjust declaration.
14828
148292011-07-15 Marek Polacek <mpolacek@redhat.com>
14830
14831 * elf/cache.c (load_aux_cache): Remove unnecessary condition of
14832 "aux_cache->nlibs < 0".
14833
14834 * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
14835 in the reload-count case.
14836
148372011-07-15 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
14838
14839 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14840 strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
14841 strncat-sse2-unaligned strncat-c strlen-sse2-pminub
14842 * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
14843 * sysdeps/x86_64/multiarch/strcat.S: New file.
14844 * sysdeps/x86_64/multiarch/strncat.S: New file.
14845 * sysdeps/x86_64/multiarch/strncat-c.c: New file.
14846 * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
14847 * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
14848 * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
14849 * sysdeps/x86_64/multiarch/strcpy-ssse3.S
14850 (USE_AS_STRCAT): Define.
14851 Add strcat and strncat support.
14852 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
14853 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
14854 * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
14855 * string/strncat.c: Update.
14856 (USE_AS_STRNCAT): Define.
14857 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14858 Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
14859 and i7.
14860 * sysdeps/x86_64/multiarch/init-arch.h
14861 (bit_Prefer_PMINUB_for_stringop): New.
14862 (index_Prefer_PMINUB_for_stringop): Likewise.
14863 * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
14864 bit_Prefer_PMINUB_for_stringop.
14865
148662011-07-19 Ulrich Drepper <drepper@gmail.com>
14867
14868 * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
14869 buffer64.
14870 * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
14871 of casting of buffer.
14872 * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
14873 buffer32 and buffer64.
14874 * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
14875 writes instead of casting of buffer.
14876 * crypt/md5.h (struct md5_ctx): Move buffer into union and add
14877 buffer32.
14878 * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
14879 casting of buffer.
14880
148812011-07-19 Andreas Schwab <schwab@redhat.com>
14882
14883 * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
14884
148852011-07-19 Ulrich Drepper <drepper@gmail.com>
14886
14887 * nscd/nscd.c (termination_handler): Don't do anything for a database
14888 if it has not yet been initialized.
14889
148902011-07-18 Ulrich Drepper <drepper@gmail.com>
14891
14892 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
14893
148942011-07-15 Marek Polacek <mpolacek@redhat.com>
14895
14896 * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
14897
148982011-07-18 Ulrich Drepper <drepper@gmail.com>
14899
14900 * po/nl.po: Update from translation team.
14901 * po/sv.po: Likewise.
14902
149032011-07-16 Roland McGrath <roland@hack.frob.com>
14904
14905 * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
14906 now disallowed by GCC.
14907
14908 * configure.in (use-default-link): Default to yes if a test -shared
14909 link meets our qualifications.
14910 * configure: Regenerated.
14911
14912 * config.make.in (output-format): New variable.
14913 * configure.in: Check for ld --print-output-format support.
14914 * configure: Regenerated.
14915 * Makerules ($(common-objpfx)format.lds)
14916 [$(output-format) != unknown]: Just use $(output-format),
14917 instead of the linker-script munging.
14918
149192011-07-14 Roland McGrath <roland@hack.frob.com>
14920
14921 * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
14922 of $(common-objpfx)shlib.lds.
14923 * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
14924
14925 * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
14926 Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
14927
14928 * configure.in (-z relro check): Adjust test code to add a large
14929 writable data section after it.
14930 * configure: Regenerated.
14931
149322011-07-11 Roland McGrath <roland@hack.frob.com>
14933
14934 * configure.in (-z relro check): Fix test code to make the variable
14935 truly const.
14936 * configure: Regenerated.
14937
149382011-07-11 Ulrich Drepper <drepper@gmail.com>
14939
14940 * nscd/nscd.h (struct traced_file): Define.
14941 (struct database_dyn): Remove inotify_descr, reset_res, and filename
14942 elements. Add traced_files.
14943 (inotify_fd): Declare.
14944 (register_traced_file): Declare.
14945 * nscd/connections.c (dbs): Remove reset_res and filename initializers.
14946 (inotify_fd): Export.
14947 (resolv_conf_descr): Remove.
14948 (nscd_init): Move inotify descriptor creation to main.
14949 Don't register files for notification here.
14950 (register_traced_file): New function.
14951 (invalidate_cache): Don't use reset_res to determine whether to call
14952 res_init, go through the list of registered files.
14953 (main_loop_poll): The inotify descriptors are now stored in the
14954 structures for the traced files.
14955 (main_loop_epoll): Likewise
14956 * nscd/nscd.c (main): Create inotify socket here. Pass extra argument
14957 to __nss_disable_nscd.
14958 * nscd/cache.c (prune_cache): There is no single inotify descriptor
14959 for a database anymore. Check the records for all the registered
14960 files instead.
14961 * nss/Makefile (libnss_files-routines): Add files-init.
14962 (libnss_db-routines): Add db-init.
14963 * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
14964 [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
14965 * nss/nss_db/db-init.c: New file.
14966 * nss/nss_files/files-init.c: New file.
14967 * nss/nsswitch.c (nss_load_library): New function. Broken out of
14968 __nss_lookup_function.
14969 (__nss_lookup_function): Call nss_load_library.
14970 (nss_load_all_libraries): New function.
14971 (__nss_disable_nscd): Take parameter with callback function for files
14972 to register. Set is_nscd. Load all the DSOs for the NSS modules
14973 used for the cached services.
14974 * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
14975 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
14976 options for features to all the files in nscd.
14977
14978 * nss/nsswitch.c (nss_parse_file): Add missing fclose.
14979
149802011-07-10 Roland McGrath <roland@hack.frob.com>
14981
14982 * csu/elf-init.c (__libc_csu_init): Comment typo.
14983
149842011-07-09 Ulrich Drepper <drepper@gmail.com>
14985
14986 * po/pl.po: Update from translation team.
14987 * po/ja.po: Likewise.
14988 * po/ru.po: Likewise.
14989 * po/ko.po: Likewise.
14990 * po/fr.po: Likewise.
14991
149922011-07-09 Roland McGrath <roland@hack.frob.com>
14993
14994 * configure.in (.ctors/.dtors header and trailer check):
14995 Use an empirical test on a built program.
14996 * configure: Regenerated.
14997
14998 * configure.in (-z relro check): Use an empirical test on a built DSO.
14999 Detect, but do not require, on ia64.
15000 * configure: Regenerated.
15001
15002 * configure.in (READELF): Find it with AC_CHECK_TOOL.
15003 Update tests that use readelf to use $READELF instead.
15004 * configure: Regenerated.
15005
150062011-07-08 Ulrich Drepper <drepper@gmail.com>
15007
15008 * malloc/hooks.c (memalign_check): Avoid using checked_request2size
15009 if the result is not used.
15010
150112011-07-05 Andreas Jaeger <aj@suse.de>
15012
15013 [BZ#9696]
15014 * stdlib/tst-strtod.c: Add testcase.
15015
150162011-07-07 Ulrich Drepper <drepper@gmail.com>
15017
15018 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
15019 (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
15020 The latter has a higher limit. Take additional parameter to pass to
15021 the new function.
15022 (__pathconf): Pass file to __statfs_link_max.
15023 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
15024 __statfs_link_max.
15025 * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
15026 __statfs_link_max.
15027
15028 [BZ #12868]
15029 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
15030 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
15031 Handle Lustre.
15032 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
15033 (__statfs_filesize_max): Likewise.
15034 Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
15035
150362011-07-05 Andreas Jaeger <aj@suse.de>
15037
15038 * resolv/res_comp.c (dn_skipname): Remove unused variable.
15039
150402011-07-06 Marek Polacek <mpolacek@redhat.com>
15041
15042 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
15043 `status' variable.
15044 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
15045 Likewise.
15046
150472011-07-04 H.J. Lu <hongjiu.lu@intel.com>
15048
15049 * Makefile (strop-tests): Add strncat.
15050 * string/test-strncat.c: New file.
15051
150522011-06-30 Marek Polacek <mpolacek@redhat.com>
15053
15054 * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
15055
150562011-06-21 Andreas Jaeger <aj@suse.de>
15057
15058 * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
15059 Copy rule from iconvdata/Makefile.
15060
150612011-07-06 Ulrich Drepper <drepper@gmail.com>
15062
15063 [BZ #12922]
15064 * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
15065 but no long options are defined, just return 'W'.
15066
150672011-06-22 Marek Polacek <mpolacek@redhat.com>
15068
15069 [BZ #9696]
15070 * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
15071
150722011-07-06 Ulrich Drepper <drepper@gmail.com>
15073
15074 * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
15075 netgroups to read.
15076 (innetgr): Likewise.
15077
150782011-07-05 Roland McGrath <roland@hack.frob.com>
15079
15080 * config.make.in (install_root): Default to $(DESTDIR).
15081
150822011-07-05 Ulrich Drepper <drepper@gmail.com>
15083
15084 * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
15085
150862011-07-02 Roland McGrath <roland@hack.frob.com>
15087
15088 * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
15089
15090 * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
15091 containing directory rather than embedding absolute directory names.
15092
15093 * scripts/check-local-headers.sh: Rewritten using awk.
15094 Match by word, not by line. Print error messages for matches.
15095 * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
15096
15097 * Makerules [shlib-lds-flags empty]:
15098 ($(common-objpfx)libc_pic.opts): New target.
15099 ($(common-objpfx)libc_pic.os.clean): New target.
15100 ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
15101
15102 * config.make.in (OBJCOPY): New variable.
15103 * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
15104 * configure: Regenerated.
15105
15106 * config.make.in (use-default-link): New variable.
15107 * configure.in (use_default_link): Grok --with-default-link to set it.
15108 * configure: Regenerated.
15109 * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
15110 (shlib-lds, shlib-lds-flags): Define to empty.
15111
15112 * Makerules (shlib-lds): New variable.
15113 (shlib-lds-flags): New variable.
15114 (build-shlib, build-moduile, build-module-asneeded): Use it.
15115 ($(common-objpfx)libc.so): Use $(shlib-lds).
15116 ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
15117 * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
15118
15119 * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
15120 DT_FLAGS/DT_FLAGS_1 with zero flags.
15121
15122 * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
15123 linker script munging.
15124
151252011-07-02 Ulrich Drepper <drepper@gmail.com>
15126
15127 * crypt/sha512.h (struct sha512_ctx): Add union to access total also
15128 as 128-bit value.
15129 * crypt/sha512.c (sha512_process_block): Perform total addition using
15130 128-bit if possible.
15131 (__sha512_finish_ctx): Likewise.
15132 * crypt/sha256.h (struct sha256_ctx): Add union to access total also
15133 as 64-bit value.
15134 * crypt/sha256.c (SWAP64): Define.
15135 (sha256_process_block): Perform total addition using 64-bit if
15136 possible.
15137 (__sha256_finish_ctx): Likewise.
15138
151392011-07-01 Ulrich Drepper <drepper@gmail.com>
15140
15141 * nscd/pwdcache.c (cache_addpw): Cleanup. Add branch prediction.
15142 * nscd/initgrcache.c (addinitgroupsX): Likewise.
15143 * nscd/hstcache.c (cache_addhst): Likewise.
15144 * nscd/grpcache.c (cache_addgr): Likewise.
15145 * nscd/aicache.c (addhstaiX): Likewise
15146 * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
15147
151482011-07-01 Thorsten Kukuk <kukuk@suse.de>
15149
15150 * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
15151 * nscd/initgrcache.c (addinitgroupsX): Likewise.
15152 * nscd/hstcache.c (cache_addhst): Likewise.
15153 * nscd/grpcache.c (cache_addgr): Likewise.
15154 * nscd/aicache.c (addhstaiX): Likewise
15155
151562011-07-01 Andreas Schwab <schwab@redhat.com>
15157
15158 * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
15159 domain only when needed.
15160
151612011-06-30 Andreas Schwab <schwab@redhat.com>
15162
15163 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
15164 is always restored.
15165
151662011-06-29 Ulrich Drepper <drepper@gmail.com>
15167
15168 * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
15169 are re-adding the entry.
15170 * nscd/servicescache.c (cache_addserv): Likewise.
15171
151722011-06-30 Aurelien Jarno <aurelien@aurel32.net>
15173
15174 * sysdeps/generic/dl-irel.h: fix protection against multiple
15175 inclusions.
15176 * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
15177
151782011-06-28 Ulrich Drepper <drepper@gmail.com>
15179
15180 [BZ #12935]
15181 * malloc/memusage.sh: Fix quoting in message.
15182 * debug/xtrace.sh: Likewise.
15183
15184 * configure.in: Remove support for --experimental-malloc option, make
15185 it the default.
15186 * config.make.in: Likewise.
15187 * malloc/Makefile: Likewise.
15188
151892011-06-27 Andreas Schwab <schwab@redhat.com>
15190
15191 * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
15192 two-byte characters.
15193
151942011-06-27 Roland McGrath <roland@hack.frob.com>
15195
15196 * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
15197 AC_CACHE_CHECK invocation.
15198 * configure: Regenerated.
15199
15200 * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
15201
152022011-06-27 Ulrich Drepper <drepper@gmail.com>
15203
15204 [BZ #12350]
15205 * nscd/aicache.c (addhstaiX): Restore only RES_USE_INET6
15206 bit from old_res_options.
15207
15208 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
15209
15210 * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
15211 value type for setfct.
15212
152132011-06-23 H.J. Lu <hongjiu.lu@intel.com>
15214
15215 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
15216 __gettimeofday instead of gettimeofday.
15217
152182011-06-26 Ulrich Drepper <drepper@gmail.com>
15219
15220 * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
15221
152222011-06-24 H.J. Lu <hongjiu.lu@intel.com>
15223
15224 * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
15225
15226 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
15227 info.
15228
152292011-06-22 H.J. Lu <hongjiu.lu@intel.com>
15230
15231 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15232 strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
15233 strcpy-sse2-unaligned strncpy-sse2-unaligned
15234 stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
15235 * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
15236 * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
15237 * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
15238 * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
15239 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
15240 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
15241 * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
15242 * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
15243 * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
15244 (STRCPY): Support SSE2 and SSSE3 versions.
15245
152462011-06-24 Ulrich Drepper <drepper@gmail.com>
15247
15248 [BZ #12874]
15249 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
15250 * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
15251 kernels which artificially limit size of requests.
15252
152532011-06-22 H.J. Lu <hongjiu.lu@intel.com>
15254
15255 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15256 strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
15257 strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
15258 * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
15259 * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
15260 * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
15261 * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
15262 * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
15263 * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
15264 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
15265 * sysdeps/i386/i686/multiarch/strcpy.S: New file.
15266 * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
15267 * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
15268 * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
15269 * sysdeps/i386/i686/multiarch/strncpy.S: New file.
15270 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15271 Enable unaligned load optimization for Intel Core i3, i5 and i7
15272 processors.
15273 * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
15274 Define.
15275 (index_Fast_Unaligned_Load): Define.
15276 (HAS_FAST_UNALIGNED_LOAD): Define.
15277
152782011-06-23 Marek Polacek <mpolacek@redhat.com>
15279
15280 * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
15281
152822011-06-22 Ulrich Drepper <drepper@gmail.com>
15283
15284 [BZ #12907]
15285 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
15286 until it is clear that the information is realy needed.
15287 Patch mostly by David Hanisch <david.hanisch@nsn.com>.
15288
152892011-06-22 Andreas Schwab <schwab@redhat.com>
15290
15291 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
15292
152932011-06-22 Ulrich Drepper <drepper@gmail.com>
15294
15295 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
15296 /sys/devices/system/cpu/online if it is usable.
15297
15298 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
15299 reading the information from the /proc filesystem to once a second.
15300
153012011-06-21 Andreas Jaeger <aj@suse.de>
15302
15303 * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
15304 NULL after inclusion of kernel headers.
15305
153062011-06-21 Ulrich Drepper <drepper@gmail.com>
15307
15308 * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
15309 calls to internal_setent.
15310
15311 [BZ #12885]
15312 * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
15313 addresses using gethostbyname4_r ignore IPv4 addresses.
15314
15315 * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
15316 branch using gethostbyname2 is only for AF_INET. Optimize accordingly.
15317
15318 * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
15319
153202011-06-20 David S. Miller <davem@davemloft.net>
15321
15322 * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
15323 inclusions.
15324 * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
15325
15326 * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
15327 (elf_irel): Use it.
15328 * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
15329 * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
15330 * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
15331 * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
15332 * sysdeps/x86_64/dl-irel.h: Likewise.
15333
15334 * elf/dl-runtime.c: Use elf_ifunc_invoke.
15335 * elf/dl-sym.c: Likewise.
15336
153372011-06-15 Ulrich Drepper <drepper@gmail.com>
15338
15339 * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch. We
15340 need to dereference resplen2.
15341
153422011-06-14 Andreas Schwab <schwab@redhat.com>
15343
15344 * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
15345
153462011-06-15 Ulrich Drepper <drepper@gmail.com>
15347
15348 * Makeconfig: Define vardbdir and inst_vardbdir.
15349 * nss/Makefile: Add rules to install db-Makefile.
15350
15351 * nss/nss_db/db-XXX.c: Cleanup.
15352
15353 * nss/Makefile (libnss_db-dbs): Add db-initgroups.
15354 * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
15355 GLIBC_PRIVATE.
15356 * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
15357 * nss/makedb.c: Implement -g option to specify that value strings
15358 are generated and should not be added to table iterated over for
15359 get*ent calls.
15360 * nss/nss_db/db-initgroups.c: New file.
15361
15362 * nss/getent.c: Add support for initgroups lookups through getgrouplist
15363 interface.
15364
15365 * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
15366 (internal_getgrouplist): Adjust to name change.
15367 Update use_initgroups_entry if this is not the first call.
15368 * nss/databases.def: Add initgroups entry.
15369
15370 * nss/makedb.c (compute_tables): Check result of multiple hash table
15371 sizes to minimize maximum chain length.
15372
153732011-06-14 Ulrich Drepper <drepper@gmail.com>
15374
15375 * Versions.def: Add entry for libnss_db.
15376 * shlib-versions: Likewise.
15377 * nss/Makefile: Add rules to build libnss_db.
15378 * nss/Versions: Add libnss_db information. Organize libnss_files
15379 entries better.
15380 * nss/db-Makefile: Add gshadow support. Change rules for the new
15381 makedb progra. Some minor improvements to generate smaller files.
15382 * nss/nss_db/nss_db.h: Move NSS database header data structures to
15383 here from...
15384 * nss/makedb.c: ...here.
15385 Improve database format to be smaller and require less memory at
15386 runtime.
15387 * nss/nss_db/db-XXX.x: Adjust for new database format. Don't use
15388 db anymore.
15389 * nss/nss_db/db-netgrp.c: Likewise.
15390 * nss/nss_db/db-open.c: Likewise.
15391 * nss/nss_files/flies-XXX.x: Adjust comments.
15392 * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
15393 * nss/nss_files/files-grp.c: Likewise.
15394 * nss/nss_files/files-hosts.c: Likewise.
15395 * nss/nss_files/files-network.c: Likewise.
15396 * nss/nss_files/files-proto.c: Likewise.
15397 * nss/nss_files/files-pwd.c: Likewise.
15398 * nss/nss_files/files-rpc.c: Likewise.
15399 * nss/nss_files/files-service.c: Likewise.
15400 * nss/nss_files/files-sgrp.c: Likewise.
15401 * nss/nss_files/files-spwd.c: Likewise.
15402 * nss/nss_db/db-alias.c: Removed.
15403 * nss/nss_db/dummy-db.h: Removed.
15404
154052011-06-02 Ulrich Drepper <drepper@gmail.com>
15406
15407 * nss/makedb.c: Rewritten to not use database library.
15408 * nss/Makefile: Update to build new makedb program.
15409
154102011-06-14 Andreas Jaeger <aj@suse.de>
15411
15412 * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
15413 memset declaration.
15414
154152011-06-10 Andreas Schwab <schwab@redhat.com>
15416
15417 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
15418 tmpbuf.
15419
154202011-06-10 Roland McGrath <roland@hack.frob.com>
15421
15422 * Makerules (shlib.lds): Fail if the linker script comes out empty.
15423 * elf/Makefile ($(objpfx)ld.so): Likewise.
15424
15425 * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
15426 Don't list ld.so twice in dependencies.
15427
15428 * posix/bug-regex31.c: Include <stdlib.h>.
15429
15430 * nscd/hstcache.c (cache_addhst): Remove unused variable.
15431
15432 * nis/nss_compat/compat-spwd.c
15433 (getspent_next_nss_netgr): Remove unused variable.
15434 * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
15435
15436 * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
15437 nonmembers" output to use the right array.
15438
15439 * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
15440
15441 * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
15442
15443 * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
15444 * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
15445 * catgets/gencat.c (read_input_file): Likewise.
15446 * locale/programs/locarchive.c (enlarge_archive): Likewise.
15447
15448 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
15449 variable definition inside #if's controlling its use.
15450
15451 * inet/getnetgrent_r.c (innetgr): Remove unused variable.
15452
15453 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
15454
15455 * misc/syslog.c (__vsyslog_chk): Remove unused variable.
15456
15457 * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
15458 unreachable code.
15459
15460 * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
15461
15462 * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
15463 * configure: Regenerated.
15464
15465 * Makerules: Revert last change.
15466 * elf/Makefile: Likewise.
15467
154682011-06-09 Roland McGrath <roland@hack.frob.com>
15469
15470 * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
15471 * elf/Makefile ($(objpfx)librtld.os): Likewise.
15472 (reloc-link): Likewise.
15473
154742011-06-09 Ulrich Drepper <drepper@gmail.com>
15475
15476 * elf/Makefile: Add rules to build pldd.
15477 * elf/pldd.c: New file.
15478 * elf/pldd-xx.c: New file.
15479
154802011-06-07 Ulrich Drepper <drepper@gmail.com>
15481
15482 * version.h: Update for 2.15 development version.
15483
154842011-06-07 David S. Miller <davem@davemloft.net>
15485
15486 * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
15487 ifuncs.
15488 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
15489 elf_machine_lazy_rel): Likewise.
15490 * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
15491 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
15492 elf_machine_lazy_rel): Likewise.
15493 * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
15494 dl_hwcap via passed in argument.
15495 * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
15496 Likewise.
15497
154982011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15499
15500 * stdlib/longlong.h: Update from GCC. Fix smul_ppmm for S/390.
15501
155022011-06-06 Roland McGrath <roland@hack.frob.com>
15503
15504 [BZ #12849]
15505 * manual/fdl-1.1.texi: New file, verbatim from:
15506 http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
15507 * manual/lgpl-2.1.texi: New file, verbatim from:
15508 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
15509 * manual/Makefile (licenses): New variable, list those new file names.
15510 (texis): Use it.
15511 (chapters.% top-menu.%): Include $(licenses) with $(appendices).
15512
15513 * manual/fdl.texi: File removed.
15514 * manual/lesser.texi: File removed.
15515 * manual/libc.texinfo (Copying, Documentation License):
15516 Use new @include file names, put @appendix directive before @include.
15517
155182011-06-04 Jakub Jelinek <jakub@redhat.com>
15519
15520 [BZ #12841]
15521 * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
15522 (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
15523 (mq_open): Add __NTH.
15524
155252011-06-02 H.J. Lu <hongjiu.lu@intel.com>
15526
15527 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15528 Assume Intel Core i3/i5/i7 processor if AVX is available.
15529
155302011-05-31 Ulrich Drepper <drepper@gmail.com>
15531
15532 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
15533 typo.
15534
155352011-05-31 Andreas Schwab <schwab@redhat.com>
15536
15537 * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
15538 memory. Use alloca_account. Fix memory leak when retrying.
15539
155402011-05-31 Ulrich Drepper <drepper@gmail.com>
15541
15542 * version.h (RELEASE): Bump for 2.14 release.
15543 * include/features.h (__GLIBC_MINOR__): Bump to 14.
15544
15545 * config.make.in (RANLIB): Remove entry.
15546
155472011-05-30 Ulrich Drepper <drepper@gmail.com>
15548
15549 * po/Makefile (po-sed-cmd): Add ksh to extensions.
15550 (libc.pot): Work around missing support for .ksh extension in xgettext.
15551
15552 [BZ #12684]
15553 * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
15554 if both request failed.
15555 (send_dg): In case of server errors clear resplen or *resplen2.
15556
15557 [BZ #12454]
15558 * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
15559 when there are multiple maps.
15560 * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
15561 (_dl_fini): Remove test here.
15562
15563 * elf/rtld.c (dl_main): Don't allow the loader to load itself.
15564
155652011-05-29 Ulrich Drepper <drepper@gmail.com>
15566
15567 [BZ #12350]
15568 * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
15569 bit from old_res_options.
15570 (gaih_inet): Likewise.
15571
15572 [BZ #11099]
15573 * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
15574 as signed.
15575
15576 * resolv/res_init.c (res_setoptions): Make the code more compact.
15577
15578 [BZ #11558]
15579 * resolv/res_init.c (res_setoptions): Recognize use-vc option and
15580 set RES_USEVC.
15581
15582 [BZ #11634]
15583 * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
15584
15585 * malloc/malloc.h: Mark malloc hook variables as deprecated.
15586
15587 [BZ #11781]
15588 * malloc/malloc.h: Declare malloc hook variables as volatile.
15589
15590 * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
15591 in last patch.
15592
15593 [BZ #11799]
15594 * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
15595 raise in the comment.
15596 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
15597 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
15598 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
15599
156002011-05-28 Ulrich Drepper <drepper@gmail.com>
15601
15602 [BZ #12811]
15603 * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
15604 grow the buffers more if it already has to be sufficient.
15605 (build_wcs_upper_buffer): Likewise.
15606 * posix/regexec.c (check_matching): Likewise.
15607 (clean_state_log_if_needed): Likewise.
15608 (extend_buffers): Don't enlarge buffers beyond size of the input
15609 buffer.
15610 Patches mostly by Emil Wojak <emil@wojak.eu>.
15611 * posix/bug-regex32.c: New file.
15612 * posix/Makefile (tests): Add bug-regex32.
15613
15614 * locale/findlocale.c (_nl_find_locale): Return right away if
15615 _nl_explode_name failed.
15616 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
15617
15618 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
15619
15620 * debug/xtrace.sh: Unify messages.
15621 * malloc/memusage.sh: Likewise.
15622
15623 [BZ #12813]
15624 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
15625 time symbol from vDSO. Substitute with vsyscall if not available.
15626 * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
15627 __vdso_time.
15628
15629 * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
15630 * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
15631 * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
15632 Add sendmmsg and internal_sendmmsg.
15633 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
15634 * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
15635 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
15636
15637 * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
15638 * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
15639 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
15640
156412011-05-27 Ulrich Drepper <drepper@gmail.com>
15642
15643 [BZ #12813]
15644 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
15645 Retrieve getcpu symbol from vDSO. Substitute with vsyscall if not
15646 available.
15647 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
15648 __vdso_getcpu.
15649
15650 [BZ #12814]
15651 * iconvdata/Makefile (tests): Add bug-iconv9.
15652 * iconvdata/bug-iconv9.c: New file.
15653
156542011-05-27 Andreas Schwab <schwab@redhat.com>
15655
15656 [BZ #12814]
15657 * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
15658
156592011-05-25 Jakub Jelinek <jakub@redhat.com>
15660
15661 * sysdeps/unix/sysv/linux/x86_64/sys/user.h
15662 (struct user_regs_struct): Change intcs field back to cs.
15663
156642011-05-25 Ulrich Drepper <drepper@gmail.com>
15665
15666 * po/ja.po: Update from translation team.
15667
156682011-05-23 Ulrich Drepper <drepper@gmail.com>
15669
15670 [BZ #12795]
15671 * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
15672 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
15673
156742011-05-20 Andreas Schwab <schwab@redhat.com>
15675
15676 * stdlib/longlong.h: Update from GCC.
15677
156782011-05-23 Andreas Schwab <schwab@redhat.com>
15679
15680 * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
15681 parameter name.
15682 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
15683 Add parameter name.
15684 (__sysconf): Pass it down.
15685
156862011-05-22 Ulrich Drepper <drepper@gmail.com>
15687
15688 [BZ #12671]
15689 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
15690 some situations.
15691 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
15692 * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
15693 add in in __libc_use_alloca calls. Adjust callers.
15694 (glob): Use malloc in some situations.
15695
15696 * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
15697 and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
15698 pltexit.
15699
157002011-05-21 Ulrich Drepper <drepper@gmail.com>
15701
15702 * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
15703 and CLOCK_BOOTTIME_ALARM.
15704
15705 [BZ #12782]
15706 * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
15707 is returned.
15708
15709 * string/_strerror.c (__strerror_r): Print negative errors as signed
15710 numbers.
15711
15712 [BZ #12777]
15713 * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
15714 (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
15715 * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
15716
15717 * configure.in: Fix typo in redirection and correct removal of test
15718 files in two cases.
15719
15720 [BZ #12788]
15721 * locale/setlocale.c (new_composite_name): Fix test to check for
15722 identical name of all categories.
15723
15724 [BZ #12792]
15725 * libio/filedoalloc.c (local_isatty): New function.
15726 (_IO_file_doallocate): Use local_isatty.
15727 * stdio-common/perror.c (perror): In case a new stream is used
15728 forward the stream error.
15729 * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
15730 error flag.
15731
157322011-05-20 Ulrich Drepper <drepper@gmail.com>
15733
15734 [BZ #11869]
15735 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
15736 alloca.
15737 * include/alloca.h (extend_alloca_account): Define.
15738
15739 [BZ #11857]
15740 * posix/regex.h: Fix comments with documentation of user-accessible
15741 fields after compilation and describe correct free'ing of pattern
15742 after re_compile_pattern.
15743 Patch by Reuben Thomas <rrt@sc3d.org>.
15744
157452011-05-18 Ryan S. Arnold <rsa@us.ibm.com>
15746
15747 * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
15748 and -mno-altivec to prevent the compiler from using Altivec and/or
15749 VSX instructions when the corresponding registers are not available.
15750
157512011-05-19 Andreas Schwab <schwab@redhat.com>
15752
15753 * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
15754
157552011-05-19 Ulrich Drepper <drepper@gmail.com>
15756
15757 * libio/freopen.c (freopen): Use __dup2, not dup2.
15758 * libio/freopen64.c (freopen64): Likewise.
15759
157602011-05-17 H.J. Lu <hongjiu.lu@intel.com>
15761
15762 [BZ #12775]
15763 * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
15764 * math/Makefile (tests): Add test-powl.
15765 (CFLAGS-test-powl.c): Define.
15766 * math/test-powl.c: New file.
15767
157682011-05-16 H.J. Lu <hongjiu.lu@intel.com>
15769
15770 * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
15771
157722011-05-17 Ulrich Drepper <drepper@gmail.com>
15773
15774 [BZ #11837]
15775 * iconvdata/gb18030.c: Update to GB18020-2005.
15776
157772011-05-16 Ulrich Drepper <drepper@gmail.com>
15778
15779 * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
15780 RE_SYNTAX_POSIX_AWK): Update to match recent development.
15781 Patch by Aharon Robbins <arnold@skeeve.com>.
15782
15783 [BZ #11892]
15784 * stdlib/putenv.c (putenv): Don't always create copy of the variable
15785 on the stack.
15786
15787 [BZ #11895]
15788 * misc/pselect.c (__pselect): Handle timeout value errors hidden
15789 through underflows.
15790
15791 [BZ #12766]
15792 * misc/error.c (error_at_line): Ensure file_name and old_file_name
15793 point to strings before performing equality test for error_one_per_line
15794 mode.
15795
15796 [BZ #11697]
15797 * login/programs/pt_chown.c (do_pt_chown): Always call chown.
15798
15799 [BZ #11820]
15800 * sysdeps/unix/sysv/linux/x86_64/sys/user.h
15801 (struct user_fpregs_struct): Avoid __uint*_t types.
15802
15803 [BZ #6420]
15804 * malloc/mtrace.c (tr_where): Add additional parameter to point to
15805 symbol info. Use it instead of calling _dl_addr locally.
15806 (lock_and_info): New function.
15807 (tr_freehook): Call lock_and_info and pass symbol info as additional
15808 parameter to tr_where.
15809 (tr_mallochook): Likewise.
15810 (tr_reallochook): Likewise.
15811 (tr_memalignhook): Likewise.
15812
15813 * malloc/mtrace.c: Remove support for USE_MTRACE_FILE. It is not
15814 used and couldn't be at all thread-safe.
15815
158162011-05-15 Ulrich Drepper <drepper@gmail.com>
15817
15818 * libio/freopen.c (freopen): Don't close old file descriptor
15819 before the new one is opened. Instead dup the new file descriptor
15820 to the old one after the new stream is created.
15821 * libio/freopen64.c (freopen64): Likewise.
15822 * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
15823 * libio/fileops.c (_IO_new_file_close_it): Handle new
15824 _IO_FLAGS2_NOCLOSE flag.
15825 (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
15826 If _IO_file_open didn't set FD_CLOEXEC do it after the call.
15827 * libio/oldfileops.c (_IO_old_file_close_it): Handle new
15828 _IO_FLAGS2_NOCLOSE flag.
15829 * include/unistd.h: Add hidden_proto for dup3.
15830 Define __have_dup3.
15831 * io/dup3.c: Define hidden symbol.
15832 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
15833
15834 [BZ #7101]
15835 * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
15836 when an incomplete long option is used.
15837 * posix/tst-getopt_long1.c: New file.
15838 * posix/Makefile (tests): Add tst-getopt_long1.
15839
15840 [BZ #10138]
15841 * scripts/config.guess: Update from autoconf-2.68.
15842 * scripts/config.sub: Likewise.
15843
15844 [BZ #10157]
15845 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
15846 tests into ...
15847 (has_cpuclock): ...this. New function.
15848 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
15849 macro here based on has_cpuclock code.
15850
15851 [BZ #10149]
15852 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
15853 First byte (not low byte) is now always NUL.
15854 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
15855
15856 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
15857 Use non-cancelable interfaces.
15858
15859 [BZ #9809]
15860 * locale/iso-639.def: Add entry for Sorani.
15861
15862 [BZ #11901]
15863 * include/stdlib.h: Move include protection to the right place.
15864 Define abort_msg_s. Declare __abort_msg with it.
15865 * stdlib/abort.c (__abort_msg): Adjust type.
15866 * assert/assert.c (__assert_fail_base): New function. Majority
15867 of code from __assert_fail. Allocate memory for __abort_msg with
15868 mmap.
15869 (__assert_fail): Now call __assert_fail_base.
15870 * assert/assert-perr.c: Remove bulk of implementation. Use
15871 __assert_fail_base.
15872 * include/assert.hL Declare __assert_fail_base.
15873 * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
15874 mmap.
15875 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
15876
158772011-05-14 Ulrich Drepper <drepper@gmail.com>
15878
15879 [BZ #11952]
15880 [BZ #12453]
15881 * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
15882 until all modules are registered in the DTV.
15883 * elf/Makefile: Add rules to build and run tst-tls19.
15884 * elf/tst-tls19.c: New file.
15885 * elf/tst-tls19mod1.c: New file.
15886 * elf/tst-tls19mod2.c: New file.
15887 * elf/tst-tls19mod3.c: New file.
15888 Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
15889
15890 [BZ #12083]
15891 * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
15892 correctly.
15893
15894 [BZ #12601]
15895 * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
15896 two-byte sequence errors.
15897 * iconvdata/Makefile (tests): Add bug-iconv8.
15898 * iconvdata/bug-iconv8.c: New file.
15899
15900 [BZ #12626]
15901 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
15902 buf2 definition.
15903
15904 * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
15905
15906 [BZ #12432]
15907 * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
15908 (dummy_getcfa): New function.
15909 (init): Get _Unwind_GetCFA address, use dummy if not found.
15910 (backtrace_helper): In recursion check, also check whether CFA changes.
15911 (__backtrace): Completely initialize arg.
15912
15913 * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
15914 storing incomplete byte sequence in state object. Avoid testing for
15915 guaranteed too small input if we know there is enough data available.
15916
159172011-05-11 Andreas Schwab <schwab@redhat.com>
15918
15919 * Makeconfig (+link-pie): Indent.
15920 * Rules (binaries-pie): Define if $(have-fpie) and
15921 $(build-shared).
15922 (binaries-shared): Also filter out $(binaries-pie).
15923 ($(addprefix $(objpfx),$(binaries-pie))): New rule.
15924 * nscd/Makefile (others-pie): Add nscd.
15925 (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
15926 ($(objpfx)nscd): Remove command override.
15927 * login/Makefile (others-pie): Add pt_chown.
15928 ($(objpfx)pt_chown): Remove command override.
15929 * elf/Makefile: Add PIE tests to tests and tests-pie variables and
15930 remove command overrides.
15931
159322011-05-13 Ulrich Drepper <drepper@gmail.com>
15933
15934 * libio/tst_putwc.c: Fix error messages.
15935
15936 [BZ #12724]
15937 * libio/fileops.c (_IO_new_file_close_it): Always flush when
15938 currently writing and seek to current position when not.
15939 * libio/Makefile (tests): Add bug-fclose1.
15940 * libio/bug-fclose1.c: New file.
15941
159422011-05-12 Ulrich Drepper <drepper@gmail.com>
15943
15944 [BZ #12511]
15945 * elf/dl-lookup.c (enter): Don't test for copy relocation here and
15946 don't set DF_1_NODELETE here.
15947 (do_lookup_x): When entering new entry test for copy relocation
15948 and if necessary set DF_1_NODELETE flag.
15949 * elf/tst-unique4.cc: New file.
15950 * elf/tst-unique4.h: New file.
15951 * elf/tst-unique4lib.cc: New file.
15952 * elf/Makefile: Add rules to build and run tst-unique4.
15953 Patch by Piotr Bury <pbury@goahead.com>.
15954
159552011-05-11 Ulrich Drepper <drepper@gmail.com>
15956
15957 [BZ #12052]
15958 * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
15959
15960 [BZ #12625]
15961 * misc/mntent_r.c (addmntent): Flush the stream after the output
15962
15963 [BZ #12393]
15964 * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
15965 (is_trusted_path_normalize): Skip initial colon. Append slash
15966 to empty buffer. Duplicate is_trusted_path code but allow
15967 constructed patch to be prefix.
15968 (is_dst): Allow $ORIGIN followed by /.
15969 (_dl_dst_substitute): Correct clearing of check_for_trusted.
15970 Correct testing of result of is_trusted_path_normalize
15971 (decompose_rpath): Fix warning.
15972
159732011-05-10 Ulrich Drepper <drepper@gmail.com>
15974
15975 [BZ #11257]
15976 * grp/initgroups.c (internal_getgrouplist): When we found the service
15977 list through the initgroups entry in nsswitch.conf do not always
15978 continue on a successful lookup. Don't always use the
15979 __nss_group_database value if it is set.
15980 * nss/nsswitch.conf (initgroups): Change action for successful db
15981 lookup to continue for compatibility.
15982
159832011-05-09 Ulrich Drepper <drepper@gmail.com>
15984
15985 [BZ #11532]
15986 * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
15987 and CP774 modules.
15988 * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
15989 and CP774 modules.
15990 * iconvdata/tst-tables.sh: Likewise.
15991 * iconvdata/cp770.c: New file.
15992 * iconvdata/cp771.c: New file.
15993 * iconvdata/cp772.c: New file.
15994 * iconvdata/cp773.c: New file.
15995 * iconvdata/cp774.c: New file.
15996 * iconvdata/testdata/CP770: New file.
15997 * iconvdata/testdata/CP770..UTF8: New file.
15998 * iconvdata/testdata/CP771: New file.
15999 * iconvdata/testdata/CP771..UTF8: New file.
16000 * iconvdata/testdata/CP772: New file.
16001 * iconvdata/testdata/CP772..UTF8: New file.
16002 * iconvdata/testdata/CP773: New file.
16003 * iconvdata/testdata/CP773..UTF8: New file.
16004 * iconvdata/testdata/CP774: New file.
16005 * iconvdata/testdata/CP774..UTF8: New file.
16006
16007 * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
16008 END CHARMAP line.
16009 * iconvdata/gen-8bit-gap.sh: Likewise.
16010 * iconvdata/gen-8bit.sh: Likewise.
16011
16012 * locale/iso-639.def: Add ary entry.
16013
16014 [BZ #11258]
16015 * locale/C-translit.h.in: Add U20A1 transliteration.
16016
16017 [BZ #12178]
16018 * locale/iso-639.def: Add wae entry.
16019 Patch by Kevin Bortis <bortis@translate-wae.ch>.
16020
16021 [BZ #12545]
16022 * locale/programs/localedef.c (construct_output_path): Use ssize_t
16023 for n.
16024
16025 [BZ #12711]
16026 * locale/C-translit.h.in: Add entry for U20B9.
16027 Patch by pravin.d.s@gmail.com.
16028
160292011-05-08 Ulrich Drepper <drepper@gmail.com>
16030
16031 [BZ #12713]
16032 * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
16033 ENAMETOOLONG use generic getcwd.
16034 * sysdeps/posix/getcwd.c: Add support to use openat. Make usable
16035 in rtld. Use *stat64.
16036 * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
16037 Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
16038 * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
16039 * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
16040 * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
16041 * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
16042 * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
16043 __fstatat64 macros.
16044 * include/dirent.h: Add libc_hidden_proto for rewinddir.
16045 * dirent/rewinddir.c: Add libc_hidden_def.
16046 * sysdeps/mach/hurd/rewinddir.c: Likewise.
16047 * sysdeps/unix/rewinddir.c: Likewise. Don't do locking outside libc.
16048
16049 * include/dirent.h (__alloc_dir): Add flags parameter.
16050 * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
16051 * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
16052 __alloc_dir.
16053 (__alloc_dir): Take new parameter. Don't call fcntl for invocations
16054 from fdopendir if O_CLOEXEC is already set.
16055
160562011-03-15 Alan Modra <amodra@gmail.com>
16057
16058 * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
16059 l_tls_firstbyte_offset non-zero. Save padding offset in
16060 l_tls_firstbyte_offset for later use.
16061 * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
16062 freeing static tls block.
16063
160642011-03-05 Jonathan Nieder <jrnieder@gmail.com>
16065
16066 * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
16067 where #ifdef was intended. The intent is to prevent ARG_MAX from
16068 being defined by the kernel headers.
16069
160702011-05-07 Ulrich Drepper <drepper@gmail.com>
16071
16072 [BZ #12734]
16073 * resolv/resolv.h: Define RES_NOTLDQUERY.
16074 * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
16075 no-tld-query and set RES_NOTLDQUERY.
16076 * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
16077 * resolv/res_query.c (__libc_res_nsearch): Backport changes from
16078 modern BIND to search name as TLD unless forbidden.
16079
160802011-05-07 Petr Baudis <pasky@suse.cz>
16081 Ulrich Drepper <drepper@gmail.com>
16082
16083 [BZ #12393]
16084 * elf/dl-load.c (fillin_rpath): Move trusted path check...
16085 (is_trusted_path): ...to here.
16086 (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
16087 (_dl_dst_substitute): Verify expanded $ORIGIN path elements
16088 using is_trusted_path_normalize() in setuid scripts.
16089
160902011-05-06 Paul Pluzhnikov <ppluzhnikov@google.com>
16091
16092 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
16093 __BEGIN/__END_DECLS.
16094
160952011-05-06 Ulrich Drepper <drepper@gmail.com>
16096
16097 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
16098 NSS_STATUS_NOTFOUND if no record was found.
16099
161002011-05-05 Andreas Schwab <schwab@redhat.com>
16101
16102 * sunrpc/Makefile (headers): Add rpc/netdb.h.
16103 (headers-not-in-tirpc): Remove rpc/netdb.h
16104 * resolv/netdb.h: Revert last change.
16105
161062011-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
16107
16108 * Makeconfig (link-libc-static): Use --{start,end}-group to handle
16109 circular dependency between libgcc.a and libc.a.
16110
161112011-05-05 Andreas Schwab <schwab@redhat.com>
16112
16113 * resolv/netdb.h: Don't include <rpc/netdb.h>.
16114 * nis/Makefile: Don't install rpcsvc/*.
16115 * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
16116 instead of <rpc/types.h>.
16117 (MAXHOSTNAMELEN): Define.
16118
161192011-05-03 Andreas Schwab <schwab@redhat.com>
16120
16121 * elf/ldconfig.c (add_dir): Don't crash on empty path.
16122
161232011-04-28 Maciej Babinski <mbabinski@google.com>
16124
16125 [BZ #12714]
16126 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
16127 gethostbyname4_r when IPv6 results are possible.
16128
161292011-05-02 Ulrich Drepper <drepper@gmail.com>
16130
16131 [BZ #12723]
16132 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
16133 _PC_PIPE_BUF handling.
16134
161352011-04-30 Bruno Haible <bruno@clisp.org>
16136
16137 [BZ #12717]
16138 * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
16139 * resolv/netdb.h (getnameinfo): Change type of flags parameter
16140 to 'int'.
16141 * inet/getnameinfo.c (getnameinfo): Likewise.
16142
161432011-04-29 Ulrich Drepper <drepper@gmail.com>
16144
16145 * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
16146 to groups setting in database lookup.
16147 * nss/nsswitch.conf: Add initgroups entry.
16148
161492011-04-22 Ulrich Drepper <drepper@gmail.com>
16150
16151 [BZ #12685]
16152 * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
16153 mode string.
16154 Patch by Eric Blake <eblake@redhat.com>.
16155
161562011-04-20 H.J. Lu <hongjiu.lu@intel.com>
16157
16158 * sunrpc/Makefile (need-export-routines): Add svc_run.
16159 (routines): Remove svc_run.
16160 ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
16161 * sunrpc/clnt_perr.c (clnt_perrno): Export.
16162 * sunrpc/svc_run.c (svc_run): Likewise.
16163 * sunrpc/svc_udp.c (svcudp_create): Likewise.
16164
161652011-04-21 Ulrich Drepper <drepper@gmail.com>
16166
16167 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
16168 problem in reallocation in last patch.
16169
161702011-04-20 Ulrich Drepper <drepper@gmail.com>
16171
16172 * sunrpc/Makefile: Move inclusion of Rules.
16173
161742011-04-19 Ulrich Drepper <drepper@gmail.com>
16175
16176 * nss/nss_files/files-initgroups.c: New file.
16177 * nss/Makefile (libnss_files-routines): Add files-initgroups.
16178 * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
16179 _nss_files_initgroups_dyn.
16180
161812011-03-31 Richard Sandiford <richard.sandiford@linaro.org>
16182
16183 * elf/elf.h (R_ARM_IRELATIVE): Define.
16184
161852011-04-19 Ulrich Drepper <drepper@gmail.com>
16186
16187 * po/ru.po: Update from translation team.
16188
161892011-04-17 Ulrich Drepper <drepper@gmail.com>
16190
16191 * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
16192 dependencies.
16193
161942011-02-06 Mike Frysinger <vapier@gentoo.org>
16195
16196 [BZ #12653]
16197 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
16198 MEMCPY_CHK with USE_AS_BCOPY ifdef check.
16199 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
16200 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
16201 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
16202
162032011-03-28 Andreas Schwab <schwab@linux-m68k.org>
16204
16205 * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
16206 differing bytes.
16207 * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
16208 * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
16209 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16210
162112011-04-17 Ulrich Drepper <drepper@gmail.com>
16212
16213 [BZ #12420]
16214 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
16215 storing it.
16216 * stdlib/bug-getcontext.c: New file.
16217 * stdlib/Makefile: Add rules to build and run bug-getcontext.
16218
162192011-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16220
16221 * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
16222 instructions into .machine "z9-109".
16223 * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
16224 * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
16225
162262011-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16227
16228 * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
16229 between environment variables and auxiliary vector.
16230
162312011-04-16 Ulrich Drepper <drepper@gmail.com>
16232
16233 * Makefile: Add rules to build linkobj/libc.so.
16234 * include/libc-symbols.h: Define libc_hidden_nolink.
16235 * include/rpc/auth.h: Mark functions which are to be hidden.
16236 * include/rpc/auth_des.h: Likewise.
16237 * include/rpc/auth_unix.h: Likewise.
16238 * include/rpc/clnt.h: Likewise.
16239 * include/rpc/des_crypt.h: Likewise.
16240 * include/rpc/key_prot.h: Likewise.
16241 * include/rpc/pmap_clnt.h: Likewise.
16242 * include/rpc/pmap_prot.h: Likewise.
16243 * include/rpc/pmap_rmt.h: Likewise.
16244 * include/rpc/rpc_msg.h: Likewise.
16245 * include/rpc/svc.h: Likewise.
16246 * include/rpc/svc_auth.h: Likewise.
16247 * include/rpc/xdr.h: Likewise.
16248 * nis/Makefile: Link all DSOs against linkobj/libc.so.
16249 * nss/Makefile: Likewise.
16250 * sunrpc/Makefile: Don't install headers. Build library with normal
16251 entry points. Don't build rpcinfo. Link RPC tests appropriately.
16252 * sunrpc/auth_des.c: Hide exported symbols by default, export some
16253 for the compat linking library. Remove use of INTDEF/INTUSE.
16254 * sunrpc/auth_none.c: Likewise.
16255 * sunrpc/auth_unix.c: Likewise.
16256 * sunrpc/authdes_prot.c: Likewise.
16257 * sunrpc/authuxprot.c: Likewise.
16258 * sunrpc/clnt_gen.c: Likewise.
16259 * sunrpc/clnt_perr.c: Likewise.
16260 * sunrpc/clnt_raw.c: Likewise.
16261 * sunrpc/clnt_simp.c: Likewise.
16262 * sunrpc/clnt_tcp.c: Likewise.
16263 * sunrpc/clnt_udp.c: Likewise.
16264 * sunrpc/clnt_unix.c: Likewise.
16265 * sunrpc/des_crypt.c: Likewise.
16266 * sunrpc/des_soft.c: Likewise.
16267 * sunrpc/get_myaddr.c: Likewise.
16268 * sunrpc/key_call.c: Likewise.
16269 * sunrpc/key_prot.c: Likewise.
16270 * sunrpc/netname.c: Likewise.
16271 * sunrpc/pm_getmaps.c: Likewise.
16272 * sunrpc/pm_getport.c: Likewise.
16273 * sunrpc/pmap_clnt.c: Likewise.
16274 * sunrpc/pmap_prot.c: Likewise.
16275 * sunrpc/pmap_prot2.c: Likewise.
16276 * sunrpc/pmap_rmt.c: Likewise.
16277 * sunrpc/publickey.c: Likewise.
16278 * sunrpc/rpc_cmsg.c: Likewise.
16279 * sunrpc/rpc_common.c: Likewise.
16280 * sunrpc/rpc_dtable.c: Likewise.
16281 * sunrpc/rpc_prot.c: Likewise.
16282 * sunrpc/rpc_thread.c: Likewise.
16283 * sunrpc/rtime.c: Likewise.
16284 * sunrpc/svc.c: Likewise.
16285 * sunrpc/svc_auth.c: Likewise.
16286 * sunrpc/svc_authux.c: Likewise.
16287 * sunrpc/svc_raw.c: Likewise.
16288 * sunrpc/svc_run.c: Likewise.
16289 * sunrpc/svc_simple.c: Likewise.
16290 * sunrpc/svc_tcp.c: Likewise.
16291 * sunrpc/svc_udp.c: Likewise.
16292 * sunrpc/svc_unix.c: Likewise.
16293 * sunrpc/svcauth_des.c: Likewise.
16294 * sunrpc/xcrypt.c: Likewise.
16295 * sunrpc/xdr.c: Likewise.
16296 * sunrpc/xdr_array.c: Likewise.
16297 * sunrpc/xdr_float.c: Likewise.
16298 * sunrpc/xdr_intXX_t.c: Likewise.
16299 * sunrpc/xdr_mem.c: Likewise.
16300 * sunrpc/xdr_rec.c: Likewise.
16301 * sunrpc/xdr_ref.c: Likewise.
16302 * sunrpc/xdr_sizeof.c: Likewise.
16303 * sunrpc/xdr_stdio.c: Likewise.
16304
163052011-04-10 Ulrich Drepper <drepper@gmail.com>
16306
16307 [BZ #12650]
16308 * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
16309 * sysdeps/ia64/dl-tls.h: Likewise.
16310 * sysdeps/powerpc/dl-tls.h: Likewise.
16311 * sysdeps/s390/dl-tls.h: Likewise.
16312 * sysdeps/sh/dl-tls.h: Likewise.
16313 * sysdeps/sparc/dl-tls.h: Likewise.
16314 * sysdeps/x86_64/dl-tls.h: Likewise.
16315 * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
16316
163172011-03-14 Andreas Schwab <schwab@redhat.com>
16318
16319 * elf/dl-load.c (_dl_dst_substitute): When skipping the first
16320 rpath element also skip the following colon.
16321 (expand_dynamic_string_token): Add is_path parameter and pass
16322 down to DL_DST_REQUIRED and _dl_dst_substitute.
16323 (decompose_rpath): Call expand_dynamic_string_token with
16324 non-zero is_path. Ignore empty rpaths.
16325 (_dl_map_object_from_fd): Call expand_dynamic_string_token
16326 with zero is_path.
16327
163282011-04-08 Andreas Schwab <schwab@linux-m68k.org>
16329
16330 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
16331 Make cancelable.
16332
163332011-04-09 Ulrich Drepper <drepper@gmail.com>
16334
16335 [BZ #12655]
16336 * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
16337 Patch by Filipe David Manana <fdmanana@apache.org>.
16338
163392011-04-07 Andreas Schwab <schwab@redhat.com>
16340
16341 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
16342 Maintain aligned stack.
16343 (CHECK_RSP): Remove unused macro.
16344
163452011-04-03 Ulrich Drepper <drepper@gmail.com>
16346
16347 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
16348 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
16349
163502011-04-02 Ulrich Drepper <drepper@gmail.com>
16351
16352 * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
16353
16354 * include/features.h: Mention __USE_XOPEN2K8 in comment.
16355
163562011-03-26 H.J. Lu <hongjiu.lu@intel.com>
16357
16358 [BZ #12518]
16359 * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
16360 * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
16361 * sysdeps/x86_64/memmove.c: New file.
16362 * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
16363 (memcpy): Renamed to ...
16364 (__new_memcpy): This.
16365 (memcpy): Provide GLIBC_2_14 memcpy.
16366 * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
16367 (memcpy): Provide GLIBC_2_2_5 memcpy.
16368
163692011-04-01 Ulrich Drepper <drepper@gmail.com>
16370
16371 [BZ #12631]
16372 * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
16373
163742011-03-30 Andreas Schwab <schwab@redhat.com>
16375
16376 * misc/syncfs.c: New file.
16377 * misc/Makefile (routines): Add syncfs.
16378 * posix/unistd.h: Declare syncfs.
16379 * sysdeps/unix/syscalls.list: Add syncfs.
16380
163812011-04-01 Andreas Schwab <schwab@redhat.com>
16382
16383 * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
16384 open_by_handle_at.
16385 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
16386 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
16387 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16388 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16389 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16390 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
16391 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16392
163932011-04-01 Ulrich Drepper <drepper@gmail.com>
16394
16395 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
16396 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
16397 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
16398 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16399 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16400 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16401 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16402
16403 * io/Makefile: Compile fallocate.c, fallocate64.c, and
16404 sync_file_range.c with -fexceptions.
16405 * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
16406 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
16407 * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
16408 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
16409 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
16410 * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
16411 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
16412 sync_file_range as cancellation point
16413 * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file. This is
16414 now a wrapper around __call_sync_file_range with cancellation handling.
16415 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
16416 * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this. Change
16417 function name to __call_sync_file_range.
16418 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
16419 Add call_sync_file_range.
16420
164212011-04-01 Andreas Schwab <schwab@redhat.com>
16422
16423 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16424 bits/timex.h.
16425
164262011-04-01 Ulrich Drepper <drepper@gmail.com>
16427
16428 * iconv/iconv.h: Fix typo in comment.
16429 * io/fcntl.h: Likewise.
16430 * libio/stdio.h: Likewise.
16431 * posix/spawn.h: Likewise.
16432 * posix/unistd.h: Likewise.
16433 * stdlib/stdlib.h: Likewise.
16434 * time/time.h: Likewise.
16435 * wcsmbs/wchar.h: Likewise.
16436
16437 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
16438 open_by_handle): Add.
16439 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
16440 and MAX_HANDLE_SZ. Declare name_to_handle_at and open_by_handle.
16441 Augment a few comments.
16442 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
16443 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16444 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16445 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16446 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16447 * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
16448 open_by_handle.
16449
16450 * io/fcntl.h (AT_EMPTY_PATH): Define.
16451
164522011-03-30 Ulrich Drepper <drepper@gmail.com>
16453
16454 * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
16455 * sysdeps/unix/sysv/linux/bits/time.h: New file.
16456 * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
16457 to...
16458 * sysdeps/unix/sysv/linux/bits/timex.h: ...here. New file.
16459 * Versions.def: Add GLIBC_2.14.
16460 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
16461 Export.
16462
164632011-03-22 Ulrich Drepper <drepper@gmail.com>
16464
16465 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
16466 round counter.
16467 * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
16468
164692011-03-20 H.J. Lu <hongjiu.lu@intel.com>
16470
16471 [BZ #12597]
16472 * string/test-strncmp.c (do_page_test): New function.
16473 (check2): Likewise.
16474 (test_main): Call check2.
16475 * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
16476
164772011-03-20 Ulrich Drepper <drepper@gmail.com>
16478
16479 [BZ #12587]
16480 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
16481 Handle cache information in CPU leaf 4.
16482 * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
16483
164842011-03-18 Ulrich Drepper <drepper@gmail.com>
16485
16486 [BZ #12583]
16487 * posix/fnmatch.c (fnmatch): Check size of pattern in wide
16488 character representation.
16489 Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
16490
164912011-03-16 Ryan S. Arnold <rsa@us.ibm.com>
16492
16493 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
16494 END(__isnan) to END(__isnanf) to match function entry point/label
16495 EALIGN(__isnanf,...).
16496
164972011-03-10 Jakub Jelinek <jakub@redhat.com>
16498
16499 * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
16500
165012011-03-10 Ulrich Drepper <drepper@gmail.com>
16502
16503 [BZ #12510]
16504 * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
16505 copy from the symbol referenced in the relocation to initialize the
16506 used variable.
16507 Patch by Piotr Bury <pbury@goahead.com>.
16508 * elf/Makefile: Add rules to build and tst-unique3.
16509 * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
16510 * elf/tst-unique3.cc: New file.
16511 * elf/tst-unique3.h: New file.
16512 * elf/tst-unique3lib.cc: New file.
16513 * elf/tst-unique3lib2.cc: New file.
16514
16515 * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
16516
165172011-03-10 Mike Frysinger <vapier@gentoo.org>
16518
16519 * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
16520 $LDFLAGS and -nostdlib -nostartfiles to linking step. Change main
16521 to _start.
16522
165232011-03-06 Ulrich Drepper <drepper@gmail.com>
16524
16525 * elf/dl-load.c (_dl_map_object): If we are looking for the first
16526 to-be-loaded object along a path to loader is ld.so.
16527
165282011-03-02 Harsha Jagasia <harsha.jagasia@amd.com>
16529 Ulrich Drepper <drepper@gmail.com>
16530
16531 * sysdeps/x86_64/memset.S: After aligning destination, code
16532 branches to different locations depending on the value of
16533 misalignment, when multiarch is enabled. Fix this.
16534
165352011-03-02 Harsha Jagasia <harsha.jagasia@amd.com>
16536
16537 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
16538 Set _x86_64_preferred_memory_instruction for AMD processsors.
16539 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16540 Set bit_Prefer_SSE_for_memop for AMD processors.
16541
165422011-03-04 Ulrich Drepper <drepper@gmail.com>
16543
16544 * libio/fmemopen.c (fmemopen): Optimize a bit.
16545
165462011-03-03 Andreas Schwab <schwab@redhat.com>
16547
16548 * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
16549
165502011-03-03 Roland McGrath <roland@redhat.com>
16551
16552 * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
16553
165542011-02-28 Aurelien Jarno <aurelien@aurel32.net>
16555
16556 * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
16557 __bzero_ultra1 instead of __memset_ultra1.
16558
165592011-02-23 Andreas Schwab <schwab@redhat.com>
16560 Ulrich Drepper <drepper@gmail.com>
16561
16562 [BZ #12509]
16563 * include/link.h (struct link_map): Add l_orig_initfini.
16564 * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
16565 returning unsuccessfully.
16566 * elf/dl-close.c (_dl_close_worker): If this is the last explicit
16567 close of a file loaded at startup, restore the original l_initfini
16568 list.
16569 * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
16570 list, store the pointer.
16571 * elf/Makefile ($(objpfx)noload-mem): New rule.
16572 (noload-ENV): Define.
16573 (tests): Add $(objpfx)noload-mem.
16574 * elf/noload.c: Include <memcheck.h>.
16575 (main): Call mtrace. Close all opened handles.
16576
165772011-02-17 Andreas Schwab <schwab@redhat.com>
16578
16579 [BZ #12454]
16580 * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
16581 dependencies are missing.
16582
165832011-02-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
16584
16585 Fix __if_freereq crash: Unlike the generic version which uses free,
16586 Hurd needs munmap.
16587 * sysdeps/mach/hurd/ifreq.h: New file.
16588
165892011-01-27 Petr Baudis <pasky@suse.cz>
16590 Ulrich Drepper <drepper@gmail.com>
16591
16592 [BZ 12445]#
16593 * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
16594 to extend_alloca().
16595 * stdio-common/bug23.c: New file.
16596 * stdio-common/Makefile (tests): Add bug23.
16597
165982010-09-28 Andreas Schwab <schwab@redhat.com>
16599 Ulrich Drepper <drepper@gmail.com>
16600
16601 [BZ #12489]
16602 * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
16603 before performing relro protection. At old place add assertion
16604 to make sure nothing changed.
16605
166062011-02-17 Nathan Sidwell <nathan@codesourcery.com>
16607 Glauber de Oliveira Costa <glommer@gmail.com>
16608
16609 * elf/elf.h: Add new ARM TLS relocs.
16610
166112011-02-16 Ryan S. Arnold <rsa@us.ibm.com>
16612
16613 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16614 (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
16615 cast from r3.
16616 * sysdeps/wordsize-64/Makefile: New file. Add tst-writev to
16617 'tests' variable.
16618 * sysdeps/wordsize-64/tst-writev.c: New file.
16619
166202011-02-15 Ryan S. Arnold <rsa@us.ibm.com>
16621
16622 * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
16623 -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
16624 insns in _dl_start to prevent a TOC reference before relocs are
16625 resolved.
16626
166272011-02-15 Ulrich Drepper <drepper@gmail.com>
16628
16629 [BZ #12469]
16630 * Makeconfig: Remove RANLIB definition.
16631 * Makerules: Don't use RANLIB.
16632 * aclocal.m4: Remove ranlib test.
16633 * configure.in: No need to check for ranlib.
16634 * elf/rtld-Rules: Don't use RANLIB.
16635
166362011-02-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
16637
16638 * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
16639 protection macro.
16640 * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
16641 inclusion protection macro.
16642
16643 * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
16644 SIGRTMIN and SIGRTMAX and print information in that case only when
16645 SIGRTMIN is defined.
16646
166472011-02-11 Jakub Jelinek <jakub@redhat.com>
16648
16649 * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
16650 arginfo fn returning -1.
16651
16652 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
16653 and thousands string is zero terminated.
16654
166552011-02-03 Andreas Schwab <schwab@redhat.com>
16656
16657 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
16658 sysdeps/unix/sysv/linux/bits/socket.h.
16659
166602011-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16661
16662 * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
16663 (__CPU_COUNT): Remove old macros.
16664 (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
16665 (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
16666 (__CPU_ALLOC, __CPU_FREE): Add macros.
16667 (__sched_cpualloc, __sched_cpufree): Add declarations.
16668
166692011-02-05 Ulrich Drepper <drepper@gmail.com>
16670
16671 * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
16672 (struct datahead): Reuse 32 bits of the alignment for a TTL field.
16673 * nscd/aicache.c (addhstaiX): Return timeout of added value.
16674 (readdhstai): Return value of addhstaiX call.
16675 * nscd/grpcache.c (cache_addgr): Return timeout of added value.
16676 (addgrbyX): Return value returned by cache_addgr.
16677 (readdgrbyname): Return value returned by addgrbyX.
16678 (readdgrbygid): Likewise.
16679 * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
16680 (addpwbyX): Return value returned by cache_addpw.
16681 (readdpwbyname): Return value returned by addhstbyX.
16682 (readdpwbyuid): Likewise.
16683 * nscd/servicescache.c (cache_addserv): Return timeout of added value.
16684 (addservbyX): Return value returned by cache_addserv.
16685 (readdservbyname): Return value returned by addservbyX:
16686 (readdservbyport): Likewise.
16687 * nscd/hstcache.c (cache_addhst): Return timeout of added value.
16688 (addhstbyX): Return value returned by cache_addhst.
16689 (readdhstbyname): Return value returned by addhstbyX.
16690 (readdhstbyaddr): Likewise.
16691 (readdhstbynamev6): Likewise.
16692 (readdhstbyaddrv6): Likewise.
16693 * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
16694 (readdinitgroups): Return value returned by addinitgroupsX.
16695 * nscd/cache.c (readdfcts): Change return value of functions to time_t.
16696 (prune_cache): Keep track of timeout value of re-added entries.
16697 * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
16698 * nscd/nscd.h: Adjust prototypes of readd* functions.
16699
167002011-02-04 Roland McGrath <roland@redhat.com>
16701
16702 * nis/nis_server.c (nis_servstate): Use the right name for 0.
16703 (nis_stats): Likewise.
16704 * nis/nis_modify.c (nis_modify): Likewise.
16705 * nis/nis_remove.c (nis_remove): Likewise.
16706 * nis/nis_add.c (nis_add): Likewise.
16707
16708 * elf/dl-object.c (_dl_new_object): Remove unused variable L.
16709
16710 * posix/fnmatch_loop.c: Add some consts.
16711
16712 * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
16713
167142011-02-02 H.J. Lu <hongjiu.lu@intel.com>
16715
16716 [BZ #12460]
16717 * config.make.in (config-cflags-novzeroupper): Define.
16718 * configure.in: Substitute libc_cv_cc_novzeroupper.
16719 * elf/Makefile (AVX-CFLAGS): Define.
16720 (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
16721 (CFLAGS-tst-auditmod4a.c): Likewise.
16722 (CFLAGS-tst-auditmod4b.c): Likewise.
16723 (CFLAGS-tst-auditmod6b.c): Likewise.
16724 (CFLAGS-tst-auditmod6c.c): Likewise.
16725 (CFLAGS-tst-auditmod7b.c): Likewise.
16726 * sysdeps/i386/configure.in: Check -mno-vzeroupper.
16727
167282011-02-02 Ulrich Drepper <drepper@gmail.com>
16729
16730 * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
16731 function to the callback.
16732 Patch partly by Jiri Olsa <jolsa@redhat.com>.
16733
167342011-02-02 Andreas Schwab <schwab@redhat.com>
16735
16736 * shadow/sgetspent.c: Check return value of __sgetspent_r instead
16737 of errno.
16738
167392011-01-19 Ulrich Drepper <drepper@gmail.com>
16740
16741 [BZ #11724]
16742 * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
16743 of constructors.
16744 * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
16745 of destructors.
16746 (_dl_fini): Don't call _dl_sort_fini if there is only one object.
16747
16748 [BZ #11724]
16749 * elf/Makefile: Add rules to build and run new test.
16750 * elf/tst-initorder.c: New file.
16751 * elf/tst-initorder.exp: New file.
16752 * elf/tst-initordera1.c: New file.
16753 * elf/tst-initordera2.c: New file.
16754 * elf/tst-initordera3.c: New file.
16755 * elf/tst-initordera4.c: New file.
16756 * elf/tst-initorderb1.c: New file.
16757 * elf/tst-initorderb2.c: New file.
16758 * elf/tst-order-a1.c: New file.
16759 * elf/tst-order-a2.c: New file.
16760 * elf/tst-order-a3.c: New file.
16761 * elf/tst-order-a4.c: New file.
16762 * elf/tst-order-b1.c: New file.
16763 * elf/tst-order-b2.c: New file.
16764 * elf/tst-order-main.c: New file.
16765 New test case by George Gensure <werkt0@gmail.com>.
16766
167672010-10-01 Andreas Schwab <schwab@redhat.com>
16768
16769 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16770 decoding ACE if AI_CANONIDN.
16771
167722011-01-18 Ulrich Drepper <drepper@gmail.com>
16773
16774 * elf/Makefile: Build IFUNC tests unless multi-arch = no.
16775
167762011-01-17 Ulrich Drepper <drepper@gmail.com>
16777
16778 * version.h (RELEASE): Bump for 2.13 release.
16779 * include/features.h: (__GLIBC_MINOR__): Bump to 13.
16780
16781 * io/fcntl.h: Define AT_NO_AUTOMOUNT.
16782
16783 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
16784 MADV_NOHUGEPAGE.
16785 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
16786 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
16787 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
16788 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
16789 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
16790 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
16791
16792 * posix/getconf.c: Update copyright year.
16793 * catgets/gencat.c: Likewise.
16794 * csu/version.c: Likewise.
16795 * debug/catchsegv.sh: Likewise.
16796 * debug/xtrace.sh: Likewise.
16797 * elf/ldconfig.c: Likewise.
16798 * elf/ldd.bash.in: Likewise.
16799 * elf/sprof.c (print_version): Likewise.
16800 * iconv/iconv_prog.c: Likewise.
16801 * iconv/iconvconfig.c: Likewise.
16802 * locale/programs/locale.c: Likewise.
16803 * locale/programs/localedef.c: Likewise.
16804 * malloc/memusage.sh: Likewise.
16805 * malloc/mtrace.pl: Likewise.
16806 * nscd/nscd.c (print_version): Likewise.
16807 * nss/getent.c: Likewise.
16808
16809 * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
16810 PF_CAIF, and PF_ALG.
16811 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16812
168132011-01-16 Andreas Schwab <schwab@linux-m68k.org>
16814
16815 * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
16816 (modules-names): Use them.
16817 (ifunc-test-modules, ifunc-pie-tests): Define.
16818 (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
16819 tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
16820 (test-extras): Likewise.
16821 ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
16822 $(compile-command.c).
16823 ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
16824 (all-built-dso): Define.
16825 (check-textrel.out, check-execstack.out): Depend on it.
16826
16827 * configure.in: Don't override --enable-multi-arch.
16828
168292011-01-15 Ulrich Drepper <drepper@gmail.com>
16830
16831 [BZ #6812]
16832 * nscd/hstcache.c (tryagain): Define.
16833 (cache_addhst): Return tryagain not notfound for temporary errors.
16834 (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
16835 failed.
16836
168372011-01-14 Ulrich Drepper <drepper@gmail.com>
16838
16839 [BZ #10563]
16840 * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
16841 to make the syscall.
16842 * sysdeps/unix/sysv/linux/setgroups.c: New file.
16843
16844 [BZ #12378]
16845 * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
16846 and fall back to matching as normal character if the string ends before
16847 the matching ']' is found. This is what POSIX requires.
16848 * posix/testfnm.c: Adjust test result.
16849 * posix/globtest.sh: Adjust test result. Add new test.
16850 * posix/tst-fnmatch.input: Likewise.
16851 * posix/tst-fnmatch2.c: Add new test.
16852
168532010-12-28 Andreas Schwab <schwab@linux-m68k.org>
16854
16855 * elf/Makefile (check-execstack): Revert last change. Depend on
16856 check-execstack.h.
16857 (check-execstack.h): New target.
16858 (generated): Add check-execstack.h.
16859 * elf/check-execstack.c: Include "check-execstack.h".
16860 (main): Revert last change.
16861 (handle_file): Return zero if GNU_STACK is absent and
16862 DEFAULT_STACK_PERMS doesn't include PF_X.
16863
168642011-01-13 Ulrich Drepper <drepper@gmail.com>
16865
16866 * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
16867 in child fails because the descriptor is already closed.
16868 * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
16869 * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
16870 * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
16871
16872 [BZ #12397]
16873 * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
16874 syscall.
16875
16876 [BZ #10484]
16877 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
16878 temporary buffer used to handle multi lookups locally.
16879 * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
16880
168812011-01-12 Ulrich Drepper <drepper@gmail.com>
16882
16883 * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
16884 loader is ld.so.
16885
168862011-01-10 Paul Pluzhnikov <ppluzhnikov@google.com>
16887
16888 * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
16889 alignment for SSE2.
16890
168912011-01-12 Ulrich Drepper <drepper@gmail.com>
16892
16893 [BZ #12394]
16894 * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
16895 characters. When rounding increased number of integer digits recompute
16896 number of groups.
16897 * stdio-common/tst-grouping.c: New file.
16898 * stdio-common/Makefile: Add rules to build and run tst-grouping.
16899
169002011-01-09 Ulrich Drepper <drepper@gmail.com>
16901
16902 * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
16903 __FD_CLR, and __FS_ISSET. gcc generates better code on its own.
16904
16905 * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
16906 void.
16907 * bits/select.h: Likewise.
16908
169092011-01-08 Ulrich Drepper <drepper@gmail.com>
16910
16911 * po/ja.po: Update from translation team.
16912
169132011-01-04 David S. Miller <davem@sunset.davemloft.net>
16914
16915 [BZ #11155]
16916 * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
16917 implementation just like for lxstat, fxstatat, et al.
16918
169192010-12-27 Jim Meyering <meyering@redhat.com>
16920
16921 [BZ #12348]
16922 * posix/regexec.c (build_trtable): Return failure indication upon
16923 calloc failure. Otherwise, re_search_internal could infloop on OOM.
16924
169252010-12-25 Ulrich Drepper <drepper@gmail.com>
16926
16927 [BZ #12201]
16928 * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
16929 * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
16930 * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
16931 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
16932
16933 [BZ #12207]
16934 * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
16935
16936 [BZ #12204]
16937 * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
16938 * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
16939
169402010-12-15 H.J. Lu <hongjiu.lu@intel.com>
16941
16942 * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
16943 * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
16944 script has SORT_BY_INIT_PRIORITY.
16945 * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
16946 NO_CTORS_DTORS_SECTIONS is defined.
16947 * elf/soinit.c: Likewise.
16948 * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
16949 NO_CTORS_DTORS_SECTIONS is defined.
16950 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
16951 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
16952 * sysdeps/sh/init-first.c: Likewise.
16953 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
16954
169552010-12-24 Ulrich Drepper <drepper@gmail.com>
16956
16957 * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
16958 always use the slow path.
16959
169602010-12-15 Ryan S. Arnold <rsa@us.ibm.com>
16961
16962 * elf/Makefile: (check-execstack): Replace $(native-compile) with a
16963 similar rule which adds the sysdep directories to the header search in
16964 order to pick up the correct platform stackinfo.h.
16965 * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
16966 perform test if it is, otherwise return successfully without testing.
16967 * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
16968 DEFAULT_STACK_PERMS define in stackinfo.h.
16969 * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
16970 defined in stackinfo.h.
16971 * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
16972 DEFAULT_STACK_PERMS defined in stackinfo.h.
16973 * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
16974 * sysdeps/ia64/stackinfo.h: Likewise.
16975 * sysdeps/s390/stackinfo.h: Likewise.
16976 * sysdeps/sh/stackinfo.h: Likewise.
16977 * sysdeps/sparc/stackinfo.h: Likewise.
16978 * sysdeps/x86_64/stackinfo.h: Likewise.
16979 * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
16980 PF_X for powerpc64. Retain PF_X for powerpc32.
16981
169822010-12-19 Ulrich Drepper <drepper@gmail.com>
16983
16984 * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
16985 accurately.
16986 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
16987 GETDENTS_64BIT_ALIGNED.
16988
169892010-12-14 Ulrich Drepper <dreper@gmail.com>
16990
16991 * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
16992
169932010-12-10 Andreas Schwab <schwab@redhat.com>
16994
16995 * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
16996 _GNU_SOURCE.
16997
16998 * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
16999 * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
17000 Remove __restrict.
17001 (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
17002 (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
17003
170042010-12-09 Ulrich Drepper <drepper@gmail.com>
17005
17006 [BZ #11655]
17007 * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
17008 are initialized.
17009
170102010-12-09 Jakub Jelinek <jakub@redhat.com>
17011
17012 * string/bits/string3.h (memmove, bcopy): Remove __restrict.
17013
170142010-12-03 Ulrich Drepper <drepper@gmail.com>
17015
17016 * po/it.po: Update from translation team.
17017
170182010-12-01 H.J. Lu <hongjiu.lu@intel.com>
17019
17020 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
17021 unused codes.
17022
170232010-11-30 Ulrich Drepper <drepper@gmail.com>
17024
17025 * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
17026
170272010-11-24 Andreas Schwab <schwab@redhat.com>
17028
17029 * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
17030 specially.
17031 (gaih_getanswer_slice): Likewise.
17032
170332010-10-20 Jakub Jelinek <jakub@redhat.com>
17034
17035 * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
17036
170372010-05-31 Petr Baudis <pasky@suse.cz>
17038
17039 [BZ #11149]
17040 * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
17041 silently even in the chroot mode.
17042
170432010-11-22 Ulrich Drepper <drepper@gmail.com>
17044
17045 * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
17046 last patch a bit. Pretty printing
17047
170482010-05-31 Petr Baudis <pasky@suse.cz>
17049
17050 [BZ #10085]
17051 * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
17052 initialization of skip_initgroups_dyn.
17053
170542010-11-19 Ulrich Drepper <drepper@gmail.com>
17055
17056 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
17057 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
17058
170592010-11-16 Ulrich Drepper <drepper@gmail.com>
17060
17061 * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
17062
170632010-11-11 Andreas Schwab <schwab@redhat.com>
17064
17065 * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
17066 * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
17067 (tst-fnmatch-ENV): Set MALLOC_TRACE.
17068 ($(objpfx)tst-fnmatch-mem): New rule.
17069 (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
17070 * posix/tst-fnmatch.c (main): Call mtrace.
17071
170722010-11-11 H.J. Lu <hongjiu.lu@intel.com>
17073
17074 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17075 Support Intel processor model 6 and model 0x2c.
17076
170772010-11-10 Luis Machado <luisgpm@br.ibm.com>
17078
17079 * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
17080 signed comparison.
17081
170822010-11-09 H.J. Lu <hongjiu.lu@intel.com>
17083
17084 [BZ #12205]
17085 * string/test-strncasecmp.c (check_result): New function.
17086 (do_one_test): Use it.
17087 (check1): New function.
17088 (test_main): Use it.
17089 * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
17090 Support strcasecmp and strncasecmp.
17091
170922010-11-08 Ulrich Drepper <drepper@gmail.com>
17093
17094 [BZ #12194]
17095 * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
17096 * sysdeps/x86_64/bits/byteswap.h: Likewise.
17097
170982010-11-07 H.J. Lu <hongjiu.lu@intel.com>
17099
17100 * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
17101 IFUNC support.
17102 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17103 memset-x86-64.
17104 * sysdeps/x86_64/multiarch/bzero.S: New file.
17105 * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
17106 * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
17107 * sysdeps/x86_64/multiarch/memset.S: New file.
17108 * sysdeps/x86_64/multiarch/memset_chk.S: New file.
17109 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17110 Set bit_Prefer_SSE_for_memop for Intel processors.
17111 * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
17112 Define.
17113 (index_Prefer_SSE_for_memop): Define.
17114 (HAS_PREFER_SSE_FOR_MEMOP): Define.
17115
171162010-11-04 Luis Machado <luisgpm@br.ibm.com>
17117
17118 * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
17119 * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
17120
171212010-11-03 H.J. Lu <hongjiu.lu@intel.com>
17122
17123 [BZ #12191]
17124 * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
17125 (__x86_64_raw_data_cache_size_half): Likewise.
17126 (__x86_64_raw_shared_cache_size): Likewise.
17127 (__x86_64_raw_shared_cache_size_half): Likewise.
17128
17129 * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
17130 (__x86_64_raw_data_cache_size_half): Likewise.
17131 (__x86_64_raw_shared_cache_size): Likewise.
17132 (__x86_64_raw_shared_cache_size_half): Likewise.
17133 (init_cacheinfo): Set __x86_64_raw_data_cache_size,
17134 __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
17135 and __x86_64_raw_shared_cache_size_half. Round
17136 __x86_64_data_cache_size_half, __x86_64_data_cache_size
17137 __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
17138 to multiple of 256 bytes.
17139
171402010-11-03 Ulrich Drepper <drepper@gmail.com>
17141
17142 [BZ #12167]
17143 * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
17144 of inacessible symlinks. Verify result of symlink before returning it.
17145 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
17146 Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
17147
171482010-10-28 Erich Ritz <erichritz@gmail.com>
17149
17150 * math/math.h (isinf): Fix typo in comment.
17151
171522010-11-01 Ulrich Drepper <drepper@gmail.com>
17153
17154 * po/da.po: Update from translation team.
17155
171562010-10-26 Ulrich Drepper <drepper@gmail.com>
17157
17158 * elf/rtld.c (dl_main): Move assertion after the point where rtld map
17159 is added to the list.
17160
171612010-10-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17162 Ulrich Drepper <drepper@gmail.com>
17163
17164 * elf/dl-object.c (_dl_new_object): Don't append the new object to
17165 the global list here. Move code to...
17166 (_dl_add_to_namespace_list): ...here. New function.
17167 * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
17168 * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
17169 * elf/dl-load.c (lose): Don't remove the element from the list.
17170 (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
17171 (_dl_map_object): Likewise.
17172
171732010-10-25 Ulrich Drepper <drepper@gmail.com>
17174
17175 [BZ #12159]
17176 * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
17177 into all bytes of SSE register.
17178 Patch by Richard Li <richardpku@gmail.com>.
17179
171802010-10-24 Ulrich Drepper <drepper@gmail.com>
17181
17182 [BZ #12140]
17183 * malloc/malloc.c (_int_free): Fill correct number of bytes when
17184 perturbing.
17185
171862010-10-20 Michael B. Brutman <brutman@us.ibm.com>
17187
17188 * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
17189 * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
17190 * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
17191 * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
17192 * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
17193 submachine.
17194 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
17195
171962010-10-22 Andreas Schwab <schwab@redhat.com>
17197
17198 * include/dlfcn.h (__RTLD_SECURE): Define.
17199 * elf/dl-load.c (_dl_map_object): Remove preloaded parameter. Use
17200 mode & __RTLD_SECURE instead.
17201 (open_path): Rename preloaded parameter to secure.
17202 * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
17203 * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
17204 * elf/dl-deps.c (openaux): Likewise.
17205 * elf/rtld.c (struct map_args): Remove is_preloaded.
17206 (map_doit): Don't use it.
17207 (dl_main): Likewise.
17208 (do_preload): Use __RTLD_SECURE instead of is_preloaded.
17209 (dlmopen_doit): Add __RTLD_SECURE to mode bits.
17210
172112010-09-09 Andreas Schwab <schwab@redhat.com>
17212
17213 * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
17214 (sysd-rules-targets): Remove duplicates.
17215 * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
17216 rtld-%.$o dependency.
17217
172182010-10-18 Andreas Schwab <schwab@redhat.com>
17219
17220 * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
17221 _dl_map_object do it.
17222
172232010-10-19 Ulrich Drepper <drepper@gmail.com>
17224
17225 * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
17226 fast fma builtins, define the macros in the C99 standard.
17227 (FP_FAST_FMAF): Likewise.
17228 (FP_FAST_FMAL): Likewise.
17229 * sysdeps/x86_64/bits/mathdef.h: Likewise.
17230
17231 * bits/mathdef.h: Update copyright year.
17232 * sysdeps/powerpc/bits/mathdef.h: Likewise.
17233
172342010-10-19 Michael Meissner <meissner@linux.vnet.ibm.com>
17235
17236 * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
17237 builtins, define the macros in the C99 standard.
17238 (FP_FAST_FMAF): Likewise.
17239 (FP_FAST_FMAL): Likewise.
17240 * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
17241 multiply/add.
17242 (FP_FAST_FMAF): Likewise.
17243
172442010-10-15 Jakub Jelinek <jakub@redhat.com>
17245
17246 [BZ #3268]
17247 * math/libm-test.inc (fma_test): Some new testcases.
17248 * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
17249 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
17250 y and infinite z. Do multiplication by C already in long double.
17251 * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
17252 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
17253 y and infinite z. Do bitwise or of inexact bit into u.d.
17254 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
17255 * sysdeps/i386/fpu/s_fmaf.S: Removed.
17256 * sysdeps/i386/fpu/s_fma.S: Removed.
17257 * sysdeps/i386/fpu/s_fmal.S: Removed.
17258
172592010-10-16 Jakub Jelinek <jakub@redhat.com>
17260
17261 [BZ #3268]
17262 * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
17263 * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
17264 computation is not scheduled after fetestexcept. Fix value
17265 of minimum denormal long double.
17266
172672010-10-14 Jakub Jelinek <jakub@redhat.com>
17268
17269 [BZ #3268]
17270 * math/libm-test.inc (fma_test): Add some more tests.
17271 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
17272 correctly.
17273
172742010-10-15 Andreas Schwab <schwab@redhat.com>
17275
17276 * scripts/data/localplt-s390-linux-gnu.data: New file.
17277 * scripts/data/localplt-s390x-linux-gnu.data: New file.
17278
172792010-10-13 Jakub Jelinek <jakub@redhat.com>
17280
17281 [BZ #3268]
17282 * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
17283 * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
17284 instead of dbl-64.
17285 * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
17286 inlines.
17287 * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
17288 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
17289 if one of x and y is very large and the other is subnormal.
17290 * sysdeps/s390/fpu/s_fmaf.c: New file.
17291 * sysdeps/s390/fpu/s_fma.c: New file.
17292 * sysdeps/powerpc/fpu/s_fmaf.S: New file.
17293 * sysdeps/powerpc/fpu/s_fma.S: New file.
17294 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
17295 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
17296 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
17297
172982010-10-12 Jakub Jelinek <jakub@redhat.com>
17299
17300 [BZ #3268]
17301 * math/libm-test.inc (fma_test): Add some more fmaf tests, add
17302 fma tests.
17303 * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
17304 * sysdeps/ieee754/dbl-64/s_fma.c: New file.
17305 * sysdeps/i386/i686/multiarch/s_fma.c: Include
17306 sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
17307 * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
17308 * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
17309 * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
17310
173112010-10-12 Ulrich Drepper <drepper@redhat.com>
17312
17313 [BZ #12078]
17314 * posix/regcomp.c (parse_branch): One more memory leak plugged.
17315 * posix/bug-regex31.input: Add test case.
17316
173172010-10-11 Ulrich Drepper <drepper@gmail.com>
17318
17319 * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
17320 * posix/bug-regex31.input: New file.
17321
17322 [BZ #12078]
17323 * posix/regcomp.c (parse_branch): Free memory when allocation failed.
17324 (parse_sub_exp): Fix last change, use postorder.
17325
17326 * posix/bug-regex31.c: New file.
17327 * posix/Makefile: Add rules to build and run bug-regex31.
17328
17329 * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
17330
17331 [BZ #12078]
17332 * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
17333
17334 [BZ #12108]
17335 * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
17336 to have entries in sys_siglist.
17337
17338 [BZ #12093]
17339 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
17340 be NULL.
17341
173422010-10-07 Jakub Jelinek <jakub@redhat.com>
17343
17344 [BZ #3268]
17345 * math/libm-test.inc (fma_test): Add 2 fmaf tests.
17346 * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
17347 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
17348 sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
17349 * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
17350 * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
17351 * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
17352 * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
17353 * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
17354 * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
17355 * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
17356 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
17357 * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
17358 * math/ftestexcept.c (fetestexcept): Likewise.
17359 * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
17360 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
17361 * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
17362 * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
17363 * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
17364 * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
17365 * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
17366
173672010-10-11 Ulrich Drepper <drepper@gmail.com>
17368
17369 [BZ #12107]
17370 * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
17371 newline.
17372
173732010-10-06 Ulrich Drepper <drepper@gmail.com>
17374
17375 * string/bug-strstr1.c: New file.
17376 * string/Makefile: Add rules to build and run bug-strstr1.
17377
173782010-10-05 Eric Blake <eblake@redhat.com>
17379
17380 [BZ #12092]
17381 * string/str-two-way.h (two_way_long_needle): Always clear memory
17382 when skipping input due to the shift table.
17383
173842010-10-03 Ulrich Drepper <drepper@gmail.com>
17385
17386 [BZ #12005]
17387 * malloc/mcheck.c: Handle large requests.
17388
17389 [BZ #12077]
17390 * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
17391 for strncmp and strncasecmp.
17392 * string/stratcliff.c: Add tests for strcmp and strncmp.
17393 * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
17394
173952010-09-28 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
17396
17397 * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
17398 __set_fpscr.
17399
174002010-09-30 Andreas Jaeger <aj@suse.de>
17401
17402 * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
17403 (CGROUP_SUPER_MAGIC): Define.
17404 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17405 Handle btrfs and cgroup file systems.
17406 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
17407 Likewise.
17408
174092010-09-27 Luis Machado <luisgpm@br.ibm.com>
17410
17411 * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
17412 * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
17413
174142010-09-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17415
17416 [BZ #12067]
17417 * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
17418 trying to locate the ELF header.
17419
174202010-09-27 Andreas Schwab <schwab@redhat.com>
17421
17422 [BZ #11611]
17423 * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
17424 Mask out sign-bit copies when constructing f_fsid.
17425
174262010-09-24 Petr Baudis <pasky@suse.cz>
17427
17428 * debug/stack_chk_fail_local.c: Add missing licence exception.
17429 * debug/warning-nop.c: Likewise.
17430
174312010-09-15 Joseph Myers <joseph@codesourcery.com>
17432
17433 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
17434 implementing getdents64 using getdents syscall, set d_type if
17435 __ASSUME_GETDENTS32_D_TYPE.
17436
174372010-09-16 Andreas Schwab <schwab@redhat.com>
17438
17439 * elf/dl-close.c (free_slotinfo, free_mem): Move to...
17440 * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
17441
174422010-09-21 Ulrich Drepper <drepper@redhat.com>
17443
17444 [BZ #12037]
17445 * posix/unistd.h: Undo change of feature selection for ftruncate from
17446 2010-01-11.
17447
174482010-09-20 Ulrich Drepper <drepper@redhat.com>
17449
17450 * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
17451 detection.
17452
174532010-09-20 Andreas Schwab <schwab@redhat.com>
17454
17455 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
17456 fanotify_mark.
17457 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
17458
174592010-09-14 Andreas Schwab <schwab@redhat.com>
17460
17461 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
17462 variables after CHECK_SP call.
17463 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
17464
174652010-09-13 Andreas Schwab <schwab@redhat.com>
17466 Ulrich Drepper <drepper@redhat.com>
17467
17468 * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
17469 re-relocationg ld.so.
17470 * elf/dl-support.c (_dl_non_dynamic_init): And here after the
17471 _dl_init_paths call.
17472 * elf/dl-load.c (_dl_init_paths). Don't set GLRO(dl_init_all_dirs)
17473 here anymore.
17474
174752010-09-14 Ulrich Drepper <drepper@redhat.com>
17476
17477 * resolv/res_init.c (__res_vinit): Count the default server we added.
17478
174792010-09-08 Chung-Lin Tang <cltang@codesourcery.com>
17480 Ulrich Drepper <drepper@redhat.com>
17481
17482 [BZ #11968]
17483 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17484 (____longjmp_chk): Use %ebx for saving value across system call.
17485 Add unwind info.
17486
174872010-09-06 Andreas Schwab <schwab@redhat.com>
17488
17489 * manual/Makefile: Don't mix pattern rules with normal rules.
17490
174912010-09-05 Andreas Schwab <schwab@linux-m68k.org>
17492
17493 * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
17494 operation.
17495 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
17496 * libio/iofopncook.c (_IO_cookie_init): Likewise.
17497 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
17498 * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
17499 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17500 Likewise.
17501
175022010-09-04 Ulrich Drepper <drepper@redhat.com>
17503
17504 [BZ #11979]
17505 * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
17506 IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
17507
175082010-09-02 Ulrich Drepper <drepper@redhat.com>
17509
17510 * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
17511 * sysdeps/x86_64/addmul_1.S: Likewise.
17512 * sysdeps/x86_64/lshift.S: Likewise.
17513 * sysdeps/x86_64/mul_1.S: Likewise.
17514 * sysdeps/x86_64/rshift.S: Likewise.
17515 * sysdeps/x86_64/sub_n.S: Likewise.
17516 * sysdeps/x86_64/submul_1.S: Likewise.
17517
175182010-09-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
17519
17520 This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
17521 Define __sched_param instead of SCHED_* and sched_param when
17522 <bits/sched.h> is included with __need_schedparam defined.
17523 * bits/sched.h [__need_schedparam]
17524 (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
17525 [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
17526 (__defined_schedparam): Define to 1.
17527 (__sched_param): New structure, identical to sched_param.
17528 (__need_schedparam): Undefine.
17529
175302010-08-31 Mike Frysinger <vapier@gentoo.org>
17531
17532 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
17533 (epoll_create1): Declare.
17534
17535 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
17536
175372010-08-31 Andreas Schwab <schwab@redhat.com>
17538
17539 [BZ #7066]
17540 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
17541 shifting retval into place.
17542
175432010-09-01 Ulrich Drepper <drepper@redhat.com>
17544
17545 * nis/rpcsvc/nis.h: Update copyright notice.
17546 * nis/rpcsvc/nis.x: Likewise.
17547 * nis/rpcsvc/nis_callback.h: Likewise.
17548 * nis/rpcsvc/nis_callback.x: Likewise.
17549 * nis/rpcsvc/nis_object.x: Likewise.
17550 * nis/rpcsvc/nis_tags.h: Likewise.
17551 * nis/rpcsvc/yp.h: Likewise.
17552 * nis/rpcsvc/yp.x: Likewise.
17553 * nis/rpcsvc/ypupd.h: Likewise.
17554 * nis/yp_xdr.c: Likewise.
17555 * nis/ypupdate_xdr.c: Likewise.
17556
17557 * sunrpc/pm_getport.c (__libc_rpc_getport): New function. This is
17558 mainly the body of pmap_getport. Add parameters to specify timeouts.
17559 (pmap_getport): Use __libc_rpc_getport.
17560 * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
17561 * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
17562 * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
17563
175642010-08-31 Andreas Schwab <schwab@linux-m68k.org>
17565
17566 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
17567 fanotify_mark.
17568
175692010-08-27 Roland McGrath <roland@redhat.com>
17570
17571 * sysdeps/i386/i686/multiarch/Makefile
17572 (CFLAGS-varshift.c): New variable.
17573
175742010-08-27 Ulrich Drepper <drepper@redhat.com>
17575
17576 * sysdeps/i386/i686/multiarch/varshift.S: File removed.
17577 * sysdeps/i386/i686/multiarch/varshift.c: New file.
17578
17579 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
17580
17581 * sysdeps/x86_64/strlen.S: Minimal code improvement.
17582
175832010-08-26 H.J. Lu <hongjiu.lu@intel.com>
17584
17585 * sysdeps/x86_64/strlen.S: Unroll the loop.
17586 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17587 strlen-sse2 strlen-sse2-bsf.
17588 * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
17589 __strlen_no_bsf if bit_Slow_BSF is set.
17590 (__strlen_sse42): Removed.
17591 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
17592 * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
17593
175942010-08-25 Roland McGrath <roland@redhat.com>
17595
17596 * sysdeps/x86_64/multiarch/varshift.S: File removed.
17597 * sysdeps/x86_64/multiarch/varshift.c: New file.
17598 * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
17599 * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
17600 * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
17601 * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
17602
176032010-08-25 H.J. Lu <hongjiu.lu@intel.com>
17604
17605 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17606 strlen-sse2 strlen-sse2-bsf.
17607 * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
17608 __strlen_sse2_bsf if bit_Slow_BSF is unset.
17609 (__strlen_sse2): Removed.
17610 * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
17611 * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
17612 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
17613 bit_Slow_BSF for Atom.
17614 * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
17615 (index_Slow_BSF): Define.
17616 (HAS_SLOW_BSF): Define.
17617
176182010-08-25 Ulrich Drepper <drepper@redhat.com>
17619
17620 [BZ #10851]
17621 * resolv/res_init.c (__res_vinit): When no server address at all
17622 is given default to loopback.
17623
176242010-08-24 Roland McGrath <roland@redhat.com>
17625
17626 * configure.in: Remove config-name.h generation.
17627 * configure: Regenerated.
17628 * config-name.in: File removed.
17629 * scripts/config-uname.sh: New file.
17630 * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
17631 ($(objdir)config-name.h): New target.
17632
17633 * sunrpc/rpc_parse.h: Avoid nested comment.
17634
176352010-08-24 Richard Henderson <rth@redhat.com>
17636 Ulrich Drepper <drepper@redhat.com>
17637 H.J. Lu <hongjiu.lu@intel.com>
17638
17639 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
17640 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
17641 * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
17642 Replace _mm_srli_si128 with __m128i_shift_right. Replace
17643 _mm_alignr_epi8 with _mm_loadu_si128.
17644 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
17645 * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
17646 (__m128i_shift_right): Removed.
17647 * sysdeps/i386/i686/multiarch/varshift.h: New file.
17648 * sysdeps/i386/i686/multiarch/varshift.S: New file.
17649 * sysdeps/x86_64/multiarch/varshift.h: New file.
17650 * sysdeps/x86_64/multiarch/varshift.S: New file.
17651
176522010-08-21 Mike Frysinger <vapier@gentoo.org>
17653
17654 * configure.in: Move assembler checks to before sysdep dir checking.
17655
176562010-08-20 Petr Baudis <pasky@suse.cz>
17657
17658 * LICENSES: Sync the sunrpc license.
17659
176602010-08-19 Ulrich Drepper <drepper@redhat.com>
17661
17662 * sunrpc/auth_des.c: Update copyright notice once again.
17663 * sunrpc/auth_none.c: Likewise.
17664 * sunrpc/auth_unix.c: Likewise.
17665 * sunrpc/authdes_prot.c: Likewise.
17666 * sunrpc/authuxprot.c: Likewise.
17667 * sunrpc/bindrsvprt.c: Likewise.
17668 * sunrpc/clnt_gen.c: Likewise.
17669 * sunrpc/clnt_perr.c: Likewise.
17670 * sunrpc/clnt_raw.c: Likewise.
17671 * sunrpc/clnt_simp.c: Likewise.
17672 * sunrpc/clnt_tcp.c: Likewise.
17673 * sunrpc/clnt_udp.c: Likewise.
17674 * sunrpc/clnt_unix.c: Likewise.
17675 * sunrpc/des_crypt.c: Likewise.
17676 * sunrpc/des_soft.c: Likewise.
17677 * sunrpc/get_myaddr.c: Likewise.
17678 * sunrpc/getrpcport.c: Likewise.
17679 * sunrpc/key_call.c: Likewise.
17680 * sunrpc/key_prot.c: Likewise.
17681 * sunrpc/openchild.c: Likewise.
17682 * sunrpc/pm_getmaps.c: Likewise.
17683 * sunrpc/pm_getport.c: Likewise.
17684 * sunrpc/pmap_clnt.c: Likewise.
17685 * sunrpc/pmap_prot.c: Likewise.
17686 * sunrpc/pmap_prot2.c: Likewise.
17687 * sunrpc/pmap_rmt.c: Likewise.
17688 * sunrpc/rpc/auth.h: Likewise.
17689 * sunrpc/rpc/auth_unix.h: Likewise.
17690 * sunrpc/rpc/clnt.h: Likewise.
17691 * sunrpc/rpc/des_crypt.h: Likewise.
17692 * sunrpc/rpc/key_prot.h: Likewise.
17693 * sunrpc/rpc/netdb.h: Likewise.
17694 * sunrpc/rpc/pmap_clnt.h: Likewise.
17695 * sunrpc/rpc/pmap_prot.h: Likewise.
17696 * sunrpc/rpc/pmap_rmt.h: Likewise.
17697 * sunrpc/rpc/rpc.h: Likewise.
17698 * sunrpc/rpc/rpc_des.h: Likewise.
17699 * sunrpc/rpc/rpc_msg.h: Likewise.
17700 * sunrpc/rpc/svc.h: Likewise.
17701 * sunrpc/rpc/svc_auth.h: Likewise.
17702 * sunrpc/rpc/types.h: Likewise.
17703 * sunrpc/rpc/xdr.h: Likewise.
17704 * sunrpc/rpc_clntout.c: Likewise.
17705 * sunrpc/rpc_cmsg.c: Likewise.
17706 * sunrpc/rpc_common.c: Likewise.
17707 * sunrpc/rpc_cout.c: Likewise.
17708 * sunrpc/rpc_dtable.c: Likewise.
17709 * sunrpc/rpc_hout.c: Likewise.
17710 * sunrpc/rpc_main.c: Likewise.
17711 * sunrpc/rpc_parse.c: Likewise.
17712 * sunrpc/rpc_parse.h: Likewise.
17713 * sunrpc/rpc_prot.c: Likewise.
17714 * sunrpc/rpc_sample.c: Likewise.
17715 * sunrpc/rpc_scan.c: Likewise.
17716 * sunrpc/rpc_scan.h: Likewise.
17717 * sunrpc/rpc_svcout.c: Likewise.
17718 * sunrpc/rpc_tblout.c: Likewise.
17719 * sunrpc/rpc_util.c: Likewise.
17720 * sunrpc/rpc_util.h: Likewise.
17721 * sunrpc/rpcinfo.c: Likewise.
17722 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
17723 * sunrpc/rpcsvc/key_prot.x: Likewise.
17724 * sunrpc/rpcsvc/klm_prot.x: Likewise.
17725 * sunrpc/rpcsvc/mount.x: Likewise.
17726 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
17727 * sunrpc/rpcsvc/nlm_prot.x: Likewise.
17728 * sunrpc/rpcsvc/rex.x: Likewise.
17729 * sunrpc/rpcsvc/rstat.x: Likewise.
17730 * sunrpc/rpcsvc/rusers.x: Likewise.
17731 * sunrpc/rpcsvc/sm_inter.x: Likewise.
17732 * sunrpc/rpcsvc/spray.x: Likewise.
17733 * sunrpc/rpcsvc/yppasswd.x: Likewise.
17734 * sunrpc/rtime.c: Likewise.
17735 * sunrpc/svc.c: Likewise.
17736 * sunrpc/svc_auth.c: Likewise.
17737 * sunrpc/svc_authux.c: Likewise.
17738 * sunrpc/svc_raw.c: Likewise.
17739 * sunrpc/svc_run.c: Likewise.
17740 * sunrpc/svc_simple.c: Likewise.
17741 * sunrpc/svc_tcp.c: Likewise.
17742 * sunrpc/svc_udp.c: Likewise.
17743 * sunrpc/svc_unix.c: Likewise.
17744 * sunrpc/svcauth_des.c: Likewise.
17745 * sunrpc/xcrypt.c: Likewise.
17746 * sunrpc/xdr.c: Likewise.
17747 * sunrpc/xdr_array.c: Likewise.
17748 * sunrpc/xdr_float.c: Likewise.
17749 * sunrpc/xdr_mem.c: Likewise.
17750 * sunrpc/xdr_rec.c: Likewise.
17751 * sunrpc/xdr_ref.c: Likewise.
17752 * sunrpc/xdr_sizeof.c: Likewise.
17753 * sunrpc/xdr_stdio.c: Likewise.
17754
17755 * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
17756 handling.
17757
177582010-08-19 Andreas Schwab <schwab@redhat.com>
17759
17760 * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
17761
177622010-08-19 Luis Machado <luisgpm@br.ibm.com>
17763
17764 * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
17765 * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
17766 * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
17767 * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
17768 * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
17769 * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
17770 * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
17771 * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
17772 * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
17773 * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
17774 * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
17775 * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
17776 * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
17777 * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
17778
177792010-07-26 Anton Blanchard <anton@samba.org>
17780
17781 * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
17782 * malloc/arena.c (heap_trim): Likewise.
17783
177842010-08-16 Ulrich Drepper <drepper@redhat.com>
17785
17786 * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
17787 here. Not...
17788 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
17789 * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
17790
177912010-08-12 H.J. Lu <hongjiu.lu@intel.com>
17792
17793 * sysdeps/i386/elf/Makefile: New file.
17794
177952010-08-14 Andreas Schwab <schwab@linux-m68k.org>
17796
17797 * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
17798 from fanotify_init.
17799 * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
17800 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
17801
178022010-08-15 Ulrich Drepper <drepper@redhat.com>
17803
17804 * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
17805 of strncasecmp_l.
17806 * sysdeps/multiarch/strcmp.S: Likewise.
17807
178082010-08-14 Ulrich Drepper <drepper@redhat.com>
17809
17810 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
17811 strncase_l-nonascii.
17812 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
17813 Add strncase_l-ssse3.
17814 * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
17815 * sysdeps/x86_64/strcmp.S: Likewise.
17816 * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
17817 * sysdeps/x86_64/multiarch/strncase_l.S: New file.
17818 * sysdeps/x86_64/strncase.S: New file.
17819 * sysdeps/x86_64/strncase_l-nonascii.c: New file.
17820 * sysdeps/x86_64/strncase_l.S: New file.
17821 * string/Makefile (strop-tests): Add strncasecmp.
17822 * string/test-strncasecmp.c: New file.
17823
17824 * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
17825 warning.
17826
17827 * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
17828 * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
17829
178302010-08-14 Andreas Schwab <schwab@linux-m68k.org>
17831
17832 * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
17833
178342010-08-12 Ulrich Drepper <drepper@redhat.com>
17835
17836 * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
17837 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
17838 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
17839
178402010-05-01 Alan Modra <amodra@gmail.com>
17841
17842 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
17843 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
17844 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
17845 * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
17846 * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
17847 tidying. Don't tail-call __sigjmp_save for static lib.
17848 * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
17849 save location.
17850 (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
17851 (CALL_MCOUNT): Add eh info, and nop after bl.
17852 (TAIL_CALL_SYSCALL_ERROR): New macro.
17853 (PSEUDO_RET): Use it.
17854 * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
17855 Correct save location of integer regs and cr.
17856 (_dl_profile_resolve): Correct cr save location. Delete nops
17857 after bl when SHARED. Reduce cfi size a little by better
17858 placement of cfi directives.
17859 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
17860 make a stack frame. Instead use parm save area as a temp.
17861 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
17862 make a stack frame. Use TAIL_CALL_SYSCALL_ERROR.
17863 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
17864 Don't make a stack frame for parent, use parm save area.
17865 Increase child stack frame to 112 bytes. Don't save unused reg,
17866 and adjust reg usage. Set up cfi on error recovery and
17867 epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
17868 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
17869 (__makecontext): Add dummy nop after jump to exit.
17870 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
17871 Use correct parm save area and cr save, reduce stack frame.
17872 Correct cfi for possible PSEUDO_RET frame setup.
17873 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
17874 Branch to local label emitted by PSEUDO_RET rather than
17875 __syscall_error.
17876
178772010-08-12 Andreas Schwab <schwab@redhat.com>
17878
17879 [BZ #11904]
17880 * locale/programs/locale.c (print_assignment): New function.
17881 (show_locale_vars): Use it.
17882
178832010-08-11 Ulrich Drepper <drepper@redhat.com>
17884
17885 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
17886 field.
17887 (struct statfs64): Likewise.
17888 (_STATFS_F_FLAGS): Define.
17889 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
17890 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17891 Don't define if __ASSUME_STATFS_F_FLAGS is defined.
17892 (ST_VALID): Define locally.
17893 (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
17894 __statvfs_getflags, use the provided value.
17895 * sysdeps/unix/sysv/linux/kernel-features.h: Define
17896 __ASSUME_STATFS_F_FLAGS.
17897
17898 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
17899
17900 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
17901 Add sys/fanotify.h.
17902 * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
17903 fanotify_mask for GLIBC_2.13.
17904 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
17905 fanotify_init and fanotify_mark.
17906 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
17907 * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
17908
17909 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
17910 Add prlimit.
17911 * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
17912 prlimit64 for GLIBC_2.13.
17913 * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
17914 prlimit64.
17915 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
17916 syscall.
17917 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
17918 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
17919 * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
17920 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
17921 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise. Also
17922 add prlimit alias.
17923 * sysdeps/unix/sysv/linux/prlimit.c: New file.
17924
17925 [BZ #11903]
17926 * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
17927 Patch by Evgeni Bikov <bikovevg@iitp.ru>.
17928
17929 * nss/Makefile: Add rules to build and run tst-nss-test1.
17930 * shlib-versions: Add entry for libnss_test1.
17931 * nss/nss_test1.c: New file.
17932 * nss/tst-nss-test1.c: New file.
17933
17934 * nss/nsswitch.c (__nss_database_custom): Define new variable.
17935 (__nss_configure_lookup): Set appropriate entry in
17936 __nss_configure_lookup to true.
17937 * nss/nsswitch.h: Define enum with indeces of databases in
17938 databases and __nss_database_custom arrays. Declare
17939 __nss_database_custom.
17940 * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
17941 to avoid using nscd when custom rules are installed.
17942 * nss/getXXbyYY_r.c: Likewise.
17943 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
17944
17945 * nss/nss_files/files-parse.c: Whitespace fixes.
17946
179472010-08-09 Ulrich Drepper <drepper@redhat.com>
17948
17949 [BZ #11883]
17950 * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
17951 * posix/fnmatch_loop.c: Likewise.
17952
179532010-07-17 Andi Kleen <ak@linux.intel.com>
17954
17955 * sysdeps/i386/i386-mcount.S (__fentry__): Define.
17956 * sysdeps/x86_64/_mcount.S (__fentry__): Define.
17957 * stdlib/Versions (__fentry__): Add for GLIBC 2.13
17958 * Versions.def [GLIBC_2.13]: Add.
17959
179602010-08-06 Ulrich Drepper <drepper@redhat.com>
17961
17962 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
17963 Also fail if tpwd after pwuid call is NULL.
17964
179652010-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
17966
17967 * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
17968 when converting to ms.
17969
179702010-06-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17971
17972 * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
17973 EOPNOTSUPP errors with ENOTTY.
17974 * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
17975 EOPNOTSUPP errors with ENOTTY.
17976
179772010-07-31 Ulrich Drepper <drepper@redhat.com>
17978
17979 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
17980 Add strcasecmp_l-ssse3.
17981 * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
17982 strcasecmp.
17983 * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
17984 * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
17985 * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
17986
179872010-07-30 Ulrich Drepper <drepper@redhat.com>
17988
17989 * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
17990
17991 * string/Makefile (strop-tests): Add strcasecmp.
17992 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
17993 strcasecmp_l-nonascii.
17994 (gen-as-const-headers): Add locale-defines.sym.
17995 * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
17996 * sysdeps/x86_64/strcasecmp.S: New file.
17997 * sysdeps/x86_64/strcasecmp_l.S: New file.
17998 * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
17999 * sysdeps/x86_64/locale-defines.sym: New file.
18000 * string/test-strcasecmp.c: New file.
18001
18002 * string/test-strcasestr.c: Test both ends of the range of characters.
18003 * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
18004
180052010-07-29 Roland McGrath <roland@redhat.com>
18006
18007 [BZ #11856]
18008 * manual/locale.texi (Yes-or-No Questions): Fix example code.
18009
180102010-07-27 Ulrich Drepper <drepper@redhat.com>
18011
18012 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
18013 for ld.so.
18014
180152010-07-27 Andreas Schwab <schwab@redhat.com>
18016
18017 * manual/memory.texi (Malloc Tunable Parameters): Document
18018 M_PERTURB.
18019
180202010-07-26 Roland McGrath <roland@redhat.com>
18021
18022 [BZ #11840]
18023 * configure.in (-fgnu89-inline check): Set and substitute
18024 gnu89_inline, not libc_cv_gnu89_inline.
18025 * configure: Regenerated.
18026 * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
18027
180282010-07-26 Ulrich Drepper <drepper@redhat.com>
18029
18030 * string/test-strnlen.c: New file.
18031 * string/Makefile (strop-tests): Add strnlen.
18032 * string/tester.c (test_strnlen): Add a few more test cases.
18033 * string/tst-strlen.c: Better error reporting.
18034
18035 * sysdeps/x86_64/strnlen.S: New file.
18036
180372010-07-24 Ulrich Drepper <drepper@redhat.com>
18038
18039 * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
18040 lower-latency instructions.
18041
180422010-07-23 Ulrich Drepper <drepper@redhat.com>
18043
18044 * string/test-strcasestr.c: New file.
18045 * string/test-strstr.c: New file.
18046 * string/Makefile (strop-tests): Add strstr and strcasestr.
18047 * string/str-two-way.h: Don't undefine MAX.
18048 * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
18049
180502010-07-21 Andreas Schwab <schwab@redhat.com>
18051
18052 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18053 strcasestr-nonascii.
18054 (CFLAGS-strcasestr-nonascii.c): Define.
18055 * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
18056 * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
18057 Remove unused attribute.
18058
180592010-07-20 Roland McGrath <roland@redhat.com>
18060
18061 * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
18062 dl_hwcap_mask as well as dl_hwcap. Without this, dsocaps matching in
18063 ld.so.cache was broken. With it, there is no way to disable dsocaps
18064 like LD_HWCAP_MASK can disable hwcaps.
18065
180662010-06-02 Emilio Pozuelo Monfort <pochu27@gmail.com>
18067
18068 * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
18069
180702010-07-16 Ulrich Drepper <drepper@redhat.com>
18071
18072 * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
18073 call in strcasestr.
18074 * sysdeps/x86_64/multiarch/strcasestr.c: Declare
18075 __strcasestr_sse42_nonascii.
18076 * sysdeps/x86_64/multiarch/Makefile: Add rules to build
18077 strcasestr-nonascii.c.
18078 * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
18079
180802010-06-15 Luis Machado <luisgpm@br.ibm.com>
18081
18082 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
18083 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
18084 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
18085 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
18086
180872010-07-09 Ulrich Drepper <drepper@redhat.com>
18088
18089 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
18090 fcntl.
18091
180922010-07-06 Andreas Schwab <schwab@redhat.com>
18093
18094 [BZ #11577]
18095 * elf/dl-version.c (match_symbol): Don't pass NULL occation to
18096 dl_signal_cerror.
18097
180982010-07-06 Ulrich Drepper <drepper@redhat.com>
18099
18100 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
18101 _PC_PIPE_BUF using F_GETPIPE_SZ.
18102
181032010-07-05 Roland McGrath <roland@redhat.com>
18104
18105 * manual/arith.texi (Rounding Functions): Fix rint description
18106 implicit in round description.
18107
181082010-07-02 Ulrich Drepper <drepper@redhat.com>
18109
18110 * elf/Makefile: Fix linking for a few tests to make recent linker
18111 happy.
18112
181132010-06-30 Andreas Schwab <schwab@redhat.com>
18114
18115 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18116 $(common-objpfx)libc_nonshared.a.
18117
181182010-06-21 Luis Machado <luisgpm@br.ibm.com>
18119
18120 * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
18121 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
18122 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
18123 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
18124 * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
18125 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
18126 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
18127 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
18128 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
18129 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
18130 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
18131 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
18132 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
18133 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
18134 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
18135 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
18136 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
18137 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
18138 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
18139 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
18140 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
18141 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
18142 * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
18143 * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
18144 * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
18145 * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
18146 * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
18147 * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
18148 * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
18149 * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
18150 * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
18151 * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
18152 * sysdeps/powerpc/powerpc32/power7/Implies: New file.
18153 * sysdeps/powerpc/powerpc64/power7/Implies: New file.
18154 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
18155 * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
18156 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
18157 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
18158 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
18159 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
18160 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
18161 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
18162 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
18163 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
18164 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
18165 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
18166 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
18167 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
18168
181692010-06-25 H.J. Lu <hongjiu.lu@intel.com>
18170
18171 * debug/memmove_chk.c (__memmove_chk): Renamed to ...
18172 (MEMMOVE_CHK): ...this. Default to __memmove_chk.
18173 * string/memmove.c (memmove): Renamed to ...
18174 (MEMMOVE): ...this. Default to memmove.
18175 * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
18176 * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
18177 (END_CHK): Define.
18178 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18179 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
18180 mempcpy-ssse3-back memmove-ssse3-back.
18181 * sysdeps/x86_64/multiarch/bcopy.S: New file .
18182 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
18183 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
18184 * sysdeps/x86_64/multiarch/memcpy.S: New file.
18185 * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
18186 * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
18187 * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
18188 * sysdeps/x86_64/multiarch/memmove.c: New file.
18189 * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
18190 * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
18191 * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
18192 * sysdeps/x86_64/multiarch/mempcpy.S: New file.
18193 * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
18194 * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
18195 Define.
18196 (index_Fast_Copy_Backward): Define.
18197 (HAS_ARCH_FEATURE): Define.
18198 (HAS_FAST_REP_STRING): Define.
18199 (HAS_FAST_COPY_BACKWARD): Define.
18200
182012010-06-21 Andreas Schwab <schwab@redhat.com>
18202
18203 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18204 Restore proper fallback handling.
18205
182062010-06-19 Ulrich Drepper <drepper@redhat.com>
18207
18208 [BZ #11701]
18209 * posix/group_member.c (__group_member): Correct checking loop.
18210
18211 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
18212 OOM in getpwuid_r correctly. Return error number when the caller
18213 should return, otherwise -1.
18214 (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
18215 call returning > 0 value.
18216 * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
18217
182182010-06-07 Andreas Schwab <schwab@redhat.com>
18219
18220 * dlfcn/Makefile: Remove explicit dependencies on libc.so and
18221 libc_nonshared.a from targets in modules-names.
18222
182232010-06-02 Kirill A. Shutemov <kirill@shutemov.name>
18224
18225 * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
18226 requires it.
18227
182282010-06-10 Luis Machado <luisgpm@br.ibm.com>
18229
18230 * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
18231 * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
18232 * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
18233 * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
18234
182352010-06-02 Andreas Schwab <schwab@redhat.com>
18236
18237 * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
18238
182392010-06-14 Ulrich Drepper <drepper@redhat.com>
18240
18241 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
18242 and F_GETPIPE_SZ.
18243 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18244 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18245 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18246 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18247 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18248 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
18249
182502010-06-14 Roland McGrath <roland@redhat.com>
18251
18252 * manual/libc.texinfo (@copying): Change to GFDL v1.3.
18253
182542010-06-07 Jakub Jelinek <jakub@redhat.com>
18255
18256 * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
18257 __REDIRECT followed by __THROW.
18258 * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
18259 * posix/getopt.h (getopt): Likewise.
18260
182612010-06-02 Emilio Pozuelo Monfort <pochu27@gmail.com>
18262
18263 * hurd/lookup-at.c (__file_name_lookup_at): Accept
18264 AT_SYMLINK_FOLLOW in AT_FLAGS. Fail with EINVAL if both
18265 AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
18266 in AT_FLAGS.
18267 * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
18268 * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
18269
182702010-05-28 Luis Machado <luisgpm@br.ibm.com>
18271
18272 * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
18273
182742010-05-26 H.J. Lu <hongjiu.lu@intel.com>
18275
18276 [BZ #11640]
18277 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18278 Properly check family and model.
18279
182802010-05-26 Takashi Yoshii <takashi.yoshii.zj@renesas.com>
18281
18282 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
18283
182842010-05-24 Luis Machado <luisgpm@br.ibm.com>
18285
18286 * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
18287
182882010-05-21 Ulrich Drepper <drepper@redhat.com>
18289
18290 * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
18291 symbol reference.
18292
182932010-05-19 Andreas Schwab <schwab@redhat.com>
18294
18295 * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
18296 symbol reference.
18297
182982010-05-21 Andreas Schwab <schwab@redhat.com>
18299
18300 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
18301 and internal_recvmmsg.
18302 * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
18303 * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
18304 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
18305 * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
18306
18307 * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
18308 * sunrpc/clnt_udp.c (clntudp_control): Likewise.
18309 * sunrpc/clnt_unix.c (clntunix_control): Likewise.
18310
183112010-05-20 Andreas Schwab <schwab@redhat.com>
18312
18313 * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
18314
183152010-05-17 Luis Machado <luisgpm@br.ibm.com>
18316
18317 POWER7 optimizations.
18318 * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
18319 * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
18320
183212010-05-19 Ulrich Drepper <drepper@redhat.com>
18322
18323 * version.h: Update for 2.13 development version.
18324
183252010-05-12 Andrew Stubbs <ams@codesourcery.com>
18326
18327 * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
18328 exceptions. Return 0.
18329
183302010-05-07 Roland McGrath <roland@redhat.com>
18331
18332 * elf/ldconfig.c (main): Add a const.
18333
183342010-05-06 Ulrich Drepper <drepper@redhat.com>
18335
18336 * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
18337 (args_options): Add no-idn option.
18338 (ahosts_keys_int): Add idn_flags to ai_flags.
18339 (parse_option): Handle 'i' option to clear idn_flags.
18340
18341 * malloc/malloc.c (_int_free): Possible race in the most recently
18342 added check. Only act on the data if no current modification
18343 happened.
18344
18345See ChangeLog.17 for earlier changes.